extranet/www/pages_saisie/getmandataires.php

37 lines
1.1 KiB
PHP
Raw Normal View History

2009-03-13 14:58:10 +00:00
<?php
2009-06-03 07:49:38 +00:00
header('Content-Type: text/html; charset=ISO-8859-1');
2009-03-13 14:58:10 +00:00
$tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
//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');
//La cour d'appel suivant le tribunal s<>lectionn<6E>
$codeCourAppel=$client->getIdCoursAppel($tribunal);
2009-03-24 12:00:16 +00:00
$firephp->log($codeCourAppel, 'IdCourAppel');
foreach ($coursAppel as $value){
if ($codeCourAppel == $value['triId']){
$tribunal = $value['triCode'];
break;
}
}
2009-03-13 14:58:10 +00:00
try {
$tmp=$client->getMandataires($tribunal);
//$firephp->log($tmp, 'Test Mandataires');
$mandataires = $tmp['result'];
2009-03-24 12:00:16 +00:00
asort($mandataires);
2009-03-13 14:58:10 +00:00
} catch (SoapFault $fault) {
$firephp->log($client->__getLastRequest(), 'Request');
$firephp->log($client->__getLastResponse(), 'Response');
}
2009-03-13 14:58:10 +00:00
?>