function check_form() { var message=''; f=document.mailing; if (f.nom.value=='') message='".addslashes($msg["command_phototeque_need_name"])."'; if ((f.mail.value=='')&&(f.telephone.value=='')&&(!message)) { message='".addslashes($msg["command_phototeque_need_phone"])."'; } if (message) { alert(message); return false; } return true; }
"; if ($nom) { $corps=""; if ($id_empr) { $requete="select empr_cb,empr_nom,empr_prenom,empr_login from empr where id_empr=".$id_empr; $resultat=mysql_query($requete); if (mysql_num_rows($resultat)) { $r=mysql_fetch_object($resultat); $corps.="".htmlentities(sprintf($msg["command_phototeque_send_by"],$r->empr_cb." ".$r->empr_nom." ".$r->empr_prenom),ENT_QUOTES,$charset)."