Exemplo n.º 1
0
	EchoLig("GEO_PORPOSIT");
	EchoLig("GEO_LCABREGE");
	EchoLig("GEO_MAILUNITE");
	echo "<tr><td align=\"top\">Coordonnées postales</td><td>";
	$CIL[GEO_LLADRES]->EchoEditAll();
	if ($CIL[UFO_LLADRES2]->ValChp!="" || $TypEdit!="C") {
		echo "<BR>";
		$CIL[GEO_LLADRES2]->EchoEditAll();}
	echo "<BR>";
	$CIL[GEO_COPOSTAL]->EchoEditAll();
	echo " ";
	$CIL[GEO_LLCOMMU]->EchoEditAll();
	echo "</td></tr>\n"; // fin adresse
	EchoLig("GEO_COPAYS");
	if ($TypEdit!="N") {
		$wh1="where (DRH_LLACTIVITE LIKE '".str_replace(":","' OR DRH_LLACTIVITE LIKE  '",vdc(Ctbicepa(),1))."') ";
		$wh2="AND DRH_NUGEOPOS=".$NUUNITE;
		echo "<tr><td>effectif</td><td>";
		$rqsqlcnt="select COUNT(*) from INFOS_DRH ".$wh1.$wh2;
		if ($debug) echo "requête SQL de comptage: ";
		$rescnt=msq($rqsqlcnt);
		$rwcnt=mysql_fetch_row($rescnt);
		echo $rwcnt[0];
		echo "</td></tr>";
	}
	EchoLig("GEO_PLANACC");

  ?>
<tr><td colspan="2" align="center">
<a name="bas">
<br>
Exemplo n.º 2
0
	$FCobj->NmChamp="DRH_COCORPS";
	DispLigReq();

	$FCobj->NmChamp="DRH_COGRADE";
	DispLigReq();

	$FCobj->NmChamp="DRH_LLACTIVITE";
	DispLigReq();
    // verrue spéciale en javascript permettant de présélectionner les
	// valeurs de la LD correspondant aux appartenant à l'EPA
	?>
	<script language="javascript">
    var nbelemf = document.theform.elements.length;
	var tbciepa = '<?php 
echo Ctbicepa();
?>
';
    for (var i = 0; i < nbelemf; i++) {
		if (document.theform.elements[i].name.indexOf('rq_DRH_LLACTIVITE')>=0) {
			var maliste=document.theform.elements[i];

		// on est sur la bonne liste multiple
			for (var j=0; j<maliste.options.length;j++) {
				if (tbciepa.indexOf(maliste.options[j].value + ':')>=0) {
					maliste.options[j].selected=true;}
				else maliste.options[j].selected=false;
				} // fin boucle sur les options
			} // fin si c'est la bonne liste
    } // fin boucle sur les objets du formulaire
	</script>