<?php
#=
/****************************************************************************
Copyright 2002, Daniel GiBii/Melia, 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

****************************************************************************/
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <?php
    include("../include/vars_adm.php");
    include("../include/util.inc.php");
    print "<title>Backup de la base $db</title>\n";
    $statut="Admin";
    opensession($statut);
    ?>

<link rel="stylesheet" href="<?php echo "../themes/".$etab_theme."/b2i.css" ?>">
</head>

<BODY class='arialadmin' onload="document.db_dump.envoyer.focus();">
<p class='sous_titre'>Exportation de la base de l'établissement au format SQL</p>
<!-- <hr  style="width:100%">  -->
<hr>
<p class='avis_transparent'>Ce type de sauvegarde peut permettre ultérieurement, en cas de mauvaise
   manipulation, de réinjecter les données sauvegardées dans la base.<br /><br />
   Le fichier que vous allez obtenir peut aussi être injecté dans un autre
   serveur <?php print $MODULE; ?> nouvellement installé.
   <br />
   </p><br />

<form method="post" action="back_traiter.php" name="db_dump" >
   <!-- fermewin : pour la suite du traitement -->
   <input type="hidden" name="fermewin" value="0">
   <div align = 'center'><table border=1 width="40%">
    <tr class='rubrique'>
        <td width="70%">
            <p align="center">
            <b>Quelle compression utiliser ?</b>
            </p>
        </td>
        <td>&nbsp;
        </td>
    </tr>
    <tr>

        <td align="left">

             <ul>
               <li><input type="radio" name="zip" value="non" checked>&nbsp;aucune  </li>
              <?php if (@function_exists('bzcompress')) {
                        $fontdeb="";
                        $fontfin="";
                        $onclick="";
                        $voirnote="";
                    }
                    else {
                        $fontdeb="<span class='gris'>";
                        $fontfin="</span>";
                        $onclick="onclick=\"document.db_dump.zip[0].click();\"";
                        $voirnote=" (voir note)";
                    }
                    print $fontdeb."<li><input type=\"radio\" name=\"zip\" value=\"bz2\"
                                   $onclick>&nbsp;format bz2".$voirnote.$fontfin."</li>\n";
                    if (@function_exists('gzencode')) {
                        $fontdeb="";
                        $fontfin="";
                        $onclick="";
                        $voirnote="";
                    }
                    else {
                        $fontdeb="<span class='gris'>";
                        $fontfin="</span>";
                        $onclick="onclick=\"document.db_dump.zip[0].click();\"";
                        $voirnote=" (voir note)";
                    }
                    print $fontdeb."<li><input type=\"radio\" name=\"zip\" value=\"gz\"
                                    $onclick>&nbsp;format gzip</li>".$voirnote.$fontfin;
                    ?>

               </ul>
         </td>

        <td>  <p align="center">
             <input type="submit" name="envoyer" class="coul" value="Exécuter" />
             </p>
        </td>

    </tr>
   </table></div>
</form>
</body>
</html>