Current File : /home/k/a/r/karenpetzb/www/items/category/statistic.tar
clickstatsproduct.phtml000060400000001252150716025400011353 0ustar00<?php 
function  checkColorSource($source) {
	$color = "black";
      if ($source == 'Redirection : Hello Pro') {
            $color = "blue";
      } 
      return $color;
}

?>

<table cellpadding="0" cellspacing="5" border="0" width="800px">
<tr class="linkHeader" align="center">
	<th width="500px">URL</th>
	<th width="200px">SOURCE</th>
	<th width="100px">CLICKS</th>
</tr>

<?php foreach($this->listClick as $row) { ?>
<tr style="color: <?php echo checkColorSource($row['SOURCE']); ?>">
	<td align="left" ><?php echo $row['URL']; ?></td>
	<td align="left" ><?php echo $row['SOURCE']; ?></td>
	<td align="center" ><?php echo $row['NbURL']; ?></td>
</tr>
<?php } ?>
</table>


logdefault.phtml000060400000006705150716025400007744 0ustar00<?php 
function  checkColorLog($level) {
	if ($level == "CRIT") {
		return "red";
	}
	if ($level == "ERR") {
		return "red";
	}
	if ($level == "INFO") {
		return "black";
	}
	if ($level == "WARN") {
		return "#cc9900";
	}
}

?> <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/logdefault/nb/100/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >100</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logdefault/nb/200/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >200</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logdefault/nb/300/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >300</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logdefault/nb/500/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >500</a>
   		<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl;?>/backoffice/statistic/logdefaultclean" ><span class="glyphicon glyphicon-trash"></span> Supprimer l'historique</button>
	</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/logdefault/col/DATE_LOG/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Date</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logdefault/col/LEVEL_NAME/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Type</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logdefault/col/CONTROLLER/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Controller</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logdefault/col/MESSAGE/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Message</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logdefault/col/IP/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">IP</a></th>
		</tr> 	
	</thead>
	<tbody>
	
		<?php foreach($this->paginator as $row)  { ?>
		<tr style="color: <?php echo checkColorLog($row->LEVEL_NAME); ?>">
			<td><?php  
			$myDate = new Zend_Date(strtotime($row->DATE_LOG));
			$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');
			echo $myDate->toString("dd").' '.$moisComplet[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY").' '.$myDate->toString("HH").":".$myDate->toString("mm").":".$myDate->toString("ss");
			?></td>
			<td><?php echo $row->LEVEL_NAME; ?></td>
			<td><?php echo $row->CONTROLLER; ?></td>
			<td ><?php echo $row->MESSAGE ; ?></td>
			<td ><?php echo $row->IP ; ?></td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
</div>

keymap.phtml000060400000013666150716025400007110 0ustar00<table cellpadding="0" cellspacing="7" border="0">

<tr>
	<td align="center" colspan="2">
		<span class="errorText"><?php echo $this -> messageError; ?></span>
		<span class="successText"><?php echo $this -> messageSuccess; ?></span>
	</td>
</tr>
<tr>
	<td align="center" colspan="2" class="keymap">
		<div style="float: left">
			<a href="#" style="font-size:10px ">Texte 10px</a>
			<a href="#" style="font-size:15px ">Texte 15px</a>
			<a href="#" style="font-size:20px ">Texte 20px</a>
			<a href="#" style="font-size:25px ">Texte 25px</a>
		</div>
	</td>
</tr>
<tr>
	<td align="center" colspan="2" class="keymap">
		<div style="float: left">
			<span style="color: #333333">DEFAULT</span>
			<span style="color: #787878">#787878</span>
			<span style="color: #8db91c">#8db91c</span>
			<span style="color: #b9aa01">#b9aa01</span>
			<span style="color: #289bd4">#289bd4</span>
			<span style="color: #e22e3a">#e22e3a</span>
			<span style="color: #bb90bb">#bb90bb</span>
			<span  style="color: #009249">#009249</span>
			<span style="color: #f19408">#f19408</span>
			<span style="color: #e1037a">#e1037a</span>
		</div>
	</td>
</tr>
<tr>
	<td valign="top">
		<table cellpadding="0" cellspacing="7" border="0">
			<tr>
				<td align="center" colspan="4">
					<span class="text2">CATEGORIES</span>
				</td>
			</tr>
			<tr>
				<td>CATEGORIE</td>
				<td>COULEUR</td>
				<td>TAILLE</td>
				<td>POSITION</td>
				<td style="display:none;">VUES</td>
				<td></td>
			</tr>
			<?php 
			$listMapCat = $this->listMapCat;
			$listCat = $this->listCat;
			$show = array();
			foreach($listCat as $row) {
			
			?>		
			<tr>
			<form action="<?php  echo $this->baseUrl; ?>/backoffice/statistic/keymapcatedit" method="post">
				<td class="text1">
					<?php echo $this->escape($row['NOM']);  ?>
				</td>
				<td>
					<input type="text" size="7" name="colorKey" value="<?php if (isset($listMapCat[$row['ID']]['COLOR'])) { echo $listMapCat[$row['ID']]['COLOR'];} ?>">
				</td>
				<td>
					<input type="text" size="5" name="sizeKey" value="<?php if (isset($listMapCat[$row['ID']]['SIZE'])) { echo $listMapCat[$row['ID']]['SIZE'];} ?>">
				</td>
				<td>
					<input type="text" size="5" name="positionKey" value="<?php if (isset($listMapCat[$row['ID']]['POSITION'])) { echo $listMapCat[$row['ID']]['POSITION']; } ?>">
					<input type="hidden" value="<?php echo $row['ID']; ?>" name="catId">
				</td>
				<td style="display:none;">
					<?php if (isset($listMapCat[$row['ID']]) && !empty($listMapCat[$row['ID']]['VIEW'])) { 
						 echo $listMapCat[$row['ID']]['VIEW']; 
					} ?>
				</td>
				<td>
					<input type="image" src="<?php echo $this->baseUrl; ?>/business/image/admin/edit.png" >
				</td>
			</form>
				<td>	
					<form action="<?php echo $this->baseUrl; ?>/backoffice/statistic/keymapshow" method="POST">
						<input type="hidden" value="<?php echo $row['ID']; ?>" name="catIdShow">
						<input type="hidden" value="CAT" name="keyType">
						<?php if (isset($listMapCat[$row['ID']]) && !empty($listMapCat[$row['ID']]['ID']) && $listMapCat[$row['ID']]['isSHOW'] == 1) { ?>
							<input type="image" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock0.png" name="showInput">
							<input type="hidden" name="showvalue" value="0">
						<?php } else { ?>
								<input type="image" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock2.png" name="showInput">
								<input type="hidden" name="showvalue" value="1">
						<?php } ?>
					</form>
				</td>
			</tr>
			<?php }  ?>
		</table>
	</td>
	<td valign="top">
		<table cellpadding="0" cellspacing="7" border="0">
			<tr>
				<td align="center" colspan="4">
					<span class="text2">MARQUES</span>
				</td>
			</tr>
			<tr>
				<td>MARQUE</td>
				<td>COULEUR</td>
				<td>TAILLE</td>
				<td>POSITION</td>
				<td style="display:none;">VUES</td>
				<td></td>
			</tr>
			<?php 
			$listMapBrend = $this->listMapBrend;
			$listBrend = $this->listBrend;
			$show = array();
			foreach($listBrend as $row) {
			
			?>		
			<tr>
			<form action="<?php  echo $this->baseUrl; ?>/backoffice/statistic/keymapbrendedit" method="post">
				<td class="text1">
					<?php echo $this->escape($row['BREND']);  ?>
				</td>
				<td>
					<input type="text" size="7" name="colorKey" value="<?php if (isset($listMapBrend[$row['ID']]['COLOR'])) { echo $listMapBrend[$row['ID']]['COLOR'];} ?>">
				</td>
				<td>
					<input type="text" size="5" name="sizeKey" value="<?php if (isset($listMapBrend[$row['ID']]) && isset($listMapBrend[$row['ID']]['ID'])) { echo $listMapBrend[$row['ID']]['SIZE']; } ?>">
				</td>
				<td>
					<input type="text" size="5" name="positionKey" value="<?php if (isset($listMapBrend[$row['ID']]) && isset($listMapBrend[$row['ID']]['ID'])) { echo $listMapBrend[$row['ID']]['POSITION']; } ?>">
					<input type="hidden" value="<?php echo $row['ID']; ?>" name="brendId">
				</td>
				<td style="display:none;">
					<?php if (isset($listMapBrend[$row['ID']]) && !empty($listMapBrend[$row['ID']]['VIEW'])) { 
						 echo $listMapBrend[$row['ID']]['VIEW']; 
					} ?>
				</td>
				<td>
					<input type="image" src="<?php echo $this->baseUrl; ?>/business/image/admin/edit.png" >
				</td>
			
			</form>	
				<td>
					<form action="<?php echo $this->baseUrl; ?>/backoffice/statistic/keymapshow" method="POST">
						<input type="hidden" value="<?php echo $row['ID']; ?>" name="brendIdShow">
						<input type="hidden" value="BREND" name="keyType">
						<?php if (isset($listMapBrend[$row['ID']]) && !empty($listMapBrend[$row['ID']]['ID']) && $listMapBrend[$row['ID']]['isSHOW'] == 1) { ?>
							<input type="image" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock0.png" name="showInput">
							<input type="hidden" name="showvalue" value="0">
						<?php } else { ?>
								<input type="image" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock2.png" name="showInput">
								<input type="hidden" name="showvalue" value="1">
						<?php } ?>
					</form>
					
				</td>
			</tr>
			<?php }  ?>
		</table>
	</td>
</tr>

</table>
searchkey.phtml000060400000007311150716025400007566 0ustar00<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>logadmin.phtml000060400000006661150716025400007411 0ustar00<?php 
function  checkColorLog($level) {
	if ($level == "CRIT") {
		return "red";
	}
	if ($level == "ERR") {
		return "red";
	}
	if ($level == "INFO") {
		return "black";
	}
	if ($level == "WARN") {
		return "#cc9900";
	}
}

?> <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/logadmin/nb/100/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >100</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logadmin/nb/200/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >200</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logadmin/nb/300/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >300</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logadmin/nb/500/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >500</a>
   		<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl;?>/backoffice/statistic/logadminclean" ><span class="glyphicon glyphicon-trash"></span> Supprimer l'historique</button>
	</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/logadmin/col/DATE_LOG/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Date</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logadmin/col/LEVEL_NAME/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Type</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logadmin/col/CONTROLLER/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Controller</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logadmin/col/MESSAGE/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Message</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logadmin/col/IP/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">IP</a></th>
		</tr> 	
	</thead>
	<tbody>
	
		<?php foreach($this->paginator as $row)  { ?>
		<tr style="color: <?php echo checkColorLog($row->LEVEL_NAME); ?>">
			<td><?php  
			$myDate = new Zend_Date(strtotime($row->DATE_LOG));
			$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');
			echo $myDate->toString("dd").' '.$moisComplet[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY").' '.$myDate->toString("HH").":".$myDate->toString("mm").":".$myDate->toString("ss");
			?></td>
			<td><?php echo $row->LEVEL_NAME; ?></td>
			<td><?php echo $row->CONTROLLER; ?></td>
			<td ><?php echo $row->MESSAGE ; ?></td>
			<td ><?php echo $row->IP ; ?></td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
</div>

stats.phtml000060400000016401150716025400006746 0ustar00<div class="col-xs-6">
	<div class="sec-box">
		<header>
			<h2 class="heading">Meilleures ventes par r�f�rence - Ann�e </h2>
		</header>
		<div class="contents boxpadding">
			<div class="charts-box">
				<div id="displaydigonalbar"></div>
				<script>
					<?php $element = $this->statsBestSellYear;  ?>
					var day_data = [
						<?php 
						$separator = "";
						foreach ($element as $value) { ?>
							<?php echo $separator;?>{"period": <?php echo '"'.$value['REFERENCE'].'"'; ?>, "label1": <?php echo '"'.sprintf("%.2f", $value['TOTAL']).'"'; ?>, "label2": <?php echo '"'.$value['NB_CMD'].'"'; ?>}
						<?php $separator = ",";
						} ?>
					];
					Morris.Bar({
					  element: 'displaydigonalbar',
					  data: day_data,
					  xkey: 'period',
					  ykeys: ['label1', 'label2'],
					  labels: ['Somme', 'Commande'],
					  xLabelAngle: 0
					});
				</script>
			</div>
		</div>
	</div>
</div>
<div class="col-xs-6">
	<div class="sec-box">
		<header>
			<h2 class="heading">Meilleures ventes par r�f�rence - Mois</h2>
		</header>
		<div class="contents boxpadding">
			<div class="charts-box">
				<div id="displaydigonalbar2"></div>
				<script>
					<?php $element = $this->statsBestSellMonth;  ?>
					var day_data = [
						<?php 
						$separator = "";
						foreach ($element as $value) { ?>
							<?php echo $separator;?>{"period": <?php echo '"'.$value['REFERENCE'].'"'; ?>, "label1": <?php echo '"'.sprintf("%.2f", $value['TOTAL']).'"'; ?>, "label2": <?php echo '"'.$value['NB_CMD'].'"'; ?>}
						<?php $separator = ",";
						} ?>
					];
					Morris.Bar({
					  element: 'displaydigonalbar2',
					  data: day_data,
					  xkey: 'period',
					  ykeys: ['label1', 'label2'],
					  labels: ['Somme', 'Commande'],
					  xLabelAngle: 0
					});
				</script>
			</div>
		</div>
	</div>
</div>
<div class="col-xs-6">
	<div class="sec-box">
		<header>
			<h2 class="heading">Les r�f�rences les plus vendus - Ann�e </h2>
		</header>
		<div class="contents boxpadding">
			<div class="charts-box">
				<div id="displaydigonalbar3"></div>
				<script>
					<?php $element = $this->statsNbProductYear;  ?>
					var day_data = [
						<?php 
						$separator = "";
						foreach ($element as $value) { ?>
							<?php echo $separator;?>{"period": <?php echo '"'.$value['REFERENCE'].'"'; ?>, "label1": <?php echo '"'.sprintf("%.2f", $value['TOTAL']).'"'; ?>, "label2": <?php echo '"'.$value['NB'].'"'; ?>}
						<?php $separator = ",";
						} ?>
					];
					Morris.Bar({
					  element: 'displaydigonalbar3',
					  data: day_data,
					  xkey: 'period',
					  ykeys: ['label1', 'label2'],
					  labels: ['Somme', 'Quantit�'],
					  xLabelAngle: 0
					});
				</script>
			</div>
		</div>
	</div>
</div>
<div class="col-xs-6">
	<div class="sec-box">
		<header>
			<h2 class="heading">Les r�f�rences les plus vendus - Mois</h2>
		</header>
		<div class="contents boxpadding">
			<div class="charts-box">
				<div id="displaydigonalbar4"></div>
				<script>
					<?php $element = $this->statsNbProductMonth;  ?>
					var day_data = [
						<?php 
						$separator = "";
						foreach ($element as $value) { ?>
							<?php echo $separator;?>{"period": <?php echo '"'.$value['REFERENCE'].'"'; ?>, "label1": <?php echo '"'.$value['NB'].'"'; ?>, "label2": <?php echo '"'.$value['NB_CMD'].'"'; ?>}
						<?php $separator = ",";
						} ?>
					];
					Morris.Bar({
					  element: 'displaydigonalbar4',
					  data: day_data,
					  xkey: 'period',
					  ykeys: ['label1', 'label2'],
					  labels: ['Somme', 'Commande'],
					  xLabelAngle: 0
					});
				</script>
			</div>
		</div>
	</div>
</div>


 <div class="col-xs-6">
	<div class="sec-box">
		<header>
			<h2 class="heading">R�partition des commandes par cat�gorie - Ann�e</h2>
		</header>
		<div class="contents boxpadding">
			<div class="charts-box">
				<div id="donutchartcolor"></div>
				<script>
					Morris.Donut({
	                    element: 'donutchartcolor',
	                    data: [
						<?php  $element = $this->statsCategoryCmdYear; 
								$separator = "";
								foreach ($element as $value) { ?>
								<?php echo $separator;?> {value: <?php echo  $value['NB_CMD']; ?>, label: <?php echo '"'.$value['CAT_NOM'].'"'; ?>}
								<?php $separator = ","; } ?>
	                    ],
	                    backgroundColor: '#ccc',
	                    labelColor: '#060',
	                    colors: [
	                      '#0BA462',
	                      '#39B580',
	                      '#67C69D',
	                      '#95D7BB'
	                    ],
	                    formatter: function (x) { return x }
	                  });
				</script>
			</div>
		</div>
	</div>
</div>
 <div class="col-xs-6">
	<div class="sec-box">
		<header>
			<h2 class="heading">R�partition des commandes par cat�gorie - Mois</h2>
		</header>
		<div class="contents boxpadding">
			<div class="charts-box">
				<div id="donutchartcolor2"></div>
				<script>
					Morris.Donut({
	                    element: 'donutchartcolor2',
	                    data: [
						<?php  $element = $this->statsCategoryCmdMonth; 
								$separator = "";
								foreach ($element as $value) { ?>
								<?php echo $separator;?> {value: <?php echo  $value['NB_CMD']; ?>, label: <?php echo '"'.$value['CAT_NOM'].'"'; ?>}
								<?php $separator = ","; } ?>
	                    ],
	                    backgroundColor: '#ccc',
	                    labelColor: '#060',
	                    colors: [
	                      '#0BA462',
	                      '#39B580',
	                      '#67C69D',
	                      '#95D7BB'
	                    ],
	                    formatter: function (x) { return x }
	                  });
				</script>
			</div>
		</div>
	</div>
</div>
<div class="col-xs-12">
                            <div class="sec-box">
                                <header>
                                    <h2 class="heading">Recherche par mots cl�s - Ann�e</h2>
                                </header>
                                <div class="contents boxpadding">
                                    <div class="charts-box">
                                        <div id="formatenondate"></div>
                                        <script>
                                            var day_data = [
											<?php  $element = $this->statsKeyWordYear; 
											$separator = "";
											foreach ($element as $value) { ?>
											<?php echo $separator;?> {"elapsed": <?php echo  '"'.$value['VALUE'].'"'; ?>, "value": <?php echo $value['NB']; ?>}
											<?php $separator = ","; } ?>
                                            ];
                                            Morris.Line({
                                              element: 'formatenondate',
                                              axes: false,
                                              data: day_data,
                                              xkey: 'elapsed',
                                              ykeys: ['value'],
                                              labels: ['Recherche'],
                                              parseTime: false
                                            });
                                        </script>
                                    </div>
                                </div>
                            </div>
                        </div>clickstatsip.phtml000060400000001774150716025400010314 0ustar00<?php 
function  checkColorSource($source) {
	$color = "black";
      if ($source == 'Redirection : Hello Pro') {
            $color = "blue";
      } 
      return $color;
}

?>
<table cellpadding="0" cellspacing="5" border="0" width="200px">
<?php foreach($this->listSource as $row) : ?>
<tr style="color: <?php echo checkColorSource($row['Source']); ?>">
	<td align="left">
		<?php echo $row['Source']; ?>
	</td>
	<td align="center" ><?php echo $row['NbSource']; ?></td>
</tr>
<?php endforeach; ?>
</table>

<table cellpadding="0" cellspacing="5" border="0" width="500px">
<tr class="linkHeader" align="center">
	<th width="150px">IP</th>
	<th width="150px">SOURCE</th>
	<th width="150px">CLICKS</th>
</tr>

<?php foreach($this->listIp as $row) { ?>
<tr style="color: <?php echo checkColorSource($row['Source']); ?>">
	<td align="center">
		<?php  echo $row['Ip']; ?>
	</td>
	<td align="center" ><?php echo $row['Source']; ?></td>
	<td align="center" ><?php echo $row['NbSource']; ?></td>
</tr>
<?php } ?>
</table>