Ejemplo n.º 1
0
$catalog = (int) request('catalog');
$pcondition = (int) request('pcondition');
$parent = (int) request('parent');

$tpl['user']['staruser'] = 0;

$tpl['show']['lhreg'] = isset($_COOKIE['phref'])?trim($_COOKIE['phref']):(isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:'/price');

if(substr($tpl['show']['lhreg'],-1) =='?' ) $tpl['show']['lhreg'] = substr($tpl['show']['lhreg'],0,strlen($tpl['show']['lhreg'])-1);

require_once($cfg['path'].'/models/price.php');

$tpl['price']['errors'] = array();

$price_class = new model_priceshopcoins($db_class);


if ($catalog){
	$rows_main = $price_class->getItem($catalog);
	$tpl['breadcrumbs'][] = array(
		    	'text' => $rows_main["gname"]." | ".$rows_main["aname"]." - ".$rows_main['year']." год",
		    	'href' => "",
		    	'base_href' =>''
	);
	$rehref = urlBuild::priceCoinsUrl($rows_main);
	
	/*if("/price/".$rehref!=urldecode($_SERVER['REQUEST_URI'])){

		header('HTTP/1.1 301 Moved Permanently');
    	header('Location: '.$cfg['site_dir']."price/".$rehref);
Ejemplo n.º 2
0
<?php

$yearsArray = array(1 => array('name' => '2001-настоящее время', 'data' => array(2001, (int) date('Y', time()))), 2 => array('name' => '1901-2000', 'data' => array(1901, 2000)), 3 => array('name' => '1801-1900', 'data' => array(1801, 1900)), 4 => array('name' => '1701-1800', 'data' => array(1701, 1800)), 5 => array('name' => '1601-1700', 'data' => array(1601, 1700)));
$OrderByArray = array();
require_once $cfg['path'] . '/helpers/Paginator.php';
require_once $cfg['path'] . '/models/price.php';
$tpl['price']['errors'] = array();
$urlParams = array();
$r_url = $cfg['site_dir'] . "/price";
$price_class = new model_priceshopcoins($db_class);
$group = (int) request('group');
$nominal = (int) request('nominal');
$year = (int) request('years');
$yearstart = (int) request('yearstart');
$yearend = (int) request('yearend');
$condition = (int) request('condition');
$sortname = request('sortname');
$tpl['breadcrumbs'][] = array('text' => 'Главная', 'href' => $cfg['site_dir'], 'base_href' => $cfg['site_dir']);
$tpl['breadcrumbs'][] = array('text' => 'Стоимость монет', 'href' => $cfg['site_dir'] . 'price', 'base_href' => 'price');
$tpl['pager']['sorts'] = array('dateinsert' => 'новизне', 'price' => 'по цене', 'year' => 'году');
$tpl['pager']['itemsOnpage'] = array(9 => 9, 18 => 18, 36 => 36, 48 => 48, 72 => 72);
$group = (int) request('group');
$GroupNameMain = '';
$GroupNameID = '';
$GroupName = '';
$simbols_data = array();
$price_data = array();
$metal_data = array();
$year_data = array();
$group_data = array();
$condition_data = array();