cvs: php-gtk-web /include layout.php
[email protected] ("Christian Weiske") Wed, 05 Jul 2006 05:49:05 -0000
| Newsgroups | php.gtk.webmaster |
|---|---|
| Message-ID | <cvscweiske1152078545@cvsserver> |
cweiske Wed Jul 5 05:49:05 2006 UTC
Modified files:
/php-gtk-web/include layout.php
Log:
Fixing some not closed tags
http://cvs.php.net/viewvc.cgi/php-gtk-web/include/layout.php?r1=1.50&r2=1.51&diff_format=u
Index: php-gtk-web/include/layout.php
diff -u php-gtk-web/include/layout.php:1.50 php-gtk-web/include/layout.php:1.51
--- php-gtk-web/include/layout.php:1.50 Fri Apr 14 13:17:03 2006
+++ php-gtk-web/include/layout.php Wed Jul 5 05:49:05 2006
@@ -1,11 +1,11 @@
<?php
-/* $Id: layout.php,v 1.50 2006/04/14 13:17:03 sfox Exp $ */
+/* $Id: layout.php,v 1.51 2006/07/05 05:49:05 cweiske 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" width="%d" height="%d" border="0" alt="" %s%s />',
$width,
$height,
($align ? 'align="'.$align.'" ' : ''),
@@ -31,9 +31,9 @@
// ALTER FOR LOCAL $dir = '../../php-gtk-web/gifs';
$dir = "/gifs";
}
-
+
if ($size = @getimagesize($_SERVER['DOCUMENT_ROOT'].$dir.'/'.$file)) {
- $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,
@@ -43,7 +43,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,
@@ -73,11 +73,7 @@
$return = make_image($file, $alt, $align, $extras, $dir, $border);
- if ($return != "<img>") {
- $return = str_replace(' border="' . $border . '"', '', '<input type="image"' . substr($return,4));
- } else {
- $return = '<input type="submit">';
- }
+ $return = str_replace(' border="' . $border . '"', '', '<input type="image"' . substr($return,4));
return $return;
}
@@ -143,7 +139,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>PHP-GTK<?php if ($title) { echo ' : '.$title; } ?></title>
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="/style-highlight.css" />