extranet/www/pages_saisie/event_6700.php

89 lines
3.8 KiB
PHP
Raw Normal View History

2009-03-13 14:58:10 +00:00
<?php
2010-01-22 08:58:39 +00:00
header('Content-Type: text/html; charset='.CHARSET);
require_once realpath(dirname(__FILE__).'/constantes.php');
$siren = (isset($_REQUEST['siren'])? $_REQUEST['siren'] : '');
$nic = (isset($_REQUEST['nic'])? $_REQUEST['nic'] : '');
//Connection au webservice
$client = new SoapClient(null, array( 'trace' => 1,
'soap_version' => SOAP_1_1,
'location' => WEBSERVICE_URL,
'uri' => WEBSERVICE_URI,
'login' => $_SESSION['tabInfo']['login'],
'password' => $_SESSION['tabInfo']['password'],
));
//Afficher la liste des établissements
2009-03-13 14:58:10 +00:00
?>
<label>Etablissement concerné</label>
<select name="jugement[nic]" size="5">
<option value="-">-</option>
<?php
try {
$O = $client->getListeEtablissements($siren);
$listEtablissements = $O['result'];
$firephp->log($listEtablissements, 'Etablissements');
foreach($listEtablissements as $etablissement)
{
$title = $siren.$etablissement['Nic'].' - '.$etablissement['Adresse'].' '.$etablissement['CP'].' '.$etablissement['Ville'];
$value = $etablissement['Nic'];
$siege = '';
$select = '';
if($etablissement['Nic']==$nic)
{
$select = ' selected';
}
if($etablissement['Siege']==1 && $etablissement['Actif']==1)
{
$siege = ' (Siège Actif)';
}
echo '<option'.$select.' title="'.$title.$siege.'" value="'.$value.'">'.$title.$siege.'</option>';
}
} catch (SoapFault $fault) {
require_once 'soaperror.php';
processSoapFault($client,$fault,$tabInfo);
$firephp->log($client->__getLastRequest(), 'Request');
$firephp->log($client->__getLastResponse(), 'Response');
}
?>
</select>
2009-03-20 15:35:41 +00:00
<fieldset>
<legend>Nouveau dirigeant 1</legend>
<label>Fonction :</label><select name="jugement[nouvDir1Fonc]"><?=$strSelectDir?></select>
<label>Genre :</label><select name="jugement[nouvDir1Genre]"><?=$strSelectGenre?></select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir1Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir1Nom]" size="15" maxlength="40">
<label>Domicili&eacute; : </label><input type="text" name="jugement[nouvDir1Dom]" size="60" maxlength="255" value="" />
</fieldset>
<p><a href="#" onClick="$('#NouveauDirigeant2').css('display','block');">Nouveau Dirigeants2</a></p>
<p><a href="#" onClick="$('#NouveauDirigeant3').css('display','block');">Nouveau Dirigeants3</a></p>
<fieldset id="NouveauDirigeant2">
<legend>Nouveau dirigeant 2</legend>
<label>Fonction:</label><select name="jugement[nouvDir2Fonc]"><?=$strSelectDir?></select>
<label>Genre :</label><select name="jugement[nouvDir2Genre]"><?=$strSelectGenre?></select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren&nbsp;</label>
<input type="text" name="jugement[nouvDir2Pre]" size="15" maxlength="40">
<label>NOM :</label>
<input type="text" name="jugement[nouvDir2Nom]" size="15" maxlength="40">
<label>Domicili&eacute; :</label>
<input type="text" name="jugement[nouvDir2Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onClick="$('#NouveauDirigeant2').css('display','none');">Masquer.</a></p>
</fieldset>
<fieldset id="NouveauDirigeant3">
<legend>Nouveau dirigeant 3</legend>
<label>Fonction :</label><select name="jugement[nouvDir3Fonc]"><?=$strSelectDir?></select>
<label>Genre :</label><select name="jugement[nouvDir3Genre]"><?=$strSelectGenre?></select>
<label>Pr&eacute;nom(s)&nbsp;/&nbsp;Siren</label>
<input type="text" name="jugement[nouvDir3Pre]" size="15" maxlength="40">
<label>NOM :</label><input type="text" name="jugement[nouvDir3Nom]" size="15" maxlength="40"><br/>
2009-07-21 15:08:08 +00:00
<label>Domicili&eacute; :</label>
2009-03-20 15:35:41 +00:00
<input type="text" name="jugement[nouvDir3Dom]" size="60" maxlength="255" value="" />
<p><a href="#" onClick="$('#NouveauDirigeant3').css('display','none');">Masquer.</a></p>
</fieldset>
2009-03-13 14:58:10 +00:00
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />