Création de clients
This commit is contained in:
parent
28425418cb
commit
a18dca8d73
@ -299,7 +299,65 @@ class DashboardController extends Zend_Controller_Action
|
||||
*/
|
||||
public function clientsaveAction()
|
||||
{
|
||||
|
||||
$request = $this->getRequest();
|
||||
$params = $request->getParams();
|
||||
|
||||
$infos = new stdClass();
|
||||
$infos->idClient = $params['idClient'];
|
||||
$infos->nom = $params['nom'];
|
||||
$infos->siren = $params['siren'];
|
||||
$infos->nic = $params['nic'];
|
||||
$infos->racineLogin = $params['racineLogin'];
|
||||
$infos->test = $params['test'];
|
||||
$infos->actif = $params['actif'];
|
||||
$infos->dateSignature = $params['dateSignature'];
|
||||
$infos->typeContrat = $params['typeContrat'];
|
||||
$infos->apporteurAffaire = $params['apporteurAffaire'];
|
||||
$infos->typeAcces = $params['typeAcces'];
|
||||
$infos->remarque = $params['remarque'];
|
||||
$infos->tva = $params['tva'];
|
||||
//$infos->xxxx = $params['xxxx'];
|
||||
$infos->editerFacture = $params['editerFacture'];
|
||||
$infos->fact_detail = $params['fact_detail'];
|
||||
$infos->fac_dest = $params['fac_dest'];
|
||||
$infos->fac_adr1 = $params['fac_adr1'];
|
||||
$infos->fac_adr2 = $params['fac_adr2'];
|
||||
$infos->fac_adr3 = $params['fac_adr3'];
|
||||
$infos->fac_email = $params['fac_email'];
|
||||
$infos->fac_tel = $params['fac_tel'];
|
||||
$infos->fact_rib = $params['fact_rib'];
|
||||
$infos->liv_dest = $params['liv_dest'];
|
||||
$infos->liv_adr1 = $params['liv_adr1'];
|
||||
$infos->liv_adr2 = $params['liv_adr2'];
|
||||
$infos->liv_adr3 = $params['liv_adr3'];
|
||||
$infos->liv_email = $params['liv_email'];
|
||||
$infos->liv_tel = $params['liv_tel'];
|
||||
$infos->typeScore = $params['typeScore'];
|
||||
$infos->filtres_ip = $params['filtres_ip'];
|
||||
$infos->droits = $params['droits'];
|
||||
$infos->timeout = $params['timeout'];
|
||||
$infos->forfaitExtranetPeriode = $params['forfaitExtranetPeriode'];
|
||||
$infos->forfaitExtranetMontant = $params['forfaitExtranetMontant'];
|
||||
$infos->reconductionAuto = $params['reconductionAuto'];
|
||||
$infos->forfaitPiecesNb = $params['forfaitPiecesNb'];
|
||||
$infos->forfaitPiecesMt = $params['forfaitPiecesMt'];
|
||||
$infos->forfaitPiecesDep = $params['forfaitPiecesDep'];
|
||||
$infos->forfaitInvestigNb = $params['forfaitInvestigNb'];
|
||||
$infos->forfaitInvestigMt = $params['forfaitInvestigMt'];
|
||||
$infos->tarifIndiscore = $params['tarifIndiscore'];
|
||||
$infos->accesWS = $params['accesWS'];
|
||||
$infos->InterSudLogin = $params['InterSudLogin'];
|
||||
$infos->InterSudPass = $params['InterSudPass'];
|
||||
|
||||
$ws = new WsScores();
|
||||
$reponse = $ws->setClient($infos);
|
||||
|
||||
if ($reponse->error->errnum==1) {
|
||||
$this->_forward('client', 'dashboard', null, array('infos' => $infos));
|
||||
}
|
||||
|
||||
|
||||
$this->view->assign('infos', $request->getParams());
|
||||
}
|
||||
|
||||
|
||||
|
@ -11,6 +11,10 @@
|
||||
.field .medfield{width:110px;}
|
||||
.field input, .field select{ font-size:110%; margin:2px 0; }
|
||||
.field input[type="radio"] { margin:0 5px 0 5px; }
|
||||
div.submit{
|
||||
clear:both;
|
||||
text-align:center;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var droits = new Array();
|
||||
@ -120,23 +124,7 @@ $(document).ready(function(){
|
||||
|
||||
<div id="center">
|
||||
<h1><?php echo $this->titre?></h1>
|
||||
<?php
|
||||
if (isset($_REQUEST['submit'])){
|
||||
$Infos = $_REQUEST;
|
||||
|
||||
echo "<pre>";
|
||||
print_r($Infos);
|
||||
echo "</pre>";
|
||||
|
||||
/*
|
||||
$ws = new WsScores();
|
||||
$reponse = $ws->setClient($Infos);
|
||||
echo "<pre>";
|
||||
print_r($reponse);
|
||||
echo "</pre>";
|
||||
*/
|
||||
} else {
|
||||
?>
|
||||
|
||||
<div class="formip" style="display:none;">
|
||||
<input type="text" maxlength="3" size="3" name="ip0" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip1" /> .
|
||||
@ -144,7 +132,7 @@ if (isset($_REQUEST['submit'])){
|
||||
<input type="text" maxlength="3" size="3" name="ip3" />
|
||||
</div>
|
||||
|
||||
<form name="client" method="post" action="./?page=administration_client">
|
||||
<form name="client" method="post" action="<?=$this->url(array('controller'=>'dashboard', 'action'=>'clientsave'), null, true)?>">
|
||||
<input type="hidden" name="action" value="client" />
|
||||
<input type="hidden" name="idClient" value="<?php echo $this->idClient?>" />
|
||||
|
||||
@ -483,11 +471,9 @@ foreach($this->wsdroits as $droit){
|
||||
</div>
|
||||
|
||||
<div class="submit">
|
||||
<input class="button" type="submit" name="submit" value="<?php echo $this->submitValue?>" />
|
||||
<p class="submit-button"><input type="submit" class="button" value="<?php echo $this->submitValue?>"/></p>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
10
application/views/default/scripts/dashboard/clientsave.phtml
Normal file
10
application/views/default/scripts/dashboard/clientsave.phtml
Normal file
@ -0,0 +1,10 @@
|
||||
<div id="center">
|
||||
<h1>GESTION CLIENTS</h1>
|
||||
|
||||
<div class="paragraph">
|
||||
Client créer.<br/>
|
||||
<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'clients'))?>">Liste des clients</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user