[gst-cvs] CVS: www/status index.php,1.10,1.11 status_fields.php,1.4,1.5
Andy Wingo
wingo at users.sourceforge.net
Sun Oct 14 17:40:03 PDT 2001
Update of /cvsroot/gstreamer/www/status
In directory usw-pr-cvs1:/tmp/cvs-serv25875
Modified Files:
index.php status_fields.php
Log Message:
* entries are now sorted by name
* a few field changes for wishlist plugins
* changed 'prelimary' status to 'absent'
* fixes
For those of you doing web cvs stuff, I have set up a test server at ambient.2y.net/gstreamer.
Access ambient.2y.net/gstreamer/cvs-update.php to update it. eventually, anyway...
Index: index.php
===================================================================
RCS file: /cvsroot/gstreamer/www/status/index.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- index.php 2001/10/14 21:39:00 1.10
+++ index.php 2001/10/15 00:39:57 1.11
@@ -41,13 +41,13 @@
print "<td width=\"20%\" bgcolor=\"$colors[$key]\"> </td>";
}
echo "</tr>\n</table>\n<br>\n";
- print "<table border=\"1\">\n";
+ print "<table border=\"1\" width=\"100%\">\n";
print " <tr>";
foreach ($relevant_fields[$category] as $value) {
print "<th>$fields[$value]</th>";
}
print "</tr>\n";
- $query = mysql_query("select * from status where category=$category");
+ $query = mysql_query("select * from status where category=$category order by ".$fields[$relevant_fields[$category][0]]);
while ($row = mysql_fetch_array($query)) {
print " <tr>";
foreach ($relevant_fields[$category] as $value) {
@@ -66,10 +66,12 @@
choose another category:
<select name="category">
EOF;
- if ($key==$category) {
- echo " <option value=\"$key\" selected>$value</option>\n";
- } else {
- echo " <option value=\"$key\">$value</option>\n";
+ foreach ($categories as $key=>$value) {
+ if ($key==$category) {
+ echo " <option value=\"$key\" selected>$value</option>\n";
+ } else {
+ echo " <option value=\"$key\">$value</option>\n";
+ }
}
echo <<<EOF
</select>
Index: status_fields.php
===================================================================
RCS file: /cvsroot/gstreamer/www/status/status_fields.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- status_fields.php 2001/10/14 21:22:01 1.4
+++ status_fields.php 2001/10/15 00:39:57 1.5
@@ -32,14 +32,14 @@
5=>array(15,2,3,4,5,6,7),
6=>array(15,2,4,5,6,7),
7=>array(12,13,3,4,5,14,7),
- 8=>array(15,2,3,4,5,6,7));
+ 8=>array(15,2,5));
$colors = array(0=>'FFFFFF',
3=>'FF0000',
5=>'FF9900',
7=>'FFFF00',
10=>'66FF33');
- $color_names = array(0=>'preliminary',
+ $color_names = array(0=>'absent',
3=>'poor',
5=>'halfway',
7=>'fair',
More information about the Gstreamer-commits
mailing list