From ffc9a36d0b4c890f6434de048ae13d52868265ae Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 11 Feb 2003 13:54:31 +0000 Subject: [PATCH] Gestion des modifs des champs yesno par select --- htdocs/admin/const.php | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php index 841d1e42e5f..cd735e3b11c 100644 --- a/htdocs/admin/const.php +++ b/htdocs/admin/const.php @@ -36,7 +36,7 @@ if ($HTTP_POST_VARS["action"] == 'update') $result = $db->query($sql); } -$sql = "SELECT rowid, name, value FROM llx_const"; +$sql = "SELECT rowid, name, value, type, note FROM llx_const"; $result = $db->query($sql); if ($result) { @@ -54,8 +54,28 @@ if ($result) print '
'; print ''; print ''; - - print ''; + + if ($obj->type == 'yesno') + { + print ''; + } + else + { + print ''; + } + print ''; print '
'; } @@ -65,6 +85,7 @@ if ($result) } print ''; + print ''.stripslashes(nl2br($obj->note)).''; $i++; } }