26if (!defined(
'ALLOWED'))
27 die(
'Appel direct ne sont pas permis');
29require_once NOALYSS_INCLUDE.
"/database/forecast_sql.class.php";
30require_once NOALYSS_INCLUDE.
"/database/forecast_item_sql.class.php";
31require_once NOALYSS_INCLUDE.
"/database/forecast_category_sql.class.php";
40echo
'<div class="content">';
58 echo
"<h2> cloning</h2>";
77 $f_name=
$http->post(
"f_name");
81 throw new Exception(_(
"Le nom ne peut pas être vide"));
92 catch (Exception $exc)
110 $anticipation->input_form();
123 echo
'<div class="content">';
131 echo
'<div class="noprint">';
132 echo
'<form id="forecast_frm" method="get">';
133 echo dossier::hidden();
136 echo
HtmlInput::submit(
'mod_item_bt', _(
'Modifier éléments'),
'onclick="$(\'action\').value=\'mod_item\';"');
141 echo
'<a style="display:inline-block" class="smallbutton" href="do.php?'.$href.
'">'._(
'Retour').
'</a>';
149 echo
"<div class=\"error\"><p>"._(
"Erreur").
" : ".
$e->getMessage().
150 '</p><p>'._(
'Vous devez corriger').
'</p></div>';
152 echo
'<div class="content">';
154 echo
'<form method="post" action="?">';
155 echo dossier::hidden();
158 echo
$anc->form_cat();
176 $get_dossier=dossier::get();
177 require_once NOALYSS_TEMPLATE.
"/forecast-new.php";
179 echo
'<div class="content">';
181 echo
'<TABLE id="forecast_table_id" class="vert_mtitle">';
182 $href=
"?ac=".$ac.
"&sa=new&".$get_dossier;
183 echo
'<TR><TD class="first"><A HREF="#" onclick="document.getElementById(\'forecast_new_div\').show()">'._(
"Ajout d'une prévision").
'</A></TD></TR>';
186 for (
$i=0;
$i<count($aForecast);
$i++)
188 $href=
"?ac=".$ac.
"&sa=vw&".$get_dossier.
'&f_id='.$aForecast[
$i][
'f_id'];
191 echo
'<TR><TD><A HREF="'.$href.
'">'.
h(
$name).
'</A></TD></TR>';
echo_warning($p_string)
warns
h( $row[ 'oa_description'])
static id()
return the 'gDossier' value after a check
ORM abstract of the table public.forecast.
static load_all($p_cn)
load all the existing forecast