phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4352 - in phpcompta/trunk: html include include/templat


From: phpcompta-dev
Subject: [Phpcompta-dev] r4352 - in phpcompta/trunk: html include include/template
Date: Tue, 15 Nov 2011 10:51:15 +0100 (CET)

Author: danydb
Date: 2011-11-15 10:51:13 +0100 (Tue, 15 Nov 2011)
New Revision: 4352

Added:
   phpcompta/trunk/include/ajax_add_menu.php
   phpcompta/trunk/include/ajax_get_menu_detail.php
   phpcompta/trunk/include/ajax_get_profile.php
   phpcompta/trunk/include/ajax_mod_document.php
   phpcompta/trunk/include/ajax_mod_periode.php
   phpcompta/trunk/include/ajax_mod_predf_op.php
   phpcompta/trunk/include/ajax_plugin_detail.php
   phpcompta/trunk/include/ajax_save_predf_op.php
Removed:
   phpcompta/trunk/include/detail_menu.inc.php
   phpcompta/trunk/include/modify_mod_document.inc.php
   phpcompta/trunk/include/modify_periode.inc.php
   phpcompta/trunk/include/modify_predf_op.php
   phpcompta/trunk/include/save_predf_op.php
   phpcompta/trunk/include/show_profile.inc.php
   phpcompta/trunk/include/template/add_menu.php
   phpcompta/trunk/include/template/plugin_detail.php
Modified:
   phpcompta/trunk/html/ajax_misc.php
Log:
450 Code cleaning ajax_misc rename files for ajax

Modified: phpcompta/trunk/html/ajax_misc.php
===================================================================
--- phpcompta/trunk/html/ajax_misc.php  2011-11-14 20:35:43 UTC (rev 4351)
+++ phpcompta/trunk/html/ajax_misc.php  2011-11-15 09:51:13 UTC (rev 4352)
@@ -466,19 +466,19 @@
 EOF;
                break;
        case 'mod_doc':
-               require_once('modify_mod_document.inc.php');
+               require_once('ajax_mod_document.php');
                break;
        case 'input_per':
-               require_once('modify_periode.inc.php');
+               require_once('ajax_mod_periode.php');
                break;
        case 'save_per':
-               require_once('modify_periode.inc.php');
+               require_once('ajax_mod_periode.php');
                break;
        case 'mod_predf':
-               require_once('modify_predf_op.php');
+               require_once('ajax_mod_predf_op.php');
                break;
        case 'save_predf':
-               require_once('save_predf_op.php');
+               require_once('ajax_save_predf_op.php');
                break;
        case 'search_op':
                /* put_global(array
@@ -488,13 +488,13 @@
                require_once 'search.inc.php';
                break;
        case 'display_profile':
-               require_once("show_profile.inc.php");
+               require_once("ajax_get_profile.php");
                break;
        case 'det_menu':
-               require_once("detail_menu.inc.php");
+               require_once("ajax_detail_menu.php");
                break;
        case 'add_menu':
-               require_once 'template/add_menu.php';
+               require_once 'ajax_add_menu.php';
                break;
        case 'add_plugin':
                $me_code=new IText('me_code');
@@ -503,7 +503,7 @@
                $me_description=new IText("me_description");
                $me_parameter=new IText("me_parameter");
                $new=true;
-               require_once 'template/plugin_detail.php';
+               require_once 'ajax_plugin_detail.php';
                break;
        case 'mod_plugin':
                $m=$cn->get_array("select 
me_code,me_file,me_menu,me_description,me_parameter
@@ -520,7 +520,7 @@
                $me_description=new IText("me_description",$m[0] 
['me_description']);
                $me_parameter=new IText("me_parameter",$m[0] ['me_parameter']);
                $new=false;
-               require_once 'template/plugin_detail.php';
+               require_once 'ajax_plugin_detail.php';
                break;
         case 'saldo':
                 require_once 'ajax_bank_saldo.php';

Copied: phpcompta/trunk/include/ajax_add_menu.php (from rev 4351, 
phpcompta/trunk/include/template/add_menu.php)
===================================================================
--- phpcompta/trunk/include/ajax_add_menu.php                           (rev 0)
+++ phpcompta/trunk/include/ajax_add_menu.php   2011-11-15 09:51:13 UTC (rev 
4352)
@@ -0,0 +1,86 @@
+<?php
+
+/*
+ *   This file is part of PhpCompta.
+ *
+ *   PhpCompta is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *   (at your option) any later version.
+ *
+ *   PhpCompta is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with PhpCompta; if not, write to the Free Software
+ *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+/* $Revision$ */
+
+// Copyright Author Dany De Bontridder address@hidden
+
+/**
+ * @file
+ * @brief show the form to add a menu
+ */
+$ame_code_dep=$cn->make_array("
+       select me_code,me_code||' '||me_menu||' '||coalesce(me_description,'') 
from
+       menu_ref
+       where
+       me_file is null and me_javascript is null and me_type<>'PR'
+               UNION ALL
+               select me_code,me_code||' '||me_menu||' 
'||coalesce(me_description,'') from menu_ref
+       where
+               me_code='EXTENSION'
+       order by 1
+       ",1);
+$ame_code=$cn->make_array("
+       select me_code,me_code||' '||me_menu||' '||coalesce(me_description,'') 
from
+       menu_ref
+       order by 1
+       ");
+$p_order=new INum("p_order","10");
+$atype=$cn->make_array("select pm_type,pm_desc from profile_menu_type order by 
1");
+
+$me_code=new ISelect('me_code');
+$me_code->value=$ame_code;
+
+$me_code_dep=new ISelect('me_code_dep');
+$me_code_dep->value=$ame_code_dep;
+
+$p_type=new ISelect('p_type');
+$p_type->value=$atype;
+$pm_default=new ICheckBox('pm_default');
+echo HtmlInput::title_box("Nouveau menu", $ctl);
+?>
+<form method="POST" onsubmit="return confirm('Vous confirmez ?')">
+       <?=HtmlInput::hidden('p_id',$p_id)?>
+<table>
+<tr>
+       <td>Code</td>
+       <td><?=$me_code->input()?></td>
+</tr>
+<tr>
+       <td>Dépendant de </td>
+       <td><?=$me_code_dep->input()?></td>
+</tr>
+
+<tr>
+       <td>Ordre d'apparition</td>
+       <td><?=$p_order->input()?></td>
+</tr>
+<tr>
+       <td>Menu par défaut</td>
+       <td><?=$pm_default->input()?></td>
+</tr>
+<tr>
+       <td>Type de menu</td>
+       <td><?=$p_type->input()?></td>
+</tr>
+</table>
+<?
+echo HtmlInput::submit('add_menu',"Valider");
+echo '</form>';
+?>

Copied: phpcompta/trunk/include/ajax_get_menu_detail.php (from rev 4351, 
phpcompta/trunk/include/detail_menu.inc.php)
===================================================================
--- phpcompta/trunk/include/ajax_get_menu_detail.php                            
(rev 0)
+++ phpcompta/trunk/include/ajax_get_menu_detail.php    2011-11-15 09:51:13 UTC 
(rev 4352)
@@ -0,0 +1,103 @@
+<?php
+
+/*
+ *   This file is part of PhpCompta.
+ *
+ *   PhpCompta is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *   (at your option) any later version.
+ *
+ *   PhpCompta is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with PhpCompta; if not, write to the Free Software
+ *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+/* $Revision$ */
+
+// Copyright Author Dany De Bontridder address@hidden
+
+/**
+ * @file
+ * @brief
+ *
+ */
+// retrieve data
+$profile=$cn->get_value("select p_id from profile_menu where 
pm_id=$1",array($pm_id));
+$a_value=$cn->make_array("select me_code,me_code||' '||me_menu||' 
'||coalesce(me_description,'') from menu_ref",0);
+$a_value_null=$cn->make_array("select me_code,me_code||' '||me_menu||' 
'||coalesce(me_description,'') from menu_ref
+       where
+       me_code in (select me_code from profile_menu where p_id=$profile and 
p_type_display<>'P' and pm_id <> $pm_id)
+               UNION ALL
+               select me_code,me_code||' '||me_menu||' 
'||coalesce(me_description,'') from menu_ref
+       where
+               me_code='EXTENSION'",1);
+$a_type=$cn->make_array("select pm_type,pm_desc from profile_menu_type",1);
+
+$array=$cn->get_array("select 
p_id,pm_id,me_code,me_code_dep,p_order,p_type_display,pm_default
+       from profile_menu
+       where pm_id=$1",array($pm_id));
+if ( empty($array)) {
+               alert("Code invalide");
+               exit();
+}
+
+
+echo HtmlInput::title_box($array[0]['me_code'],'divdm'.$pm_id);
+
+$me_code=new ISelect('me_code');
+$me_code->value=$a_value;
+$me_code->selected=$array[0]['me_code'];
+
+$me_code_dep=new ISelect('me_code_dep');
+$me_code_dep->value=$a_value_null;
+$me_code_dep->selected=$array[0]['me_code_dep'];
+
+$p_order=new Inum('p_order',$array[0]['p_order']);
+$pm_default=new ICheckBox('pm_default','1');
+$pm_default->set_check($array[0]['pm_default']);
+
+?>
+<form method="POST" onsubmit="return confirm('Vous confirmez ?')">
+       <?=HtmlInput::hidden('pm_id',$array[0]['pm_id'])?>
+       <?=HtmlInput::hidden('p_id',$array[0]['p_id'])?>
+<table>
+<tr>
+       <td>Code</td>
+       <td><?=$me_code->input()?></td>
+</tr>
+<?
+if ($array[0]['p_type_display']!='P'):
+?>
+<tr>
+       <td>Dépendant de </td>
+       <td><?=$me_code_dep->input()?></td>
+</tr>
+
+<tr>
+       <td>Ordre d'apparition</td>
+       <td><?=$p_order->input()?></td>
+</tr>
+<tr>
+       <td>Menu par défaut</td>
+       <td><?=$pm_default->input()?></td>
+</tr>
+<? endif;?>
+</table>
+       <p>
+Cochez cette case si vous souhaitez effacer ce menu ainsi que ceux qui en 
dépendent
+<?
+$delete=new ICheckBox('delete',"1");
+echo $delete->input();
+?>
+</p>
+<?
+echo HtmlInput::submit('mod',"Valider");
+echo '</form>';
+
+
+?>

Copied: phpcompta/trunk/include/ajax_get_profile.php (from rev 4351, 
phpcompta/trunk/include/show_profile.inc.php)
===================================================================
--- phpcompta/trunk/include/ajax_get_profile.php                                
(rev 0)
+++ phpcompta/trunk/include/ajax_get_profile.php        2011-11-15 09:51:13 UTC 
(rev 4352)
@@ -0,0 +1,81 @@
+<?php
+
+/*
+ *   This file is part of PhpCompta.
+ *
+ *   PhpCompta is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *   (at your option) any later version.
+ *
+ *   PhpCompta is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with PhpCompta; if not, write to the Free Software
+ *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+/* $Revision$ */
+
+// Copyright Author Dany De Bontridder address@hidden
+
+/**
+ * @file
+ * @brief show the profile detail, included from ajax_misc.php
+ * @see ajax_misc.php scripts.js profile.inc.php
+ *
+ */
+require_once 'class_profile_sql.php';
+require_once 'class_profile_menu.php';
+$profile=new Profile_sql($cn,$p_id);
+$gDossier=Dossier::id();
+$add_one=HtmlInput::button("add", "Ajout 
Menu","onclick=\"add_menu({dossier:$gDossier,p_id:$p_id})\"")
+?>
+<hr>
+<h1>Profile <?=$profile->p_name?></h1>
+
+<?
+$id=HtmlInput::hidden('p_id',$profile->p_id);
+$name=new IText("p_name",$profile->p_name);
+$desc=new IText("p_desc",$profile->p_desc);
+$with_calc=new ICheckBox("with_calc","t");
+$with_calc->set_check($profile->with_calc);
+
+$with_direct_form=new ICheckBox("with_direct_form","t");
+$with_direct_form->set_check($profile->with_direct_form);
+
+echo '<form method="POST" onsubmit="return confirm (\'vous confirmez\')">';
+echo HtmlInput::hidden('p_id',$profile->p_id);
+require_once("template/profile.php");
+echo HtmlInput::submit("save_name","Modifier");
+echo '</form>';
+
+echo '<form method="POST" onsubmit="return confirm (\'vous confirmez\')">';
+
+echo '
+Vous pouvez aussi copier ce profil et puis le corriger';
+
+echo HtmlInput::hidden('p_id',$profile->p_id);
+echo HtmlInput::submit("clone","Copier");
+echo '</form>';
+
+echo '<form method="POST" onsubmit="return confirm (\'vous confirmez\')">';
+
+echo '
+Effacer ce profil';
+
+echo HtmlInput::hidden('p_id',$profile->p_id);
+echo HtmlInput::submit("delete_profil","Effacer ce profil");
+echo '</form>';
+//Menu / Module /plugin in this profile
+echo "<h1> Détail du profile</h1>";
+echo "<h2>Menu</h2>";
+echo $add_one;
+$profile_menu=new Profile_Menu($cn);
+$profile_menu->listing_profile($p_id);
+echo "<h2>Impression</h2>";
+$profile_menu->printing($p_id);
+?>
+<?=$add_one?>

Copied: phpcompta/trunk/include/ajax_mod_document.php (from rev 4351, 
phpcompta/trunk/include/modify_mod_document.inc.php)
===================================================================
--- phpcompta/trunk/include/ajax_mod_document.php                               
(rev 0)
+++ phpcompta/trunk/include/ajax_mod_document.php       2011-11-15 09:51:13 UTC 
(rev 4352)
@@ -0,0 +1,52 @@
+<?php
+/*
+ *   This file is part of PhpCompta.
+ *
+ *   PhpCompta is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *   (at your option) any later version.
+ *
+ *   PhpCompta is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with PhpCompta; if not, write to the Free Software
+ *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+/* $Revision$ */
+
+// Copyright Author Dany De Bontridder address@hidden
+
+/*!\file
+ * \brief show the detail of a document and let you modify it
+ */
+require_once('class_database.php');
+require_once('class_dossier.php');
+require_once("class_document_modele.php");
+
+  /* 1. Check security */
+$cn=new Database(dossier::id());
+  /* 2. find the document */
+$doc=new Document_Modele($cn,$id);
+
+  /* 3. display it */
+$doc->load();
+ob_start();
+require('template/modele_document.php');
+
+$html=ob_get_contents();
+ob_clean();
+$html=escape_xml($html);
+header('Content-type: text/xml; charset=UTF-8');
+
+echo <<<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<data>
+<ctl>mod_doc</ctl>
+<code>$html</code>
+</data>
+EOF;
+exit();

Copied: phpcompta/trunk/include/ajax_mod_periode.php (from rev 4351, 
phpcompta/trunk/include/modify_periode.inc.php)
===================================================================
--- phpcompta/trunk/include/ajax_mod_periode.php                                
(rev 0)
+++ phpcompta/trunk/include/ajax_mod_periode.php        2011-11-15 09:51:13 UTC 
(rev 4352)
@@ -0,0 +1,104 @@
+<?php
+
+/*
+ *   This file is part of PhpCompta.
+ *
+ *   PhpCompta is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *   (at your option) any later version.
+ *
+ *   PhpCompta is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with PhpCompta; if not, write to the Free Software
+ *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+/* $Revision$ */
+
+// Copyright Author Dany De Bontridder address@hidden
+require_once('class_periode.php');
+
+/* !\file
+ * \brief display or save a periode
+ * variable received $op, $cn $user
+ */
+$err = 0;
+$html = '';
+/* we check the security */
+switch ($op)
+{
+    case 'input_per':
+        $per = new Periode($cn, $_GET['p_id']);
+        $per->load();
+        $limit = $per->get_date_limit($_GET['p_id']);
+
+        $p_start = new IDate('p_start');
+        $p_start->value = $limit['p_start'];
+        $p_end = new IDate('p_end');
+        $p_end->value = $limit['p_end'];
+        $p_exercice = new INum('p_exercice');
+        $p_exercice->value = $per->p_exercice;
+
+        $html = '';
+        $html.=HtmlInput::anchor_close('mod_periode');
+        $html.=h2info('Modification période');
+        $html.='<p> Modifier les dates de début et fin de période</p>';
+        $html.='<p class="notice">Cela pourrait avoir un impact sur les 
opérations déjà existantes</p>';
+        $html.='<form method="post" onsubmit="return save_periode(this)">';
+        $html.=dossier::hidden();
+        $html.='<table>';
+
+        $html.=tr(td(' Début période : ') . td($p_start->input()));
+        $html.=tr(td(' Fin période : ') . td($p_end->input()));
+        $html.=tr(td(' Exercice : ') . td($p_exercice->input()));
+        $html.='</table>';
+        $html.=HtmlInput::submit('sauver', 'sauver');
+        $html.=HtmlInput::button('close', 'Fermer', 
'onclick="removeDiv(\'mod_periode\')"');
+        $html.=HtmlInput::hidden('p_id', $_GET['p_id']);
+        $html.='</form>';
+        break;
+    case 'save_per':
+        $per = new Periode($cn, $_POST['p_id']);
+        $per->load();
+        if (isDate($_POST['p_start']) == null ||
+                isDate($_POST['p_end'] == null) ||
+                isNumber($_POST['p_exercice']) == 0 ||
+                $_POST['p_exercice'] > 2099 ||
+                $_POST['p_exercice'] < 2000)
+        {
+            $html = '';
+            $html.=HtmlInput::anchor_close('mod_periode');
+            $html.='<h2 class="info"> Modifier les dates de début et fin de 
période</h2>';
+            $html.="<div class=\"error\">Erreur date invalide</div>";
+
+            $html.=HtmlInput::button('close', 'Fermer', 
'onclick="removeDiv(\'mod_periode\')"');
+        }
+        else
+        {
+            $sql = "update parm_periode set 
p_start=to_date($1,'DD.MM.YYYY'),p_end=to_date($2,'DD.MM.YYYY'),p_exercice=$3 
where p_id=$4";
+            try
+            {
+                $cn->exec_sql($sql, array($_POST['p_start'], $_POST['p_end'], 
$_POST['p_exercice'], $_POST['p_id']));
+                $html = '<h2 class="info"> Modifier les dates de début et fin 
de période</h2>';
+                $html.='<h2 class="notice"> Sauvé </h2>';
+
+                $html.=HtmlInput::button('close', 'Fermer', 'onclick=" 
refresh_window();"');
+            }
+            catch (Exception $e)
+            {
+                $html = alert($e->getTrace(), true);
+            }
+        }
+        break;
+}
+
+$html = escape_xml($html);
+header('Content-type: text/xml; charset=UTF-8');
+echo '<?xml version="1.0" encoding="UTF-8"?>';
+echo '<xml>';
+echo '<data>' . $html . '</data>';
+echo '</xml>';

Copied: phpcompta/trunk/include/ajax_mod_predf_op.php (from rev 4351, 
phpcompta/trunk/include/modify_predf_op.php)
===================================================================
--- phpcompta/trunk/include/ajax_mod_predf_op.php                               
(rev 0)
+++ phpcompta/trunk/include/ajax_mod_predf_op.php       2011-11-15 09:51:13 UTC 
(rev 4352)
@@ -0,0 +1,54 @@
+<?php
+
+/*
+ *   This file is part of PhpCompta.
+ *
+ *   PhpCompta is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *   (at your option) any later version.
+ *
+ *   PhpCompta is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with PhpCompta; if not, write to the Free Software
+ *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+/* $Revision$ */
+
+// Copyright Author Dany De Bontridder address@hidden
+
+/* !\file
+ * \brief display a form to change the name of a predefined operation
+ */
+ob_start();
+echo HtmlInput::anchor_close('mod_predf_op');
+echo h2info('Modification du nom');
+echo '
+    <form method="get" onsubmit="save_predf_op(this);return false;">';
+$name = new IText('predf_name');
+$name->value = $cn->get_value('select od_name from op_predef where od_id=$1', 
array($_GET['id']));
+$name->size = 60;
+echo "Nom =" . $name->input();
+echo dossier::hidden() . HtmlInput::hidden('od_id', $_GET['id']);
+echo "<hr>";
+echo HtmlInput::submit('save', 'Sauve');
+echo HtmlInput::button('close', 'Annuler', 
'onclick="removeDiv(\'mod_predf_op\')"');
+echo '</form>';
+
+
+$html = ob_get_contents();
+ob_clean();
+$html = escape_xml($html);
+
+header('Content-type: text/xml; charset=UTF-8');
+echo <<<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<data>
+<ctl>mod_predf_op</ctl>
+<code>$html</code>
+</data>
+EOF;

Copied: phpcompta/trunk/include/ajax_plugin_detail.php (from rev 4351, 
phpcompta/trunk/include/template/plugin_detail.php)
===================================================================
--- phpcompta/trunk/include/ajax_plugin_detail.php                              
(rev 0)
+++ phpcompta/trunk/include/ajax_plugin_detail.php      2011-11-15 09:51:13 UTC 
(rev 4352)
@@ -0,0 +1,62 @@
+<?php
+
+/*
+ *   This file is part of PhpCompta.
+ *
+ *   PhpCompta is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *   (at your option) any later version.
+ *
+ *   PhpCompta is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with PhpCompta; if not, write to the Free Software
+ *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+/* $Revision$ */
+
+// Copyright Author Dany De Bontridder address@hidden
+
+/**
+ * @file
+ * @brief add, modify or delete plugin
+ *
+ */
+$msg=($new==1)?"Nouvelle extension":"Modification ".$me_menu->value;
+echo HtmlInput::title_box($msg, $ctl);
+?>
+<form method="POST" onsubmit="return confirm('Vous confirmez')">
+<table>
+       <tr>
+               <TD>Label</td>
+               <td><?=$me_menu->input();?></td>
+       </tr>
+       <tr>
+               <TD>Code</td>
+               <td><?=$me_code->input();?></td>
+       </tr>
+       <tr>
+               <TD>Description</td>
+               <td><?=$me_description->input();?></td>
+       </tr>
+       <tr>
+               <TD>Fichier</td>
+               <td><?=$me_file->input();?></td>
+       </tr>
+</table>
+       <?
+       if ($new ==1 )
+       {
+               echo HtmlInput::submit("save_plugin","Ajouter ce plugin");
+       } else {
+               $delete=new ICheckBox('delete_pl');
+               echo "<p>Voulez-vous effacer ce plugin ? 
".$delete->input()."</p>";
+               echo HtmlInput::submit("mod_plugin","Modifier ce plugin");
+
+       }
+       ?>
+</form>
\ No newline at end of file

Copied: phpcompta/trunk/include/ajax_save_predf_op.php (from rev 4351, 
phpcompta/trunk/include/save_predf_op.php)
===================================================================
--- phpcompta/trunk/include/ajax_save_predf_op.php                              
(rev 0)
+++ phpcompta/trunk/include/ajax_save_predf_op.php      2011-11-15 09:51:13 UTC 
(rev 4352)
@@ -0,0 +1,33 @@
+<?php
+/*
+ *   This file is part of PhpCompta.
+ *
+ *   PhpCompta is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *   (at your option) any later version.
+ *
+ *   PhpCompta is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with PhpCompta; if not, write to the Free Software
+ *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+/* $Revision$ */
+
+// Copyright Author Dany De Bontridder address@hidden
+
+/*!\file
+ * \brief save the new predefined operation 
+ * included from ajax_misc
+ */
+
+if ( trim($_GET['predf_name']) != '')
+  {
+    $cn->exec_sql('update op_predef set od_name =$1 where od_id=$2',
+                 array($_GET['predf_name'],$_GET['od_id']));
+    $cn->commit();
+  }

Deleted: phpcompta/trunk/include/detail_menu.inc.php
===================================================================
--- phpcompta/trunk/include/detail_menu.inc.php 2011-11-14 20:35:43 UTC (rev 
4351)
+++ phpcompta/trunk/include/detail_menu.inc.php 2011-11-15 09:51:13 UTC (rev 
4352)
@@ -1,103 +0,0 @@
-<?php
-
-/*
- *   This file is part of PhpCompta.
- *
- *   PhpCompta is free software; you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 2 of the License, or
- *   (at your option) any later version.
- *
- *   PhpCompta is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with PhpCompta; if not, write to the Free Software
- *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-/* $Revision$ */
-
-// Copyright Author Dany De Bontridder address@hidden
-
-/**
- * @file
- * @brief
- *
- */
-// retrieve data
-$profile=$cn->get_value("select p_id from profile_menu where 
pm_id=$1",array($pm_id));
-$a_value=$cn->make_array("select me_code,me_code||' '||me_menu||' 
'||coalesce(me_description,'') from menu_ref",0);
-$a_value_null=$cn->make_array("select me_code,me_code||' '||me_menu||' 
'||coalesce(me_description,'') from menu_ref
-       where
-       me_code in (select me_code from profile_menu where p_id=$profile and 
p_type_display<>'P' and pm_id <> $pm_id)
-               UNION ALL
-               select me_code,me_code||' '||me_menu||' 
'||coalesce(me_description,'') from menu_ref
-       where
-               me_code='EXTENSION'",1);
-$a_type=$cn->make_array("select pm_type,pm_desc from profile_menu_type",1);
-
-$array=$cn->get_array("select 
p_id,pm_id,me_code,me_code_dep,p_order,p_type_display,pm_default
-       from profile_menu
-       where pm_id=$1",array($pm_id));
-if ( empty($array)) {
-               alert("Code invalide");
-               exit();
-}
-
-
-echo HtmlInput::title_box($array[0]['me_code'],'divdm'.$pm_id);
-
-$me_code=new ISelect('me_code');
-$me_code->value=$a_value;
-$me_code->selected=$array[0]['me_code'];
-
-$me_code_dep=new ISelect('me_code_dep');
-$me_code_dep->value=$a_value_null;
-$me_code_dep->selected=$array[0]['me_code_dep'];
-
-$p_order=new Inum('p_order',$array[0]['p_order']);
-$pm_default=new ICheckBox('pm_default','1');
-$pm_default->set_check($array[0]['pm_default']);
-
-?>
-<form method="POST" onsubmit="return confirm('Vous confirmez ?')">
-       <?=HtmlInput::hidden('pm_id',$array[0]['pm_id'])?>
-       <?=HtmlInput::hidden('p_id',$array[0]['p_id'])?>
-<table>
-<tr>
-       <td>Code</td>
-       <td><?=$me_code->input()?></td>
-</tr>
-<?
-if ($array[0]['p_type_display']!='P'):
-?>
-<tr>
-       <td>Dépendant de </td>
-       <td><?=$me_code_dep->input()?></td>
-</tr>
-
-<tr>
-       <td>Ordre d'apparition</td>
-       <td><?=$p_order->input()?></td>
-</tr>
-<tr>
-       <td>Menu par défaut</td>
-       <td><?=$pm_default->input()?></td>
-</tr>
-<? endif;?>
-</table>
-       <p>
-Cochez cette case si vous souhaitez effacer ce menu ainsi que ceux qui en 
dépendent
-<?
-$delete=new ICheckBox('delete',"1");
-echo $delete->input();
-?>
-</p>
-<?
-echo HtmlInput::submit('mod',"Valider");
-echo '</form>';
-
-
-?>

Deleted: phpcompta/trunk/include/modify_mod_document.inc.php
===================================================================
--- phpcompta/trunk/include/modify_mod_document.inc.php 2011-11-14 20:35:43 UTC 
(rev 4351)
+++ phpcompta/trunk/include/modify_mod_document.inc.php 2011-11-15 09:51:13 UTC 
(rev 4352)
@@ -1,52 +0,0 @@
-<?php
-/*
- *   This file is part of PhpCompta.
- *
- *   PhpCompta is free software; you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 2 of the License, or
- *   (at your option) any later version.
- *
- *   PhpCompta is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with PhpCompta; if not, write to the Free Software
- *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-*/
-/* $Revision$ */
-
-// Copyright Author Dany De Bontridder address@hidden
-
-/*!\file
- * \brief show the detail of a document and let you modify it
- */
-require_once('class_database.php');
-require_once('class_dossier.php');
-require_once("class_document_modele.php");
-
-  /* 1. Check security */
-$cn=new Database(dossier::id());
-  /* 2. find the document */
-$doc=new Document_Modele($cn,$id);
-
-  /* 3. display it */
-$doc->load();
-ob_start();
-require('template/modele_document.php');
-
-$html=ob_get_contents();
-ob_clean();
-$html=escape_xml($html);
-header('Content-type: text/xml; charset=UTF-8');
-
-echo <<<EOF
-<?xml version="1.0" encoding="UTF-8"?>
-<data>
-<ctl>mod_doc</ctl>
-<code>$html</code>
-</data>
-EOF;
-exit();

Deleted: phpcompta/trunk/include/modify_periode.inc.php
===================================================================
--- phpcompta/trunk/include/modify_periode.inc.php      2011-11-14 20:35:43 UTC 
(rev 4351)
+++ phpcompta/trunk/include/modify_periode.inc.php      2011-11-15 09:51:13 UTC 
(rev 4352)
@@ -1,104 +0,0 @@
-<?php
-
-/*
- *   This file is part of PhpCompta.
- *
- *   PhpCompta is free software; you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 2 of the License, or
- *   (at your option) any later version.
- *
- *   PhpCompta is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with PhpCompta; if not, write to the Free Software
- *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-/* $Revision$ */
-
-// Copyright Author Dany De Bontridder address@hidden
-require_once('class_periode.php');
-
-/* !\file
- * \brief display or save a periode
- * variable received $op, $cn $user
- */
-$err = 0;
-$html = '';
-/* we check the security */
-switch ($op)
-{
-    case 'input_per':
-        $per = new Periode($cn, $_GET['p_id']);
-        $per->load();
-        $limit = $per->get_date_limit($_GET['p_id']);
-
-        $p_start = new IDate('p_start');
-        $p_start->value = $limit['p_start'];
-        $p_end = new IDate('p_end');
-        $p_end->value = $limit['p_end'];
-        $p_exercice = new INum('p_exercice');
-        $p_exercice->value = $per->p_exercice;
-
-        $html = '';
-        $html.=HtmlInput::anchor_close('mod_periode');
-        $html.=h2info('Modification période');
-        $html.='<p> Modifier les dates de début et fin de période</p>';
-        $html.='<p class="notice">Cela pourrait avoir un impact sur les 
opérations déjà existantes</p>';
-        $html.='<form method="post" onsubmit="return save_periode(this)">';
-        $html.=dossier::hidden();
-        $html.='<table>';
-
-        $html.=tr(td(' Début période : ') . td($p_start->input()));
-        $html.=tr(td(' Fin période : ') . td($p_end->input()));
-        $html.=tr(td(' Exercice : ') . td($p_exercice->input()));
-        $html.='</table>';
-        $html.=HtmlInput::submit('sauver', 'sauver');
-        $html.=HtmlInput::button('close', 'Fermer', 
'onclick="removeDiv(\'mod_periode\')"');
-        $html.=HtmlInput::hidden('p_id', $_GET['p_id']);
-        $html.='</form>';
-        break;
-    case 'save_per':
-        $per = new Periode($cn, $_POST['p_id']);
-        $per->load();
-        if (isDate($_POST['p_start']) == null ||
-                isDate($_POST['p_end'] == null) ||
-                isNumber($_POST['p_exercice']) == 0 ||
-                $_POST['p_exercice'] > 2099 ||
-                $_POST['p_exercice'] < 2000)
-        {
-            $html = '';
-            $html.=HtmlInput::anchor_close('mod_periode');
-            $html.='<h2 class="info"> Modifier les dates de début et fin de 
période</h2>';
-            $html.="<div class=\"error\">Erreur date invalide</div>";
-
-            $html.=HtmlInput::button('close', 'Fermer', 
'onclick="removeDiv(\'mod_periode\')"');
-        }
-        else
-        {
-            $sql = "update parm_periode set 
p_start=to_date($1,'DD.MM.YYYY'),p_end=to_date($2,'DD.MM.YYYY'),p_exercice=$3 
where p_id=$4";
-            try
-            {
-                $cn->exec_sql($sql, array($_POST['p_start'], $_POST['p_end'], 
$_POST['p_exercice'], $_POST['p_id']));
-                $html = '<h2 class="info"> Modifier les dates de début et fin 
de période</h2>';
-                $html.='<h2 class="notice"> Sauvé </h2>';
-
-                $html.=HtmlInput::button('close', 'Fermer', 'onclick=" 
refresh_window();"');
-            }
-            catch (Exception $e)
-            {
-                $html = alert($e->getTrace(), true);
-            }
-        }
-        break;
-}
-
-$html = escape_xml($html);
-header('Content-type: text/xml; charset=UTF-8');
-echo '<?xml version="1.0" encoding="UTF-8"?>';
-echo '<xml>';
-echo '<data>' . $html . '</data>';
-echo '</xml>';

Deleted: phpcompta/trunk/include/modify_predf_op.php
===================================================================
--- phpcompta/trunk/include/modify_predf_op.php 2011-11-14 20:35:43 UTC (rev 
4351)
+++ phpcompta/trunk/include/modify_predf_op.php 2011-11-15 09:51:13 UTC (rev 
4352)
@@ -1,54 +0,0 @@
-<?php
-
-/*
- *   This file is part of PhpCompta.
- *
- *   PhpCompta is free software; you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 2 of the License, or
- *   (at your option) any later version.
- *
- *   PhpCompta is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with PhpCompta; if not, write to the Free Software
- *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-/* $Revision$ */
-
-// Copyright Author Dany De Bontridder address@hidden
-
-/* !\file
- * \brief display a form to change the name of a predefined operation
- */
-ob_start();
-echo HtmlInput::anchor_close('mod_predf_op');
-echo h2info('Modification du nom');
-echo '
-    <form method="get" onsubmit="save_predf_op(this);return false;">';
-$name = new IText('predf_name');
-$name->value = $cn->get_value('select od_name from op_predef where od_id=$1', 
array($_GET['id']));
-$name->size = 60;
-echo "Nom =" . $name->input();
-echo dossier::hidden() . HtmlInput::hidden('od_id', $_GET['id']);
-echo "<hr>";
-echo HtmlInput::submit('save', 'Sauve');
-echo HtmlInput::button('close', 'Annuler', 
'onclick="removeDiv(\'mod_predf_op\')"');
-echo '</form>';
-
-
-$html = ob_get_contents();
-ob_clean();
-$html = escape_xml($html);
-
-header('Content-type: text/xml; charset=UTF-8');
-echo <<<EOF
-<?xml version="1.0" encoding="UTF-8"?>
-<data>
-<ctl>mod_predf_op</ctl>
-<code>$html</code>
-</data>
-EOF;

Deleted: phpcompta/trunk/include/save_predf_op.php
===================================================================
--- phpcompta/trunk/include/save_predf_op.php   2011-11-14 20:35:43 UTC (rev 
4351)
+++ phpcompta/trunk/include/save_predf_op.php   2011-11-15 09:51:13 UTC (rev 
4352)
@@ -1,33 +0,0 @@
-<?php
-/*
- *   This file is part of PhpCompta.
- *
- *   PhpCompta is free software; you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 2 of the License, or
- *   (at your option) any later version.
- *
- *   PhpCompta is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with PhpCompta; if not, write to the Free Software
- *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-*/
-/* $Revision$ */
-
-// Copyright Author Dany De Bontridder address@hidden
-
-/*!\file
- * \brief save the new predefined operation 
- * included from ajax_misc
- */
-
-if ( trim($_GET['predf_name']) != '')
-  {
-    $cn->exec_sql('update op_predef set od_name =$1 where od_id=$2',
-                 array($_GET['predf_name'],$_GET['od_id']));
-    $cn->commit();
-  }

Deleted: phpcompta/trunk/include/show_profile.inc.php
===================================================================
--- phpcompta/trunk/include/show_profile.inc.php        2011-11-14 20:35:43 UTC 
(rev 4351)
+++ phpcompta/trunk/include/show_profile.inc.php        2011-11-15 09:51:13 UTC 
(rev 4352)
@@ -1,81 +0,0 @@
-<?php
-
-/*
- *   This file is part of PhpCompta.
- *
- *   PhpCompta is free software; you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 2 of the License, or
- *   (at your option) any later version.
- *
- *   PhpCompta is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with PhpCompta; if not, write to the Free Software
- *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-/* $Revision$ */
-
-// Copyright Author Dany De Bontridder address@hidden
-
-/**
- * @file
- * @brief show the profile detail, included from ajax_misc.php
- * @see ajax_misc.php scripts.js profile.inc.php
- *
- */
-require_once 'class_profile_sql.php';
-require_once 'class_profile_menu.php';
-$profile=new Profile_sql($cn,$p_id);
-$gDossier=Dossier::id();
-$add_one=HtmlInput::button("add", "Ajout 
Menu","onclick=\"add_menu({dossier:$gDossier,p_id:$p_id})\"")
-?>
-<hr>
-<h1>Profile <?=$profile->p_name?></h1>
-
-<?
-$id=HtmlInput::hidden('p_id',$profile->p_id);
-$name=new IText("p_name",$profile->p_name);
-$desc=new IText("p_desc",$profile->p_desc);
-$with_calc=new ICheckBox("with_calc","t");
-$with_calc->set_check($profile->with_calc);
-
-$with_direct_form=new ICheckBox("with_direct_form","t");
-$with_direct_form->set_check($profile->with_direct_form);
-
-echo '<form method="POST" onsubmit="return confirm (\'vous confirmez\')">';
-echo HtmlInput::hidden('p_id',$profile->p_id);
-require_once("template/profile.php");
-echo HtmlInput::submit("save_name","Modifier");
-echo '</form>';
-
-echo '<form method="POST" onsubmit="return confirm (\'vous confirmez\')">';
-
-echo '
-Vous pouvez aussi copier ce profil et puis le corriger';
-
-echo HtmlInput::hidden('p_id',$profile->p_id);
-echo HtmlInput::submit("clone","Copier");
-echo '</form>';
-
-echo '<form method="POST" onsubmit="return confirm (\'vous confirmez\')">';
-
-echo '
-Effacer ce profil';
-
-echo HtmlInput::hidden('p_id',$profile->p_id);
-echo HtmlInput::submit("delete_profil","Effacer ce profil");
-echo '</form>';
-//Menu / Module /plugin in this profile
-echo "<h1> Détail du profile</h1>";
-echo "<h2>Menu</h2>";
-echo $add_one;
-$profile_menu=new Profile_Menu($cn);
-$profile_menu->listing_profile($p_id);
-echo "<h2>Impression</h2>";
-$profile_menu->printing($p_id);
-?>
-<?=$add_one?>

Deleted: phpcompta/trunk/include/template/add_menu.php
===================================================================
--- phpcompta/trunk/include/template/add_menu.php       2011-11-14 20:35:43 UTC 
(rev 4351)
+++ phpcompta/trunk/include/template/add_menu.php       2011-11-15 09:51:13 UTC 
(rev 4352)
@@ -1,86 +0,0 @@
-<?php
-
-/*
- *   This file is part of PhpCompta.
- *
- *   PhpCompta is free software; you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 2 of the License, or
- *   (at your option) any later version.
- *
- *   PhpCompta is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with PhpCompta; if not, write to the Free Software
- *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-/* $Revision$ */
-
-// Copyright Author Dany De Bontridder address@hidden
-
-/**
- * @file
- * @brief show the form to add a menu
- */
-$ame_code_dep=$cn->make_array("
-       select me_code,me_code||' '||me_menu||' '||coalesce(me_description,'') 
from
-       menu_ref
-       where
-       me_file is null and me_javascript is null and me_type<>'PR'
-               UNION ALL
-               select me_code,me_code||' '||me_menu||' 
'||coalesce(me_description,'') from menu_ref
-       where
-               me_code='EXTENSION'
-       order by 1
-       ",1);
-$ame_code=$cn->make_array("
-       select me_code,me_code||' '||me_menu||' '||coalesce(me_description,'') 
from
-       menu_ref
-       order by 1
-       ");
-$p_order=new INum("p_order","10");
-$atype=$cn->make_array("select pm_type,pm_desc from profile_menu_type order by 
1");
-
-$me_code=new ISelect('me_code');
-$me_code->value=$ame_code;
-
-$me_code_dep=new ISelect('me_code_dep');
-$me_code_dep->value=$ame_code_dep;
-
-$p_type=new ISelect('p_type');
-$p_type->value=$atype;
-$pm_default=new ICheckBox('pm_default');
-echo HtmlInput::title_box("Nouveau menu", $ctl);
-?>
-<form method="POST" onsubmit="return confirm('Vous confirmez ?')">
-       <?=HtmlInput::hidden('p_id',$p_id)?>
-<table>
-<tr>
-       <td>Code</td>
-       <td><?=$me_code->input()?></td>
-</tr>
-<tr>
-       <td>Dépendant de </td>
-       <td><?=$me_code_dep->input()?></td>
-</tr>
-
-<tr>
-       <td>Ordre d'apparition</td>
-       <td><?=$p_order->input()?></td>
-</tr>
-<tr>
-       <td>Menu par défaut</td>
-       <td><?=$pm_default->input()?></td>
-</tr>
-<tr>
-       <td>Type de menu</td>
-       <td><?=$p_type->input()?></td>
-</tr>
-</table>
-<?
-echo HtmlInput::submit('add_menu',"Valider");
-echo '</form>';
-?>

Deleted: phpcompta/trunk/include/template/plugin_detail.php
===================================================================
--- phpcompta/trunk/include/template/plugin_detail.php  2011-11-14 20:35:43 UTC 
(rev 4351)
+++ phpcompta/trunk/include/template/plugin_detail.php  2011-11-15 09:51:13 UTC 
(rev 4352)
@@ -1,62 +0,0 @@
-<?php
-
-/*
- *   This file is part of PhpCompta.
- *
- *   PhpCompta is free software; you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 2 of the License, or
- *   (at your option) any later version.
- *
- *   PhpCompta is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with PhpCompta; if not, write to the Free Software
- *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-/* $Revision$ */
-
-// Copyright Author Dany De Bontridder address@hidden
-
-/**
- * @file
- * @brief add, modify or delete plugin
- *
- */
-$msg=($new==1)?"Nouvelle extension":"Modification ".$me_menu->value;
-echo HtmlInput::title_box($msg, $ctl);
-?>
-<form method="POST" onsubmit="return confirm('Vous confirmez')">
-<table>
-       <tr>
-               <TD>Label</td>
-               <td><?=$me_menu->input();?></td>
-       </tr>
-       <tr>
-               <TD>Code</td>
-               <td><?=$me_code->input();?></td>
-       </tr>
-       <tr>
-               <TD>Description</td>
-               <td><?=$me_description->input();?></td>
-       </tr>
-       <tr>
-               <TD>Fichier</td>
-               <td><?=$me_file->input();?></td>
-       </tr>
-</table>
-       <?
-       if ($new ==1 )
-       {
-               echo HtmlInput::submit("save_plugin","Ajouter ce plugin");
-       } else {
-               $delete=new ICheckBox('delete_pl');
-               echo "<p>Voulez-vous effacer ce plugin ? 
".$delete->input()."</p>";
-               echo HtmlInput::submit("mod_plugin","Modifier ce plugin");
-
-       }
-       ?>
-</form>
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]