Merged silc_1_1_branch to trunk.
[silc.git] / scripts / silcdoc / gen_index.php
index 7737f049e188a4a35a43577ac4bed10432847290..f7c8535802ddddc913c5e64d2466cf95ea619094 100644 (file)
@@ -7,14 +7,18 @@
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
-  the Free Software Foundation; either version 2 of the License, or
-  (at your option) any later version.
+  the Free Software Foundation; version 2 of the License.
 
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
 
+  type values:
+
+       0 = add left index, details and right index
+       1 = add left index, details, no right index
+       2 = no left index, add details, no right index
 */
 ?>
 
@@ -27,7 +31,7 @@
  <meta content="INDEX, FOLLOW" name="ROBOTS" />
  <style type="text/css">
   <!--
-  body { color: #000000; background: #ffffff; font-family: Helvetica, Arial, Sans-serif; }
+  body { color: #000000; background: #f0f0f0; font-family: Helvetica, Arial, Sans-serif; }
   a:link { text-decoration: none; color: #2f488f; }
   a:visited { text-decoration: none;color: #2f488f; }
   a:active { text-decoration: none; color: #2f488f; }
 
 <table border="0" cellspacing="0" cellpadding="6" width="100%">
  <tr valign="top" bgcolor="#dddddd">
-  <td><small>Copyright &copy; 2001 - 2002 SILC Project<br />
+  <td><small>Copyright &copy; 2001 - 2007 SILC Project<br />
     <a href="http://silcnet.org">SILC Project Website</a></small></td>
   <td align="right"><small>
    <a href="index.html">SILC Toolkit Reference Manual</a><br />
+   <a href="toolkit_index.html">Index</a></small></td>
    </small></td>
  </tr>
 </table>
 <table border="0" cellspacing="0" cellpadding="0" width="100%">
- <tr valign="top"><td bgcolor="#cccccc"></td></tr>
+<tr bgcolor="#444444"><td><img src="space.gif" width="1" height="1"border="0" alt="" ></td></tr>
 </table>
 
 <table cellpadding="0" cellspacing="0" border="0">
  <tr valign="top">
 
-  <td width="230" bgcolor="#f0f0f0">
+  <td width="200" bgcolor="#f0f0f0">
+   <img src="space.gif" width="1" height="1" border="0" alt="">
    <table width="100%" cellpadding="2" cellspacing="2" border="0">
     <tr valign="top"><td>
 <br />
 <small>
 <?php
-require "$dest/index.tmpl";
+if ($type != 2)
+  require "$dest/index.tmpl";
 ?>
 </small>
 <br /><br /><br /><br />
@@ -67,9 +74,11 @@ require "$dest/index.tmpl";
    </table>
   </td>
 
-  <td bgcolor="#dddddd" background="dot.gif"> </td>
+  <td bgcolor="#cccccc" background="dot.gif">
+   <img src="space.gif" width="1" height="1" border="0" alt=""></td>
 
-  <td width="800">
+  <td width="720" bgcolor="#ffffff">
+   <img src="space.gif" width="1" height="1" border="0" alt="">
    <table cellpadding="2" cellspacing="6" width="100%">
     <tr><td valign="top">
 <br />
@@ -81,18 +90,22 @@ require "$page";
    </table>
   </td>
 
-  <td bgcolor="#cccccc" background="dot.gif"> </td>
+  <td bgcolor="#cccccc" background="dot.gif">
+   <img src="space.gif" width="1" height="1" border="0" alt=""></td>
 
-  <td width="200" bgcolor="#f0f0f0">
+  <td width="180" bgcolor="#f0f0f0">
+    <img src="space.gif" width="1" height="1" border="0" alt="">
     <table width="100%" cellpadding="4" cellspacing="0">
     <tr valign="top"><td>
 <br />
 <font face="Helvetica,Arial,Sans-serif" size="1">
 <?php
-/* Get the index for this page */
-$len = strcspn($page, "__");
-$fname = substr($page, 0, $len);
-require "$fname"."__index.tmpl";
+if ($type == 0) {
+  /* Get the index for this page */
+  $len = strcspn($page, "-");
+  $fname = substr($page, 0, $len);
+  require "$fname"."-index.tmpl";
+}
 ?>
 </font>
 
@@ -104,14 +117,15 @@ require "$fname"."__index.tmpl";
 </table>
 
 <table border="0" cellspacing="0" cellpadding="0" width="100%">
- <tr valign="top"><td bgcolor="#cccccc"></td></tr>
+<tr bgcolor="#444444"><td><img src="space.gif" width="1" height="1"border="0" alt="" ></td></tr>
 </table>
 <table border="0" cellspacing="0" cellpadding="6" width="100%">
  <tr valign="top" bgcolor="#dddddd">
-  <td><small>Copyright &copy; 2001 - 2002 SILC Project<br />
+  <td><small>Copyright &copy; 2001 - 2007 SILC Project<br />
     <a href="http://silcnet.org">SILC Project Website</a></small></td>
   <td align="right"><small>
    <a href="index.html">SILC Toolkit Reference Manual</a><br />
+   <a href="toolkit_index.html">Index</a></small></td>
    </small></td>
  </tr>
 </table>