From 33e0885e72756ec3f4541937e28e6c7ff512bc58 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 3 Nov 2011 22:44:23 +0000 Subject: [PATCH] 0434: Form direct action : add the form --- html/style-color.css | 17 +++++++++++++++++ html/style-light.css | 16 +++++++++++++++- html/style.css | 18 ++++++++++++++++++ include/ac_common.php | 16 ++++++++++------ include/template/module.php | 13 +++++++++++++ 5 files changed, 73 insertions(+), 7 deletions(-) diff --git a/html/style-color.css b/html/style-color.css index 63ab1afef..5375065e3 100644 --- a/html/style-color.css +++ b/html/style-color.css @@ -955,4 +955,21 @@ div#jrn_name_div margin-right:150; +} +#predef_form { + margin-left:20%; + width:60%; + +} +#direct +{ + display:inline; + float:right; + + +} +.direct +{ + font-size:6px; + border:groove 1px #00ff00; } \ No newline at end of file diff --git a/html/style-light.css b/html/style-light.css index b0cf29eae..540521fa6 100644 --- a/html/style-light.css +++ b/html/style-light.css @@ -1000,4 +1000,18 @@ div#jrn_name_div margin-left:20%; width:60%; -} \ No newline at end of file +} +#direct +{ + display:inline; + float:right; + + +} +.direct +{ + font-size:6px; + border:groove 1px #33378d; + margin:1px; +} + diff --git a/html/style.css b/html/style.css index 09781b567..ec76be0ef 100644 --- a/html/style.css +++ b/html/style.css @@ -986,4 +986,22 @@ div#jrn_name_div margin-right:150; +} +#predef_form { + margin-left:20%; + width:60%; + +} +#direct +{ + display:inline; + float:right; + + +} +.direct +{ + font-size:6px; + border:groove 1px #000000; + margin:1px; } \ No newline at end of file diff --git a/include/ac_common.php b/include/ac_common.php index 1b4ce99a3..a97053ae9 100644 --- a/include/ac_common.php +++ b/include/ac_common.php @@ -297,14 +297,9 @@ function html_page_start($p_theme="", $p_script="", $p_script2="") // language if (isset($_SESSION['g_lang'])) { - set_language(); + set_language(); } - /* If we are on the user_login page */ - if (basename($_SERVER['PHP_SELF']) == 'user_login.php') - { - return; - } } /* ! @@ -754,6 +749,15 @@ function show_module($selected) require_once('template/module.php'); $file = $cn->get_array("select me_file,me_parameter from v_all_menu where me_code=$1 and user_name=$2", array($selected,$g_user->login)); + if ( count($file ) == 0 ) + { + echo ''; + echo ''; + echo '
'; + echo_warning("Module inexistant [$selected"); + echo '
'; + exit(); + } if ($file[0]['me_file'] != '') { if ($file[0]['me_parameter'] !== "") diff --git a/include/template/module.php b/include/template/module.php index 4796415aa..9bc4329ed 100644 --- a/include/template/module.php +++ b/include/template/module.php @@ -3,6 +3,19 @@

Dossier :

+
+
+ + style='class="direct"'; + $direct->value=HtmlInput::default_value('ac', '', $_REQUEST); + $direct->size=(strlen($direct->value)<10)?10:strlen($direct->value); + echo $direct->input(); + echo HtmlInput::submit('go','aller'); + ?> +
+