?> </li> <li style="height:25px; width:70px; border-left:1px solid #96A8B5;"><?php echo trad('Montant_commande', 'admin'); ?> </li> <li style="height:25px; width:47px; border-left:1px solid #96A8B5;"></li> <li style="height:25px; width:22px; border-left:1px solid #96A8B5;"><?php echo trad('Suppr', 'admin'); ?> </li> </ul> <div id="resul"> <?php liste_clients('ASC', 'nom', $debut); ?> </div> <p id="pages"> <?php if ($page > 1) { ?> <a href="<?php echo $_SERVER['PHP_SELF']; ?> ?page=<?php echo $pageprec; ?> ">Page précédente</a> | <?php
/* Thelia */ /* */ /* Copyright (c) OpenStudio */ /* email : info@thelia.net */ /* web : http://www.thelia.net */ /* */ /* This program 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 3 of the License */ /* */ /* This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ /* */ /*************************************************************************************/ require_once __DIR__ . "/../pre.php"; require_once __DIR__ . "/../auth.php"; if (!est_autorise("acces_clients")) { exit; } require_once __DIR__ . "/../liste/client.php"; header('Content-Type: text/html; charset=utf-8'); $order = $_GET["order"]; $critere = $_GET["critere"]; $debut = $_GET["debut"]; liste_clients($order, $critere, $debut);
?> </p> </div> <div id="form_maj_client" style="display: none"> <a href="#" class="cancel">X</a> <form method="post" action="" class="form_maj_client form-inline"> <fieldset> <legend>Modifier</legend> <div class="form-group"> <label class="sr-only" for="maj_client">Client</label> <div class="input-group"> <div class="input-group-addon"><i class="fa fa-user"></i></div> <select id="maj_client" name="maj_client" class="span2 form-control"> <?php $liste = liste_clients(); foreach ($liste as $k => $c) { ?> <option value="<?php echo $k; ?> "><?php echo $c['prenom'] . ' ' . $c['nom']; ?> </option> <?php } ?> </select> </div> </div>
if (isset($_POST['submit_contact'])) { if (envoyer_email($_POST['destinataire'], $_POST['objet'], $_POST['message'])) { echo '<div class="info good">Le message a bien été envoyé.</div>'; $formulaire = false; } else { echo '<div class="info bad">Erreur lors de l\'envoi du message.</div>'; $formulaire = false; } } else { $client = liste_clients($_GET['email']); $destinataire = $client[$_GET['email']]['email']; $nom_client = $client[$_GET['email']]['prenom'] . ' ' . $client[$_GET['email']]['nom']; $formulaire = true; } } else { $clients = liste_clients(); $liste = true; } } if (!$modifier and !isset($reservations) and !$formulaire) { echo '<div class="alignRight" style="margin-top: 20px;"><a href="?page=prive&show=gerer_cli&ajouter=true" class="btn btn-info"><i class="fa fa-plus"></i> Ajouter un client</a></div>'; } if ($formulaire) { ?> <h3>Contacter le client <?php echo $nom_client; ?> </h3> <div id="formulaire_contact"> <form method="post" action="">