paramètres source non défini alors on affiche un select proposant les sources

This commit is contained in:
Michael RICOIS 2009-12-15 15:29:42 +00:00
parent f3c101b54d
commit 5fe6ae5eb0

View File

@ -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'])){