*/ require_once NOALYSS_INCLUDE . '/class_itext.php'; require_once NOALYSS_INCLUDE . '/class_icheckbox.php'; require_once NOALYSS_INCLUDE . '/class_itextarea.php'; require_once NOALYSS_INCLUDE . '/class_html_input.php'; $sa = isset($_REQUEST['sa']) ? $_REQUEST['sa'] : 'list'; //--------------------------------------------------------------------------- // Update $dossier_id = HtmlInput::default_value_request('d', -1); if (isset($_POST['upd']) && isNumber($dossier_id) == 1 && $dossier_id != -1) { $dos = new dossier($dossier_id); $name = HtmlInput::default_value_post('name', "--vide--"); $desc = HtmlInput::default_value_post('desc', "--vide--"); $dos->set_parameter('name', $name); $dos->set_parameter('desc', $desc); $dos->save(); } echo '<div class="content" style="width:80%;margin-left:10%">'; /* * check and add an new folder */ if (isset($_POST["DATABASE"])) { $repo = new Database(); $dos = HtmlInput::default_value_post('DATABASE', ""); $dos = sql_string($dos); if (strlen($dos) == 0) { echo _("Le nom du dossier est vide"); exit - 1; } /* * check template encoding