adding privatesale country

This commit is contained in:
Marion Muszynski 2016-04-04 10:49:37 +02:00
parent 56f1489fbc
commit 6279c24199
2 changed files with 842 additions and 821 deletions

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,7 @@ class Sale {
var $date_start;
var $date_end;
var $timelaps;
var $id_country = 0;
var $enabled = 0;
var $featured = 0;
var $logout = 0;
@ -31,6 +32,7 @@ class Sale {
$this->date_start = $sale['date_start'];
$this->date_end = $sale['date_end'];
$this->date_upd = $sale['date_upd'];
$this->id_country = $sale['id_country'];
$this->enabled = $sale['enabled'];
$this->featured = $sale['featured'];
$this->logout = $sale['logout'];
@ -82,6 +84,7 @@ class Sale {
UPDATE `'._DB_PREFIX_.'privatesale` SET
`date_start` = "'.pSQL($this->date_start).'",
`date_end` = "'.pSQL($this->date_end).'",
`id_country` = '.(int) $this->id_country.',
`enabled` = '.(int) $this->enabled.',
`featured` = '.(int) $this->featured.',
`logout` = '.(int) $this->logout.',
@ -175,6 +178,7 @@ class Sale {
DEFAULT,
"'.pSQL($this->date_start).'",
"'.pSQL($this->date_end).'",
'.(int) $this->id_country.',
'.(int) $this->enabled.',
'.(int) $this->featured.',
'.(int) $this->logout.',
@ -309,6 +313,7 @@ class Sale {
'date_end' => $ps[0]['date_end'],
'date_upd' => $ps[0]['date_upd'],
'timelaps' => $diff,
'id_country' => $ps[0]['id_country'],
'enabled' => $ps[0]['enabled'],
'featured' => $ps[0]['featured'],
'logout' => $ps[0]['logout'],