cvs: pres2 / index.php

From: Date: Fri, 27 Aug 2004 08:55:20 +0000
Subject: cvs: pres2 / index.php
Groups: php.pres 
Request: Send a blank email to pres+get-1034@lists.php.net to get a copy of this message
derick Fri Aug 27 04:55:20 2004 EDT Modified files: /pres2 index.php Log: - Made sure all columns have equal widths (or about equal). http://cvs.php.net/diff.php/pres2/index.php?r1=1.35&r2=1.36&ty=u Index: pres2/index.php diff -u pres2/index.php:1.35 pres2/index.php:1.36 --- pres2/index.php:1.35 Fri Aug 27 04:48:29 2004 +++ pres2/index.php Fri Aug 27 04:55:19 2004 @@ -134,8 +134,9 @@ ksort($topics); print('<table width="100%"><tr>'."\n"); $col = 0; + $percent = 100 / $topic_cols; foreach($topics as $i => $topic) { - print('<td class="output" style="font-size: 1.8em;"><a href="' . $baseDir . 'index.php/' . urlencode($i) . '">' . $i . '</a> (' . $topic['count'] . ')</td>'."\n"); + printf('<td width="%.1f%%" class="output" style="font-size: 1.8em; padding-bottom: 15px"><a href="' . $baseDir . 'index.php/' . urlencode($i) . '">' . $i . '</a> (' . $topic['count'] . ')</td>'."\n", $percent); if (++$col >= $topic_cols) { $col=0; print("</tr>\n<tr>");

« previous php.pres (#1034) next »