Cheetah
orders.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('Module', $aModule);
9 ch_import('ChWsbPageView');
10 
12 {
14  var $_sType;
15 
17  {
18  parent::__construct('ch_pmt_orders');
19 
20  $this->_sType = $sType;
21  $this->_oPayments = &$oPayments;
22 
23  $GLOBALS['oTopMenu']->setCurrentProfileID($this->_oPayments->_iUserId);
24  $GLOBALS['oTopMenu']->setCustomVar('sys_payment_module_uri', $this->_oPayments->_oConfig->getUri());
25  }
27  {
28  if(empty($this->_sType))
29  $this->_sType = CH_PMT_ORDERS_TYPE_PROCESSED;
30 
31  return $this->_oPayments->getOrdersBlock($this->_sType);
32  }
33 }
34 
38 
39 $iIndex = 3;
40 $_page['name_index'] = $iIndex;
41 $_page['css_name'] = 'orders.css';
42 $_page['js_name'] = 'orders.js';
43 
44 check_logged();
45 
46 $sType = '';
47 if(!empty($aRequest))
48  $sType = process_db_input(array_shift($aRequest), CH_TAGS_STRIP);
49 
52 $_page_cont[$iIndex]['page_main_code'] = $oOrdersPage->getCode();
53 $_page_cont[$iIndex]['more_code'] = $oPayments->getMoreWindow();
54 $_page_cont[$iIndex]['manual_order_code'] = $oPayments->getManualOrderWindow();
55 $_page_cont[$iIndex]['js_code'] = $oPayments->getExtraJs('orders');
56 
57 $oPayments->_oTemplate->setPageTitle(_t('_payment_pcpt_view_orders'));
58 PageCode($oPayments->_oTemplate);
process_db_input
process_db_input($sText, $iStripTags=0)
Definition: utils.inc.php:256
CH_PMT_ORDERS_TYPE_PROCESSED
const CH_PMT_ORDERS_TYPE_PROCESSED
Definition: ChPmtModule.php:12
check_logged
check_logged()
Definition: admin.inc.php:238
ChWsbPageView
Definition: ChWsbPageView.php:99
ChPmtOrdersPage
Definition: orders.php:12
$aModule
$aModule
Definition: classifieds.php:21
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
php
ChPmtModule
Definition: ChPmtModule.php:79
$_page
global $_page
Definition: orders.php:35
ChPmtOrdersPage\__construct
__construct($sType, &$oPayments)
Definition: orders.php:16
$oOrdersPage
$oOrdersPage
Definition: orders.php:51
$oPayments
$oPayments
Definition: orders.php:50
$_page_cont
global $_page_cont
Definition: orders.php:36
ChPmtOrdersPage\$_sType
$_sType
Definition: orders.php:14
global
if(!defined("GLOBAL_MODULE")) define("GLOBAL_MODULE" global
Definition: header.inc.php:25
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition: languages.inc.php:509
$sType
$sType
Definition: orders.php:46
PageCode
PageCode($oTemplate=null)
Definition: design.inc.php:91
ChPmtOrdersPage\getBlockCode_Orders
getBlockCode_Orders()
Definition: orders.php:26
CH_TAGS_STRIP
const CH_TAGS_STRIP
Definition: utils.inc.php:22
$logged
global $logged
Definition: orders.php:37
ChPmtOrdersPage\$_oPayments
$_oPayments
Definition: orders.php:13
$iIndex
$iIndex
Definition: orders.php:39
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7
$GLOBALS
$GLOBALS['iAdminPage']
Definition: advanced_settings.php:10