cvs: phpweb /include layout.inc

From: Date: Sun, 22 Jul 2001 06:30:39 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5658@lists.php.net to get a copy of this message
rasmus Sun Jul 22 02:30:39 2001 EDT Modified files: /phpweb/include layout.inc Log: Add ability to add a sidebar on the right. Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.43 phpweb/include/layout.inc:1.44 --- phpweb/include/layout.inc:1.43 Sun Jul 8 09:06:38 2001 +++ phpweb/include/layout.inc Sun Jul 22 02:30:38 2001 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.43 2001/07/08 13:06:38 goba Exp $ */ +/* $Id: layout.inc,v 1.44 2001/07/22 06:30:38 rasmus Exp $ */ # spacer() # print a IMG tag for a sized spacer GIF @@ -257,9 +257,20 @@ # function commonFooter() { - global $SCRIPT_NAME,$MYSITE,$LAST_UPDATED,$PHP_SELF,$enclosed; + global $SCRIPT_NAME,$MYSITE,$LAST_UPDATED,$PHP_SELF,$enclosed, $RSIDEBAR_DATA; if ($enclosed) { - echo "</td></tr></table></td></tr></table>\n"; + echo "</td></tr></table></td>"; + if(isset($RSIDEBAR_DATA)) {?> + <td bgcolor="#cccccc" background="/gifs/checkerboard.gif"><?php spacer(1,1);?><br></td> + <td bgcolor="#f0f0f0"> + <table width="100%" cellpadding="4" cellspacing="0"> + <tr valign="top"> + <td class="sidebar"><?php echo $RSIDEBAR_DATA?></td> + </tr> + </table> + </td> + <?} + echo "</tr></table>\n"; } ?>

« previous php.mirrors (#5658) next »