2009-09-10 15:31:37 +00:00
|
|
|
<?php
|
2010-05-21 09:21:39 +00:00
|
|
|
if(isset($_REQUEST['action']))
|
|
|
|
{
|
2010-04-26 14:46:13 +00:00
|
|
|
switch($_REQUEST['action'])
|
|
|
|
{
|
|
|
|
case 'newclient':
|
|
|
|
break;
|
|
|
|
case 'newuser':
|
|
|
|
break;
|
|
|
|
case 'listeclient':
|
|
|
|
default:
|
|
|
|
break;
|
2009-09-10 15:31:37 +00:00
|
|
|
}
|
2010-04-26 14:46:13 +00:00
|
|
|
}
|
|
|
|
$idClient = 0; // on veut tous les clients
|
|
|
|
//Récupérer la liste des clients
|
|
|
|
try {
|
|
|
|
$O = $client->getListeClients( $idClient );
|
|
|
|
$listeClients = $O['results'];
|
|
|
|
} catch (SoapFault $fault) {
|
|
|
|
$firephp->info('Erreur soap');
|
|
|
|
require_once 'soaperror.php';
|
|
|
|
processSoapFault($client,$fault,$tabInfo);
|
|
|
|
}
|
|
|
|
//Récupérer la liste des utilisateurs
|
2009-09-10 15:31:37 +00:00
|
|
|
|
|
|
|
?>
|
2010-03-26 17:13:19 +00:00
|
|
|
<style type="text/css">
|
2010-04-28 08:12:21 +00:00
|
|
|
#utilisateur { border-collapse:collapse; width:100%;}
|
2010-03-26 17:13:19 +00:00
|
|
|
#utilisateur tr.titre td { background-color: #D9EEF1; font-weight:bold; }
|
2010-04-28 08:12:21 +00:00
|
|
|
#utilisateur tr.border td { border:1px dashed #939393; padding:5px; margin:0; vertical-align:top;}
|
2010-03-26 17:13:19 +00:00
|
|
|
#utilisateur tr.actif { background-color:#D9EEF1; }
|
|
|
|
#utilisateur tr.noactif { background-color:#F0F0F6; }
|
2010-04-28 08:12:21 +00:00
|
|
|
.cadreinfo {display:none;}
|
2010-03-26 17:13:19 +00:00
|
|
|
</style>
|
2009-09-10 15:31:37 +00:00
|
|
|
<div id="center">
|
|
|
|
<h1>GESTION DES CLIENTS</h1>
|
|
|
|
<h2>Liste des clients</h2>
|
2010-03-26 17:13:19 +00:00
|
|
|
<div class="blockh2">
|
|
|
|
<table id="utilisateur" >
|
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
['idClient'] =>
|
|
|
|
['nom'] =>
|
|
|
|
['actif'] =>
|
|
|
|
['test'] =>
|
|
|
|
['racineLogin'] =>
|
|
|
|
['siren'] =>
|
|
|
|
['nic'] =>
|
|
|
|
['tva'] =>
|
|
|
|
['editerFacture'] =>
|
|
|
|
['fact_detail'] =>
|
|
|
|
['fac_dest'] =>
|
|
|
|
['fac_adr1'] =>
|
|
|
|
['fac_adr2'] =>
|
|
|
|
['fac_adr3'] =>
|
|
|
|
['fac_email'] =>
|
|
|
|
['fac_tel'] =>
|
|
|
|
['fact_rib'] =>
|
|
|
|
['liv_dest'] =>
|
|
|
|
['liv_adr1'] =>
|
|
|
|
['liv_adr2'] =>
|
|
|
|
['liv_adr3'] =>
|
|
|
|
['liv_email'] =>
|
|
|
|
['liv_tel'] =>
|
|
|
|
['droits'] =>
|
|
|
|
['filtres_ip'] =>
|
|
|
|
['dateInsert'] =>
|
|
|
|
['dateUpdate'] =>
|
|
|
|
['respComSD'] =>
|
|
|
|
['typeContrat'] =>
|
|
|
|
['dateSignature'] =>
|
|
|
|
['typeAcces'] =>
|
|
|
|
['typeScore'] =>
|
|
|
|
['accesPieces'] =>
|
|
|
|
['accesKbis'] =>
|
|
|
|
['accesInvestigations'] =>
|
|
|
|
['accesInternationnal'] =>
|
|
|
|
['accesEnquetes'] =>
|
|
|
|
['miseSousSurveillance'] =>
|
|
|
|
['forfaitExtranetPeriode'] =>
|
|
|
|
['forfaitExtranetMontant'] =>
|
|
|
|
['reconductionAuto'] =>
|
|
|
|
['remarque'] =>
|
|
|
|
['forfaitPiecesNb'] =>
|
|
|
|
['forfaitPiecesMt'] =>
|
|
|
|
['forfaitPiecesDep'] =>
|
|
|
|
['forfaitInvestigNb'] =>
|
|
|
|
['forfaitInvestigMt'] =>
|
|
|
|
['forfaitInvestigDep'] =>
|
|
|
|
['tarifIndiscore'] =>
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
<tr class="border titre">
|
|
|
|
<td class="StyleInfoLib">Nom</td>
|
2010-04-28 08:12:21 +00:00
|
|
|
<td class="StyleInfoLib">Informations</td>
|
2010-03-26 17:13:19 +00:00
|
|
|
<td class="StyleInfoLib">Actions</td>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
if(is_array($listeClients) && count($listeClients)>0){
|
|
|
|
foreach($listeClients as $client){
|
|
|
|
if ($client['actif']=='Oui'){
|
|
|
|
$class = 'actif';
|
|
|
|
} else {
|
|
|
|
$class = 'noactif';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<tr class="border <?=$class?>">
|
|
|
|
<td><?=$client['nom']?></td>
|
2010-04-28 08:12:21 +00:00
|
|
|
<td>
|
|
|
|
|
|
|
|
<div class="lien">
|
|
|
|
<a title="Informations" href="#">Informations</a>
|
|
|
|
<span class="cadreinfo">
|
|
|
|
idClient : <?=$client['idClient']?><br/>
|
|
|
|
Nom : <?=$client['nom']?><br/>
|
|
|
|
SIREN : <?=$client['siren']?><br/>
|
|
|
|
dateInsert : <?=$client['dateInsert']?><br/>
|
|
|
|
dateUpdate : <?=$client['dateUpdate']?><br/>
|
|
|
|
Actif : <?=$client['actif']?><br/>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="lien">
|
|
|
|
<a title="Paramètres" href="#">Paramètres</a>
|
|
|
|
<span class="cadreinfo">
|
|
|
|
Filtre Ip : <?=$client['filtres_ip']?><br/>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="lien">
|
|
|
|
<a title="Droits" href="">Droits</a>
|
|
|
|
<span class="cadreinfo">
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
if ($client['actif']=='Oui'){
|
|
|
|
?>
|
|
|
|
<a href="">
|
|
|
|
<img src="/img/pngtrans/editer.png" title="Editer" width="16" height="16"/>
|
|
|
|
</a>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</td>
|
2010-03-26 17:13:19 +00:00
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table>
|
|
|
|
</div>
|
2010-04-26 14:46:13 +00:00
|
|
|
</div>
|