mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
2011-10-25 Sergio Martin <sergio.martin@artica.es>
* include/functions_html.php: Deleted problematic name change into textarea function git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5079 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
38e6363c1c
commit
a91f0be558
@ -1,3 +1,8 @@
|
|||||||
|
2011-10-25 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* include/functions_html.php: Deleted problematic name change
|
||||||
|
into textarea function
|
||||||
|
|
||||||
2011-10-24 Junichi Satoh <junichi@rworks.jp>
|
2011-10-24 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
* include/functions_api.php: Fixed 'id_alert_template' variable.
|
* include/functions_api.php: Fixed 'id_alert_template' variable.
|
||||||
|
@ -732,16 +732,6 @@ function html_print_button ($label = 'OK', $name = '', $disabled = false, $scrip
|
|||||||
* @return string HTML code if return parameter is true.
|
* @return string HTML code if return parameter is true.
|
||||||
*/
|
*/
|
||||||
function html_print_textarea ($name, $rows, $columns, $value = '', $attributes = '', $return = false) {
|
function html_print_textarea ($name, $rows, $columns, $value = '', $attributes = '', $return = false) {
|
||||||
static $idcounter = array ();
|
|
||||||
|
|
||||||
//If duplicate names exist, it will start numbering. Otherwise it won't
|
|
||||||
if (isset ($idcounter[$name])) {
|
|
||||||
$idcounter[$name]++;
|
|
||||||
$name = $name.$idcounter;
|
|
||||||
} else {
|
|
||||||
$idcounter[$name] = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
$output = '<textarea id="textarea_'.$name.'" name="'.$name.'" cols="'.$columns.'" rows="'.$rows.'" '.$attributes.' >';
|
$output = '<textarea id="textarea_'.$name.'" name="'.$name.'" cols="'.$columns.'" rows="'.$rows.'" '.$attributes.' >';
|
||||||
//$output .= io_safe_input ($value);
|
//$output .= io_safe_input ($value);
|
||||||
$output .= ($value);
|
$output .= ($value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user