<?php
#=
/****************************************************************************
Copyright 2002, Daniel Deycard, Jacques Messines, Alain Pomirol
(CATICE Académie de Bordeaux)

This file is part of GiBii/Melia.

GiBii/Melia 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.

GiBii/Melia 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.

You should have received a copy of the GNU General Public License
along with GiBii/Melia; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

Mofidié par Fabien NGUYEN
****************************************************************************/

include("../include/util.inc.php");
include("../include/login.inc.php");
include("../include/vars_adm.php");
include("../include/scriptsql.php");
include("../include/utiljs.php");

$sadmin_mdp_chg=true;
connecte($host,$user,$mdp,$db);
createSession(-1); //etab_id=-1 pour le sadmin

if ($MODULE=='Melia')
    $entete="&nbsp;&nbsp;--&nbsp; Copyright 2002-2007, Daniel Deycard, Jacques Messines, Stéphanie Roussel, Jean-Marie Treins  (CATICE Académie de Bordeaux)";
else
    $entete="&nbsp;&nbsp;--&nbsp; Copyright 2002-2007, Daniel Deycard, Jacques Messines, Jean-Marie Treins, Alain Pomirol  (CATICE Académie de Bordeaux)";

$ch=getlogo('logorect.gif');



?><!DOCTYPE HTML PUBLIC "-/W3C/DTD HTML 4.01 Transitional/EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Ouverture de session sadmin GiSCCo</title>
<link rel="stylesheet" href="../include/general.css">
<base target='_self'>
<script language="javascript" type="text/javascript" src="../include/md5.js"></script>
<script language="javascript" type="text/javascript" src="../include/login.js"></script>
</head>
<body class="arial_sadmin" onload="document.formlogin.s_login.focus();">


<table border="0" width="80%" align='center'>
<tr><td colspan='2'><div align="center"><font  size="1">
<!-- <i><?php // print "$MODULE version $VERSION_GIBII&nbsp;&nbsp;--&nbsp;&nbsp;[$db] $entete"; ?></i><br /></font> --> <!-- Déclaration de la version de GiSCCo -->

<i><?php print "$MODULE version $VERSION_GIBII par Fabien NGUYEN<br> basé sur GiBii 5.2.1 &nbsp;&nbsp;--&nbsp;&nbsp;[$db] $entete"; ?></i><br /></font>
</div></td></tr>
<tr><td colspan='2' height="30"><p class="nom_prenom" align="center">Super Administrateur</p></td></tr>
</table>

<FORM method='post' action="sadmin_traite.php" name="formlogin" onsubmit="return submit_pass(this.s_login,this.s_passwd,this.s_secure,<?php print $_SESSION['gds']; ?>);">


<table border='0' width='90%'>
    <tr>
        <td width='150'><p align=left><a href="<?php echo $URL_ACAD; ?>"><img src="<?php echo $ch; ?>" border="0" alt="<?php echo $URL_ACAD; ?>" align="top"></a></p>
        </td>

    <td> <p>&nbsp;</p><p align='center'><img src="./images/titre_b2i.gif" border="0"></p>
    </td>
    </tr>
</table>
<p>&nbsp;</p>
<p align="center"><font face="Verdana"><i>&nbsp;Saisissez le code SuperAdmin et son mot de
passe</i></font></p>
<table align="center" border="0" width="70%" height="0%">
    <tr>
        <td width="12%"><p>&nbsp;</p></td>
        <td width="28%" ><p align="right">Utilisateur :</p></td>
        <td width="30%" >
            <p align="center"><input type="text" name="s_login" maxlength="20" size="20"></p>
        </td>
        <td width="12%"><p>&nbsp;</p></td>
    </tr>
    <tr>
        <td width="12%"><p>&nbsp;</p></td>
        <td width="28%" ><p align="right">Mot de passe :</p></td>
        <td width="30%" >
            <p align="center">
            <input type="password" name="s_passwd" maxlength="20" size="20"><br />
            <input type="hidden" name="s_secure"></p>
            <input type="hidden" name='entree_SSO' value=0>
        </td>
        <td width="12%"><p>&nbsp;</p></td>
    </tr>
    <tr>
        <td width="12%">
            <p align="left">
            &nbsp;
            </p>
        </td>

        <td width="28%">
<?php
 if ($sadmin_mdp_chg) {
?>
  <p align="right">
  <span style="font-size:xx-small;"><i>Changer de mot de passe</i></span>
  <input type="checkbox" name="changer" value=1>&nbsp;
  </p>

<?php
     }
     else print "&nbsp;";
?>


        </td>
        <td width="30%">
            <p align="center">&nbsp;<input type="submit" class="coul" name="btn_login" value="Envoyer" accesskey="E"></p>
        </td>
        <td width="12%"><p>&nbsp;</p></td>
    </tr>

</table>
</form>
</body>
</html>
