2
0
forked from Wavyzz/dolibarr

best fichinter method

This commit is contained in:
Rodolphe Quiedeville
2002-12-22 20:04:24 +00:00
parent f87b891838
commit 5e577dea79
5 changed files with 238 additions and 122 deletions

View File

@@ -30,7 +30,7 @@ class Form {
$this->db = $DB;
return 1;
}
}
/*
*
*
@@ -82,6 +82,42 @@ class Form {
}
/*
*
*
*/
Function select_array($name, $array, $id='')
{
print '<select name="'.$name.'">';
$i = 0;
if (strlen($id))
{
reset ($array);
while (list($key, $value) = each ($array))
{
print "<option value=\"$key\" ";
if ($id == $key)
{
print "SELECTED";
}
print ">$value</option>\n";
}
}
else
{
while (list($key, $value) = each ($array) )
{
print "<option value=\"$key\" ";
print ">$value</option>\n";
}
}
print "</select>";
}
/*
* Renvoie la cha<68>ne de caract<63>re d<>crivant l'erreur
*
*