Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/statistic/searchkey.phtml
<div class="table-box">
<div class="col-md-12 header-single-line">
	<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
	<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<div class="col-md-12 text-center">
	Afficher par 
	<div class="btn-group">
		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/searchkey/nb/100/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >100</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/searchkey/nb/200/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >200</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/searchkey/nb/300/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >300</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/searchkey/nb/500/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >500</a>
   	</div>
</div>            
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
<table class="display table" id="supplierTable" width="100%">
	<thead>
		<tr>
			<th > <a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/searchkey/col/DATESTART/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Date de d�but</a></th>
			<th ><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/searchkey/col/DATEEND/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Date de fin</a></th>
			<th >Dur�e</th>
			<th ><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/searchkey/col/VALUE/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Recherche</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/searchkey/col/IP/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">IP</a></th>
		</tr> 	
	</thead>
	<tbody>
		<?php 
			function difheure($heuredeb,$heurefin)
			{
			   $hd=explode(":",$heuredeb);
			   $hf=explode(":",$heurefin);
			   $hd[0]=(int)($hd[0]);$hd[1]=(int)($hd[1]);$hd[2]=(int)($hd[2]);
			   $hf[0]=(int)($hf[0]);$hf[1]=(int)($hf[1]);$hf[2]=(int)($hf[2]);
			   if($hf[2]<$hd[2]){$hf[1]=$hf[1]-1;$hf[2]=$hf[2]+60;}
			   if($hf[1]<$hd[1]){$hf[0]=$hf[0]-1;$hf[1]=$hf[1]+60;}
			   if($hf[0]<$hd[0]){$hf[0]=$hf[0]+24;}
			   return (($hf[0]-$hd[0]).":".($hf[1]-$hd[1]).":".($hf[2]-$hd[2]));
			}
			
			foreach($this->paginator as $row) { ?>
			<tr>
				<td align="left"><?php  
				$myDateStart = new Zend_Date(strtotime($row->DATESTART));
				$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
				$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
				$hourStart = $myDateStart->toString("HH").":".$myDateStart->toString("mm").":".$myDateStart->toString("ss");
				echo $myDateStart->toString("dd").' '.$moisComplet[(int)$myDateStart->toString('MM')].' '.$myDateStart->toString("YYYY").' '.$hourStart;
				?></td>
				<td align="center"><?php  
				$myDateEnd = new Zend_Date(strtotime($row->DATEEND));
				$hourEnd = $myDateEnd->toString("HH").":".$myDateEnd->toString("mm").":".$myDateEnd->toString("ss");
				echo $myDateEnd->toString("dd").' '.$moisComplet[(int)$myDateEnd->toString('MM')].' '.$myDateEnd->toString("YYYY").' '.$hourEnd;
				?></td>
				<td align="left" ><?php echo difheure($hourStart,$hourEnd); ?></td>
				<td align="left" ><?php echo $row->VALUE ; ?></td>
				<td align="left"><?php echo $row->IP ; ?></td>
			</tr>
			<?php } ?>
	</tbody>
</table>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
</div>