diff --git a/include/modele.inc.php b/include/modele.inc.php
index c114dca31..e4432ddb1 100644
--- a/include/modele.inc.php
+++ b/include/modele.inc.php
@@ -115,6 +115,7 @@ if (isset($_POST["FMOD_NAME"]))
$Res = $cn_mod->exec_sql("delete from del_jrn");
$Res = $cn_mod->exec_sql("delete from del_jrnx");
$Res = $cn_mod->exec_sql("truncate table jrnx cascade ");
+ $Res = $cn_mod->exec_sql("truncate table todo_list cascade ");
$Res = $cn_mod->exec_sql("delete from del_action");
$Res = $cn_mod->exec_sql("delete from profile_user");
$Res = $cn_mod->exec_sql("delete from jnt_letter");
@@ -200,6 +201,19 @@ if (isset($_POST["FMOD_NAME"]))
$Res = $cn_mod->exec_sql('delete from poste_analytique');
$Res = $cn_mod->exec_sql('delete from plan_analytique');
}
+ if ( isset ($_POST['PLUGIN'])) {
+ $a_schema=$cn_mod->get_array("
+ select nspname from pg_namespace
+ where
+ nspname not like 'pg_%'
+ and nspname not in ('information_schema','public','comptaproc')
+ ");
+ $nb_schema=count($a_schema);
+ for ($i=0;$i < $nb_schema;$i++)
+ {
+ $cn_mod->exec_sql(" drop schema ".$a_schema[$i]['nspname']." cascade");
+ }
+ }
}
// Show all available templates
@@ -222,17 +236,17 @@ echo '
';
echo "
Modèles
";
if ($sa == 'list')
{
+ echo '
';
+ echo HtmlInput::button(_('Ajouter'),_('Ajouter')," onclick=\$('folder_add_id').show()");
+
+ echo '
';
if ($count == 0)
{
- echo "Aucun modèle disponible";
+ echo _("Aucun modèle disponible");
}
else
{
- echo '
';
- echo HtmlInput::button(_('Ajouter'),_('Ajouter')," onclick=\$('folder_add_id').show()");
-
- echo '
';
echo '
';
echo _('Filtre').HtmlInput::infobulle(23);
echo HtmlInput::filter_table("t_modele", "0,1,2","1");
@@ -242,6 +256,7 @@ if ($sa == 'list')
"".$header->get_header(0)." | " .
"
".$header->get_header(1)." | " .
"
".$header->get_header(2)." | " .
+ "
"._('Nom base de données')." | " .
"
| " .
"
| " .
"";
@@ -250,9 +265,11 @@ if ($sa == 'list')
{
$mod = Database::fetch_array($Res, $i);
$class = ($i % 2 == 0) ? "odd" : "even";
+ $str_name=domaine.'mod'.$mod['mod_id'];
printf('
' .
'| %d | %s | ' .
' %s | ' .
+ ''.$str_name.' | '.
' ' .
HtmlInput::anchor('Effacer', '?action=modele_mgt&sa=del&m=' . $mod['mod_id']," onclick = \"modele_drop('{$mod['mod_id']}') \"") . ' | ' .
'' .
@@ -297,11 +314,11 @@ if ($sa == 'list')
-
- '
-