0434: Form direct action : add the form

This commit is contained in:
Dany De Bontridder 2011-11-03 22:44:23 +00:00
parent c52a7948ec
commit 33e0885e72
5 changed files with 73 additions and 7 deletions

View file

@ -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 '</div>';
echo '</div>';
echo '<div class="content">';
echo_warning("Module inexistant [$selected");
echo '</div>';
exit();
}
if ($file[0]['me_file'] != '')
{
if ($file[0]['me_parameter'] !== "")