diff --git a/html/test.php b/html/test.php index e45ddc264..bcb72c398 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 "
description = '.$description.'
';
include '../scenario/'.$script;
diff --git a/scenario/html_tab.test.php b/scenario/html_tab.test.php
index 13de211e4..f47ebd6bc 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(""
. "
Très longue chaine HTML pour 2"
diff --git a/scenario/test_acc_plan_mtable.php b/scenario/test_acc_plan_mtable.php
index 70a6383a1..383f63260 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");