[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 65/107: Code cleaning : remove obsolete, and
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 65/107: Code cleaning : remove obsolete, and direct access to |
Date: |
Mon, 26 Aug 2019 10:32:01 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 9e2b09cd0abfe9292e7e59196de10f40a9ae4995
Author: Dany De Bontridder <address@hidden>
Date: Tue Aug 6 21:32:16 2019 +0200
Code cleaning : remove obsolete, and direct access to
---
include/lib/user_menu.php | 54 ++++++-----------------------------------------
1 file changed, 6 insertions(+), 48 deletions(-)
diff --git a/include/lib/user_menu.php b/include/lib/user_menu.php
index b3dc5fa..6444cb3 100644
--- a/include/lib/user_menu.php
+++ b/include/lib/user_menu.php
@@ -27,52 +27,6 @@ require_once NOALYSS_INCLUDE.'/lib/idate.class.php';
require_once NOALYSS_INCLUDE.'/lib/icard.class.php';
require_once NOALYSS_INCLUDE.'/lib/ispan.class.php';
-
-
-
-/*!
- * \brief Show the menu for the card management
- *
- * \param $p_dossier dossier 1
- *
- *
- *
- * \return nothing
- */
-function ShowMenuFiche($p_dossier)
-{
- $cn=new Database($p_dossier);
- $mod="&ac=".$_REQUEST['ac'];
- $str_dossier=dossier::get().$mod;
- echo '<div class="lmenu">';
- echo '<TABLE>';
-
- echo '<TR><TD colspan="1" class="mtitle" style="width:auto" >
- <A class="mtitle"
HREF="?p_action=fiche&action=add_modele&fiche=modele&'.$str_dossier.'">'._('Création').'</A></TD>
- <TD><A class="mtitle"
HREF="?p_action=fiche&'.$str_dossier.'">'._('Recherche').'</A></TD>
- </TR>';
- $Res=$cn->exec_sql("select fd_id,fd_label from fiche_def order by
fd_label");
- $Max=Database::num_row($Res);
- for ( $i=0; $i < $Max;$i++)
- {
- $l_line=Database::fetch_array($Res,$i);
- printf('<TR><TD class="cell">
- <A class="mtitle"
HREF="?p_action=fiche&action=modifier&fiche=%d&%s">%s</A></TD>
- <TD class="mshort">
- <A class="mtitle"
HREF="?p_action=fiche&action=vue&fiche=%d&%s">Liste</A>
- </TD>
- </TR>',
- $l_line['fd_id'],
- $str_dossier,
- $l_line['fd_label'],
- $l_line['fd_id'],
- $str_dossier
-
- );
- }
- echo "</TABLE>";
- echo '</div>';
-}
/*! MenuAdmin */
/* \brief show the menu for user/database management
/*
@@ -82,11 +36,14 @@ function ShowMenuFiche($p_dossier)
function MenuAdmin()
{
$def=-1;
+ $http=new HttpInput();
+
if (isset($_REQUEST['UID']))
$def=0;
if ( isset ($_REQUEST['action']))
{
- switch ($_REQUEST['action'])
+ $action=$http->request('action');
+ switch ($action)
{
case 'user_mgt':
$def=0;
@@ -163,7 +120,8 @@ function MenuAdmin()
function menu_acc_plan($p_start=1)
{
- $base="?ac=".$_REQUEST['ac'];
+ $http=new HttpInput();
+ $base="?ac=".$http->request('ac');
$str_dossier="&".dossier::get();
for ($i=0;$i<10;$i++) { $class[$i]="tabs";}
$class[$p_start]="tabs_selected";
- [Noalyss-commit] [noalyss] 31/107: translation, (continued)
- [Noalyss-commit] [noalyss] 31/107: translation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 25/107: correct js for error, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 29/107: Bug in exception : gettext cannot accept 2 args, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 33/107: Small bug use the date instead of now for table version, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 40/107: PHPUnit : adapt to new version, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 61/107: Documentation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 62/107: #1316: Notes tableau de bord - pas de limite ou choix., Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 69/107: Fix test, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 50/107: Documentation : automatic format breaks doxygen tag, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 43/107: fixup! Code cleaning : split database into database (for noalyss) and databasecore , with the functions, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 65/107: Code cleaning : remove obsolete, and direct access to,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 74/107: New : manage_table_sql has new function (input_custom and display_row_custom) for handling special data, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 73/107: Cosmetic & bug fix for SELECT_BOX, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 28/107: Debug : add function tracedebug, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 32/107: Cosmetic : font new symbol Cosmetic : CSS padding for div.menu2 a.mtitle, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 58/107: javascript Add new function json_response, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 52/107: Adapt Unit Test, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 76/107: fixup! Improve message progress bar + translation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 78/107: Purpose is to contain all the prepared query called from different locations, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 83/107: Task#1734 New : Add PRINTTVA to have a summary of VAT by ledger, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 93/107: Documentation, Dany De Bontridder, 2019/08/26