Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some changes in the website look before 3.6.2 arrives.
[simgrid.git] / website / documentation.php.in
index 1763ca7..5d0275c 100644 (file)
-<?php 
-
-$domain=ereg_replace('[^\.]*\.(.*)$','\1',$_SERVER['HTTP_HOST']);
-$group_name=ereg_replace('([^\.]*)\..*$','\1',$_SERVER['HTTP_HOST']);
+<?php
+
+
+function list_files($dir){
+         $arrayDoc = array();
+        $hidden = ".";
+        if (is_dir($dir)) {
+                if ($dh = opendir($dir)) {
+                        echo "<ul>\n";
+                        while (($file = readdir($dh)) !== false) {
+                                if (is_dir($file) && preg_match("/^[0-9]/", $file)){
+                                             $arrayDoc[] = $file;
+                                }                              
+                        }
+                        closedir($dh);                       
+                }
+        }
+        else {
+                echo "No version now.\n";
+        }
+    // Warning : won't work with version numbers upper than 9 !
+    sort($arrayDoc, SORT_STRING);
+    for($i=sizeof($arrayDoc);$i>=0;$i--) 
+    { if ($arrayDoc[$i] != "")
+            {echo "<li><a href=\"" . $dir . "/" . $arrayDoc[$i] . "/doc/\"> Simgrid version " . $arrayDoc[$i] . "</a>.</li>";}
+
+    } 
+        echo "</ul>";
+}
 
-echo '<?xml version="1.0" encoding="UTF-8"?>';
 ?>
-<!DOCTYPE html
-       PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en   ">
-<link href="doc/doxygen.css" rel="stylesheet" type="text/css">
-<link href="doc/tabs.css" rel="stylesheet" type="text/css">
 
-  <head>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-       <title>SimGrid - Scalable simulation of distributed systems, ranging from grids to peer-to-peer systems</title>
+       <link rel="stylesheet" type="text/css" href="stylesheets/simgridsite.css" />
+       <link rel="stylesheet" type="text/css" href="stylesheets/simgridsitetabs.css" />
+       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+       <title>SimGrid - Online documentation</title>
        <meta name="keywords" content="Scalable, simulation, distributed systems, grid, peer-to-peer" /> 
-       <script language="JavaScript" type="text/javascript">
-       <!--
-       function help_window(helpurl) {
-               HelpWin = window.open( helpurl,'HelpWindow','scrollbars=yes,resizable=yes,toolbar=no,height=400,width=400');
-       }
-       // -->
-               </script>
-
-<style type="text/css">
-       <!--
-       BODY {
-               margin-top: 3;
-               margin-left: 3;
-               margin-right: 3;
-               margin-bottom: 3;
-               background: #5651a1;
-       }
-       ol,ul,p,body,td,tr,th,form { font-family: verdana,arial,helvetica,sans-serif; font-size:small;
-               color: #333333; }
-
-       h1 { font-size: x-large; font-family: verdana,arial,helvetica,sans-serif; }
-       h2 { font-size: large; font-family: verdana,arial,helvetica,sans-serif; }
-       h3 { font-size: medium; font-family: verdana,arial,helvetica,sans-serif; }
-       h4 { font-size: small; font-family: verdana,arial,helvetica,sans-serif; }
-       h5 { font-size: x-small; font-family: verdana,arial,helvetica,sans-serif; }
-       h6 { font-size: xx-small; font-family: verdana,arial,helvetica,sans-serif; }
-
-       pre,tt { font-family: courier,sans-serif }
-
-       a:link { text-decoration:none }
-       a:visited { text-decoration:none }
-       a:active { text-decoration:none }
-       a:hover { text-decoration:underline; color:red }
-
-       .titlebar { color: black; text-decoration: none; font-weight: bold; }
-       a.tablink { color: black; text-decoration: none; font-weight: bold; font-size: x-small; }
-       a.tablink:visited { color: black; text-decoration: none; font-weight: bold; font-size: x-small; }
-       a.tablink:hover { text-decoration: none; color: black; font-weight: bold; font-size: x-small; }
-       a.tabsellink { color: black; text-decoration: none; font-weight: bold; font-size: x-small; }
-       a.tabsellink:visited { color: black; text-decoration: none; font-weight: bold; font-size: x-small; }
-       a.tabsellink:hover { text-decoration: none; color: black; font-weight: bold; font-size: x-small; }
-       -->
-</style>
 
 </head>
 
 <body>
-<table border="0" width="100%" cellspacing="0" cellpadding="0">
-
-       <tr>
-        <td style="text-align: left; vertical-align: top;"><a href="http://<?php echo $domain; ?>/projects/<?php echo $group_name; ?>"><img
-          src="simgrid_logo_small.png"
-          style="text-decoration: underline;" border="0" alt="SimGrid">
-          <?php if (date('m') == '04'  && date('d') == '01')  {echo '<img style="text-decoration: underline;" border="0" alt="SimGrid" src="fish.gif">';}?>
-          </a><br>
-        </td>
-         <td style="text-align: left; vertical-align: top;">
-        </td>
-               <td style="text-align: right; vertical-align: top;"><a href="http://<?php echo $domain; ?>"><img src="http://<?php echo $domain; ?>/themes/inria/images/logo.png" border="0" alt="gforge INRIA" width="198" height="52" /></a></td>
-       </tr>
-</table>
-______ONGLETS______
-<table border="0" width="100%" cellspacing="0" cellpadding="0">
-
-       <tr>
-               <td>&nbsp;</td>
-               <td colspan="3">
-
-
-               <!-- start tabs -->
-
-       <tr>
-               <td align="left" bgcolor="#E0E0E0" width="9"><img src="http://<?php echo $domain; ?>/themes/inria/images/tabs/topleft.png" height="9" width="9" alt="" /></td>
-               <td bgcolor="#E0E0E0" width="30"><img src="http://<?php echo $domain; ?>/themes/inria/images/clear.png" width="30" height="1" alt="" /></td>
-               <td bgcolor="#E0E0E0"><img src="http://<?php echo $domain; ?>/themes/inria/images/clear.png" width="1" height="1" alt="" /></td>
-               <td bgcolor="#E0E0E0" width="30"><img src="http://<?php echo $domain; ?>/themes/inria/images/clear.png" width="30" height="1" alt="" /></td>
-               <td align="right" bgcolor="#E0E0E0" width="9"><img src="http://<?php echo $domain; ?>/themes/inria/images/tabs/topright.png" height="9" width="9" alt="" /></td>
-       </tr>
-
-       <tr>
-
-               <!-- Outer body row -->
-
-               <td bgcolor="#E0E0E0"><img src="http://<?php echo $domain; ?>/themes/inria/images/clear.png" width="10" height="1" alt="" /></td>
-               <td valign="top" width="99%" bgcolor="#E0E0E0" colspan="3">
-
-                       <!-- Inner Tabs / Shell -->
-
-                       <table border="0" width="100%" cellspacing="0" cellpadding="0">
-                       <tr>
-                               <td align="left" bgcolor="#ffffff" width="9"><img src="http://<?php echo $domain; ?>/themes/inria/images/tabs/topleft-inner.png" height="9" width="9" alt="" /></td>
-                               <td bgcolor="#ffffff"><img src="http://<?php echo $domain; ?>/themes/inria/images/clear.png" width="1" height="1" alt="" /></td>
-                               <td align="right" bgcolor="#ffffff" width="9"><img src="http://<?php echo $domain; ?>/themes/inria/images/tabs/topright-inner.png" height="9" width="9" alt="" /></td>
-                       </tr>
-
-                       <tr>
-                               <td bgcolor="#ffffff"><img src="http://<?php echo $domain; ?>/themes/inria/images/clear.png" width="10" height="1" alt="" /></td>
-                               <td valign="top" width="99%" bgcolor="white">
-
-       <!-- whole page table -->
-<table width="100%" cellpadding="5" cellspacing="0" border="0">
-<tr><td width="65%" valign="top">
-<?php if ($handle=fopen('http://'.$domain.'/export/projtitl.php?group_name='.$group_name,'r')){
-$contents = '';
-while (!feof($handle)) {
-       $contents .= fread($handle, 8192);
-}
-$contents=str_replace("Welcome to", "Welcome to the", $contents);
-fclose($handle);
-echo $contents; } ?>
-______BODY______
-
-</td>
-
-<td width="35%" valign="top">
-
-               <table cellspacing="0" cellpadding="1" width="100%" border="0" bgcolor="#d5d5d7">
-               <tr><td>
-                       <table cellspacing="0" cellpadding="2" width="100%" border="0" bgcolor="#eaecef">
-                               <tr style="background-color:#d5d5d7" align="center">
-                                       <td colspan="2"><span class="titlebar">Project Summary</span></td>
-                               </tr>
-                               <tr align="left">
-                                       <td colspan="2">
-
-<?php if($handle=fopen('http://'.$domain.'/export/projhtml.php?group_name='.$group_name,'r')){
-$contents = '';
-while (!feof($handle)) {
-       $contents .= fread($handle, 8192);
-}
-fclose($handle);
-$contents=str_replace('href="/','href="http://'.$domain.'/',$contents);
-$contents=str_replace('src="/','src="http://'.$domain.'/',$contents);
-echo $contents; } ?>
-<br>
-<hr>
-<br>
-<?php if ($handle=fopen('http://'.$domain.'/export/projnews.php?group_name='.$group_name,'r')){
-$contents = '';
-while (!feof($handle)) {
-       $contents .= fread($handle, 8192);
-}
-fclose($handle);
-$contents=str_replace('href="/','href="http://'.$domain.'/',$contents);
-echo $contents; } ?>
-
-
-                                       </td>
-                               </tr>
-                       </table>
-               </td></tr>
-               </table><p>&nbsp;</p>
-</td></tr>
-               <tr><td align=center>
-                       <a href="http://creativecommons.org/licenses/LGPL/2.1/"><img alt="CC-GNU LGPL" border="0" src="http://creativecommons.org/images/public/cc-LGPL-a.png" /></a>
-               </td></tr>
+<div id="header" align="center">
+<p>
+<img src="logos/simgrid_logo.png"  alt="SimGrid - Scalable simulation of distributed systems, ranging from grids to peer-to-peer systems" />
+</p>
+<h2 class="header"><i class="subtitle">Scalable simulation of distributed systems</i></h2>
+</div>
+<p/>
+<br/> 
+ <div id="navrow1" class="tabs" align="center">
+    <ul class="tablist">
+      <li><a href="index.php"><span>Home</span></a></li>
+                        <li><a href="download.php"><span>Download</span></a></li>
+      <li><a href="documentation.php"><span>Online documentation</span></a></li>
+      <li><a href="publis.html"><span>Publications</span></a></li>
+      <li><a href="people.html"><span>People</span></a></li>
+      <li><a href="history.html"><span>History</span></a></li>
+      <li><a href="contrib.html"><span>Contrib</span></a></li>
+      <li><a href="faq.html"><span>FAQ&#160;Page</span></a></li>
+
+      <li><a href="http://gforge.inria.fr/projects/simgrid"><span>SimGrid&#160;Forge</span></a></li>
+    </ul>
+  </div>
+<table width="80%" cellpadding="5" cellspacing="0" border="0" align="center">
+
+<tr><td width="75%" valign="top">
+The documentation for SimGrid is maintained for the latest versions. It contains informations on how to use SimGrid, some tutorial, and its inner component. Here is the list of available documentation version:
+<?php list_files("."); ?>
+</tr>
 </table>
-                       &nbsp;<p>
-                        <center>
-                                Help: <a href="mailto:siteadmin-help@lists.gforge.inria.fr">siteadmin-help@lists.gforge.inria.fr</a> Webmaster: <a href="mailto:webmaster@gforge.inria.fr">webmaster@gforge.inria.fr</a>
-                        </center>
-                       <!-- end main body row -->
-
-
-                               </td>
-                               <td width="10" bgcolor="#ffffff"><img src="http://<?php echo $domain; ?>/themes/inria/images/clear.png" width="2" height="1" alt="" /></td>
-                       </tr>
-                       <tr>
-                               <td align="left" bgcolor="#E0E0E0" width="9"><img src="http://<?php echo $domain; ?>/themes/inria/images/tabs/bottomleft-inner.png" height="11" width="11" alt="" /></td>
-                               <td bgcolor="#ffffff"><img src="http://<?php echo $domain; ?>/themes/inria/images/clear.png" width="1" height="1" alt="" /></td>
-                               <td align="right" bgcolor="#E0E0E0" width="9"><img src="http://<?php echo $domain; ?>/themes/inria/images/tabs/bottomright-inner.png" height="11" width="11" alt="" /></td>
-                       </tr>
-                       </table>
-
-               <!-- end inner body row -->
-
-               </td>
-               <td width="10" bgcolor="#E0E0E0"><img src="http://<?php echo $domain; ?>/themes/inria/images/clear.png" width="2" height="1" alt="" /></td>
-       </tr>
-       <tr>
-               <td align="left" bgcolor="#E0E0E0" width="9"><img src="http://<?php echo $domain; ?>/themes/inria/images/tabs/bottomleft.png" height="9" width="9" alt="" /></td>
-               <td bgcolor="#E0E0E0" colspan="3"><img src="http://<?php echo $domain; ?>/themes/inria/images/clear.png" width="1" height="1" alt="" /></td>
-               <td align="right" bgcolor="#E0E0E0" width="9"><img src="http://<?php echo $domain; ?>/themes/inria/images/tabs/bottomright.png" height="9" width="9" alt="" /></td>
-       </tr>
-</table>
-
-<!-- PLEASE LEAVE "Powered By Gforge" on your site -->
-<br />
-<center>
-<a href="http://gforge.org/"><img src="http://gforge.org/images/pow-gforge.png" alt="Powered By GForge Collaborative Development Environment" border="0" /></a>
-</center>
-
-
+<div id="footer" align="center">
+<p>
+<ul class="footerlogos">                  
+       <li><a href="http://www.inria.fr/"><img align="center" src="logos/INRIA.png" alt="INRIA"/></a>  
+       </li>
+       <li><a href="http://www.cnrs.fr/"><img align="center" src="logos/cnrs.png" alt="CNRS"/></a>     
+       </li>   
+       <li><a href="http://www.univ-nancy2.fr/"><img align="center" src="logos/UnivNancy2.png" alt="Université Nancy 2"/></a> 
+       </li>
+       <li><a href="http://manoa.hawaii.edu/"><img align="center" src="logos/UnivHawaiiManoa.png" alt="Univeristy of Hawaii Manoa"/></a>       
+       </li>
+       <li><a href="http://www.agence-nationale-recherche.fr/"><img align="center" src="logos/ANR.png" alt="ANR"/></a> 
+       </li>
+</ul>  
+</p>
+</div>
 </body>
 </html>