On revient comme avant

This commit is contained in:
Michael RICOIS 2012-02-15 11:29:00 +00:00
parent 833dd45596
commit fed721dff2
3 changed files with 54 additions and 48 deletions

View File

@ -5,8 +5,8 @@ class DashboardController extends Libs_Controller
public function init()
{
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
$this->view->headScript()->appendFile('/themes/default/scripts/'.$this->getRequest()->getControllerName().'.js', 'text/javascript');
$this->view->headLink()->appendStylesheet('/themes/default/styles/dashboard.css', 'all');
$this->view->headScript()->appendFile('/themes/default/scripts/dashboard.js', 'text/javascript');
}
public function indexAction()

View File

@ -1,11 +1,54 @@
<div class="dashboard">
<div id="menu">
<a href="">Tableau de bord</a> |
<a href="">Historique de vos ciblages</a> |
<a href="">Préférences de l'application</a> |
<a href="">Enrichissement fichier</a>
</div>
<div id="lastCiblage" style="">
<?php echo $this->partial('dashboard/partials/tableau_bord.phtml', array('comptages' => $this->comptages));?>
</div>
<div class="chemin">
<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>''))?>">Tableau de bord</a>
</div>
<div id="menu">
<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'ciblages'))?>">Historique de vos ciblages</a> -
<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'configuration'))?>">Préférences de l'application</a> -
<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'exports'))?>">Enrichissement fichier</a>
</div>
<div id="rechercheCiblage">
<h2>Rechercher dans vos ciblages</h2>
<input type="text" name="searchCiblage" class="searchCiblage" />
<input type="submit" value="Rechercher" class="submit"/>
</div>
<div id="lastCiblage" style="">
<h2>Vos derniers ciblages</h2>
<?php if(count($this->comptages) > 0):?>
<table>
<thead>
<tr>
<th>Référence</th>
<th>Nombre d'entité</th>
<th>Unité Insee</th>
<th colspan="4">actions sur vos comptages</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<?php foreach($this->comptages as $name => $item):?>
<tr class="tooltip" id="<?php echo $item['id'];?>">
<td class="reference"><?=$item['reference']?></td>
<td class="resultat"><?=number_format($item['resultat'], 0, ',', ' ')?></td>
<td class="insee"><?=number_format($item['uniteInsee'], 0, ',', ' ')?></td>
<td><a class="chargement" href="/dashboard/ciblagedetail/id/<?php echo $item['id'];?>">Detail</a></td>
<td><a href="<?//=$this->url(array('controller'=> 'index','action'=>'index', 'id'=>$item['id']))?>">Recharger les critères de ciblage</a></td>
<td><a href="<?//=$this->url(array('controller'=> 'comptage','action'=>'update', 'id'=>$item['id']))?>">Actualiser le comptage</a></td>
<td><a href="<?//=$this->url(array('controller'=> 'comptage','action'=>'update', 'id'=>$item['id']))?>">Enrichissement</a></td>
<td id="ch_<?php echo $item['id'];?>" class="date"><?=$item['dateComptage']?></td>
</tr>
<?php endforeach;?>
</tbody>
</table>
<?php else:?>
<p>Aucun ciblage.<p>
<?php endif;?>
</div>

View File

@ -1,37 +0,0 @@
<fieldset>
<legend>Vos derniers ciblages</legend>
<div id="rechercheCiblage">
<h2>Rechercher dans vos ciblages</h2>
<input type="text" name="searchCiblage" class="searchCiblage" />
<input type="submit" value="Rechercher" class="submit"/>
</div>
<?php if(count($this->comptages) > 0):?>
<table>
<thead>
<tr>
<th>Référence</th>
<th>Nombre d'entité</th>
<th>Unité Insee</th>
<th colspan="4">actions sur vos comptages</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<?php foreach($this->comptages as $name => $item):?>
<tr class="tooltip" id="<?php echo $item['id'];?>">
<td class="reference"><?=$item['reference']?></td>
<td class="resultat"><?=number_format($item['resultat'], 0, ',', ' ')?></td>
<td class="insee"><?=number_format($item['uniteInsee'], 0, ',', ' ')?></td>
<td><a class="chargement" href="/dashboard/ciblagedetail/id/<?php echo $item['id'];?>">Detail</a></td>
<td><a href="<?//=$this->url(array('controller'=> 'index','action'=>'index', 'id'=>$item['id']))?>">Recharger les critères de ciblage</a></td>
<td><a href="<?//=$this->url(array('controller'=> 'comptage','action'=>'update', 'id'=>$item['id']))?>">Actualiser le comptage</a></td>
<td><a href="<?//=$this->url(array('controller'=> 'comptage','action'=>'update', 'id'=>$item['id']))?>">Enrichissement</a></td>
<td id="ch_<?php echo $item['id'];?>" class="date"><?=$item['dateComptage']?></td>
</tr>
<?php endforeach;?>
</tbody>
</table>
<?php else:?>
<p>Aucun ciblage.<p>
<?php endif;?>
</fieldset>