76 lines
3.2 KiB
PHP
76 lines
3.2 KiB
PHP
|
<? if (!isset($_POST['submited']) || !$_POST['submited']) { ?>
|
|||
|
<form action="./" method="POST">
|
|||
|
<input type="hidden" name="submited" value="true">
|
|||
|
Code Banque <input type="text" name="banque" maxlength="5" size="7" value=""><br/>
|
|||
|
Code Guichet <input type="text" name="guichet" maxlength="5" size="7" value=""><br/>
|
|||
|
<input type="submit">
|
|||
|
</form>
|
|||
|
<? } else {
|
|||
|
|
|||
|
//error_reporting(0);
|
|||
|
|
|||
|
/**
|
|||
|
* Inclusion du fichier de configuration des includes M<EFBFBD>tiers de S&D
|
|||
|
*/
|
|||
|
include '/var/www/includes/config.php';
|
|||
|
|
|||
|
/**
|
|||
|
* Inclusion du Framework
|
|||
|
*/
|
|||
|
if( !defined('FWK_PATH') )
|
|||
|
include '/var/www/framework/fwk.php';
|
|||
|
|
|||
|
include_once(INCLUDE_PATH.'partenaires/classMBanques.php');
|
|||
|
include_once(FWK_PATH.'common/dates.php');
|
|||
|
include_once(FWK_PATH.'mail/sendMail.php');
|
|||
|
|
|||
|
$iBanque=new MBanques();
|
|||
|
$guichet=$iBanque->getInfoGuichet($_POST['banque'],$_POST['guichet']);
|
|||
|
?>
|
|||
|
<table border="1">
|
|||
|
<tr><td>Code Etablissement (Banque/Guichet)</td><td><?=$guichet['bdfFibCodeEtab'].' '.$guichet['bdfFibCodeGuichet'];?></td></tr>
|
|||
|
<tr><td>Nom de l'organisme</td><td><?=$guichet['bdfFibDenom40'].' ('.$guichet['bdfFibDenom10'].')'?></td></tr>
|
|||
|
<tr><td>Situation de l'organisme</td><td><?switch ($guichet['bdfFibCodeSituation']) {
|
|||
|
case 1: echo 'Organisme ouvert';
|
|||
|
break;
|
|||
|
case 2: echo 'Organisme transf<73>r<EFBFBD>';
|
|||
|
if ($guichet['bdfFibCodeEtabAbsorb']>0)
|
|||
|
echo ' vers '.$guichet['bdfFibCodeEtabAbsorb'];
|
|||
|
break;
|
|||
|
case 3: echo 'Organisme ferm<72>';
|
|||
|
if ($guichet['bdfFibDateFinDiffus']<>'0000-00-00')
|
|||
|
echo ' le '.$guichet['bdfFibDateFinDiffus'];
|
|||
|
break;
|
|||
|
}?></td></tr>
|
|||
|
<tr><td>Nom de l'<27>tablissement</td><td><?=$guichet['guichetDenom40'].' '.$guichet['guichetDenom20']?></td></tr>
|
|||
|
<tr><td>Libell<EFBFBD> RIB</td><td><?=$guichet['bdfFibLibelleRIB']?></td></tr>
|
|||
|
<tr><td>Situation du guichet</td><td><?switch ($guichet['guichetCodeSituation']) {
|
|||
|
case 1: echo 'Guichet ouvert';
|
|||
|
break;
|
|||
|
case 2: echo 'Guichet transf<73>r<EFBFBD>';
|
|||
|
if ($guichet['bdfFibCodeEtab']+$guichet['bdfFibCodeGuichet']>0)
|
|||
|
echo ' vers '.$guichet['bdfFibCodeEtabCible'].' '.$guichet['bdfFibCodeGuichetRepr'];
|
|||
|
break;
|
|||
|
case 3: echo 'Guichet ferm<72>';
|
|||
|
if ($guichet['bdfFibDateFermeture']<>'0000-00-00')
|
|||
|
echo ' le '.$guichet['bdfFibDateFermeture'];
|
|||
|
break;
|
|||
|
}?></td></tr>
|
|||
|
<tr><td>Adresse</td><td><?= $guichet['guichetAdresse1'].'<br/>'.
|
|||
|
$guichet['guichetAdresse2'].'<br/>'.
|
|||
|
$guichet['guichetAdresse3'].'<br/>'.
|
|||
|
$guichet['guichetCP'].' '.$guichet['guichetVille']?></td></tr>
|
|||
|
<tr><td>T<EFBFBD>l</td><td><?=$guichet['Tel']?></td></tr>
|
|||
|
<tr><td>Fax</td><td><?=$guichet['Fax']?></td></tr>
|
|||
|
<tr><td>SWIFT</td><td><?=$guichet['bdfFibAdresseSWIFT']?></td></tr>
|
|||
|
<tr><td>Guichet ouvert le </td><td><?=$guichet['bdfFibDateOuverture']?></td></tr>
|
|||
|
<tr><td>Guichet ferm<EFBFBD> le </td><td><?=$guichet['bdfFibDateFermeture']?></td></tr>
|
|||
|
<tr><td>Nature de guichet</td><td><?=$iBanque->tabNatureGuichet[$guichet['bdfFibNatureGuichet']]?></td></tr>
|
|||
|
<tr><td>Activit<EFBFBD></td><td><?=$iBanque->tabActivite[$guichet['bdfFibCodeActivite']]?></td></tr>
|
|||
|
<tr><td>Organe repr<EFBFBD>sentatif</td><td><?=$iBanque->tabOrgane[$guichet['bdfFibCodeOrganeRepr']]?></td></tr>
|
|||
|
<tr><td>Date d'agr<67>ment</td><td><?=$guichet['bdfFibDateAgrement']?></td></tr>
|
|||
|
<tr><td>Retrait d'agr<67>ment le</td><td><?=$guichet['bdfFibDateRetraitAgr']?></td></tr>
|
|||
|
|
|||
|
</table>
|
|||
|
<pre><?print_r($guichet)?></pre>
|
|||
|
<? } ?>
|