Update of /cvsroot/fink/web/pdb
In directory sc8-pr-cvs17:/tmp/cvs-serv10108/pdb

Modified Files:
      Tag: redesign_pdb
        browse.php 
Log Message:
Add some style to the new pdb browser list


Index: browse.php
===================================================================
RCS file: /cvsroot/fink/web/pdb/browse.php,v
retrieving revision 1.1.2.20
retrieving revision 1.1.2.21
diff -u -d -r1.1.2.20 -r1.1.2.21
--- browse.php  21 Aug 2007 21:15:44 -0000      1.1.2.20
+++ browse.php  26 Aug 2007 14:12:10 -0000      1.1.2.21
@@ -384,25 +384,29 @@
 packages<?=($maintainer=='None' ? ' without maintainer' : 
'')?><?=($tree=='testing' ? ' that need testing' : '')?>:
 </p>
 
-<table border="1">
+<table class="pdb" cellspacing="2" border="0">
 <?
   if ($tree == 'testing') {
-    print '<tr><th>Name</th><th>Version in unstable</th><th>Version in 
stable</th><th>Description</th></tr>';
-  } else {
-    print '<tr><th>Name</th><th>Latest Version</th><th>Description</th></tr>';
+    print '<tr class="pdbHeading"><th>Name</th><th>Version in 
unstable</th><th>Version in stable</th><th>Description</th></tr>';
+  } 
+  elseif ($tree && $dist) {
+    print '<tr 
class="pdbHeading"><th>Name</th><th>Version</th><th>Description</th></tr>';
+  }
+  else {
+    print '<tr class="pdbHeading"><th>Name</th><th>Latest 
Version</th><th>Description</th></tr>';
   }
   while ($row = mysql_fetch_array($rs)) {
-    print '<tr>';
+    print '<tr class="package">';
     if ($tree || $dist)
       $rel_id_str = '?rel_id='.$row["rel_id"];
     else
       $rel_id_str = '';
-    print '<td><a 
href="package.php/'.$row["name"].$rel_id_str.'">'.$row["name"].'</a></td>';
+    print '<td class="packageName"><a 
href="package.php/'.$row["name"].$rel_id_str.'">'.$row["name"].'</a></td>';
     if ($tree == 'testing') {
       print '<td>'.$row['version_unstable'].'</td>'.
             '<td>'.$row['version_stable'].'</td>';
     } else {
-      print '<td>'.$row['version'].'-'.$row['revision'].'</td>';
+      print '<td 
class="packageName">'.$row['version'].'-'.$row['revision'].'</td>';
     }
     print '<td>'.$row['descshort']."</td></tr>\n";
   }


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to