26require_once NOALYSS_INCLUDE.
'/database/default_menu_sql.class.php';
49 $idx = $tmenu->getp(
'md_code');
50 $this->a_menu_def[
$idx] = $tmenu->getp(
'me_code');
52 $this->code = explode(
',',
'code_follow,code_invoice,code_feenote',);
57 $code_invoice =
new IText(
'code_invoice', $this->a_menu_def[
'code_invoice']);
58 $code_follow =
new IText(
'code_follow', $this->a_menu_def[
'code_follow']);
59 $code_feenote =
new IText(
'code_feenote', $this->a_menu_def[
'code_feenote']);
60 echo
'<div class="form-group">';
61 echo
'<div class="form-text">' .
'<label for="code_invoice">'.
_(
'Code AD pour création facture depuis gestion').
62 "</label>".
"</div>".
'<div class="form-text">' .$code_invoice->input() .
'</div>';
64 echo
'<div class="form-text">' .
'<label for="code_follow">'.
_(
'Code AD pour appel gestion').
65 "</label>".
"</div>".
'<div class="form-text">' .$code_follow->input() .
'</div>';
67 echo
'<div class="form-text">' .
'<label for="code_feenote">'.
_(
'Code AD pour création note de frais ou facture achat').
68 "</label>".
"</div>".
'<div class="form-text">' .$code_feenote->input() .
'</div>';
75 $count =
$cn->get_value(
'select count(*) from v_menu_description_favori where '
76 .
'code = $1', array($p_string));
81 $count =
$cn->get_value(
'select count(*) from menu_ref where '
82 .
'me_code = $1', array($p_string));
87 throw new Exception(
'code_inexistant');
92 foreach ($this->code as
$code)
98 function set($p_string, $p_value)
100 if (in_array($p_string, $this->code) ==
false)
102 throw new Exception(
"code_invalid");
104 $this->a_menu_def[$p_string] = $p_value;
106 function get ($p_string)
108 return $this->a_menu_def[$p_string];
117 foreach ($this->a_menu_def as $key =>
$value)
119 $cn->exec_sql(
'update menu_default set me_code=$1 where
120 md_code =$2', array(
$value,$key));
122 }
catch (Exception
$e)
125 echo
$e->getMessage();
record_log($p_message)
Record an error message into the log file of the server or in the log folder of NOALYSS Record also t...
_("actif, passif,charge,...")
static num_row($ret)
wrapper for the function pg_num_rows