<? include_once ( $_SERVER['DOCUMENT_ROOT'] . "/admin/inc-auth-granted.php" );?> <? include_once ( $_SERVER['DOCUMENT_ROOT'] . "/admin/classes/utils.php" );?> <? require $_SERVER['DOCUMENT_ROOT'] . "/admin/classes/Goldbook.php"; if (!empty($_GET)){ //Modif $action = 'modif'; $goldbook = new Goldbook(); $result = $goldbook->goldbookGet($_GET['id']); //print_r($result); if (empty($result)) { $message = 'Aucun enregistrements'; } else { $labelTitle= 'Livre d\' or N°: '. $_GET['id']; $date_goldbook= traitement_datetime_affiche($result[0]['date']); $id= $_GET['id']; $nom= $result[0]['nom']; $email= $result[0]['email']; $message= $result[0]['message']; if($result[0]['online']=='1') { $online = 'checked'; } else { $online = ''; } } } else { //ajout goldbook $action = 'add'; $labelTitle = 'Edition Livre Or '; $id= null; $nom= null;
<? include_once ( $_SERVER['DOCUMENT_ROOT'] . "/admin/inc-auth-granted.php" );?> <? include_once ( $_SERVER['DOCUMENT_ROOT'] . "/admin/classes/utils.php" );?> <? require $_SERVER['DOCUMENT_ROOT'] . "/admin/classes/Goldbook.php"; $goldbook = new Goldbook(); $result = $goldbook->goldbookGet(null); //print_r($result); if (empty($result)) { $message = 'Aucun enregistrements'; } else { $message = ''; } ?> <!doctype html> <html class="no-js" lang="en"> <head> <? include_once $_SERVER['DOCUMENT_ROOT'] . "/admin/inc-meta.php";?> </head> <body> <? require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/inc-menu.php";?> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12"> <table class="table table-hover table-bordered table-condensed table-striped" > <thead>