* @version $id SVN * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ //////////// Check Inclusion de pages //////////// if (!function_exists('AuthenthificationProcess')){ include_once("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// include_once("../lib/input_helpers.php"); if(isset($_POST['enregistrer'])) { $data_table=unserialize(urldecode($_POST['data_table'])); $yp_object= new yellowpages; $result=$yp_object->AddYellowPages($data_table, $sql_object); $link_confirm="confirm.php?rub=".$rub."&todo=".$todo; if(is_numeric($result)) header("Location: ".$link_confirm); else system_error(); } $form_name=''; $form_activity=''; $form_theme=''; $form_street=''; $form_postal_code=''; $form_city=''; $form_phone=''; $form_fax=''; $form_email=''; $form_website='http://'; $form_statut=''; $mask_statut_P="checked=\"checked\""; $mask_statut_D=''; if(isset($_POST['valider'])) { $table[0]=$_POST['yp_name']; $table[1]=$_POST['yp_activity']; $table[2]=$_POST['yp_theme']; $table[3]=$_POST['yp_street']; $table[4]=$_POST['yp_postal_code']; $table[5]=$_POST['yp_city']; $table[6]=''; $table[7]=$_POST['yp_phone']; $table[8]=$_POST['yp_fax']; $table[9]=$_POST['yp_email']; ($_POST['yp_website'] != 'http://') ? $table[10]=$_POST['yp_website'] : $table[10]=''; $table[11]=$_POST['yp_statut']; $yp_object= new yellowpages; $integrity=$yp_object->CheckDataIntegrity($table); $form_name=formatText($_POST['yp_name'], '2FIELD'); $form_activity=formatText($_POST['yp_activity'], '2FIELD'); $form_theme=$_POST['yp_theme']; $form_street=formatText($_POST['yp_street'], '2FIELD'); $form_postal_code=$_POST['yp_postal_code']; $form_city=formatText($_POST['yp_city'], '2FIELD'); $form_phone=$_POST['yp_phone']; $form_fax=$_POST['yp_fax']; $form_email=formatText($_POST['yp_email'], '2FIELD'); $form_website=formatText($_POST['yp_website'], '2FIELD'); $form_statut=$_POST['yp_statut']; if($form_statut=='AA') $mask_statut_D="checked=\"checked\""; else $mask_statut_D=''; if($form_statut=='P') $mask_statut_P="checked=\"checked\""; else $mask_statut_P=''; $table=urlencode(serialize($table)); } include_once(THEME_ADMIN_PATH."quickicons.php"); // select-box de thèmes $data=$sql_object->DBSelect($req_list_theme); $select_theme=ThemeSelectBox($data, "yp_theme", $form_theme); ?>