SVN: toys/stbr/index.php
vip
vip at pld-linux.org
Mon Jun 4 13:25:10 CEST 2007
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 »</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>
More information about the pld-cvs-commit
mailing list