paramètres source non défini alors on affiche un select proposant les sources
This commit is contained in:
parent
f3c101b54d
commit
5fe6ae5eb0
@ -41,7 +41,17 @@ function formSurveillance($source, $siret, $notEmail, $displayAjax = TRUE){
|
||||
}
|
||||
$formHTML.= '<input name="q" type="hidden" value="setsurv"/>';
|
||||
$formHTML.= '<input name="formSurv[siret]" type="hidden" value="'.$siret.'"/>'."\n";
|
||||
$formHTML.= '<input name="formSurv[source]" type="hidden" value="'.$source.'"/>'."\n";
|
||||
|
||||
if(empty($source)){
|
||||
$formHTML.= '<select name="formSurv[source]">';
|
||||
foreach($assocSourceTxt as $Source => $Txt)
|
||||
{
|
||||
$formHTML.='<option value="'.$Source.'">'.$Txt.'</option>';
|
||||
}
|
||||
$formHTML.= '</select>';
|
||||
}else{
|
||||
$formHTML.= '<input name="formSurv[source]" type="hidden" value="'.$source.'"/>'."\n";
|
||||
}
|
||||
|
||||
$ref='';
|
||||
if(isset($_REQUEST['ref'])){
|
||||
|
Loading…
x
Reference in New Issue
Block a user