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"));
50 if (isset (
$_POST[
'create_menu'])
51 && $this->
cn->get_value(
"select count(*) from menu_ref where me_code=$1",array($this->me_code)) > 0)
52 throw new Exception (
'Doublon');
53 if (trim($this->me_code)==
'')
54 throw new Exception (
'Ce menu existe déjà');
55 if (empty($this->me_code) ) {
56 throw new Exception(
_(
"le code ne peut être vide"));
59 if ( ! file_exists(
'../include/'.$this->me_file))
throw new Exception (
'Ce menu fichier '.$this->me_file.
" n'existe pas");
62 }
catch (Exception
$e)
noalyss_str_replace($search, $replace, $string)
alert($p_msg, $buffer=false)
alert in javascript
_("actif, passif,charge,...")