cvs: pres2 / slidelist.php

From: Date: Sun, 25 Jan 2004 22:04:31 +0000
Subject: cvs: pres2 / slidelist.php
Groups: php.pres 
Request: Send a blank email to pres+get-961@lists.php.net to get a copy of this message
jmcastagnetto Sun Jan 25 17:04:31 2004 EDT Modified files: /pres2 slidelist.php Log: Cosmetic fix for display of slides in a chapter/section http://cvs.php.net/diff.php/pres2/slidelist.php?r1=1.9&r2=1.10&ty=u Index: pres2/slidelist.php diff -u pres2/slidelist.php:1.9 pres2/slidelist.php:1.10 --- pres2/slidelist.php:1.9 Sun Jul 6 04:43:17 2003 +++ pres2/slidelist.php Sun Jan 25 17:04:31 2004 @@ -21,18 +21,17 @@ $lastSection = $lastChapter = ''; foreach($_SESSION['titles'] as $k=>$v) { + $spacer = ''; if(!empty($v['section'])) { $spacer = "&nbsp;&nbsp;&nbsp;&nbsp;"; if($v['section'] != $lastSection) { echo "<tr><th colspan=2 align=left><font size=+2>$v[section]</font></th></tr>\n"; } - } else { - $spacer = ''; - } + } if(!empty($v['chapter'])) { + $spacer .= "&nbsp;&nbsp;&nbsp;&nbsp;"; if($v['chapter'] != $lastChapter) { echo "<tr><th colspan=2 align=left>$spacer$v[chapter]</th></tr>\n"; - $spacer .= "&nbsp;&nbsp;&nbsp;&nbsp;"; } } $lastSection = isset($v['section']) ? $v['section'] : '';

« previous php.pres (#961) next »