Hacked By AnonymousFox

Current Path : /home/missmand/public_html/js/lightbox/
Upload File :
Current File : /home/missmand/public_html/js/lightbox/managerContact.php.tar

home/missmand/public_html/admin/contact/managerContact.php000064400000011015152000016430017760 0ustar00<?php
	include '../lib/init.php';

	/**
	 * Initialisation
	 */
	use Lib\Utilisateur;
	use Lib\Tool;

    Utilisateur::ifConnect();

    /**
     * Variables de pagination
     */
    extract(Tool::initPaginate(50));
?>
<!doctype html>
<html lang="fr">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width; initial-scale=1;">
	<title><?= TITLEBACK ?></title>
	<link rel="icon" type="image/png" href="<?= BASEADMIN ?>img/layout/favicon.png">
    <link href="<?= BASEFRONT ?>js/scroll/scroll.css" rel="stylesheet" type="text/css">
    <link href="<?= BASEFRONT ?>js/sweet/sweet.css" rel="stylesheet" type="text/css">
	<link href="<?= BASEADMIN ?>css/app.css" rel="stylesheet" type="text/css">
</head>

<body>

	<main id="main">

		<?php
			include '../include/menu.php';
		?>

		<div id="container">

			<?php
				include '../include/header.php';
			?>

			<div id="contentTitre">
				<h1>Gestion des contacts</h1>
			</div>

			<div id="content">

                <?= Tool::getFlash() ?>

                <!-- Tableau de gestion -->
                <table class="table">
                    
                    <tr>
                        <th width="40%" class="left">Contact</th>
                        <th width="10%" class="left">Objet</th>
                        <th width="40%" class="left">Message</th>
                        <th width="10%">Actions</th>
                    </tr>

                    <?php
                        $sql = $bdd->query("SELECT * FROM contact
                                            INNER JOIN contact_objet ON contactObjet = objetId 
                                            ORDER BY contactId DESC 
                                            LIMIT $debut, $nbPage ");
                        /**
                         * Si aucun contact
                         */
                        if($sql->rowCount() == 0){
                            echo'<tr><td colspan="3">Aucun contact</td></tr>';
                        }

                        while($data = $sql->fetchObject()){

                            echo'<tr>';

                                /**
                                 * Informations
                                 */
                                echo '<td class="left">';
                                    echo '<p class="tableDate"> Ajout : '.Tool::dateTime('d/m/Y à H:i',$data->contactCreated).'</p>';
                                    if(!is_null($data->contactChanged))
                                        echo'<p class="tableDate">Modification : '.Tool::dateTime('d/m/Y à H:i',$data->contactChanged).'</p>';
                                    echo '<p><strong>'.$data->contactNom.' '.$data->contactPrenom.'</strong></p>';
                                    echo '<p>Email : '.$data->contactEmail.'</p>';
                                    if(!is_null($data->contactEntreprise)) echo '<p>Entreprise : '.$data->contactEntreprise.'</p>';
                                    if(!is_null($data->contactTelephone)) echo '<p>Téléphone : '.$data->contactTelephone.'</p>';
                                echo'</td>';

                                echo'<td class="left"><p>'.$data->objetNom.'</p></td>';

                                echo'<td class="left"><p>'.$data->contactMessage.'</p></td>';

                                echo'<td>
                                        <a href="'.BASEADMIN.'contact/deleteContact.php?contact='.$data->contactId.'" class="sweetDelete" data-text="êtes vous sur ?" data-title="Supprimer le contact" title="Supprimer le contact"><i class="tableAction fa fa-times"></i></a>
                                    </td>';

                            echo'</tr>';

                        }

                    ?>

                </table>

                <!-- Pagination -->
                <div id="pagination">
                    <?php
                        $requetePage = "SELECT COUNT(contactId) AS total FROM contact ";

                        Tool::addPaginate($requetePage,BASEADMIN.'contact/managerContact.php',$nbPage,$page);
                    ?>
                </div>

			</div>

		</div>

	</main>

	<script type="text/javascript" src="<?= BASEFRONT ?>js/jquery/jquery.js"></script>
	<script type="text/javascript" src="<?= BASEFRONT ?>js/jquery/jquery-ui.js"></script>
    <script type="text/javascript" src="<?= BASEFRONT ?>js/scroll/scroll.js"></script>
    <script type="text/javascript" src="<?= BASEFRONT ?>js/sweet/sweet.js"></script>
	<script type="text/javascript" src="<?= BASEADMIN ?>js/app.js"></script>	
	
</body>
</html>home/missmand/public_html/missmandarine.ch/admin/contact/managerContact.php000064400000011015152003763330023216 0ustar00<?php
	include '../lib/init.php';

	/**
	 * Initialisation
	 */
	use Lib\Utilisateur;
	use Lib\Tool;

    Utilisateur::ifConnect();

    /**
     * Variables de pagination
     */
    extract(Tool::initPaginate(50));
?>
<!doctype html>
<html lang="fr">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width; initial-scale=1;">
	<title><?= TITLEBACK ?></title>
	<link rel="icon" type="image/png" href="<?= BASEADMIN ?>img/layout/favicon.png">
    <link href="<?= BASEFRONT ?>js/scroll/scroll.css" rel="stylesheet" type="text/css">
    <link href="<?= BASEFRONT ?>js/sweet/sweet.css" rel="stylesheet" type="text/css">
	<link href="<?= BASEADMIN ?>css/app.css" rel="stylesheet" type="text/css">
</head>

<body>

	<main id="main">

		<?php
			include '../include/menu.php';
		?>

		<div id="container">

			<?php
				include '../include/header.php';
			?>

			<div id="contentTitre">
				<h1>Gestion des contacts</h1>
			</div>

			<div id="content">

                <?= Tool::getFlash() ?>

                <!-- Tableau de gestion -->
                <table class="table">
                    
                    <tr>
                        <th width="40%" class="left">Contact</th>
                        <th width="10%" class="left">Objet</th>
                        <th width="40%" class="left">Message</th>
                        <th width="10%">Actions</th>
                    </tr>

                    <?php
                        $sql = $bdd->query("SELECT * FROM contact
                                            INNER JOIN contact_objet ON contactObjet = objetId 
                                            ORDER BY contactId DESC 
                                            LIMIT $debut, $nbPage ");
                        /**
                         * Si aucun contact
                         */
                        if($sql->rowCount() == 0){
                            echo'<tr><td colspan="3">Aucun contact</td></tr>';
                        }

                        while($data = $sql->fetchObject()){

                            echo'<tr>';

                                /**
                                 * Informations
                                 */
                                echo '<td class="left">';
                                    echo '<p class="tableDate"> Ajout : '.Tool::dateTime('d/m/Y à H:i',$data->contactCreated).'</p>';
                                    if(!is_null($data->contactChanged))
                                        echo'<p class="tableDate">Modification : '.Tool::dateTime('d/m/Y à H:i',$data->contactChanged).'</p>';
                                    echo '<p><strong>'.$data->contactNom.' '.$data->contactPrenom.'</strong></p>';
                                    echo '<p>Email : '.$data->contactEmail.'</p>';
                                    if(!is_null($data->contactEntreprise)) echo '<p>Entreprise : '.$data->contactEntreprise.'</p>';
                                    if(!is_null($data->contactTelephone)) echo '<p>Téléphone : '.$data->contactTelephone.'</p>';
                                echo'</td>';

                                echo'<td class="left"><p>'.$data->objetNom.'</p></td>';

                                echo'<td class="left"><p>'.$data->contactMessage.'</p></td>';

                                echo'<td>
                                        <a href="'.BASEADMIN.'contact/deleteContact.php?contact='.$data->contactId.'" class="sweetDelete" data-text="êtes vous sur ?" data-title="Supprimer le contact" title="Supprimer le contact"><i class="tableAction fa fa-times"></i></a>
                                    </td>';

                            echo'</tr>';

                        }

                    ?>

                </table>

                <!-- Pagination -->
                <div id="pagination">
                    <?php
                        $requetePage = "SELECT COUNT(contactId) AS total FROM contact ";

                        Tool::addPaginate($requetePage,BASEADMIN.'contact/managerContact.php',$nbPage,$page);
                    ?>
                </div>

			</div>

		</div>

	</main>

	<script type="text/javascript" src="<?= BASEFRONT ?>js/jquery/jquery.js"></script>
	<script type="text/javascript" src="<?= BASEFRONT ?>js/jquery/jquery-ui.js"></script>
    <script type="text/javascript" src="<?= BASEFRONT ?>js/scroll/scroll.js"></script>
    <script type="text/javascript" src="<?= BASEFRONT ?>js/sweet/sweet.js"></script>
	<script type="text/javascript" src="<?= BASEADMIN ?>js/app.js"></script>	
	
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox