Subversion Repositories ALCASAR

Rev

Rev 591 | Go to most recent revision | Blame | Last modification | View Log

<?php
/*
Alcasar 2.x
written by steweb57
*/
/*
TODO :
- finir la traduction
- sortir le CSS
*/
require_once('includes/defines.inc.php');
require_once(ALCASAR_ADMIN_PATH_INC.'/session.inc.php');

# Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
if($Language == 'fr'){
        require_once(ALCASAR_ADMIN_PATH_LANG.'/fr/menu.lang.php');
}
else {
        require_once(ALCASAR_ADMIN_PATH_LANG.'/en/menu.lang.php');
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<!--DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0"-->
<html>
<!-- written by steweb57 ! -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>menu</title>
<link rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/default.css" type="text/css">
<style type="text/css">

#menu {
        //float:left;
        width:200px;
        height:600px;
        /*background-color:#FF6699;*/
                margin-left: auto; 
  margin-right: auto;
}
</style>
<style type="text/css">
        /*demo page css*/
        /*
        body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 0px;}
                        
        .demoHeaders { margin-top: 2em; }
        #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
        #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
        ul#icons {margin: 0; padding: 0;}
        ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left;  list-style: none;}
        ul#icons span.ui-icon {float: left; margin: 0 4px;}
                */      
</style>
<link type="text/css" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" /> 
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-1.5.min.js"></script>
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-ui-1.8.10.all.min.js"></script>

<script type="text/javascript">
                        $(function(){
                        
                                $("a").attr("target", "content");

                                // Accordion
                                $("#accordion").accordion({
                                        header: "h3",
                                        autoHeight: false
                                });
                                $("#accordion").accordion("activate" , 0 );
                                
                                $("#accordion-aide").accordion({
                                        header: "h3",
                                        autoHeight: false,
                                        navigation: true
                                });
                                $("#accordion-acces").accordion({
                                        header: "h3",
                                        autoHeight: false,
                                        navigation: true
                                });
                        });
</script>
</head>
<body>

<div id="menu">
        <div id="accordion">
                <div>
                        <h3><a href="#"><?php echo $l_home; ?></a></h3>
                        <div>
                        <a href="welcome.php">Accueil</a>
                        </div>
                </div>
                <div>
                        <h3><a href="#"><?php echo $l_system; ?></a></h3>
                        <div>
                                <a href="welcome.php">Configuration</a><br />
                                <a href="welcome.php">Services</a><br />
                                <a href="welcome.php"><?php echo $l_network; ?></a><br />
                                <a href="welcome.php"><?php echo $l_activity; ?></a><br />
                                <a href="welcome.php">Annuaires</a>
                        </div>
                </div>
                <div>
                        <h3><a href="#"><?php echo $l_auth; ?></a></h3>
                        <div>
                                <a href="welcome.php"><?php echo $l_menu_users; ?></a><br />
                                <a href="welcome.php"><?php echo $l_menu_groups; ?></a><br />
                                <a href="welcome.php"><?php echo $l_menu_admins; ?></a><br />
                                <!--
                                <a href="manager/htdocs/user_new.php"><?php echo $l_create_user; ?></a><br />
                                <a href="manager/htdocs/find.php"><?php echo $l_edit_user; ?></a><br />
                                <a href="manager/htdocs/group_new.php"><?php echo $l_create_group; ?></a><br />
                                <a href="manager/htdocs/show_groups.php"><?php echo $l_edit_group; ?></a><br />
                                -->
                                <a href="welcome.php"><?php echo $l_import_empty; ?></a><br />
                                <a href="welcome.php">Exceptions</a>
                        </div>
                </div>
                <div>
                        <h3><a href="#"><?php echo $l_filter; ?></a></h3>
                        <div>
                                <a href="welcome.php"><?php echo $l_domains_filter; ?></a>
                                <a href="welcome.php"><?php echo $l_network; ?></a><br />
                        </div>
                </div>
                <div>
                        <h3><a href="#"><?php echo $l_statistics; ?></a></h3>
                        <div>
                                <a href="welcome.php"><?php echo $l_stat_user_day; ?></a><br />
                                <a href="welcome.php"><?php echo $l_stat_con; ?></a><br />
                                <a href="welcome.php"><?php echo $l_stat_daily; ?></a><br />
                                <a href="welcome.php"><?php echo $l_stat_web; ?></a><br />
                                <a href="welcome.php"><?php echo $l_firewall; ?></a>
                        </div>
                </div>
                <div>
                        <h3><a href="#"><?php echo $l_backup; ?></a></h3>
                        <div>
                                <a href="welcome.php"><?php echo $l_backup; ?></a><br />
                        </div>
                </div>
        </div>
        <br />
        <div id="accordion-aide">
                <div>
                        <h3><a href="#">Documentations</a></h3>
                        <div>
                                <a href="docs/alcasar-2.1-presentation.pdf">Présentation</a><br />
                                <a href="docs/alcasar-2.1-installation.pdf">Installation</a><br />
                                <a href="docs/alcasar-2.1-exploitation.pdf">Exploitation</a><br />
                        </div>
                </div>
        </div>
        <br />
        <div id="accordion-acces">
                <div>
                        <h3><a href="#"><?php echo $l_access_nb; ?></a></h3>
                        <div>
                        <?                              // Compteur d'accès
                $name_fic="compteur.txt";
                                                // Recuperation du nombre de visite
                if (($fp=fopen($name_fic,"r")) == false) exit;
                $nb=fgets($fp,10);
                fclose($fp);
                $nb+=1;
                printf("%d", $nb);
                                                // Ecriture du nombre de visite
                if (($fp=fopen($name_fic,"w")) == false) exit;
                fputs($fp, "$nb\n");
                fclose($fp);
                ?>      
                        <br>depuis le 08/10/2010<br>
                        </div>
                </div>
        </div>
</div>

Generated by GNU Enscript 1.6.6.