cvs: php-gtk-web /include layout.php
[email protected] ("Steph Fox") Sat, 15 Jul 2006 04:20:44 -0000
| Newsgroups | php.gtk.webmaster |
|---|---|
| Message-ID | <cvssfox1152937244@cvsserver> |
sfox Sat Jul 15 04:20:44 2006 UTC
Modified files:
/php-gtk-web/include layout.php
Log:
nudge us a little closer to standards compliance
http://cvs.php.net/viewvc.cgi/php-gtk-web/include/layout.php?r1=1.61&r2=1.62&diff_format=u
Index: php-gtk-web/include/layout.php
diff -u php-gtk-web/include/layout.php:1.61 php-gtk-web/include/layout.php:1.62
--- php-gtk-web/include/layout.php:1.61 Thu Jul 13 05:52:51 2006
+++ php-gtk-web/include/layout.php Sat Jul 15 04:20:44 2006
@@ -1,11 +1,11 @@
<?php
-/* $Id: layout.php,v 1.61 2006/07/13 05:52:51 cweiske Exp $ */
+/* $Id: layout.php,v 1.62 2006/07/15 04:20:44 sfox Exp $ */
# spacer()
# print a IMG tag for a sized spacer GIF
#
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" style="width:%d; height:%d;" border="0" alt="" %s%s />',
$width,
$height,
($align ? 'align="'.$align.'" ' : ''),
@@ -19,7 +19,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(' style="height:%s; width:%s;">', $height, $width);
+ $str = substr($str, 0, -1) . sprintf(' style="height:%d; width:%d;">', $height, $width);
return $str;
}
@@ -277,8 +277,8 @@
<td>
<small>
<?php print_link('http://www.php.net/', make_image('php-logo.gif', 'PHP', 'left')); ?>
- <?php print_link('/copyright.php', 'Copyright © 2001-' . date('Y') . ' The PHP Group'); ?><br />
- All rights reserved.<br />
+ <?php print_link('/copyright.php', 'Copyright © 2001-' . date('Y') . ' The PHP Group'); ?><br />
+ All rights reserved.<br />
</small>
</td>
<td align="right">