1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116:
<?php
class PHPShopPrint extends PHPShopShopCore {
var $debug=false;
var $cache=false;
function __construct() {
$this->action=array("nav"=>"UID");
parent::__construct();
}
function index() {
if($this->setHook(__CLASS__,__FUNCTION__))
return true;
$this->setError404();
}
function sort_table($row) {
if($this->setHook(__CLASS__,__FUNCTION__))
return true;
$this->doLoadFunction(__CLASS__,__FUNCTION__,$row,'shop');
}
function UID() {
if($this->setHook(__CLASS__,__FUNCTION__,false,'START'))
return true;
if(!PHPShopSecurity::true_num($this->PHPShopNav->getId())) return $this->setError404();
$row=parent::getFullInfoItem(array('*'),array('id'=>"=".$this->PHPShopNav->getId(),'enabled'=>"='1'",'parent_enabled'=>"='0'"),
__CLASS__,__FUNCTION__);
if(empty($row['id'])) return $this->setError404();
$this->category=$row['category'];
$this->PHPShopCategory = new PHPShopCategory($this->category);
$this->category_name=$this->PHPShopCategory->getName();
if(empty($row['ed_izm'])) $ed_izm = $this->ed_izm;
else $ed_izm = $row['ed_izm'];
$this->sort_table($row);
$this->set('productName',$row['name']);
$this->set('productArt',$row['uid']);
$this->set('productDes',$row['content']);
$this->set('productContent',$row['description']);
$this->set('productImg',$row['pic_big']);
$this->set('productPriceMoney',$this->dengi);
$this->set('productBack',$this->lang('product_back'));
$this->set('productSale',$this->lang('product_sale'));
$this->set('productValutaName',$this->currency());
$this->set('productUid',$row['id']);
$this->set('productId',$row['id']);
$this->set('logoShop',$this->PHPShopSystem->getValue('logo'));
$this->set('descripShop',$this->PHPShopSystem->getValue('descrip'));
$this->set('nameShop',$this->PHPShopSystem->getValue('name'));
$this->set('serverShop',$_SERVER['SERVER_NAME']);
$this->checkStore($row);
$this->title=$row['name'];
$this->template='templates.print_page_forma';
$this->setHook(__CLASS__,__FUNCTION__,$row, 'END');
$this->parseTemplate($this->getValue('templates.main_product_forma_full'));
}
}
?>