* @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'); } //////////// if (isset($_GET['id'])) $scale_id=$_GET['id']; if (isset($_POST['id'])) $scale_id=$_POST['id']; $scale_object= new scale; $requete=SQL_getonescale($scale_id); $data=$sql_object->DBSelect($requete, 'OBJECT'); $current_title=formatText($data[0]->scale_denomination, '2HTML'); $current_scale_dependencies=$data[0]->scale_dependencies; $current_root=$data[0]->scale_root; $mask_statut_P=''; $mask_statut_D=''; if(isset($_POST['valider'])) { $table[0]=$_POST['denomination']; $table[1]=$_POST['surface']; $table[2]=$_POST['population']; $table[3]=$_POST['root_scale']; $table[4]=$_POST['com_scale']; $table[5]=$_POST['statut_scale']; $table[6]=$current_root; $integrity=$scale_object->CheckDataIntegrity($table); if(is_string($integrity)) $format_text='2FIELD'; else $format_text='2HTML'; $form_denomination=formatText($_POST['denomination'], $format_text); $form_surface=$_POST['surface']; $form_population=$_POST['population']; $form_comment=$_POST['com_scale']; $form_root_scale=$_POST['root_scale']; $form_statut_scale=$_POST['statut_scale']; $table=urlencode(serialize($table)); } if(isset($_POST['enregistrer'])) { $data_table=unserialize(urldecode($_POST['data_table'])); $result=$scale_object->ModifyScale($scale_id, $data_table, $sql_object); $link_confirm="confirm.php?rub=".$rub."&todo=".$todo."&id=".$scale_id; if($result) header("Location: ".$link_confirm); else system_error(); } if(!isset($integrity)) { $requete=SQL_getonescale($scale_id); $data=$sql_object->DBSelect($requete, 'OBJECT'); $form_denomination=formatText($data[0]->scale_denomination, '2FIELD'); $form_surface=$data[0]->scale_surface; $form_population=$data[0]->scale_inhabitantsnumber; $form_root_scale=$data[0]->scale_root; $form_statut_scale=$data[0]->scale_statut; $form_comment=formatText($data[0]->scale_comment, '2FIELD'); } if($form_statut_scale=='P') $mask_statut_P=' checked="checked"'; if($form_statut_scale=='D') $mask_statut_D=' checked="checked"'; ?>
getMaxDepth($scale_id, $sql_object); $req_mod=SQL_getMaxScalesDepth($table_exclu["depth"], $table_exclu["exclusion"]); $data=$sql_object->DBSelect($req_mod); $select_root=ScaleSelectBox($data, "root_scale", $form_root_scale); // select box statut $select_statut="\n"; $select_statut.="".$GLOBALS['lang']['statut']['public']."\n"; $select_statut.="".$GLOBALS['lang']['statut']['draft']."\n"; } else { $select_root = empty_none(''); $select_root .="\n"; $select_statut="\n"; } ?>

*/?>


DBSelect($requete); $display_root_scale="
".$GLOBALS['lang']['scale']['root']." :
\n"; $display_root_scale.="
".formatText($data[0]['scale_denomination'], '2HTML')."
\n"; } else $display_root_scale=''; $display_statut_scale=display_statut($form_statut_scale); ?>

:

() :

:

:

*/ ?>
: