Error : duplicate function update_row

This commit is contained in:
Dany De Bontridder 2020-06-07 19:24:47 +02:00
commit 9c40c9df68
36 changed files with 929 additions and 197 deletions

View file

@ -605,11 +605,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