Author: vip
Date: Mon Jun  4 13:25:08 2007
New Revision: 8634

Modified:
   toys/stbr/index.php
Log:
- show 25 requests by default (link to all entries at the bottom of the table)


Modified: toys/stbr/index.php
==============================================================================
--- toys/stbr/index.php (original)
+++ toys/stbr/index.php Mon Jun  4 13:25:08 2007
@@ -88,6 +88,10 @@
 }
 .ok { color: green; }
 .fail { color: red; }
+#bottomlink {
+       padding: 15px 15px 15px 15px;
+       text-align: right;
+}
 
 </style>
 
@@ -273,7 +277,14 @@
 
 <!-- <tbody id="dataTable"> -->
 <?
-$query = "SELECT * FROM stbr ORDER BY date DESC";
+$query = "LIMIT 25";
+
+if(isset($_GET['show_all']))
+{
+       $query = "";    
+}
+
+$query = "SELECT * FROM stbr ORDER BY date DESC $query";
 $query = sqlite_query($db, $query);
 
 while($p = sqlite_fetch_array($query))
@@ -373,6 +384,9 @@
 </table>
 
 </div>
+<div id="bottomlink">
+<a href="./?show_all">Show all requests &raquo;</a>
+</div>
 <div id="logoPLD" onmouseover="O(event, this, 'Powered by [b]PLD[/b]')">
 <img src="http://pl.docs.pld-linux.org/zrzuty_ekr/logo_03.png"; alt="PLD" />
 </div>
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to