0byt3m1n1-V2
Path:
/
home
/
nlpacade
/
www.OLD
/
adminnlp
/
[
Home
]
File: accueil.php
<?php include_once("pre.php"); include_once("../classes/Variable.class.php"); include_once("../classes/Administrateur.class.php"); include_once("../classes/Profildesc.class.php"); session_start(); if(!isset($action)) $action=""; if(!isset($_SESSION["util"])) $_SESSION["util"]=new Administrateur(); if(isset($_POST['identifiant']) && isset($_POST['motdepasse'])){ $utilisateur = str_replace(" ", "", $_POST['identifiant']); $motdepasse = str_replace(" ", "", $_POST['motdepasse']); } if($action == "identifier") { $admin = new Administrateur(); if(! $admin->charger($identifiant, $motdepasse)) {header("Location: index.php?erreur=1");exit;} else{ $_SESSION["util"] = new Administrateur(); $_SESSION["util"] = $admin; } } else if($_SESSION["util"]->id == "") {header("Location: index.php?erreur=1");exit;} ?> <?php $rsscmd = new Variable(); $rsscmd->charger("rsspass"); ?> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <?php include_once("title.php");?> <script type="text/javascript" src="js/scripts/jquery.bgiframe.js"></script> <link media="screen" rel="stylesheet" href="css/master.css" /> <link rel="stylesheet" href="css/screen.css" type="text/css" media="screen" title="default" /> <script type="text/javascript" src="../lib/jquery/jquery.js"></script> <script src="../lib/jquery/jeditable.js" type="text/javascript"></script> <script src="../lib/jquery/menu.js" type="text/javascript"></script> <script src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> function valid(admin){ if(document.getElementById('motdepasse1' + admin ).value == document.getElementById('motdepasse2' + admin ).value) document.getElementById('formadmin' + admin).submit(); else{ alert("Veuillez verifier votre mot de passe"); return false; } } function ajout(){ if(document.getElementById('motdepasse1').value == document.getElementById('motdepasse2').value && document.getElementById('motdepasse1').value != "") document.getElementById('formadmin').submit(); else{ alert("Veuillez verifier votre mot de passe"); return false; } } function supp(admin){ if(confirm("confirmez-vous la suppression de cet administrateur?")){ //window.location="gestadm_modifier.php?action=supprimer&id="+admin; } } </script> </head> <?php include_once("../classes/Client.class.php"); include_once("../classes/Produit.class.php"); include_once("../classes/Commande.class.php"); include_once("../extlib/Snoopy.class.inc"); ?> <body> <div id="page-top-outer"> <!-- Start: page-top --> <div id="page-top"> <img src="images/login/logo.png" alt="" style="margin-top:14px;" /> <!-- start logo --> <div id="logo"> <!--<a href=""><img src="images/shared/logo.png" width="156" height="40" alt="" /></a>--> </div> </div> <!-- End: page-top --> </div> <!-- End: page-top-outer --> <div class="clear"> </div> <?php $menu="accueil"; //include_once("entete.php"); ?> <?php include_once("shotcurts.php"); ?> </div> <!-- start nav-outer-repeat................................................... END --> <div class="clear"></div> <!-- start content-outer ........................................................................................................................START --> <div id="content-outer"> <!-- start content --> <div id="content"> <!-- start page-heading --> <div id="page-heading"> </div> <!-- end page-heading --> <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table"> <tr> <th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th> <th class="topleft"></th> <td id="tbl-border-top"> </td> <th class="topright"></th> <th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th> </tr> <tr> <td id="tbl-border-left"></td> <td> <!-- start content-table-inner ...................................................................... START --> <div id="content-table-inner"> <!-- start table-content --> <div id="table-content"> <!-- start message-green --> <div id="message-green"> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="green-left">Contact<a href="page.php?page=ae"></a></td> <td class="green-right"><a class="close-green"><img src="images/table/icon_close_green.gif" alt="" /></a></td> </tr> </table> </div> <!-- end message-green --> <!-- start product-table ..................................................................................... --> <form action=""> <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table"> <tr> <td><?php //include('calendar/calender.php'); ?> <?php include_once("../client/plugins/contact/Contact.class.php"); $contact = new Contact(); $query = "select * from $contact->table where lu=0 "; $resul = mysql_query($query,$contact->link); $nbmsg = mysql_num_rows($resul); ?> <div id="sidebar"> <div id="sidebar-wrapper"> <div id="profile-links"> <p> Bonjour, <br /> vous avez <a href="contact.php" rel="modal" title="Messages"> <strong> <?php if($nbmsg > 1):?><?php echo $nbmsg;?> nouveaux messages <?php else :?><?php echo $nbmsg;?> nouveau message<?php endif;?></strong></a> <br /></p> </div> </td> </tr> </table> </form> <div id="message-green"> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="green-left">Configuration du site </td> <td class="green-right"><a class="close-green"><img src="images/table/icon_close_green.gif" alt="" /></a></td> </tr> </table> </div> <table cellspacing="0" cellpadding="0" border="0" width="100%" id="product-table"> <thead> <tr><th width="30%" class="table-header-repeat line-left minwidth-1">Nom</th> <th width="61%" class="table-header-repeat line-left minwidth-1">Valeur</th> <th width="9%" class="table-header-repeat line-left minwidth-1">Action</th></tr></thead> <!-- bloc dZclinaisons / colonne gauche --> <?php $variable = new Variable(); $query = "select * from $variable->table where cache='0'"; $resul = mysql_query($query, $variable->link); $i=0; while($row = mysql_fetch_object($resul)){ if(!($i%2)) $fond="ligne_claire_BlocDescription"; else $fond="ligne_fonce_BlocDescription"; $i++; if($row->id == 2 || $row->id == 3 || $row->id == 8 || $row->id == 11 || $row->id == 12 || $row->id == 13 || $row->id == 14|| $row->id == 15 || $row->id == 16 ){ ?> <form action="variable_modifier.php" id="formvariable<?php echo($row->id); ?>" method="post"> <tr> <?php if($row->nom == "nomsite") $nom=" Nom du site" ; if($row->nom == "urlsite") $nom=" Url du site" ; if($row->nom == "contact") $nom=" E-mail de contact" ; if($row->nom == "nomsociete") $nom=" Nom de la société" ; if($row->nom == "adresse") $nom=" Adresse de la société" ; if($row->nom == "tel") $nom=" Téléphone" ; if($row->nom == "fax") $nom=" Fax" ; if($row->nom == "adressemap") $nom=" Adresse plan d'accés" ; if($row->nom == "telmobile") $nom=" Téléphone mobile" ; ?> <td> <?php echo $nom; ?></td> <td><?php if($row->id == 13 ) {?> <input name="valeur" type="text" style=" border:1px solid #D5D5D5; color:#333333; font-size:13px; padding:6px; width:80%; -moz-border-radius:4px 4px 4px 4px; background:url("../images/bg-form-field.gif") repeat-x scroll left top #FFFFFF;" value="<?php echo($row->valeur); ?>" /> <?php } else {?> <input name="valeur" type="text" style=" border:1px solid #D5D5D5; color:#333333; font-size:13px; padding:6px; width:80%; -moz-border-radius:4px 4px 4px 4px; background:url("../images/bg-form-field.gif") repeat-x scroll left top #FFFFFF;" value="<?php echo($row->valeur); ?>" /> <?php } ?> </td> <td><a href="#" onclick="document.getElementById('formvariable<?php echo($row->id); ?>').submit();"><input type="submit" value="Enregistrer" class="button"/></a></td> </tr> <input type="hidden" name="action" value="modifier" /> <input type="hidden" name="nom" value="<?php echo($row->nom); ?>" /> </form> <?php }} ?> </table> <div id="message-green"> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="green-left">Gestion de l'administrateur<a href="page.php?page=ae"></a></td> <td class="green-right"><a class="close-green"><img src="images/table/icon_close_green.gif" alt="" /></a></td> </tr> </table> </div> <!-- end message-green --> <!-- start product-table ..................................................................................... --> <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table"> <tr> <td><?php //include('calendar/calender.php'); ?> <?php include_once("../client/plugins/contact/Contact.class.php"); $contact = new Contact(); $query = "select * from $contact->table where lu=0 "; $resul = mysql_query($query,$contact->link); $nbmsg = mysql_num_rows($resul); ?> <table > <thead> <tr> <th class="table-header-repeat line-left minwidth-1" width="15%">Nom</th> <th class="table-header-repeat line-left minwidth-1" width="15%">Prénom</th> <th class="table-header-repeat line-left minwidth-1" width="20%">Identifiant</th> <th class="table-header-repeat line-left minwidth-1" width="20%">Mot de passe</th> <th class="table-header-repeat line-left minwidth-1" width="20%">Confirmation</th> <th class="table-header-repeat line-left minwidth-1" width="10%">Action</th> </tr> </thead> <?php $administrateur = new Administrateur(); $query = "select * from $administrateur->table"; $resul = mysql_query($query, $administrateur->link); $i=0; while($row = mysql_fetch_object($resul)){ if($row->id !=1 ){ if(!($i%2)) $fond="ligne_claire_rub"; else $fond="ligne_fonce_rub"; $i++; ?> <form action="gestadm_modifier.php" id="formadmin<?php echo($row->id); ?>" method="post" onsubmit="valid('<?php echo $row->id; ?>');return false;"> <tr> <td><input name="nom" type="text" class="text-input medium-input datepicker" value="<?php echo($row->nom); ?>" size="20" /></td> <td><input name="prenom" type="text" class="text-input medium-input datepicker" value="<?php echo($row->prenom); ?>" size="20" /></td> <td><input name="identifiant" type="text" class="text-input medium-input datepicker" value="<?php echo($row->identifiant); ?>" size="20" /></td> <td><input name="motdepasse1" id="motdepasse1<?php echo($row->id); ?>" type="password" value="<?php echo $pass; ?>" class="text-input medium-input datepicker" size="20" onclick="this.value='';" /></td> <td><input name="motdepasse2" id="motdepasse2<?php echo($row->id); ?>" type="password" value="<?php echo $pass; ?>" class="text-input medium-input datepicker" size="20" onclick="this.value='';" /></td> <td><a href="#" onclick="valid('<?php echo $row->id; ?>');return false;"><img src="images/icons/pencil.png" alt="Editer" /></a> <?php if($_SESSION['util']->id != $row->id) { ?> <?php } ?></td> </tr> <input type="hidden" name="action" value="modifier" /> <input type="hidden" name="id" value="<?php echo($row->id); ?>" /> </form> <?php } }?></table> </td> </tr> </table> </div> <div class="clear"></div> </div> </td> <td id="tbl-border-right"></td> </tr> <tr> <th class="sized bottomleft"></th> <td id="tbl-border-bottom"> </td> <th class="sized bottomright"></th> </tr> </table> <div class="clear"> </div> </div> <!-- end content --> <div class="clear"> </div> </div> <!-- end content-outer........................................................END --> <?php include_once("pied.php"); ?>
©
2018.