cvs: php-hosts-web /include layout.inc

From: Date: Thu, 25 Apr 2002 04:23:49 +0000
Subject: cvs: php-hosts-web /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-9858@lists.php.net to get a copy of this message
jimw Thu Apr 25 00:23:49 2002 EDT Modified files: /php-hosts-web/include layout.inc Log: xhtmlize Index: php-hosts-web/include/layout.inc diff -u php-hosts-web/include/layout.inc:1.6 php-hosts-web/include/layout.inc:1.7 --- php-hosts-web/include/layout.inc:1.6 Wed Apr 24 23:42:21 2002 +++ php-hosts-web/include/layout.inc Thu Apr 25 00:23:49 2002 @@ -5,7 +5,7 @@ # function spacer($width=1, $height=1, $align=false, $extras=false) { - printf('<img src="/gifs/spacer.gif" width="%d" height="%d" border="0" alt="" %s%s>', + printf('<img src="/gifs/spacer.gif" width="%d" height="%d" border="0" alt="" %s%s />', $width, $height, ($align ? 'align="'.$align.'" ' : ''), @@ -22,7 +22,7 @@ function resize_image($img, $width=1, $height=1) { $str = preg_replace('/width=\"([0-9]+?)\"/i', '', $img ); $str = preg_replace('/height=\"([0-9]+?)\"/i', '', $str ); - $str = substr($str,0,-1) . sprintf(' height="%s" width="%s">', $height, $width ); + $str = substr($str,0,-1) . sprintf(' height="%s" width="%s" />', $height, $width ); return $str; } @@ -38,7 +38,7 @@ } $path = $_SERVER['DOCUMENT_ROOT']."/$dir/$file"; if ($size = @getimagesize($path)) { - $image = sprintf('<img src="/%s/%s" border="%d" %s alt="%s" %s%s>', + $image = sprintf('<img src="/%s/%s" border="%d" %s alt="%s" %s%s />', $dir, $file, $border, @@ -48,7 +48,7 @@ ($extras ? ' '.$extras : '') ); } else { - $image = sprintf('<img src="%s/%s" border="%d" alt="%s" %s%s>', + $image = sprintf('<img src="%s/%s" border="%d" alt="%s" %s%s />', $dir, $file, $border, @@ -177,7 +177,7 @@ </tr> <tr class="headertop"> - <td align="right" valign="bottom" nowrap> + <td align="right" valign="bottom"> <?php print_link('http://www.php.net/', 'php.net', false, 'class="menuWhite"'); echo delim(); @@ -187,17 +187,17 @@ echo delim(); print_link('/login.php', 'login', false, 'class="menuWhite"'); ?> - <?php spacer(2,2); ?><br> + <?php spacer(2,2); ?> </td> </tr> - <tr class="headersep"><td colspan="2"><?php spacer(1,1);?><br></td></tr> + <tr class="headersep"><td colspan="2"><?php spacer(1,1);?></td></tr> <tr class="headerbottom"> <td colspan="2"><p id="disclaimer">The PHP Group does not endorse nor warranty any of the companies listed herein.</p></td> </tr> - <tr class="headersep"><td colspan="2"><?php spacer(1,1);?><br></td></tr> + <tr class="headersep"><td colspan="2"><?php spacer(1,1);?></td></tr> </table> <div id="content"> <?php @@ -211,14 +211,14 @@ function commonFooter() {?> </div> <table border="0" cellspacing="0" cellpadding="0" width="100%"> - <tr class="headersep"><td><?php spacer(1,1);?><br></td></tr> + <tr class="headersep"><td><?php spacer(1,1);?></td></tr> <tr class="headerbottom"> <td align="right" valign="bottom"><? print_link('/source.php?url='.$_SERVER['SCRIPT_NAME'], 'show source', false, 'class="menuWhite"'); - ?>&nbsp;<br> + ?>&nbsp; </td> </tr> - <tr class="headersep"><td><?php spacer(1,1); ?><br></td></tr> + <tr class="headersep"><td><?php spacer(1,1); ?></td></tr> </table> <table border="0" cellspacing="0" cellpadding="6" width="100%"> @@ -231,7 +231,7 @@ </td> <td align="right"><small> Last updated: <?php echo strftime("%c %Z", getlastmod()); ?><BR> - </small><br> + </small> </td> </tr> </table>

« previous php.mirrors (#9858) next »