cvs: pres2 / config.php-dist index.php

From: Date: Fri, 27 Aug 2004 08:48:30 +0000
Subject: cvs: pres2 / config.php-dist index.php
Groups: php.pres 
Request: Send a blank email to pres+get-1033@lists.php.net to get a copy of this message
hholzgra Fri Aug 27 04:48:30 2004 EDT Modified files: /pres2 index.php config.php-dist Log: configurable multicolumn topic list http://cvs.php.net/diff.php/pres2/index.php?r1=1.34&r2=1.35&ty=u Index: pres2/index.php diff -u pres2/index.php:1.34 pres2/index.php:1.35 --- pres2/index.php:1.34 Fri Aug 27 04:05:48 2004 +++ pres2/index.php Fri Aug 27 04:48:29 2004 @@ -132,10 +132,16 @@ </p> <?php ksort($topics); + print('<table width="100%"><tr>'."\n"); + $col = 0; foreach($topics as $i => $topic) { - print('<p><a href="' . $baseDir . 'index.php/' . urlencode($i) . '">' . $i . '</a> (' . $topic['count'] . ')</p>'); + print('<td class="output" style="font-size: 1.8em;"><a href="' . $baseDir . 'index.php/' . urlencode($i) . '">' . $i . '</a> (' . $topic['count'] . ')</td>'."\n"); + if (++$col >= $topic_cols) { + $col=0; + print("</tr>\n<tr>"); + } } - + print('</tr></table>'); } else { if(empty($_COOKIE['display_mode'])) { $display_mode = 'html'; $form_speaker='false'; } else { http://cvs.php.net/diff.php/pres2/config.php-dist?r1=1.12&r2=1.13&ty=u Index: pres2/config.php-dist diff -u pres2/config.php-dist:1.12 pres2/config.php-dist:1.13 --- pres2/config.php-dist:1.12 Sat Jul 20 13:15:53 2002 +++ pres2/config.php-dist Fri Aug 27 04:48:29 2004 @@ -11,6 +11,7 @@ $pdf_font_bold = "Times-Bold"; $pdf_example_font = "Courier"; $jsKeyboard = true; // enable javascript handling of keyboard events + $topic_cols = 3; // number of topic columns on front page // Convert em font sizing to flash font sizes function flash_fixsize($ht) {

« previous php.pres (#1033) next »