début ajout gestion des particuliers

This commit is contained in:
Regis Houssin 2006-06-05 18:26:46 +00:00
parent 3da4e656a6
commit 3a26aee445
3 changed files with 1697 additions and 1623 deletions

View File

@ -1272,6 +1272,7 @@ class Form
$result=$this->db->query($sql); $result=$this->db->query($sql);
if ($result) if ($result)
{ {
print '<div id="particulier2" class="visible">';
print '<select class="flat" name="forme_juridique_code">'; print '<select class="flat" name="forme_juridique_code">';
if ($pays_code) print '<option value="0">&nbsp;</option>'; if ($pays_code) print '<option value="0">&nbsp;</option>';
$num = $this->db->num_rows($result); $num = $this->db->num_rows($result);
@ -1310,6 +1311,7 @@ class Form
} }
} }
print '</select>'; print '</select>';
print '</div>';
} }
else else
{ {
@ -2165,9 +2167,16 @@ class Form
\param key_in_label 1 pour afficher la key dans la valeur "[key] value" \param key_in_label 1 pour afficher la key dans la valeur "[key] value"
\param value_as_key 1 pour utiliser la valeur comme clé \param value_as_key 1 pour utiliser la valeur comme clé
*/ */
function select_array($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0) function select_array($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $use_java=0, $fonction='')
{ {
print '<select class="flat" name="'.$htmlname.'">'; if ($use_java == 1 && $fonction != '')
{
print '<select class="flat" name="'.$htmlname.'" '.$fonction.'>';
}
else
{
print '<select class="flat" name="'.$htmlname.'">';
}
if ($show_empty) if ($show_empty)
{ {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff