* @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'); } //////////// //////////// Check Droits utilisateur //////////// if (!$l21auth->isSuperAdmin()) ReloadIndex('admin'); //////////// include_once(override('../yellowpages/display.php', THEME_ADMIN_PATH)); if(isset($_GET['state'])) { $state=$_GET['state']; if(isset($_POST['id'])) $yp_id=$_POST['id']; if(isset($_GET['id'])) $yp_id=$_GET['id']; $yp_object= new yellowpages; $result_update=$yp_object->StateYellowPages($yp_id, 'P', $sql_object); $link_confirm="confirm.php?rub=".$rub."&todo=mod&id=".$yp_id; if (ALERT_DIRECTORY==1) { include_once(override('../mail/mail_actions.php')); include_once(override('../mail/send.php')); $a = array(); $a['action'] = 'confirm_entry'; $link = HrefMaker(array('rub' => $GLOBALS['links'][U_L]['directory-detail']['linkvalue'], 'id' => $yp_id)); $a['link_entry'] = SITE_ROOT_URL. 'public/'.$link; $result=$sql_object->DBSelect(SQL_getdetyp($yp_id)); $a['recipient'] = $result[0]['yellowp_email']; $emailContainer = prepare_email($a); $r = send_email($emailContainer); } echo $result_update; if($result_update) header("Location: ".$link_confirm); else system_error(); } if(!isset($_GET['id']) && !isset($_POST['id'])) { $id="1"; } else { if(isset($_POST['id'])) $id=$_POST['id']; if(isset($_GET['id'])) $id=$_GET['id']; } $req_det= SQL_getdetyp($id); $result=$sql_object->DBSelect($req_det); // Do record exists? if(!isset($result[0]['yellowp_name'])) redirect_to('@module_default'); $link_det=$rub_link."&todo=det&id="; $link_det_theme="index.php?rub=theme&todo=det&id="; $link_sup=$rub_link."&todo=sup&id="; $link_mod=$rub_link."&todo=mod&id="; $navtitle=_t('yp','det')." : ".$result[0]['yellowp_name']; $display_title=formatTitleh2($result[0]['yellowp_name']); ?>

"; ?> "; ?>
:
-1) echo "".formatText($result[0]['theme_name'], '2HTML')."
"; else echo _t('yp','notheme').""; ?>
:
:
:
:
:
:
:
:
" .formatText($result[0]['yellowp_email'], '2HTML')."";?>
:
"") echo "".formatText($result[0]['yellowp_website'], '2HTML')."
"; else echo formatText(empty_nc($result[0]['yellowp_website']), '2HTML').""; ?>
:
: