[Kos-cvs] kos-web/include main.php, 1.2, 1.3 site.php, 1.1, 1.2 toc.php, 1.2, 1.3

thomas at kos.enix.org thomas at kos.enix.org
Wed Dec 29 00:45:13 CET 2004


Update of /var/cvs/kos/kos-web/include
In directory the-doors:/tmp/cvs-serv24700/include

Modified Files:
	main.php site.php toc.php 
Log Message:
Migration vers un truc propre

Index: main.php
===================================================================
RCS file: /var/cvs/kos/kos-web/include/main.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- main.php	9 Jul 2002 15:58:15 -0000	1.2
+++ main.php	28 Dec 2004 23:45:11 -0000	1.3
@@ -34,29 +34,19 @@
   global $kos_color;
   global $space;
 
-  echo "<tr><td bgcolor=$kos_color width=\"100%\">\n";
   echo "<a name=$anchor></a>\n";
-  echo "<font color=\"White\" size=3 face=\"Arial,Helvetica,Clean\">\n";
-  echo "<strong>$title</strong>\n";
-  echo $space;
-  echo "</font></td></tr>\n";
-  echo "<tr><td width=\"100%\">\n";
-  echo "<font><p>\n";
+  echo "<h1>" . $title . "</h1>";
 }
 
 
 function end_content_section()
 {
-  global $bigspace;
-  
-  echo "</font></td>\n</tr>\n";
-  echo $bigspace;
 }
 
 function make_link($url, $title)
 {
   global $lang;
-  
+
   echo "<a href=\"$url?lang=$lang\">$title</a>";
 }
 

Index: site.php
===================================================================
RCS file: /var/cvs/kos/kos-web/include/site.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- site.php	9 Jul 2002 15:21:11 -0000	1.1
+++ site.php	28 Dec 2004 23:45:11 -0000	1.2
@@ -1,7 +1,6 @@
 <?
 $lang_array = array ("fr" => "Français", 
 		     "en" => "English");
-$more_space = "&nbsp;<br>";
 $font_face = "size=-1";
 $kos_color = "#1a6170";
 

Index: toc.php
===================================================================
RCS file: /var/cvs/kos/kos-web/include/toc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- toc.php	9 Jul 2002 15:58:16 -0000	1.2
+++ toc.php	28 Dec 2004 23:45:11 -0000	1.3
@@ -7,9 +7,9 @@
   global $kos_color;
   global $font_face;
 
-  echo "<table border=\"0\" cellspacing=\"1\" 
+  echo "<table border=\"0\" cellspacing=\"1\"
                cellpadding=\"2\" width=\"100%\">\n";
-  echo "<tr><td align=\"center\" 
+  echo "<tr><td align=\"center\"
                 bgcolor=$kos_color>\n";
 
   echo "<font color=\"White\">
@@ -17,9 +17,9 @@
         </font>\n";
 
   echo "</td></tr>\n";
-  
+
   echo "<tr><td bgcolor=$kos_color>\n";
-  echo "<table bgcolor=\"White\" width=\"100%\" 
+  echo "<table bgcolor=\"White\" width=\"100%\"
                cellspacing=\"0\" cellpadding=\"3\" \
                border=\"0\">\n";
   echo "<tr><td><font $font_face>\n";
@@ -28,13 +28,13 @@
 function make_subtopic($name)
 {
   global $font_face, $kos_color;
-  
-  echo "<table border=\"0\" cellspacing=\"1\" 
+
+  echo "<table border=\"0\" cellspacing=\"1\"
                cellpadding=\"0\" width=\"100%\">\n";
   echo "<tr bgcolor=\"#E0E0E0\"><td align=\"center\">\n";
-  
+
   echo "<font color=$kos_color><b>$name</b></font>\n";
-  
+
   echo "</td></tr></table>\n";
 }
 
@@ -49,19 +49,20 @@
 function make_toc($title,$toc_entry,$url,$current)
 {
   global $lang;
-  
+
   if($current == $toc_entry)
-    echo "<a class=\"current_topic\" href=\"/$url?lang=$lang\">$title</a><br>\n";
+    echo "<a class=\"current_topic\" href=\"$url?lang=$lang\">$title</a><br>\n";
   else
-    echo "<a class=\"other_topic\" href=\"/$url?lang=$lang\">$title</A><br>";
+    echo "<a class=\"other_topic\" href=\"$url?lang=$lang\">$title</A><br>";
 }
 
 
 function put_toc($current)
 {
   global $toc_array;
-  
-  echo "<td width=\"15%\" valign=\"top\">\n";
+
+  echo "<div id=\"left\">\n";
+
   $current_subtopic = "";
 
   foreach ($toc_array as $toc_title => $toc_contain)
@@ -74,22 +75,18 @@
 	      make_subtopic($toc_contain[$i][3]);
 	      $current_subtopic = $toc_contain[$i][3];
 	    }
-	  
+
 	  make_toc($toc_contain[$i][0],
 	           $toc_contain[$i][1],
 	           $toc_contain[$i][2],
                    $current);
 	}
-      
+
       end_topic();
     }
-  
-  echo "</td>";
-  
-  echo "<td>&nbsp;&nbsp;&nbsp;</td>\n";
+
+  echo "</div>\n\n";
 
   /* Beginning of document */
-  echo "<td valign=\"top\">\n";
-  echo "<table width=\"100%\" border=\"0\" 
-               cellspacing=\"0\" cellpadding=\"0\">\n";
+  echo "<div id=\"body\">\n";
 }



More information about the Kos-cvs mailing list