/**
  * конструктор контроллера
  *
  * @return ничего не возвращает
  */
 public function __construct()
 {
     parent::__construct();
     $this->_set_title(implode(self::TITLE_SEP, array(__('Administrator'), __('Settings'), __('Manage Categories'))));
     $this->load->library('form');
     $this->load->model("category_model", "", TRUE);
 }
 /**
  * Конструктор контроллера настроек цен
  *
  */
 public function __construct()
 {
     $this->temporary = array('manage_channel_prices_cpm_sort_direction' => 'asc', 'manage_channel_prices_flat_rate_sort_direction' => 'asc');
     parent::__construct();
     $this->load->model('channel');
     $this->load->model('channel_program');
 }
 /**
  * конструктор класса
  *
  * @return ничего не возвращает
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('channel_program');
     $this->load->model('channel');
     $this->load->library("form");
 }
 public function Parent_change_pass()
 {
     parent::Parent_controller();
     $password_min = $this->global_variables->get("MinPasswordLen");
     $old = $this->entity->password($this->user_id);
     $this->form_data = array("name" => "change_password", "view" => "common/change_password/form.html", 'redirect' => $this->role . '/change_pass/success', "fields" => array("old" => array("display_name" => "Old Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|md5[{$old}]"), "password" => array("display_name" => "New Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|min_length[{$password_min}]"), "confirm" => array("display_name" => "Confirm New Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|matches[password]")));
 }
 public function Parent_change_login()
 {
     parent::Parent_controller();
     $password_min = $this->global_variables->get("MinPasswordLen");
     $old = $this->entity->password($this->user_id);
     $this->form_data = array("name" => "change_login", "view" => "common/change_login/form.html", 'redirect' => $this->role . '/change_login/success', "fields" => array("password" => array("display_name" => "Current Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|md5[{$old}]"), "login" => array("display_name" => "New Login", "id_field_type" => "string", "form_field_type" => "text", "validation_rules" => "required|valid_email")));
 }
 /**
  * конструктор контроллера
  *
  * @return ничего не возвращает
  */
 public function __construct()
 {
     $this->temporary = array('manage_gateways_status_filter' => null, 'manage_gateways_sort_field' => null, 'manage_gateways_sort_direction' => null, 'manage_gateways_columns' => 'all');
     parent::__construct();
     $this->_set_title(implode(self::TITLE_SEP, array(__('Administrator'), __('Payments'), __('Manage Payment Gateways'))));
     $this->load->model('roles');
     $enabled_roles = $this->roles->get_list(array('is_used' => 'true'));
     $this->publishers_is_enabled = in_array('publisher', $enabled_roles);
 }
示例#7
0
 public function Dashboard()
 {
     parent::Parent_controller();
     $this->_add_ajax();
     $this->load->model('entity', '', TRUE);
     $this->load->helper('fields');
     $this->load->library('Table_Builder');
     $this->load->library("Plugins", array('path' => array('advertiser', 'dashboard')));
 }
 public function __construct()
 {
     parent::__construct();
     $this->_add_ajax();
     $this->_set_title(implode(self::TITLE_SEP, array(__('Advertiser'), __($this->menu_item))));
     $this->load->model('site');
     $this->load->model('channel');
     $this->load->model('sites_channels');
     $this->load->helper('form');
 }
示例#9
0
 /**
  * конструктор класса
  *
  * @return ничего не возвращает
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('site');
     $this->load->model('category_model');
     $this->_add_ajax();
     $this->_add_css('fields/category-selector');
     $this->load->library("form");
     $this->load->helper('categoryselector');
 }
示例#10
0
 /**
  * конструктор класса,
  * вносит изменения в структуру базового класса 
  *
  * @return ничего не возвращает
  */
 public function Manage_ads()
 {
     parent::Parent_controller();
     $this->_add_ajax();
     $this->_set_title(__('Advertiser') . ' - ' . __('Manage Ads'));
     $this->_set_help_index("advertiser_manage_ads");
     $this->load->library('Plugins', array('path' => array('advertiser', 'manageads')));
     $this->session->unset_userdata('id_xml');
     $this->session->unset_userdata('add_site_channel');
 }
示例#11
0
 /**
  * конструктор класса,
  * подключает необходимые js библиотеки, загружает модели и хелперы
  *
  * @return ничего не возвращает
  */
 public function __construct()
 {
     parent::Parent_controller();
     $this->_add_ajax();
     $this->load->model('entity', '', TRUE);
     $this->load->helper('fields');
     $this->load->library('Table_Builder');
     // Загружаем dashboard
     $this->_dashboard = new Sppc_Dashboard();
     $this->_dashboard->setRole('admin');
 }
示例#12
0
 /**
  * конструктор класса
  *
  * @return ничего не возвращает
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Code_Color_Scheme_Model');
     $this->_add_ajax();
     $this->_add_java_script('farbtastic');
     $this->_add_css('farbtastic');
     $this->load->library("form");
     $this->load->library("tabs");
     $this->load->model('Code_Color_Scheme_Model', 'color_scheme');
 }
 public function __construct()
 {
     parent::__construct();
     $this->_add_ajax();
     //$this->_add_java_script ( 'stuff' );
     //$this->_add_java_script ( 'jquery-ui-1.7.2.custom.min' );
     //$this->_add_java_script ( 'gridwizard' );
     //$this->_add_css ( 'gridwizard' );
     $this->load->library("form");
     $this->load->library('Plugins', array('path' => array('common', 'edit_site_channel_layout'), 'interface' => 'Sppc_Common_SiteManage_Interface'));
 }
示例#14
0
 public function Parent_login()
 {
     parent::Parent_controller();
     //      header("Expires: " . gmdate("D, d M Y H:i:s" . " GMT"));    // дата в прошлом
     //      header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");                                                            // всегда модифицируется
     //      header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");  // HTTP/1.1
     //      header("Cache-Control: post-check=0, pre-check=0", false);
     //      header("Pragma: no-cache");                          // HTTP/1.0
     //      header('Cache-Control: ');
     //      header('Pragma: ');
     $this->load->library('Plugins', array('path' => array('review_controller'), 'interface' => 'Sppc_Search_Controller_SiteReviewInterface'));
 }
 /**
  * конструктор класса
  *
  * @return ничего не возвращает
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('payment_gateways');
     $this->_add_java_script('j');
     $this->_add_java_script('stuff');
     $this->_set_title(implode(self::TITLE_SEP, array(__('Administrator'), __('Settings'), __('Manage Payment Gateways'))));
     $this->_set_help_index("admin_settings_manage_payment_gateways");
     $this->load->library("form");
     $this->load->model('roles');
     $enabled_roles = $this->roles->get_list(array('is_used' => 'true'));
     $this->publishers_is_enabled = in_array('publisher', $enabled_roles);
 }
 /**
  * конструктор класса, вызов базового конструктора
  *
  * @return ничего не возвращает
  */
 public function Manage_ads_groups()
 {
     parent::Parent_controller();
     $pluginsConfig = Zend_Registry::getInstance()->get('pluginsConfig');
     if (isset($pluginsConfig->advertiser->manage_ads->groups)) {
         foreach ($pluginsConfig->advertiser->manage_ads->groups as $hookClass) {
             $hookObj = new $hookClass();
             if ($hookObj instanceof Sppc_Advertiser_ManageAds_Groups_EventHandlerInterface) {
                 $this->_hooks[] = $hookObj;
             }
         }
     }
 }
 /**
  * конструктор класса
  *
  * @return ничего не возвращает
  */
 public function __construct()
 {
     parent::__construct();
     $this->_add_ajax();
     $this->_add_java_script('farbtastic');
     $this->_add_css('farbtastic');
     $this->load->library("form");
     $this->load->library('tabs');
     $this->load->model('code_color_scheme_model', 'color_scheme');
     $this->load->model('site');
     $this->load->model('channel');
     $this->load->model('code_model');
 }
 public function __construct()
 {
     $this->temporary = array('manage_sites_channels_from' => 'select', 'manage_sites_channels_to' => 'today', 'manage_sites_channels_status_filter' => 'all', 'manage_sites_channels_quicksearch' => '', 'manage_sites_columns' => 'all', 'manage_channels_columns' => 'all', 'manage_sites_channels_channel_columns' => 'all', 'manage_sites_channels_site_columns' => 'all');
     parent::__construct();
     $this->load->model('locale_settings');
     $this->load->model('pagination_post');
     $this->load->model('site');
     $this->load->model('channel');
     $this->load->helper('periods');
     $this->load->library('Table_Builder');
     $this->load->library('form');
     $this->load->model("entity");
 }
示例#19
0
 /**
  * конструктор класса
  *
  * @return ничего не возвращает
  */
 public function __construct()
 {
     parent::__construct();
     $this->_add_ajax();
     $this->_add_java_script('farbtastic');
     $this->_add_css('farbtastic');
     $this->_add_css('fields/category-selector');
     $this->load->model('channel');
     $this->load->model('category_model');
     $this->load->model('site');
     $this->load->model('dimension');
     $this->load->library("form");
     $this->load->helper('categoryselector');
 }
 /**
  * конструктор класса,
  * подключает необходимые js библиотеки, загружает модели и хелперы
  *
  * @return ничего не возвращает
  */
 public function Manage_advertisers()
 {
     parent::Parent_controller();
     $this->_add_ajax();
     $this->load->model('entity', '', TRUE);
     $this->load->helper('fields');
     $this->load->library('Table_Builder');
     // load hooks
     $pluginsConfig = Zend_Registry::getInstance()->get('pluginsConfig');
     if (isset($pluginsConfig->admin->manage_advertisers_extended)) {
         foreach ($pluginsConfig->admin->manage_advertisers_extended as $hookClass) {
             $hookObj = new $hookClass();
             if ($hookObj instanceof Sppc_Admin_ManageAdvertisers_EventHandlerInterface) {
                 $this->_hooks[] = $hookObj;
             }
         }
     }
 }
示例#21
0
 /**
  * конструктор класса,
  * описывает форму для редактирования данных пользователя
  *
  * @return ничего не возвращает
  */
 public function Parent_entity()
 {
     parent::Parent_controller();
     $this->load->library('Plugins', array('path' => array('advertiser', 'sign_up'), 'interface' => 'Sppc_Advertiser_SignUp_Interface'));
     $this->form_mode = $this->input->post('upgrade_mail') === FALSE;
     $this->content['NEEDAGREE'] = '';
     $this->content['ERROR_BIRTHDAY'] = '';
     $this->load->model("entity");
     $password_min = $this->global_variables->get("MinPasswordLen");
     //$default_country = $this->global_variables->get("DefaultCountry");
     $this->form_data = array("name" => "sign_up", "view" => $this->view, "vars" => array("COUPONS_SETTINGS" => ''), "fields" => array("name" => array("display_name" => "Full name", "id_field_type" => "string", "form_field_type" => "text", "validation_rules" => "required", 'max' => 50), "mail" => array("display_name" => "E-mail", "id_field_type" => "string", "form_field_type" => "text", "validation_rules" => "required|valid_email", 'max' => 100), "password" => array("display_name" => "Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|min_length[{$password_min}]", "default" => NULL, 'max' => 20), "confirm" => array("display_name" => "Confirm Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|matches[password]", 'max' => 20), "country" => array("display_name" => "Country", "id_field_type" => "string", "form_field_type" => "select", "options" => "countries", 'params' => array('add_select' => true)), "timezone" => array("display_name" => "TimeZone", "id_field_type" => "int", "form_field_type" => "select", "options" => "timezones", 'params' => array('add_select' => true), "default" => ''), "city" => array("display_name" => "City", "id_field_type" => "string", "form_field_type" => "text", 'max' => 100), "state" => array("display_name" => "State", "id_field_type" => "string", "form_field_type" => "text", 'max' => 100), "address" => array("display_name" => "Address", "id_field_type" => "string", "form_field_type" => "text", 'max' => 100), "zip_postal" => array("display_name" => "ZIP/Postal Code", "id_field_type" => "string", "form_field_type" => "text", 'max' => 100), "phone" => array("display_name" => "Phone #", "id_field_type" => "string", "form_field_type" => "text", 'max' => 100), "agree" => array("display_name" => "Agree", "form_field_type" => "checkbox")));
     foreach ($this->_additional_form_fields as $field_name => $field) {
         $this->form_data['fields'][$field_name] = $field;
     }
     if ($this->show_upgrade_form == true) {
         $this->upgrade_form = array("name" => "upgrade_form", "view" => 'common/sign_up/upgrade_form.html', "fields" => array("upgrade_mail" => array("display_name" => "E-mail", "id_field_type" => "string", "form_field_type" => "text", "validation_rules" => "required|valid_email", 'max' => 100), "upgrade_password" => array("display_name" => "Password", "id_field_type" => "string", "form_field_type" => "password", "validation_rules" => "required|min_length[{$password_min}]", "default" => NULL, 'max' => 20)), "vars" => array("COUPONS_SETTINGS" => ""));
     }
 }
 /**
  * конструктор класса
  *
  * @return ничего не возвращает
  */
 public function System_settings()
 {
     parent::Parent_controller();
     $this->_set_title(implode(self::TITLE_SEP, array(__("Administrator"), __("System Settings"))));
     $this->_set_help_index("system_settings");
 }
示例#23
0
 public function Logout()
 {
     parent::Parent_controller();
     $this->_logout("admin/login");
 }
示例#24
0
 public function Terms()
 {
     parent::Parent_controller();
 }
示例#25
0
 public function Dashboard()
 {
     parent::Parent_controller();
 }
示例#26
0
 public function Contact_us()
 {
     parent::Parent_controller();
     $this->messageid = uniqid();
 }
示例#27
0
 /**
  * Конструктор класса
  *
  * @return Parent_targeting_group
  */
 public function Parent_targeting_list()
 {
     parent::Parent_controller();
 }
示例#28
0
 /**
  * конструктор класса, вызов базового конструктора
  *
  * @return ничего не возвращает
  */
 public function Manage_ads_ads()
 {
     parent::Parent_controller();
     $this->_load_temporary();
 }
 public function Parent_get_plugin()
 {
     parent::Parent_controller();
     $this->_add_css('cms_plugins/cms_plugins');
 }
 /**
  * Задание контента страницы с добавлением полей прогресса и кнопок навигации по шагам
  * '<%PROGRESS_BAR%>' - строка, отображающая последовательность шагов
  * '<%NAVIGATION_BAR%>' - панель, отображающая кнопки для переключения между шагами
  *
  * @param string $content контент страницы
  */
 public function _set_content($content)
 {
     $buttons_html = '';
     $steps_count = count($this->_steps);
     if (!$this->review_mode) {
         $steps_html = '';
         $steps_spacer = $this->load->view('common/campaign_wizard/steps_spacer.html', '', TRUE);
         for ($i = 0; $i < $steps_count; $i++) {
             if ($i > 0) {
                 $steps_html .= $steps_spacer;
             }
             if ($i < $this->_currentStep->getStep()) {
                 $steps_html .= $this->parser->parse('common/campaign_wizard/completed_step.html', array('STEP_TITLE' => __($this->_steps[$i]->getTitle())), TRUE);
             }
             if ($i == $this->_currentStep->getStep()) {
                 $steps_html .= $this->parser->parse('common/campaign_wizard/current_step.html', array('STEP_TITLE' => __($this->_steps[$i]->getTitle())), TRUE);
             }
             if ($i > $this->_currentStep->getStep()) {
                 $steps_html .= $this->parser->parse('common/campaign_wizard/not_completed_step.html', array('STEP_TITLE' => __($this->_steps[$i]->getTitle())), TRUE);
             }
         }
         //Back
         if (!is_null($this->_currentStep) && !$this->_currentStep->isFirstStep()) {
             $buttons_html .= $this->parser->parse('common/campaign_wizard/button.html', array('BUTTON_ICON' => 'ico-back', 'BUTTON_TITLE' => __('Back'), 'ON_CLICK' => 'onclick=\'top.document.location="<%SITEURL%>' . $this->_currentStep->getPreviousStep()->getController() . '"\''), TRUE);
         }
         //Next/Create
         if (!is_null($this->_currentStep) && !$this->_currentStep->isLastStep()) {
             $button_title = __('Next');
             $button_icon = 'ico-next';
         } else {
             $button_title = __($this->create_save_button);
             $button_icon = 'ico-confirm';
         }
         $buttons_html .= $this->parser->parse('common/campaign_wizard/button.html', array('BUTTON_ICON' => $button_icon, 'BUTTON_TITLE' => $button_title, 'ON_CLICK' => 'onclick="' . $this->on_submit . '"'), TRUE);
         //Cancel
         $cancel_func = 'go("<%SITEURL%><%INDEXPAGE%>' . $this->cancel_creation_controller . '")';
         if ('' != $this->cancel_confirmation) {
             $cancel_func = 'if(confirm("' . __($this->cancel_confirmation) . '")) {' . $cancel_func . '}';
         }
         $buttons_html .= "&nbsp;&nbsp;&nbsp;" . $this->parser->parse('common/campaign_wizard/button.html', array('BUTTON_ICON' => 'ico-cancel', 'BUTTON_TITLE' => __('Cancel'), 'ON_CLICK' => 'onclick=\'' . $cancel_func . '\''), TRUE);
         $progress_bar = '';
         if ($this->progressbar) {
             $progress_bar = $this->parser->parse('common/campaign_wizard/progress_bar.html', array('STEPS' => $steps_html), TRUE);
         }
         $content = str_replace('<%PROGRESS_BAR%>', $progress_bar, $content);
     } else {
         //открытие страницы в режиме review
         if (!is_null($this->_currentStep->getReviewNextStep())) {
             $button_title = __('Next');
             $button_icon = 'ico-next';
         } else {
             if (!is_null($this->_currentStep->getConfirmationButtonTitle())) {
                 $button_title = __($this->_currentStep->getConfirmationButtonTitle());
             } else {
                 $button_title = __('Apply');
             }
             $button_icon = 'ico-confirm';
         }
         $buttons_html .= $this->parser->parse('common/campaign_wizard/button.html', array('BUTTON_ICON' => $button_icon, 'BUTTON_TITLE' => $button_title, 'ON_CLICK' => 'onclick="' . $this->on_submit . '"'), TRUE);
         if (!is_null($this->_currentStep->getReviewPreviousStep())) {
             $back_cotnroller_path = $this->_currentStep->getReviewPreviousStep();
             $buttons_html .= $this->parser->parse('common/campaign_wizard/back_button.html', array('PATH_TO_PREV_CONTROLLER' => '<%SITEURL%><%INDEXPAGE%>' . $back_cotnroller_path), TRUE);
         } else {
             $lastStep = count($this->_steps) - 1;
             $back_cotnroller_path = $this->_steps[$lastStep]->getController();
             $buttons_html .= $this->parser->parse('common/campaign_wizard/button.html', array('BUTTON_ICON' => 'ico-back', 'BUTTON_TITLE' => __('Back'), 'ON_CLICK' => 'onclick=\'go("<%SITEURL%><%INDEXPAGE%>' . $back_cotnroller_path . '")\''), TRUE);
         }
         if (!is_null($this->_currentStep->getReviewTitle())) {
             $content = str_replace('<%PROGRESS_BAR%>', '<h1>' . __($this->_currentStep->getReviewTitle()) . '</h1>', $content);
         } else {
             $content = str_replace('<%PROGRESS_BAR%>', '', $content);
         }
     }
     $content = str_replace('<%FORM_TITLE%>', $this->form_title, $content);
     $navigation_bar = $this->parser->parse('common/campaign_wizard/navigation_bar.html', array('BUTTONS' => $buttons_html), TRUE);
     $content = str_replace('<%NAVIGATION_BAR%>', $navigation_bar, $content);
     parent::_set_content($content);
 }