// page edit product smallImage, fix page translation, stats

This commit is contained in:
vKham
2012-01-05 17:41:36 +00:00
parent 1e6512252a
commit 0de03b7bb3
13 changed files with 81 additions and 53 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ class Pagesnotfound extends Module
$this->_html .= '<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->displayName.'</h2>';
if (!file_exists(dirname(__FILE__).'/../../.htaccess'))
$this->_html .= '<div class="warning warn">'.$this->l('You <b>must</b> use a .htaccess file to redirect 404 errors to the page "404.php"').'</div>';
$this->_html .= '<br/><div class="warning warn">'.$this->l('You <b>must</b> use a .htaccess file to redirect 404 errors to the page "404.php"').'</div>';
$pages = $this->getPages();
if (count($pages))
+2 -1
View File
@@ -106,7 +106,8 @@ class SEKeywords extends ModuleGraph
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->_query.ModuleGraph::getDateBetween().$this->_query2);
$total = count($result);
$this->html = '<div class="blocStats"><h2 class="icon-'.$this->name.'"><span></span>'.$this->displayName.'</h2>
'.$total.' '.($total == 1 ? $this->l('keyword matches your query.') : $this->l('keywords match your query.')).'';
<p>
'.$total.' '.($total == 1 ? $this->l('keyword matches your query.') : $this->l('keywords match your query.')).'</p>';
if ($result && $total)
{
$table = '
+4 -3
View File
@@ -62,13 +62,14 @@ class StatsNewsletter extends ModuleGraph
if (Tools::getValue('export'))
$this->csvExport(array('type' => 'line', 'layers' => 3));
$this->_html = '
<fieldset><legend><img src="../modules/'.$this->name.'/logo.gif" /> '.$this->displayName.'</legend>
<div class="blocStats">
<h2><img src="../modules/'.$this->name.'/logo.gif" /> '.$this->displayName.'</h2>
<p>'.$this->l('Registrations from customers:').' '.(int)$totals['customers'].'</p>
<p>'.$this->l('Registrations from visitors:').' '.(int)$totals['visitors'].'</p>
<p>'.$this->l('Both:').' '.(int)$totals['both'].'</p>
<div>'.$this->engine(array('type' => 'line', 'layers' => 3)).'</div>
<p><a href="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'&export=1"><img src="../img/admin/asterisk.gif" />'.$this->l('CSV Export').'</a></p>
</fieldset>';
<p><a class="button export-csv" href="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'&export=1"><span>'.$this->l('CSV Export').'</span></a></p>
</div>';
}
else
$this->_html = '<p>'.$this->l('Module Newsletter Block must be installed').'</p>';
+3 -2
View File
@@ -242,7 +242,7 @@ class StatsProduct extends ModuleGraph
$this->html .= '
<div class="margin-form">
<form action="" method="post" id="categoriesForm">
<label>'.$this->l('Choose a category').'</label>
<label class="t">'.$this->l('Choose a category').'</label>
<select name="id_category" onchange="$(\'#categoriesForm\').submit();">
<option value="0">'.$this->l('All').'</option>';
foreach ($categories as $category)
@@ -251,7 +251,8 @@ class StatsProduct extends ModuleGraph
</select>
</form>
</div>
'.$this->l('Click on a product to access its statistics.').'
<p>'.$this->l('Click on a product to access its statistics.').'</p>
<h2>'.$this->l('Products available').'</h2>
<div>
<table class="table" border="0" cellspacing="0" cellspacing="0">