Example #1
0
 /**
  * Show user list
  */
 private function showUsers()
 {
     $template = new TemplateHandler('users_list.xml', $this->parent->path . 'templates/');
     $template->setMappedModule($this->parent->name);
     $params = array('link_new' => window_OpenHyperlink($this->parent->getLanguageConstant('create_user'), 'system_users_create', 370, $this->parent->getLanguageConstant('title_users_create'), true, true, $this->parent->name, 'users_create'), 'link_templates' => window_OpenHyperlink($this->parent->getLanguageConstant('email_templates'), 'system_users_email_templates', 370, $this->parent->getLanguageConstant('title_email_templates'), true, true, $this->parent->name, 'email_templates'));
     $template->registerTagHandler('_user_list', $this, 'tag_UserList');
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
Example #2
0
 /**
  * Show main form.
  */
 private function showPageSpeed()
 {
     // populate cache for later use
     $this->data_cache = json_decode(file_get_contents($this->path . 'data/page_speed.json'));
     // show page content
     $template = new TemplateHandler('list.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('check_page_speed' => window_OpenHyperlink($this->getLanguageConstant('check_page_speed'), 'page_speed_check', 260, $this->getLanguageConstant('title_check_page_speed'), true, false, $this->name, 'check'), 'set_api_key' => window_OpenHyperlink($this->getLanguageConstant('set_api_key'), 'page_speed_set_api_key', 400, $this->getLanguageConstant('title_set_api_key'), true, false, $this->name, 'set_api_key'));
     // add tag handlers
     $template->registerTagHandler('_general_information', $this, 'tag_GeneralInformation');
     $template->registerTagHandler('_detailed_information', $this, 'tag_DetailedInformation');
     $template->setLocalParams($params);
     $template->restoreXML();
     $template->parse();
 }
Example #3
0
 /**
  * Show user pages list
  */
 private function showPages()
 {
     $template = new TemplateHandler('page_list.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('link_new' => window_OpenHyperlink($this->getLanguageConstant('create'), 'user_pages_create', 730, $this->getLanguageConstant('title_create_page'), true, true, $this->name, 'create_page'));
     $template->registerTagHandler('_page_list', $this, 'tag_PageList');
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
Example #4
0
 /**
  * Show tips management form
  */
 private function showTips()
 {
     $template = new TemplateHandler('list.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('link_new' => window_OpenHyperlink($this->getLanguageConstant('new'), 'tips_new', 400, $this->getLanguageConstant('title_tips_new'), true, false, $this->name, 'tips_new'));
     $template->registerTagHandler('_tip_list', $this, 'tag_TipList');
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
Example #5
0
 /**
  * Show management window for forms.
  */
 private function manageForms()
 {
     $template = new TemplateHandler('forms_list.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('link_new' => window_OpenHyperlink($this->getLanguageConstant('new'), 'contact_forms_add', 400, $this->getLanguageConstant('title_forms_add'), true, false, $this->name, 'forms_add'));
     $template->registerTagHandler('cms:list', $this, 'tag_FormList');
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
Example #6
0
 /**
  * Show list of affiliates
  */
 private function showAffiliates()
 {
     if ($_SESSION['level'] < 10) {
         die('Access denied!');
     }
     $template = new TemplateHandler('list.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('link_new' => window_OpenHyperlink($this->getLanguageConstant('new_affiliate'), 'affiliates_new', 370, $this->getLanguageConstant('title_affiliates_add'), true, false, $this->name, 'affiliate_add'));
     $template->registerTagHandler('_affiliate_list', $this, 'tag_AffiliateList');
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
Example #7
0
 /**
  * Show settings window.
  */
 private function show_intervals()
 {
     $template = new TemplateHandler('list.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('link_new' => window_OpenHyperlink($this->getLanguageConstant('new'), 'delivery_intervals_add', 500, $this->getLanguageConstant('title_interval_new'), true, false, $this->name, 'intervals_add'));
     $template->registerTagHandler('cms:list', $this, 'tag_IntervalList');
     $template->setLocalParams($params);
     $template->restoreXML();
     $template->parse();
 }
Example #8
0
 /**
  * Display channel management form
  */
 private function chatSettings()
 {
     $template = new TemplateHandler('channel_list.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('link_new' => window_OpenHyperlink($this->getLanguageConstant('add_channel'), 'chat_settings_add_channel', 400, $this->getLanguageConstant('title_channel_add'), true, false, $this->name, 'chat_channel_add'));
     $template->registerTagHandler('_channel_list', $this, 'tag_ChannelList');
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
Example #9
0
 /**
  * Show container management form
  */
 private function showContainers()
 {
     $template = new TemplateHandler('containers_list.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('link_new' => window_OpenHyperlink($this->getLanguageConstant('create_container'), 'gallery_containers_create', 400, $this->getLanguageConstant('title_containers_create'), true, false, $this->name, 'containers_create'));
     $template->registerTagHandler('_container_list', $this, 'tag_ContainerList');
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
Example #10
0
 /**
  * Show recurring plans form.
  */
 private function recurringPaymentPlans()
 {
     $template = new TemplateHandler('plans_list.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $template->registerTagHandler('cms:list', $this, 'tag_PlanList');
     $params = array('link_new' => window_OpenHyperlink($this->getLanguageConstant('new'), 'paypal_recurring_plans_new', 405, $this->getLanguageConstant('title_recurring_plans_new'), true, false, $this->name, 'recurring_plans_new'));
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
Example #11
0
 /**
  * Show license list form
  */
 private function showList()
 {
     $template = new TemplateHandler('list.xml', $this->path . 'templates/');
     $template->setMappedModule($this->name);
     $params = array('link_new' => window_OpenHyperlink($this->getLanguageConstant('new'), 'licenses_new', 400, $this->getLanguageConstant('title_licenses_new'), true, false, $this->name, 'new'), 'form_action' => backend_UrlMake($this->name, 'save'), 'cancel_action' => window_Close('page_settings'));
     $template->registerTagHandler('_list', $this, 'tag_LicenseList');
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }