Current File : /home/k/a/r/karenpetzb/www/items/category/statistic.tar |
clickstatsproduct.phtml 0000604 00000001252 15071602540 0011353 0 ustar 00 <?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.phtml 0000604 00000006705 15071602540 0007744 0 ustar 00 <?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.phtml 0000604 00000013666 15071602540 0007110 0 ustar 00 <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.phtml 0000604 00000007311 15071602540 0007566 0 ustar 00 <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>