[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 06/107: TEST : fix some little bugs
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 06/107: TEST : fix some little bugs |
Date: |
Mon, 26 Aug 2019 10:31:46 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit df79de735f1510f158a243d8f89d1c8876526e5f
Author: Dany De Bontridder <address@hidden>
Date: Wed Feb 13 19:52:11 2019 +0100
TEST : fix some little bugs
---
html/test.php | 10 +++++-----
scenario/html_tab.test.php | 6 +++++-
scenario/test_acc_plan_mtable.php | 2 +-
3 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/html/test.php b/html/test.php
index e45ddc2..bcb72c3 100644
--- a/html/test.php
+++ b/html/test.php
@@ -44,7 +44,7 @@ global $http;
$http=new HttpInput();
load_all_script();
-$gDossier=HtmlInput::default_value_get('gDossier', -1);
+$gDossier=$http->request('gDossier',"number", -1);
if ($gDossier==-1)
{
echo " Vous devez donner le dossier avec paramètre gDossier dans l'url,
exemple http://localhost/noalyss/html/test.php?gDossier=25";
@@ -64,7 +64,7 @@ if (!file_exists('authorized_debug'))
exit();
}
define('ALLOWED', 1);
-html_page_start("Classic 692");
+html_page_start("Classic");
/*
* Loading of all scenario
@@ -95,7 +95,7 @@ for ($e_scan=0; $e_scan<$maxscan; $e_scan++)
}
}
-$script=HtmlInput::default_value_get('script', '');
+$script=$http->request('script', "string",'');
if ($script=="")
{
echo "<h1>Test NOALYSS</h1>";
@@ -137,7 +137,7 @@ if ($script=="")
}
else if ($script=='all')
{
- $nb=HtmlInput::default_value_get('nb_script', 0);
+ $nb=$http->get('nb_script', "number",0);
$start_mem=memory_get_usage();
$start_time=microtime(true);
@@ -174,7 +174,7 @@ else
$start_mem=memory_get_usage();
$start_time=microtime(true);
$script=str_replace('../', '', $script);
- $description=HtmlInput::default_value_get("description", "aucune
description");
+ $description=$http->get("description","string", "aucune description");
echo '<h1>'.$script."</h1>";
echo '<p> description = '.$description.'<p>';
include '../scenario/'.$script;
diff --git a/scenario/html_tab.test.php b/scenario/html_tab.test.php
index 13de211..f47ebd6 100644
--- a/scenario/html_tab.test.php
+++ b/scenario/html_tab.test.php
@@ -31,7 +31,11 @@ require_once
NOALYSS_INCLUDE.'/lib/output_html_tab.class.php';
$tab = new Html_Tab('tab1',_("Titre 1"));
$tab->set_mode('link');
-$tab->set_link(http_build_query([ "a"=>1,"b"=>2]));
+$tab->set_link("test.php?".
+ http_build_query([ "gDossier"=>Dossier::id(),
+ "script"=>"html_tab.test.php",
+ "a"=>1,
+ "b"=>2]));
$tab2 = new Html_Tab('tab2',_("Titre 2"));
$tab2->set_content(""
. "<br> Très longue chaine HTML pour 2"
diff --git a/scenario/test_acc_plan_mtable.php
b/scenario/test_acc_plan_mtable.php
index 70a6383..383f632 100644
--- a/scenario/test_acc_plan_mtable.php
+++ b/scenario/test_acc_plan_mtable.php
@@ -40,7 +40,7 @@ $obj=new Acc_Plan_SQL($cn);
/**
* Test $obj
*/
-
+echo Dossier::hidden();
$mtable=new Acc_Plan_MTable($obj);
$obj->set_limit_fiche_qcode(5);
$mtable->set_callback("ajax_test.php");
- [Noalyss-commit] [noalyss] 07/107: mantis #1690: Bug : impossible d'utiliser < dans Inplace_Edit Replace strip_tags , add a space before the "<", (continued)
- [Noalyss-commit] [noalyss] 07/107: mantis #1690: Bug : impossible d'utiliser < dans Inplace_Edit Replace strip_tags , add a space before the "<", Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 08/107: Mantis #1693: CA - problème avec la balance croisée double, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 11/107: Security : replace $_GET by Http_Input + translate, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 13/107: Icon_Action : add icon for menu, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 16/107: Icon_Action add icon for locking , unlocking, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 24/107: Debug : Add memory info, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 18/107: Mantis #0001651: Problème avec totaux en CA, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 09/107: translation, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 04/107: Php7.2 incompatibility, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 10/107: Security : replace $_GET by Http_Input, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 06/107: TEST : fix some little bugs,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 14/107: Accounting : Cosmetic change icon more by arrow, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 17/107: Mantis #0001651: Problème avec totaux en CA, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 12/107: Code cleaning replace $start and $end by $periode_...>value to avoid to get it several times, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 23/107: Bug javascript mispelled function show_tab, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 21/107: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss into dev7016, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 15/107: Icon_Action : add testing + cosmetic for Icon_Action::menu, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 22/107: typo, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 26/107: Code Cleaning : replace tempname with sys_get_temp_dir Merge commit 'd85d6f8c77083fb997441a672d222bb10836af3e' into dev7109, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 27/107: Improve : depending if pdftk is a snap or not , his path must be a setting, Dany De Bontridder, 2019/08/26
- [Noalyss-commit] [noalyss] 30/107: New function PDF:is_fill add documentation, Dany De Bontridder, 2019/08/26