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
2f7a45d01a
commit
b52b55b323
|
@ -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>
|
||||
|
||||
* 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.
|
||||
*/
|
||||
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 .= io_safe_input ($value);
|
||||
$output .= ($value);
|
||||
|
|
Loading…
Reference in New Issue