extranet/www/pages_saisie/event_5500.php

87 lines
3.7 KiB
PHP
Raw Normal View History

2009-03-13 14:58:10 +00:00
<?php
header('Content-Type: text/html; charset=ISO-8859-1');
session_start();
2009-03-24 12:00:16 +00:00
include_once(realpath(dirname(__FILE__).'/constantes.php'));
2009-03-13 14:58:10 +00:00
2009-03-25 09:34:44 +00:00
$tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
$siren = (isset($_REQUEST['siren'])? $_REQUEST['siren'] : '');
2009-03-13 14:58:10 +00:00
2009-03-25 09:34:44 +00:00
//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'],
));
//S<>lection de la cour d'appel en fonction du tribunal
include(realpath(dirname(__FILE__)).'/coursAppel.php');
require_once realpath(dirname(__FILE__)).'/field_opposition.php';
2009-03-25 09:34:44 +00:00
?>
<script type="text/javascript" src="./js/thickbox.js"></script>
<label>Date de jouissance / effet :</label>
<input type="text" maxlength="10" class="date" name="jugement[dateFinPeriode]" value="" />
<span class="left">(Format JJ/MM/AAAA)</span>
2009-03-25 09:34:44 +00:00
<script type="text/javascript">
$(document).ready(function(){
$(".date").blur(function() {
//Test du format date
$(this).val(dateInputFormat($(this).val()));
//Test sp<73>cifique
if( $(this).attr('name')=='jugement[dateJuge]' ){
if (ctrlDateJugement($(this).val())==false){ $(this).val(''); }
}
if( $(this).attr('name')=='jugement[datePaie]' ){
if (ctrlDatePaiement($(this).val())==false){ $(this).val(''); }
}
});
});
2009-03-25 09:34:44 +00:00
</script>
<label>Montant de la vente</label>
<input type="text" name="jugement[montant]" size="10" maxlength="15" value="" />
<span class="left">en &euro; sans les cents</span>
<label>Etablissement concern<EFBFBD></label>
<select name="etablissement5500[]" multiple size="3">
<option value="-">-</option>
<?php
try {
$O = $client->getListeEtablissements($siren);
$listEtablissements = $O['result'];
foreach($listEtablissements as $etablissement){
if($etablissement['Siege']==1 && $etablissement['Actif']==1)
print '<option value="'.$etablissement['Adresse'].' '.$etablissement['CP'].' '.$etablissement['Ville'].' ('.$etablissement['Nic'].')">'.$siren.$etablissement['Nic'].' - '.$etablissement['Adresse'].' '.$etablissement['CP'].' '.$etablissement['Ville'].' (Si<53>ge Actif) </option>';
else
print '<option value="'.$etablissement['Adresse'].' '.$etablissement['CP'].' '.$etablissement['Ville'].' ('.$etablissement['Nic'].')">'.$siren.$etablissement['Nic'].' - '.$etablissement['Adresse'].' '.$etablissement['CP'].' '.$etablissement['Ville'].' </option>';
}
$firephp->log($listEtablissements, 'etablissement');
} catch (SoapFault $fault) {
require_once 'soaperror.php';
processSoapFault($client,$fault,$tabInfo);
$firephp->log($client->__getLastRequest(), 'Request');
$firephp->log($client->__getLastResponse(), 'Response');
}
?>
</select>
<label>P<EFBFBD>rim<EFBFBD>tre de la vente</label>
<select name="perimetreVente[]" multiple size="3">
<option value="-">-</option>
<option value="5100">Fonds principal</option>
<option value="5101">Fonds secondaire</option>
<option value="5104">Fonds artisanal</option>
<option value="5105">Partie de fonds</option>
<option value="5200">Branche ou Partie d'activit<EFBFBD></option>
<option value="5203">Droit au bail</option>
<option value="5205">Licence de d<EFBFBD>bit de boissons de 4e cat<EFBFBD>gorie</option>
<option value="5206">Portefeuille d'assurances</option>
<option value="5351">Bien en % indivise</option>
<option value="5303">Bien d<EFBFBD>pendant de l'<EFBFBD>tablissement ou du fond</option>
<option value="5450">Bien achet<EFBFBD> par le locataire-g<EFBFBD>rant</option>
<option value="5460">Attribution d'un fonds suite <EFBFBD> donation, partage ou licitation</option>
</select>
2009-03-24 12:00:16 +00:00
<label>Compl&eacute;ment, huissier, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="900" value="" />