2010-11-01 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: cleaned source code style. And added line comments for to explain obfuscated $$ operation in function "print_input_text_extended". * godmode/agentes/module_manager_editor_plugin.php: set the field "plugin_parameters" with unlimited size. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3483 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
716988e50f
commit
5403878dff
|
@ -1,3 +1,12 @@
|
|||
2010-11-01 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_html.php: cleaned source code style. And added line
|
||||
comments for to explain obfuscated $$ operation in function
|
||||
"print_input_text_extended".
|
||||
|
||||
* godmode/agentes/module_manager_editor_plugin.php: set the field
|
||||
"plugin_parameters" with unlimited size.
|
||||
|
||||
2010-10-29 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* include/fgraph.php: Do not propagate compressed data to dates in the
|
||||
|
|
|
@ -66,7 +66,7 @@ push_table_simple ($data, 'plugin_2');
|
|||
$data = array ();
|
||||
$data[0] = __('Plugin parameters');
|
||||
$data[0] .= print_help_icon ('plugin_parameters', true);
|
||||
$data[1] = print_input_text ('plugin_parameter', $plugin_parameter, '', 255, 255, true, $disabledBecauseInPolicy);
|
||||
$data[1] = print_input_text ('plugin_parameter', $plugin_parameter, '', 255, '', true, $disabledBecauseInPolicy);
|
||||
$table_simple->colspan['plugin_3'][1] = 3;
|
||||
|
||||
push_table_simple ($data, 'plugin_3');
|
||||
|
|
|
@ -420,6 +420,7 @@ function print_input_text_extended ($name, $value, $id, $alt, $size, $maxlength,
|
|||
|
||||
if ($maxlength == 0)
|
||||
$maxlength = 255;
|
||||
|
||||
if ($size == 0)
|
||||
$size = 10;
|
||||
|
||||
|
@ -438,12 +439,13 @@ function print_input_text_extended ($name, $value, $id, $alt, $size, $maxlength,
|
|||
|
||||
if (is_array ($attributes)) {
|
||||
foreach ($attributes as $attribute => $attr_value) {
|
||||
if (! in_array ($attribute,$valid_attrs)) {
|
||||
if (! in_array ($attribute, $valid_attrs)) {
|
||||
continue;
|
||||
}
|
||||
$output .= $attribute.'="'.$attr_value.'" ';
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
$output .= trim ($attributes)." ";
|
||||
$attributes = array ();
|
||||
}
|
||||
|
@ -458,10 +460,19 @@ function print_input_text_extended ($name, $value, $id, $alt, $size, $maxlength,
|
|||
continue;
|
||||
} //If the attribute was already processed, skip
|
||||
|
||||
/*
|
||||
* Remember, this next code have a $$ that for example there is a var as
|
||||
* $a = 'john' then $$a is a var $john .
|
||||
*
|
||||
* In this case is use for example for $name and $atribute = 'name' .
|
||||
*
|
||||
*/
|
||||
|
||||
/* Exact operator because we want to show "0" on the value */
|
||||
if ($$attribute !== '') {
|
||||
$output .= $attribute.'="'.$$attribute.'" ';
|
||||
} elseif ($default != '') {
|
||||
}
|
||||
elseif ($default != '') {
|
||||
$output .= $attribute.'="'.$default.'" ';
|
||||
}
|
||||
}
|
||||
|
@ -515,6 +526,7 @@ function print_input_password ($name, $value, $alt = '', $size = 50, $maxlength
|
|||
function print_input_text ($name, $value, $alt = '', $size = 50, $maxlength = 255, $return = false, $disabled = false) {
|
||||
if ($maxlength == 0)
|
||||
$maxlength = 255;
|
||||
|
||||
if ($size == 0)
|
||||
$size = 10;
|
||||
|
||||
|
|
Loading…
Reference in New Issue