* @version $Id$ * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ //////////// Check Inclusion de pages //////////// if (!class_exists('auth')){ include_once("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// $link_det=$rub_link."&todo=det&id="; $link_det2=$rub_link."&todo=det&id="; if(!isset($_GET['id']) && !isset($_POST['id'])) { $id="1"; } else { if(isset($_POST['id'])) $id=$_POST['id']; if(isset($_GET['id'])) $id=$_GET['id']; } if(isset($_POST['valider'])) { $id_yp=$_POST['id_yp']; $yp_object= new yellowpages; $link_confirm="confirm.php?rub=".$rub."&todo=".$todo; $result=$yp_object->DeleteYellowPages($id_yp, $sql_object); if($result) { header("Location: ".safe_redirect($link_confirm)); exit; } else system_error(); } $req_det=SQL_getdetyp($id); $data_yp=$sql_object->DBSelect($req_det, 'OBJECT'); // Do record exists? if(!isset($data_yp[0]->yellowp_name)) redirect_to('@module_default'); $navtitle=_t('yp','sup')." : ".$data_yp[0]->yellowp_name; $display_title=formatTitleh2($data_yp[0]->yellowp_name); ?>