29 if (!defined(
'ALLOWED'))
30 die(
'Appel direct ne sont pas permis');
31 require_once NOALYSS_INCLUDE.
'/class/document_type.class.php';
37 $catDoc=
new Document_Type(
$cn);
41 $prefix=
$http->post(
'prefix');
42 $catDoc->insert(
$cat, $prefix);
44 catch (Exception $exc)
46 echo $exc->getMessage();
47 error_log($exc->getTraceAsString());
54 $dt_id=
$http->post(
"dt_id",
"number");
57 $catDoc=
new Document_Type(
$cn, $dt_id);
59 $catDoc->dt_value=trim(
$http->post(
"dt_name"));;
60 $catDoc->dt_prefix=trim(
$http->post(
"dt_prefix"));
61 if ($catDoc->dt_value==
"")
63 alert(_(
"Le nom ne peut pas ĂȘtre vide"));
71 $catDoc->set_number(
$_POST[
'seq']);
74 catch (Exception $exc)
76 alert ($exc->getMessage());
77 error_log($exc->getTraceAsString());
86 echo
'<div class="content">';
87 require_once NOALYSS_TEMPLATE.
'/list_category_document.php';