28require_once NOALYSS_INCLUDE.
'/database/menu_ref_sql.class.php';
33 $this->me_code=strtoupper($this->me_code);
34 $this->me_code=trim($this->me_code);
44 if ( $this->me_code == -1)
46 throw new Exception(_(
"le code ne peut être vide"));
49 if ( $this->
cn->get_value(
"select count(*) from menu_ref where me_code=$1",array($this->me_code)) > 0)
50 throw new Exception (
'Doublon');
51 if (trim($this->me_code)==
'')
52 throw new Exception (
'Ce menu existe déjà');
53 if (empty($this->me_code) ) {
54 throw new Exception(_(
"le code ne peut être vide"));
57 if ( ! file_exists(
'../include/'.$this->me_file))
throw new Exception (
'Ce menu fichier '.$this->me_file.
" n'existe pas");
60 }
catch (Exception
$e)
noalyss_str_replace($search, $replace, $string)
alert($p_msg, $buffer=false)
alert in javascript