SD-12 Ergonomisation et export
This commit is contained in:
parent
9aca193415
commit
e1f5fe03bd
@ -233,7 +233,12 @@ class Achatclient_IndexController extends Zend_Controller_Action
|
||||
$this->error('paiement', __LINE__);
|
||||
}
|
||||
$ws = new Scores_Ws_Client('credit', '0.1');
|
||||
$infos = $ws->mensuelconsoCredit();
|
||||
$infocredit = $ws->mensuelconsoCredit();
|
||||
$infos->libelle=array();
|
||||
foreach($infocredit->libelle as $no => $o){
|
||||
$infos->libelle[$o->key]=$o->value;
|
||||
}
|
||||
$infos->used=$infocredit->used;
|
||||
header('X-Sendfile: consommation.tsv');
|
||||
header('Content-Type: application/csv-tab-delimited-table');
|
||||
header('Content-Disposition: attachment; filename="consommation.tsv"');
|
||||
|
@ -2,6 +2,7 @@ fonction<?php echo chr(9); ?>login<?php echo chr(9); ?>nb_credit<?php echo chr(9
|
||||
<?php foreach($this->used as $row):
|
||||
foreach($row->item as $obj):
|
||||
?><?php
|
||||
//var_dump($this->libelle);
|
||||
if($obj->key=='idLog'){
|
||||
if(isset($this->libelle[$obj->value]))
|
||||
{echo $this->libelle[$obj->value];}
|
||||
|
@ -27,9 +27,13 @@ Dernière mise à jour le <?=Date('d/m/Y',strtotime($this->infos['balance']['upd
|
||||
<?php endif;?>
|
||||
</p>
|
||||
<div id="message" class="alert alert-info"><?=$this->msg?></div>
|
||||
<div class="col-sm-10">
|
||||
Une remarque ? <a href="<?=$this->url(array('controller'=>'index', 'action'=>'contact'))?>">
|
||||
<button name="contact" id="contact" class="button ui-button ui-corner-all ui-widget" role="button">Nous contacter</button></a>
|
||||
</div>
|
||||
<?php if(isset($this->infos) && isset($this->infos['paid']) && count($this->infos['paid'])>3): ?>
|
||||
>> <a href="#achats">Achats</a>
|
||||
>> <a href="#consommations">Consommations</a><?php endif;?>
|
||||
</div></div>
|
||||
<?php if(isset($this->infos) && isset($this->infos['tranches'])):?>
|
||||
<h2>Commander des crédits</h2>
|
||||
<form action="<?=$this->url(array('controller'=>'index', 'action'=>'paiement'))?>" method="POST" id="creditform">
|
||||
@ -51,7 +55,7 @@ Une remarque ? <a href="<?=$this->url(array('controller'=>'index', 'action'=>'co
|
||||
</script>
|
||||
<?php endif;?>
|
||||
<?php if(isset($this->infos) && isset($this->infos['paid'])):?>
|
||||
<h2>Historique de vos achats</h2>
|
||||
<h2 id="achats">Historique de vos achats</h2>
|
||||
<table class="data" style="max-width:90%;">
|
||||
<tr><th></th><th>Date d'achat</th><th>Montant de l'achat</th><th>Nb Crédits</th><th>Statut</th><th>Date de <br>validité des crédits</th></tr>
|
||||
<?php foreach($this->infos['paid'] as $row):?>
|
||||
@ -66,7 +70,7 @@ Une remarque ? <a href="<?=$this->url(array('controller'=>'index', 'action'=>'co
|
||||
</table>
|
||||
<?php endif;?>
|
||||
<?php if(isset($this->infos) && isset($this->infos['used'])):?>
|
||||
<h2>Historique de vos consommations <a href="<?=$this->url(array('controller'=>'index', 'action'=>'consocsv'))?>" alt="Télécharger l'historique" title="Télécharger l'historique"><img src="/themes/default/images/menu/downloadcsv.jpg" width="20px" alt="Télécharger l'historique" title="Télécharger l'historique"></a></h2>
|
||||
<h2 id="consommations">Historique de vos consommations <a href="<?=$this->url(array('controller'=>'index', 'action'=>'consocsv'))?>" alt="Télécharger l'historique" title="Télécharger l'historique"><img src="/themes/default/images/menu/downloadcsv.jpg" width="20px" alt="Télécharger l'historique" title="Télécharger l'historique"></a></h2>
|
||||
<table class="data" style="max-width:90%;">
|
||||
<tr><th></th><th>Date d'utilisation</th><th>Nb Crédits</th><th>Fonctionnalité utilisée</th><th>Siren</th></tr>
|
||||
<?php foreach($this->infos['used'] as $row):?>
|
||||
|
Loading…
Reference in New Issue
Block a user