cvs: php-bugs-web / search.php

From: Date: Tue, 18 Jun 2002 07:40:53 +0000
Subject: cvs: php-bugs-web / search.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-10886@lists.php.net to get a copy of this message
derick Tue Jun 18 03:40:53 2002 EDT Modified files: /php-bugs-web search.php Log: - Add date to overview (fixes #16390) Index: php-bugs-web/search.php diff -u php-bugs-web/search.php:1.18 php-bugs-web/search.php:1.19 --- php-bugs-web/search.php:1.18 Thu Jun 13 15:01:54 2002 +++ php-bugs-web/search.php Tue Jun 18 03:40:52 2002 @@ -112,6 +112,7 @@ <?php show_prev_next($begin,$rows,$total_rows,$link,$limit);?> <tr bgcolor="#aaaaaa"> <th><a href="<?php echo $link;?>&amp;reorder_by=id">ID#</a></th> + <th><a href="<?php echo $link;?>&amp;reorder_by=id">Date</a></th> <?php if ($bug_type == "Any") {?> <th><a href="<?php echo $link;?>&amp;reorder_by=bug_type">Type</a></th> <?php }?> @@ -124,8 +125,14 @@ <?php while ($row = mysql_fetch_array($res)) { echo '<tr bgcolor="', get_row_color($row), '">'; + + /* Bug ID */ echo "<td align=\"center\"><a href=\"bug.php?id=$row[id]\">$row[id]</a>"; echo "<br /><a href=\"bug.php?id=$row[id]&amp;edit=1\">(edit)</a></td>"; + + /* Date */ + echo "<td align=\"center\">".date ("Y-m-s<br />\nH:i:s", strtotime ($row[ts1]))."</td>"; + if ($bug_type == "Any") { echo "<td>", htmlspecialchars($row[bug_type]), "</td>"; } @@ -214,7 +221,7 @@ function show_prev_next($begin,$rows,$total_rows,$link,$limit) { if($limit=='All') return; - echo "<tr bgcolor=\"#cccccc\"><td align=\"center\" colspan=\"7\">"; + echo "<tr bgcolor=\"#cccccc\"><td align=\"center\" colspan=\"8\">"; echo '<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr>'; if ($begin > 0) { echo "<td align=\"left\" width=\"33%\"><a href=\"$link&amp;begin=",max(0,$begin-$limit),"\">&laquo; Show Previous $limit Entries</a></td>";

« previous php.mirrors (#10886) next »