[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 07/11: Task #1206 - ADMINISTRATION MODELE #12
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 07/11: Task #1206 - ADMINISTRATION MODELE #1206 : change description |
Date: |
Thu, 05 Nov 2015 10:21:11 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit a253e9ead94cbea74861766f5b805b0e3d693ac3
Author: Dany De Bontridder <address@hidden>
Date: Thu Nov 5 10:03:42 2015 +0100
Task #1206 - ADMINISTRATION MODELE
#1206 : change description
---
include/modele.inc.php | 20 +++++++++-----------
1 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/include/modele.inc.php b/include/modele.inc.php
index 1d1deab..fe6bd3d 100644
--- a/include/modele.inc.php
+++ b/include/modele.inc.php
@@ -30,24 +30,22 @@ if ( !defined ('ALLOWED')) die('Forbidden');
require_once NOALYSS_INCLUDE.'/lib/class_itext.php';
require_once NOALYSS_INCLUDE.'/lib/class_icheckbox.php';
require_once NOALYSS_INCLUDE.'/class/class_extension.php';
+require_once NOALYSS_INCLUDE.'/lib/class_html_input.php';
$sa = (isset($_REQUEST['sa'])) ? $_REQUEST['sa'] : 'list';
if (isset($_POST['upd']) &&
isset($_POST['m']))
{
- if (isset($_POST['name']) && isset($_POST['desc']))
+ $name=HtmlInput::default_value_post('name',"");
+ $desc =HtmlInput::default_value_post('desc',"");
+ $mod_id=HtmlInput::default_value_post("m", 0);
+
+ if (trim($name) != "" && $mod_id != 0 && isNumber($mod_id)==1)
{
- extract($_POST);
$cn = new Database();
- if (strlen(trim($name)) != 0
- && $cn->get_value('select count(*) from
modeledef where ' .
- 'mod_name=$1 and mod_id !=$2',
array(trim($name), $m)) == 0
- )
- {
-
- $cn->exec_sql("update modeledef set mod_name=$1, " .
- " mod_desc=$2 where mod_id=$3 ",
array(trim($name), trim($desc), $m));
- }
+ $cn->exec_sql("update modeledef set mod_name=$1, " .
+ " mod_desc=$2 where mod_id=$3 ",
+ array(trim($name), trim($desc), $mod_id));
}
$sa = "list";
}
- [Noalyss-commit] [noalyss] branch master updated (869c1c0 -> 7cd92de), Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 01/11: Task #1204 - CFGSTOCK : modification dépôt #1204 : CFGSTOCK div plus petit , correction bug, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 04/11: Task #1202 - CFGACC : apparition d'un popup bloquant #1202 : apparation popup bloquant du à IPoste::popup (obsolete), Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 05/11: Task #1201 - Période comptable n'est pas au bon endroit #1201 : période comptable mal placé, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 06/11: #1200 : nettoyage modèle, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 09/11: translate, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 02/11: Use NOALYSS_TEMPLATE instead of NOALYSS_INCLUDE."/template", Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 10/11: Show template status : not existing , nothing or invalid, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 07/11: Task #1206 - ADMINISTRATION MODELE #1206 : change description,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 08/11: Task #1207 - Administration MODELE #1207 : permet d'effacer des modèles vides, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 11/11: Task #1198 - Ajout heure pour nouvel événement #1198 : add hour for event, Dany De Bontridder, 2015/11/05
- [Noalyss-commit] [noalyss] 03/11: Task #1203 - CFGPCMN : ajout de poste comptable #1203 : CFGPCMN améliore apparence et taille, Dany De Bontridder, 2015/11/05