New: add ajax_combox function

This commit is contained in:
Regis Houssin 2011-04-25 15:00:18 +00:00
parent 5d780a9dc1
commit 4cf57c1b39

View File

@ -560,7 +560,7 @@ class FormCompany
else
{
$javaScript = "window.location='./contact.php?".$var_id."=".$object->id."&".$htmlname."=' + form.".$htmlname.".options[form.".$htmlname.".selectedIndex].value;";
print '<select class="flat" name="'.$htmlname.'" onChange="'.$javaScript.'">';
print '<select class="flat" id="'.$htmlname.'" name="'.$htmlname.'" onChange="'.$javaScript.'">';
$num = $object->db->num_rows($resql);
$i = 0;
if ($num)