[Scummvm-cvs-logs] CVS: web/include html.php,1.13,1.14 sidebar.php,1.21,1.22

Max Horn fingolfin at users.sourceforge.net
Tue Oct 14 06:09:07 CEST 2003


Update of /cvsroot/scummvm/web/include
In directory sc8-pr-cvs1:/tmp/cvs-serv32486/include

Modified Files:
	html.php sidebar.php 
Log Message:
even more modernization and cleanup; page is now HTML 4.01 Strict compliant (at least the parts I checked with the validator; single pages might still contain invalid stuff)

Index: html.php
===================================================================
RCS file: /cvsroot/scummvm/web/include/html.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- html.php	14 Oct 2003 10:30:58 -0000	1.13
+++ html.php	14 Oct 2003 13:08:38 -0000	1.14
@@ -85,21 +85,18 @@
 function html_frame_start ($title = "", $width = "", $cellPad = 5, $cellSpc = 1, $color = "color2", $extra = "")
 {
 	global $file_root;
-	if ($width) { $width = 'width="'.$width.'"'; }
+	global $_trcolor;
+	$_trcolor = 0;
+	if ($width) { $width = " style='width: $width;'"; }
 
-	$str = "\n".'<div align="center">'."\n";
-	$str .= '<table '.$width.' border="0" cellpadding="0" cellspacing="0">'."\n";
+	$str = "";
+	$str .= "<div class='frame'".$width.">\n";
 
 	if ($title) {
-		$str .= '<tr><td class="topMenu">'."\n";
-		$str .= '	<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>'."\n";
-		$str .= '		<td align="center"><span class="menuTitle"> '.$title.' </span></td>'."\n";
-		$str .= '	</tr></table>'."\n";
-		$str .= '</td></tr>'."\n";
+		$str .= '<div class="frameTop"><span class="frameTitle">'.$title.'</span></div>'."\n";
 	}
 
-	$str .= '<tr><td class='.$color.'>'."\n";
-	$str .= '<table width="100%" border="0" cellpadding="'.$cellPad.'" cellspacing="'.$cellSpc.'" '.$extra.'>'."\n";
+	$str .= '<table width="100%" border="0" class="'.$color.'" cellpadding="'.$cellPad.'" cellspacing="'.$cellSpc.'" '.$extra.'>'."\n";
 
 	return $str;
 }
@@ -107,58 +104,43 @@
 function html_frame_end ($text = "")
 {
 	global $file_root;
-	global $_trcolor;
-	$str .= '</table>'."\n";
-	$str .= '</td></tr>'."\n";
+	$str .= "</table>\n";
 	if ($text) {
-		$str .= '<tr><td class="topMenu">'."\n";
-		$str .= '	<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>'."\n";
-		$str .= '		<td align="center"><span class="menuTitle"> '.$text.' </span></td>'."\n";
-		$str .= '	</tr></table>'."\n";
-		$str .= '</td></tr>'."\n";
+		$str .= '<div class="frameBottom"><span class="frameTitle">'.$text.'</span></div>'."\n";
 	}
-	$str .= "</table>\n</div>\n\n";
-	$_trcolor = 0;
+	$str .= "</div>\n\n";
 	return $str;
 }
 
-function html_round_frame_start ($title = "", $width = "", $extra = "", $innerPad = 5)
+function html_round_frame_start ($title = "", $extra = "")
 {
 	global $file_root;
-	if ($width) { $width = 'width="'.$width.'"'; }
 
-	$str .= '<table '.$width.' border="0" cellpadding="0" cellspacing="0">'."\n";
+	$str .= "<div class='frame'>\n";
 	
 	if ($title) {
-		$str .= '<tr><td class="topMenu">'."\n";
-		$str .= '	<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>'."\n";
-		$str .= '		<td valign=top align="left"><img src="'.$file_root.'/images/main_left_top.gif" alt="-"></td>'."\n";
-		$str .= '		<td align="center"><span class="menuTitle"> '.$title.' </span></td>'."\n";
-		$str .= '		<td valign=top align="right"><img src="'.$file_root.'/images/main_right_top.gif" alt="-"></td>'."\n";
-		$str .= '	</tr></table>'."\n";
-		$str .= '</td></tr>'."\n";
+		$str .= '<div class="frameTop"><div class="cornerLeft"><div class="cornerRight">';
+		$str .= '<span class="frameTitle">'.$title.'</span>';
+		$str .= '</div></div></div>'."\n";
 	}
 	
-	$str .= '<tr><td>'."\n";
-	$str .= '<table width="100%" border="0" cellpadding='.$innerPad.' cellspacing=1 '.$extra.'><tr><td class="color2">'."\n";
+	$str .= "<div class='frameBody' style='background-color: #ffffff'>\n";
+//	$str .= '<table width="100%" border="0" cellpadding='.$innerPad.' cellspacing=1 '.$extra.'><tr><td class="color2">'."\n";
 
 	return $str;
 }
 
-function html_round_frame_end ($text = "")
+function html_round_frame_end ($text = " ")
 {
 	global $file_root;
-	$str .= '</td></tr></table></td></tr>'."\n";
+	$str .= "</div>\n";
+//	$str .= '</td></tr></table>'."\n";
 	if ($text) {
-		$str .= '<tr><td class="topMenu">'."\n";
-		$str .= '	<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>'."\n";
-		$str .= '		<td valign=bottom align="left"><img src="'.$file_root.'/images/main_left_bottom.gif" alt="-"></td>'."\n";
-		$str .= '		<td align="center"><span class="menuTitle"> '.$text.' </span></td>'."\n";
-		$str .= '		<td valign=bottom align="right"><img src="'.$file_root.'/images/main_right_bottom.gif" alt="-"></td>'."\n";
-		$str .= '	</tr></table>'."\n";
-		$str .= '</td></tr>'."\n";
+		$str .= '<div class="frameBottom"><div class="cornerLeft"><div class="cornerRight">';
+		$str .= '<span class="frameTitle">'.$text.'</span>';
+		$str .= '</div></div></div>'."\n";
 	}
-	$str .= "</table>\n\n";
+	$str .= "</div>\n\n";
 	return $str;
 }
 
@@ -323,7 +305,7 @@
 {
 	global $file_root;
 ?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
 <html>
 
 <head>
@@ -348,7 +330,7 @@
 {
 ?>
 
-<div class="copyright">
+<div id="copyright">
 LucasArts, Monkey Island, Maniac Mansion, Full Throttle,
 The Dig, LOOM, and probably lots of other things are
 registered trademarks of <a href="http://www.lucasarts.com">LucasArts, Inc.</a>.

Index: sidebar.php
===================================================================
RCS file: /cvsroot/scummvm/web/include/sidebar.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- sidebar.php	14 Oct 2003 10:30:58 -0000	1.21
+++ sidebar.php	14 Oct 2003 13:08:39 -0000	1.22
@@ -13,9 +13,7 @@
 
 ?>
 
-<table width="100%" border=0 cellpadding=0 cellspacing=0>
-<tr>
-<td style="width: 120px" align=center valign=top>
+<div id="sideBar">
 
 <?
 
@@ -65,8 +63,7 @@
 	$g->done('<img src="'.$file_root.'/images/hangmonk.gif" alt="monkey">');
  
 ?>
-	<p> </p>
-	
+
 	<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><div>
 	<input type="hidden" name="cmd" value="_xclick">
 	<input type="hidden" name="business" value="paypal at enderboi.com">
@@ -74,13 +71,19 @@
 	<input type="image" src="<?=$file_root?>/images/ppdonate.gif" name="submit" alt="Donate to ScummVM with PayPal!">
 	</div></form>	
 	
-	<p style="text-align: center">
-	  <a href="http://sourceforge.net/"><img src="http://sourceforge.net/sflogo.php?group_id=37116"
-	  width="88" height="31" alt="SourceForge"></a>
+	<p>
+		<a href="http://sourceforge.net/"><img src="http://sourceforge.net/sflogo.php?group_id=37116" width="88" height="31" alt="SourceForge"></a>
 	</p>
 
-</td>
-<td align="center" valign="top">
+	<p>
+		<a href="http://validator.w3.org/check/referer"><img src="http://www.w3.org/Icons/valid-html401" width="88" height="31" alt="Valid HTML 4.01!"></a>
+	</p> 
+
+	<p>
+		<a href="http://jigsaw.w3.org/css-validator/"><img src="http://jigsaw.w3.org/css-validator/images/vcss" width="88" height="31" alt="Valid CSS!" ></a>
+	</p>
+</div>
+<div id="main">
 
 <?
 }
@@ -89,9 +92,7 @@
 {
 ?>
 
-</td>
-</tr>
-</table>
+</div>
 
 <?
 }





More information about the Scummvm-git-logs mailing list