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'] : '');
|
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'],
|
|
|
|
|
// 'encoding' => 'UTF-8'
|
|
|
|
|
));
|
|
|
|
|
|
|
|
|
|
//S<>lection de la cour d'appel en fonction du tribunal
|
|
|
|
|
include(realpath(dirname(__FILE__)).'/coursAppel.php');
|
2009-03-13 14:58:10 +00:00
|
|
|
|
|
2009-03-25 09:34:44 +00:00
|
|
|
|
//La cour d'appel suivant le tribunal s<>lectionn<6E>
|
|
|
|
|
$codeCourAppel=$client->getIdCoursAppel($tribunal);
|
|
|
|
|
$firephp->log($codeCourAppel, 'IdCourAppel');
|
|
|
|
|
foreach ($coursAppel as $value){
|
|
|
|
|
if ($codeCourAppel == $value['triId']){
|
|
|
|
|
$tribunal = $value['triCode'];
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
$tmp=$client->getMandataires($tribunal, array('A', 'M', 'V', 'N'));
|
|
|
|
|
//$firephp->log($tmp, 'Test Mandataires');
|
|
|
|
|
$mandataires = $tmp['result'];
|
|
|
|
|
asort($mandataires);
|
|
|
|
|
} catch (SoapFault $fault) {
|
|
|
|
|
$firephp->log($client->__getLastRequest(), 'Request');
|
|
|
|
|
$firephp->log($client->__getLastResponse(), 'Response');
|
|
|
|
|
}
|
2009-03-24 12:00:16 +00:00
|
|
|
|
|
2009-03-25 09:34:44 +00:00
|
|
|
|
?>
|
|
|
|
|
<script type="text/javascript" src="./js/thickbox.js"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(".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(''); }
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2009-03-24 12:00:16 +00:00
|
|
|
|
<label>Opposition</label>
|
|
|
|
|
<select name="jugement[oppo]">
|
|
|
|
|
<option value="-" selected>Au si<EFBFBD>ge</option>
|
|
|
|
|
<?php
|
|
|
|
|
foreach ($mandataires as $code=>$lib)
|
|
|
|
|
{
|
|
|
|
|
if (strlen($lib)>64) $lib=substr($lib,0,67).'...';
|
|
|
|
|
echo "<option value=\"$code\">$lib</option>";
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</select>
|
|
|
|
|
<?php
|
|
|
|
|
include_once( realpath(dirname(__FILE__)).'/lienMandataireEdit.php' );
|
|
|
|
|
include_once( realpath(dirname(__FILE__)).'/lienMandataire.php' );
|
|
|
|
|
?>
|
|
|
|
|
|
2009-03-25 09:34:44 +00:00
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<label>Montant de la vente</label>
|
|
|
|
|
<input type="text" name="jugement[montant]" size="10" maxlength="15" value="" />
|
|
|
|
|
<span class="left">en € sans les cents</span>
|
|
|
|
|
|
2009-03-24 12:00:16 +00:00
|
|
|
|
<label>Complément, huissier, etc...</label>
|
2009-03-13 14:58:10 +00:00
|
|
|
|
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />
|