cvs: phpweb(NEW_LOOK_2001) /include layout.inc
| From: | Jim Winstead | Date: | Tue, 06 Mar 2001 21:29:06 +0000 |
| Subject: | cvs: phpweb(NEW_LOOK_2001) /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-4163@lists.php.net to get a copy of this message | ||
jimw Tue Mar 6 13:29:06 2001 EDT
Modified files: (Branch: NEW_LOOK_2001)
/phpweb/include layout.inc
Log:
only show sidebar when there is data
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.1.2.13 phpweb/include/layout.inc:1.1.2.14
--- phpweb/include/layout.inc:1.1.2.13 Wed Feb 7 16:58:09 2001
+++ phpweb/include/layout.inc Tue Mar 6 13:29:06 2001
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.1.2.13 2001/02/08 00:58:09 cmv Exp $ */
+/* $Id: layout.inc,v 1.1.2.14 2001/03/06 21:29:06 jimw Exp $ */
# spacer()
@@ -241,31 +241,21 @@
?>
<table width="150" height="100%" bgcolor="#f0f0f0"
align="left" cellpadding="0" cellspacing="0">
-<tr valign="top">
-<td>
-
-<!-- sidebar table starts -->
-<table width="149" align="left" cellpadding="4"
cellspacing="0">
-<tr valign="top">
-<td>
-<? echo $SIDEBAR_DATA; ?>
-</td>
-</tr>
-</table>
-<!-- sidebar table ends -->
-
-</td>
- <td bgcolor="#cccccc" background="/gifs/checkerboard.gif">
-<?php spacer(1,1);?><br>
- </td>
-</table>
-
-<!-- main section -->
-
-<table width="625"
- align="left"
- cellpadding="10" cellspacing="0"
-><tr><td valign="top">
+ <tr valign="top">
+<?php if (isset($SIDEBAR_DATA)):?>
+ <td>
+ <table width="149" align="left" cellpadding="4"
cellspacing="0">
+ <tr valign="top">
+ <td><?php echo $SIDEBAR_DATA?></td>
+ </tr>
+ </table>
+ </td>
+ <td bgcolor="#cccccc" background="/gifs/checkerboard.gif"><?php
spacer(1,1);?><br></td>
+<?php endif; ?>
+ <td>
+ <table width="625" align="left" cellpadding="10"
cellspacing="0">
+ <tr>
+ <td valign="top">
<?php
endif;
}
@@ -280,7 +270,7 @@
function commonFooter() {
global $SCRIPT_NAME,$PHP_SELF,$MIRRORS,$MYSITE,$COUNTRIES,$enclosed;
if ($enclosed) {
- echo "</td></tr></table>\n";
+ echo "</td></tr></table></td></tr></table>\n";
}
?>