<?PHP 
include_once("./install.inc.php") ;

$fournisseur = $HTTP_POST_VARS['fournisseur'];


?>
<html>
<head>
<title>...::: G A N E S H A installation / Etape 2 :::....</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="css/base.css" type="text/css">
<script language="javascript">

function ValiderConf(form){
   if (form.server.value == "" )   {
       alert ("Le nom du serveur est vide !");
       form.server.focus();
       return;
   }
   if (form.login.value == "" )   {
       alert ("Le login est vide !");
       form.login.focus();
       return;
   }
   if (form.bdd.value == "" )   {
       alert ("Le nom de la base de données est vide !");
       form.bdd.focus();
       return;
   }
   if (form.real_path.value == "" )   {
       alert ("Le chemin absolu est vide !");
       form.real_path.focus();
       return;
   }   
   if (form.url.value == "" )   {
       alert ("L'URL est vide !");
       form.url.focus();
       return;
   }      

   mytext = "Verifiez les valeurs / Check values\n\n" ;
   mytext = mytext + "server\t= " + form.server.value + "\n";
   mytext = mytext + "login\t= " + form.login.value + "\n";
   mytext = mytext + "bdd\t= " + form.bdd.value + "\n";
   mytext = mytext + "real_path\t= " + form.real_path.value + "\n";
   mytext = mytext + "url\t= " + form.url.value + "\n";
   ans=window.confirm(mytext);
   if(ans)	{ form.submit(); }   
}

function Focus(){
	document.frmconf.server.focus();
}

</script>
</head>




<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">


<table width="780" border="0" cellspacing="0" cellpadding="0" height="503">
  <tr> 
    <td height="70" colspan="2"><img src="images/ganesha.gif" width="780" height="81" usemap="#Map" border="0" alt="GANESHA"></td>
  </tr>
  <tr> 
    <td height="437" valign="top" width="2%">&nbsp;</td>
    <td height="437" valign="top" width="98%" class="texte"> 
      <table width="100%" border="0">
        <tr>
          <td width="20%" height="35" class="grandTitre" align="center"> Etape 
            2 / Step 2 </td>
          <td width="60%" class="grandTitre" height="35"> 
            <p>Configuration de Ganesha</p>
            </td>
          <td width="20%" height="35" class="grandTitre">Version <?PHP echo $version?> 
          </td>
        </tr>
        <tr>
          <td width="20%" valign="top" class="grandTitreangl"><?PHP echo $fournisseur ?> 
          </td>
          <td width="60%"> 
<table bgcolor="#000000" border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
              <tr> 
                <td><table width="100%" border="0" cellspacing="1" cellpadding="0">
                    <tr> 
                      <td bgcolor="#FFFFFF" class="titre1">Configuration de Ganesha 
                        / Ganesha configuration <br>
                        TOUS les champs sont obligatoires (sauf mot de passe)<br>
                        / 
                        ALL
                        fields required (except password)</td>
                    </tr>
                    <tr> 
                      <td bgcolor="#FFFFFF"><form name="frmconf" method="post" action="step3.php">
                          <input type="hidden" name="fournisseur" value="<?PHP echo $fournisseur ?>">
                          <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0">
                            <tr> 
                              <td width="50%" class="cellule">Nom du serveur<br>
                                <font class="texte">Host</font></td>
                              <td width="50%" class="cellule"> 
                                <input type="texte" name="server" size="25" maxlength="80" value="<?PHP if ( $fournisseur=="LocalHost") echo "localhost"?>" class="input">
                              </td>
                            </tr>
                            <tr> 
                              <td colspan="2" class="exemple">(ex. : sql.domaine.com)</td>
                            </tr>
                            <tr> 
                              <td width="50%" class="cellule">Nom d'utilisateur<br>
                                <font class="texte">login</font></td>
                              <td width="50%"  class="cellule""> 
                                <input type="texte" name="login" size="25" maxlength="80" value="<?PHP if ( $fournisseur=="LocalHost") echo "root"?>" class="input">
                              </td>
                            </tr>
                            <tr> 
                              <td width="50%" class="cellule">Mot de passe<br>
                                <font class="texte">Password</font></td>
                              <td width="50%" class="cellule"> 
                                <input type="password" name="password" size="25" maxlength="80" class="input" >
                              </td>
                            </tr>
                            <tr> 
                              <td width="50%" class="cellule">Nom  base 
                                de données<br>
                              <font class="texte">Database name</font></td>
                              <td width="50%" class="cellule"> 
                                <input type="texte" name="bdd" size="25" maxlength="80" value="<?PHP if ( $fournisseur=="LocalHost") echo "ganesha20"?>" class="input">
                              </td>
                            </tr>
                            <tr> 
                              <td colspan="2" class="cellule">(souvent identique 
                                au login / <span class="texte">usually similar
                                to the login)</span> </td>
                            </tr>
                            <tr> 
                              <td colspan="2">&nbsp;</td>
                            </tr>
                            <tr> 
                              <td colspan="2" class="titre2">Vous pouvez utiliser <a href="test.php" target="_blank" class="install1">cette
                                   aide</a> pour remplir les 2 champs suivants<br>
                                You can use <a href="test.php" target="_blank" class="install1">this help</a> 
                                to fill  two next fields 
                              </td>
                            </tr>
                            <tr> 
                              <td width="50%" class="cellule">Chemin absolu vers 
                                Ganesha<br>
                                <font class="texte">Real path to Ganesha</font> 
                              </td>
                              <td width="50%" class="cellule"> 
                                <input type="texte" name="real_path" size="40" maxlength="80" value="<?PHP echo GetRealPath(); ?>" class="input">
                              </td>
                            </tr>
                            <tr> 
                              <td colspan="2" class="exemple">(ex. : /home/domaine/www/ 
                                <br>
                                n'oubliez pas le / à la fin; don't forget the 
                                / at the end )</td>
                            </tr>
                            <tr> 
                              <td width="50%" class="cellule">URL vers Ganesha<br>
                                <font class="texte">Url to Ganesha</font> </td>
                              <td width="50%" class="cellule"> 
                                <input type="texte" name="url" size="40" maxlength="80" value="<?PHP echo GetURL(); ?>" class="input">
                              </td>
                            </tr>
                            <tr> 
                              <td colspan="2" class="exemple">(ex.: http://www.domaine.com/ganesha/ 
                                <br>
                                n'oubliez pas le / à la fin / don't forget the
                                 / at the end)</td>
                            </tr>
                              <td width="50%" class="cellule">Langue utilisée<br>
                                <font class="texte">Language used</font></td>
                              <td width="50%" class="cellule"> 
                                <select name="lang" size="1" class="input">
                                <option selected>french</option>
                                <option >arabic</option>
                                <option >bulgare</option>
                                <option >english</option>
                                <option >portuguese</option>
                                <option >spanish</option>
                              </select>
                              </td>
                            <tr> 
                              <td colspan="2" align="center"> 
                                <input type="button" class="boutton" name="verif2" value="Valider" onClick="ValiderConf(this.form);">
                              </td>
                            </tr>
                          </table>
                        </form></td>
                    </tr>
                  </table> </td>
        </tr>
      </table>
	        
          </td>
          <td width="20%">&nbsp;</td>
        </tr>
        <tr>
          <td width="20%">&nbsp;</td>
          <td width="60%">&nbsp;</td>
          <td width="20%">&nbsp;</td>
        </tr>
      </table>
			</tr>
  <tr> 
    <td colspan="2"><img src="images/conception.gif" width="780" height="59" usemap="#Map2" border="0" alt="GANESHA"></td>
  </tr>
</table>
<map name="Map">
  <area shape="rect" coords="25,59,86,74" href="index.php" target="_parent" alt="Accueil" title="Accueil">
  <area shape="rect" coords="146,41,324,59" href="http://www.anemalab.org" target="_blank" alt="Site support" title="Site support">
  <area shape="rect" coords="660,12,777,30" href="remerciements.html" target="_parent" alt="remerciements" title="remerciements">
  <area shape="rect" coords="656,39,764,56" href="../docs/man/index.htm" target="_blank" alt="Aide en ligne" title="Aide en ligne">
</map>
<map name="Map2">
  <area shape="rect" coords="512,4,730,57" href="http://www.anema-formation.fr" target="_blank" alt="Anema formation" title="Anema formation">
</map>
</body>
</html>
