[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4220 - phpcompta/branches/rel560/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4220 - phpcompta/branches/rel560/include |
Date: |
Wed, 19 Oct 2011 21:49:34 +0200 (CEST) |
Author: danydb
Date: 2011-10-19 21:49:33 +0200 (Wed, 19 Oct 2011)
New Revision: 4220
Modified:
phpcompta/branches/rel560/include/class_html_input.php
Log:
bug : & in interpreted as HTML entities
Modified: phpcompta/branches/rel560/include/class_html_input.php
===================================================================
--- phpcompta/branches/rel560/include/class_html_input.php 2011-10-15
01:03:04 UTC (rev 4219)
+++ phpcompta/branches/rel560/include/class_html_input.php 2011-10-19
19:49:33 UTC (rev 4220)
@@ -127,8 +127,8 @@
/**
* Make a JSON object, this method create a javascript object
* with the attribute set, it returns a javascript string with the object
- * @param $p_name : name of the object, can be null. If the name is not
null, return
- * $p_name={} otherwise only the object {}
+ * @param $p_name : name of the object, can be null. If the name is not
null, return
+ * $p_name={} otherwise only the object {}
* @return javascript string with the object
* @note: there is not check on the key->value, so you could need to escape
* special char as quote, single-quote...
@@ -201,7 +201,7 @@
/*!\brief create a button with a ref
*\param $p_label the text
- *\param $p_value the location of the window,
+ *\param $p_value the location of the window,
*\param $p_name the id of the span
*\param $p_javascript javascript for this button
*\return string with htmlcode
@@ -286,7 +286,7 @@
/**
* return the html code to create an hidden div and a button
* to show this DIV. This contains all the available ledgers
- * for the user in READ or RW
+ * for the user in READ or RW
address@hidden $p_array is an array obtains thanks User::get_ledger
address@hidden $selected is an array of checkbox
address@hidden the choosen ledger are stored in the array r_jrn (_GET)
@@ -376,7 +376,7 @@
return $r;
}
/**
- *close button for the HTML popup
+ *close button for the HTML popup
address@hidden add_div modify_operation
address@hidden $div_name is the name of the div to remove
*/
@@ -418,7 +418,7 @@
/**
* Return a html string with an anchor looking like anchor_button in the
right corner
address@hidden $action action action to perform (message)
- address@hidden $javascript javascript
+ address@hidden $javascript javascript
address@hidden not protected against html
address@hidden Acc_Ledger::display_search_form
*/
@@ -453,8 +453,8 @@
}
/**
*transform request data to hidden
- address@hidden $array is an of indices
- address@hidden $request name of the superglobal $_POST $_GET
$_REQUEST(default)
+ address@hidden $array is an of indices
+ address@hidden $request name of the superglobal $_POST $_GET
$_REQUEST(default)
address@hidden html string with the hidden data
*/
static function array_to_hidden($array,$global_array )
@@ -467,12 +467,12 @@
{
if (isset($global_array [$a])) $r.=HtmlInput::hidden($a,$global_array
[$a]);
}
-
+
return $r;
}
/**
*transform $_GET data to hidden
- address@hidden $array is an of indices
+ address@hidden $array is an of indices
address@hidden HtmlInput::request_to_hidden
address@hidden html string with the hidden data
*/
@@ -484,7 +484,7 @@
/**
*transform $_POST data to hidden
- address@hidden $array is an of indices
+ address@hidden $array is an of indices
address@hidden HtmlInput::request_to_hidden
address@hidden html string with the hidden data
*/
@@ -496,7 +496,7 @@
/**
*transform $_REQUEST data to hidden
- address@hidden $array is an of indices
+ address@hidden $array is an of indices
address@hidden HtmlInput::request_to_hidden
address@hidden html string with the hidden data
*/
@@ -508,8 +508,8 @@
/**
*transform request data to string
- address@hidden $array is an of indices
- address@hidden $request name of the superglobal $_POST $_GET
$_REQUEST(default)
+ address@hidden $array is an of indices
+ address@hidden $request name of the superglobal $_POST $_GET
$_REQUEST(default)
address@hidden html string with the string data
*/
static function array_to_string($array,$global_array )
@@ -518,19 +518,19 @@
$r="?";
if ( count($global_array )==0) return '';
- $and="";
+ $and="";
foreach ($array as $a)
{
if (isset($global_array [$a]))
- $r.=$and."&$a=".$global_array [$a];
- $and="";
+ $r.=$and."$a=".$global_array [$a];
+ $and="&";
}
-
+
return $r;
}
/**
*transform $_GET data to string
- address@hidden $array is an of indices
+ address@hidden $array is an of indices
address@hidden HtmlInput::request_to_string
address@hidden html string with the string data
*/
@@ -542,7 +542,7 @@
/**
*transform $_POST data to string
- address@hidden $array is an of indices
+ address@hidden $array is an of indices
address@hidden HtmlInput::request_to_string
address@hidden html string with the string data
*/
@@ -554,7 +554,7 @@
/**
*transform $_REQUEST data to string
- address@hidden $array is an of indices
+ address@hidden $array is an of indices
address@hidden HtmlInput::request_to_string
address@hidden html string with the string data
*/
@@ -565,7 +565,7 @@
}
/**
- * generate an unique id for a widget,
+ * generate an unique id for a widget,
address@hidden $p_prefix prefix
address@hidden HtmlInput::IDate
address@hidden string with a unique id
@@ -578,7 +578,7 @@
/**
* return default if the value if the array doesn't exist
address@hidden $ind the index to check
- address@hidden $default the value to return
+ address@hidden $default the value to return
address@hidden $array the array
*/
static function default_value($ind,$default,$array)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4220 - phpcompta/branches/rel560/include,
phpcompta-dev <=