SVN: toys/stbr/index.php

vip vip at pld-linux.org
Thu May 17 16:35:27 CEST 2007


Author: vip
Date: Thu May 17 16:35:25 2007
New Revision: 8593

Modified:
   toys/stbr/index.php
Log:
- rowspan


Modified: toys/stbr/index.php
==============================================================================
--- toys/stbr/index.php	(original)
+++ toys/stbr/index.php	Thu May 17 16:35:25 2007
@@ -237,14 +237,7 @@
 
 while($p = sqlite_fetch_array($query))
 {
-?>
-<tr class="entry">
-<td class="date"><?=$p['date']?></td>
-<td class="sender"><?=$p['sender']?></td>
-<td colspan="4"></td>
-</tr>
-<!-- inner evil -->
-<?
+	
 $inner  = "SELECT application.recipient as arecipient, application.spec as aspec, application.branch AS abranch, ";
 $inner .= " builder, queue_requester, queue_date, queue_flags ";
 $inner .= "FROM application ";
@@ -254,6 +247,15 @@
 $inner .= "ORDER BY application.date DESC";
 
 $inner = sqlite_query($db, $inner);
+$rows = sqlite_num_rows($inner) + 1;
+?>
+<tr class="entry">
+<td class="date" rowspan="<?=$rows?>"><?=$p['date']?></td>
+<td class="sender" rowspan="<?=$rows?>"><?=$p['sender']?></td>
+<td colspan="4"></td>
+</tr>
+<!-- inner evil -->
+<?
 
 while($q = sqlite_fetch_array($inner))
 {
@@ -302,7 +304,6 @@
 	}
 ?>
 <tr class="application" <?=$title?>>
-<td colspan="2"></td>
 <td class="spec"><a href="http://cvs.pld-linux.org/cgi-bin/cvsweb/SPECS/<?=$q['aspec']?>"><?=$q['aspec']?></a>:<?=$q['abranch']?></td>
 <td class="recip"><a class="mailto"><?=$q['arecipient']?></a></td>
 <td class="builder"><?=$q['builder']?></td>


More information about the pld-cvs-commit mailing list