task #0001413: Duplication d'opération 2 - le retour

This commit is contained in:
Dany De Bontridder 2020-06-03 16:09:31 +02:00
parent 09398054ce
commit 9d001a7ed0
5 changed files with 266 additions and 15 deletions

View file

@ -604,11 +604,24 @@ class HtmlInput
}
}
}
}
}
return $r;
}
/**
* Transform a double array as a HTML string with hidden html value
* array has the formarray ["name"]="x",array['value']="y") the key name will be the hidden input name;
* @param double $array
*/
static function simple_array_to_hidden($array)
{
if (empty ($array)) return "";
$r="";
foreach ( $array as $key=>$value) {
$r.=HtmlInput::hidden($key, $value);
}
return $r;
}
/**
* @brief transform a json to hidden
* @param json $p_json