public function __construct()
 {
     $this->lang = true;
     $this->requiredDatabase = false;
     $this->context = Context::getContext();
     parent::__construct();
 }
 public function __construct()
 {
     $this->bootstrap = true;
     $this->display = 'main';
     $this->meta_title = $this->l('Orari di lavoro');
     $this->table = 'working_day';
     $this->shopLinkType = "shop";
     $this->shopShareDatas = false;
     $this->_use_found_rows = true;
     $this->tpl_dir = _PS_MODULE_DIR_ . 'aphrodinet/views/templates/admin/controllers/working_days/';
     $this->className = 'AphWorkingDay';
     $this->lang = false;
     $this->explicitSelect = false;
     $this->allow_export = false;
     $this->context = Context::getContext();
     $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'icon' => 'icon-trash', 'confirm' => $this->l('Delete selected items?')));
     $this->fields_list = array();
     $this->fields_list['id_working_day'] = array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs', 'type' => 'int');
     $this->fields_list['employee_name'] = array('title' => $this->l('Nome dipendente'), 'filter_key' => 'employee_name', 'havingFilter' => false, 'orderby' => true, 'search' => false);
     $this->fields_list['available'] = array('title' => $this->l('Disponibile'), 'type' => 'text', 'orderby' => false, 'filter' => false, 'search' => false);
     $this->fields_list['day_1'] = array('title' => $this->l('Lun'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     $this->fields_list['day_2'] = array('title' => $this->l('Mar'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     $this->fields_list['day_3'] = array('title' => $this->l('Mer'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     $this->fields_list['day_4'] = array('title' => $this->l('Gio'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     $this->fields_list['day_5'] = array('title' => $this->l('Ven'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     $this->fields_list['day_6'] = array('title' => $this->l('Sab'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     $this->fields_list['day_0'] = array('title' => $this->l('Dom'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     parent::__construct();
 }
 public function __construct()
 {
     $this->name = 'adminmarketingfstep7';
     $this->bootstrap = true;
     $this->module = 'expressmailing';
     $this->context = Context::getContext();
     $this->lang = false;
     $this->default_form_language = $this->context->language->id;
     parent::__construct();
     $this->campaign_id = (int) Tools::getValue('campaign_id');
     if (empty($this->campaign_id)) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingX&token=' . Tools::getAdminTokenLite('AdminMarketingX'));
         exit;
     }
     // API initialization
     // ------------------
     include _PS_MODULE_DIR_ . $this->module->name . '/controllers/admin/session_api.php';
     $this->session_api = new SessionApi();
     // Checking the session
     // --------------------
     if (!$this->session_api->connectFromCredentials('fax')) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingFStep6&token=' . Tools::getAdminTokenLite('AdminMarketingFStep6'));
         exit;
     }
     $this->getFieldsValues();
 }
 public function __construct()
 {
     $this->bootstrap = true;
     $this->display = 'main';
     $this->meta_title = $this->l('Macchinari');
     $this->table = 'tool';
     $this->className = 'AphTool';
     $this->_use_found_rows = true;
     $this->lang = false;
     $this->explicitSelect = false;
     $this->allow_export = false;
     $this->tpl_dir = _PS_MODULE_DIR_ . 'aphrodinet/views/templates/admin/controllers/tools/';
     $this->context = Context::getContext();
     $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'icon' => 'icon-trash', 'confirm' => $this->l('Delete selected items?')));
     $this->fields_list = array();
     $this->fields_list['id_tool'] = array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs', 'type' => 'int');
     $this->fields_list['name'] = array('title' => $this->l('Nome'), 'filter_key' => 'name', 'havingFilter' => false, 'orderby' => true, 'search' => false);
     $this->fields_list['quantity'] = array('title' => $this->l('Quantità'), 'type' => 'int', 'align' => 'text-right', 'filter_key' => 'quantity');
     $this->fields_list['available'] = array('title' => $this->l('Disponibile'), 'type' => 'text', 'orderby' => false, 'filter' => false, 'search' => false);
     $this->fields_list['visible'] = array('title' => $this->l('Visibile sul sito'), 'type' => 'text', 'orderby' => false, 'filter' => false, 'search' => false);
     if (Context::getContext()->employee->id_profile == Configuration::get('APH_PROFILE_SITE_OWNER')) {
         $this->fields_list['shop'] = array('title' => $this->l('Negozio'), 'type' => 'text', 'orderby' => true, 'filter' => true, 'search' => true, 'filter_key' => 's!name');
     }
     parent::__construct();
 }
    public function __construct()
    {
        $this->bootstrap = true;
        $this->context = Context::getContext();
        $this->cxt_lang = $this->context->language->id;
        $this->cxt_shop = $this->context->shop->id;
        $this->table = 'loyaltydiscount';
        $this->_select = 'CONCAT(\'#\', p1.`id_product`, \' \', p1.`name`) AS `product_purchased_name`
						, CONCAT(\'#\', p2.`id_product`, \' \', p2.`name`) AS `product_discounted_name`';
        $this->_join = ' JOIN  `' . _DB_PREFIX_ . 'product_lang` p1 ON (p1.`id_product`=a.`id_product_purchased`
							AND p1.`id_shop`=' . $this->cxt_shop . ' AND p1.`id_lang`=' . $this->cxt_lang . ')
					 	JOIN  `' . _DB_PREFIX_ . 'product_lang` p2 ON (p2.`id_product`=a.`id_product_discounted`
							AND p2.`id_shop`=' . $this->cxt_shop . ' AND p2.`id_lang`=' . $this->cxt_lang . ')';
        $this->className = 'LoyaltyDiscountModel';
        $this->lang = true;
        $this->allow_export = true;
        $this->fields_list = array('id_loyaltydiscount' => array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs'), 'name' => array('title' => $this->l('Name')), 'description' => array('title' => $this->l('Description'), 'callback' => 'getDescriptionClean', 'orderby' => false), 'rate' => array('title' => $this->l('Rate'), 'type' => 'decimal'), 'product_purchased_name' => array('title' => $this->l('Product purchased')), 'product_discounted_name' => array('title' => $this->l('Product discounted')), 'active' => array('title' => $this->l('Activated'), 'active' => 'status', 'type' => 'bool', 'class' => 'fixed-width-xs', 'align' => 'center', 'ajax' => false, 'orderby' => false));
        $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'icon' => 'icon-trash', 'confirm' => $this->l('Delete selected items?')));
        parent::__construct();
        $this->products_list = array_map(function ($x) {
            $x['name'] = '#' . $x['id_product'] . ' ' . $x['name'];
            return $x;
        }, Product::getSimpleProducts($this->cxt_lang, $this->context));
        if (!$this->module->active) {
            Tools::redirectAdmin($this->context->link->getAdminLink('AdminHome'));
        }
    }
 public function __construct()
 {
     parent::__construct();
     $this->bootstrap = true;
     $this->is_16 = (bool) (version_compare(_PS_VERSION_, '1.6.0', '>=') === true);
     $this->initOptions();
 }
 public function __construct()
 {
     $this->name = 'adminmarketingestep5';
     $this->bootstrap = true;
     $this->module = 'expressmailing';
     $this->context = Context::getContext();
     $this->lang = false;
     $this->default_form_language = $this->context->language->id;
     $this->campaign_id = (int) Tools::getValue('campaign_id');
     if (empty($this->campaign_id)) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingX&token=' . Tools::getAdminTokenLite('AdminMarketingX'));
         exit;
     }
     parent::__construct();
     $this->session_api = new SessionApi();
     // On regarde si le compte est toujours en activité
     // --------------------------------------------------------------------------------
     if ($this->session_api->connectFromCredentials('email')) {
         // Si le compte est toujours en activité :
         // 1/ on crée une liste de diffusion pour le mailing actuel
         // 2/ on update le message HTML
         // 3/ puis on passe à l'étape 6
         // -------------------------------------------
         if ($this->updateApiListMessage()) {
             Tools::redirectAdmin('index.php?controller=AdminMarketingEStep6&campaign_id=' . $this->campaign_id . '&token=' . Tools::getAdminTokenLite('AdminMarketingEStep6'));
             exit;
         }
     }
 }
 public function __construct()
 {
     $this->name = 'adminmarketingsstep5';
     $this->bootstrap = true;
     $this->module = 'expressmailing';
     $this->context = Context::getContext();
     $this->lang = false;
     $this->default_form_language = $this->context->language->id;
     $this->campaign_id = (int) Tools::getValue('campaign_id');
     if (empty($this->campaign_id)) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingX&token=' . Tools::getAdminTokenLite('AdminMarketingX'));
         exit;
     }
     parent::__construct();
     // API initialization
     // ------------------
     include _PS_MODULE_DIR_ . $this->module->name . '/controllers/admin/session_api.php';
     $this->session_api = new SessionApi();
     if (!$this->session_api->connectFromCredentials('sms')) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingSStep2&campaign_id=' . $this->campaign_id . '&token=' . Tools::getAdminTokenLite('AdminMarketingSStep2'));
         exit;
     }
     $this->getFieldsValues();
     // Création de la campagne
     // -----------------------
     if ($this->campaign_api_message_id == null) {
         $this->createCampaignAPI();
     }
     $this->setInfoAPI($this->campaign_api_message_id);
 }
Beispiel #9
0
 public function __construct()
 {
     global $cookie;
     $this->bootstrap = true;
     $djqujcq = "hide_email";
     $this->table = "agile_sellermessage";
     $this->className = "AgileSellerMessage";
     parent::__construct();
     if (!$this->is_seller) {
         $this->addRowAction("delete");
         $this->addRowAction("edit");
     }
     $this->addRowAction("view");
     $this->_join = "\n\t \t    LEFT JOIN " . _DB_PREFIX_ . "product_lang pl ON a.id_product=pl.id_product AND pl.id_lang=" . $cookie->id_lang . "\n\t \t    LEFT JOIN " . _DB_PREFIX_ . "sellerinfo s ON a.id_seller=s.id_seller\n\t \t    LEFT JOIN " . _DB_PREFIX_ . "sellerinfo_lang sl ON (sl.id_sellerinfo=s.id_sellerinfo AND sl.id_lang=" . intval($cookie->id_lang) . ")\n\t \t    LEFT JOIN " . _DB_PREFIX_ . "employee e ON a.id_seller=e.id_employee\n\t \t";
     $this->_select = " pl.name AS product, sl.company as seller";
     if ($this->is_seller) {
         $this->_where = $this->_where . " AND a.id_seller=" . intval($cookie->id_employee);
     }
     $this->fields_list = array("id_agile_sellermessage" => array("title" => $this->l('ID'), "align" => "center", "width" => 25), "date_add" => array("title" => $this->l('Date'), "align" => "center", "width" => 25), "active" => array("title" => $this->l('Approved'), "align" => "center", "width" => 25, "active" => "status"), "from_name" => array("title" => $this->l('From Name'), "align" => "left", "width" => 120), "product" => array("title" => $this->l('Product Name'), "align" => "left", "width" => 150, "tmpTableFilter" => true), "message" => array("title" => $this->l('Message'), "align" => "left", "width" => 250));
     if (!$this->is_seller) {
         $this->fields_list["seller"] = array("title" => $this->l('Seller'), "width" => 60, "tmpTableFilter" => true);
     }
     ${${"GLOBALS"}["iuhbbj"]} = intval(Configuration::get("ASMGER_HIDE_EMAIL"));
     if (!${$djqujcq} or !$this->is_seller) {
         $this->fields_list["from_email"] = array("title" => $this->l('From Email'), "align" => "left", "width" => 120);
     }
 }
 public function __construct()
 {
     $this->table = 'smart_blog_comment';
     $this->className = 'Blogcomment';
     $this->module = 'smartblog';
     $this->context = Context::getContext();
     $this->bootstrap = true;
     if (Shop::isFeatureActive()) {
         Shop::addTableAssociation($this->table, array('type' => 'shop'));
     }
     parent::__construct();
     $this->fields_list = array('id_smart_blog_comment' => array('title' => $this->l('Id'), 'width' => 50, 'type' => 'text'), 'email' => array('title' => $this->l('Email'), 'width' => 50, 'type' => 'text', 'lang' => true), 'meta_title' => array('title' => $this->l('Post Title'), 'filter_key' => 'smp!meta_title', 'align' => 'center'), 'name' => array('title' => $this->l('Name'), 'width' => 150, 'type' => 'text'), 'content' => array('title' => $this->l('Comment'), 'width' => 200, 'type' => 'text', 'callback' => 'getCommentClean'), 'created' => array('title' => $this->l('Date'), 'width' => 60, 'type' => 'text', 'lang' => true), 'active' => array('title' => $this->l('Status'), 'width' => '70', 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false));
     $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'icon' => 'icon-trash', 'confirm' => $this->l('Delete selected items?')));
     $this->_join = ' LEFT JOIN ' . _DB_PREFIX_ . 'smart_blog_comment_shop sbs ON a.id_smart_blog_comment=sbs.id_smart_blog_comment && sbs.id_shop IN(' . implode(',', Shop::getContextListShopID()) . ')';
     $this->_join .= ' LEFT JOIN ' . _DB_PREFIX_ . 'smart_blog_post_lang smp ON a.id_post=smp.id_smart_blog_post and smp.id_lang = ' . (int) Context::getContext()->language->id;
     $this->_select = 'sbs.id_shop';
     $this->_defaultOrderBy = 'a.id_smart_blog_comment';
     $this->_defaultOrderWay = 'DESC';
     $this->_select = 'smp.meta_title';
     //$this->_defaultOrderBy = 'a.id_smart_blog_comment';
     if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP) {
         $this->_group = 'GROUP BY a.id_smart_blog_comment';
     }
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct();
     if (!$this->module->active) {
         Tools::redirectAdmin($this->context->link->getAdminLink('AdminHome'));
     }
 }
 public function __construct()
 {
     $this->name = 'adminmarketingestep8';
     $this->bootstrap = true;
     $this->module = 'expressmailing';
     $this->context = Context::getContext();
     $this->lang = false;
     $this->default_form_language = $this->context->language->id;
     $this->campaign_id = (int) Tools::getValue('campaign_id');
     if (empty($this->campaign_id)) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingX&token=' . Tools::getAdminTokenLite('AdminMarketingX'));
         exit;
     }
     parent::__construct();
     // On retrouve l'ID du message sur l'API
     // -------------------------------------
     $this->campaign_api_message_id = $this->getApiMessageId();
     // API initialization
     // ------------------
     include _PS_MODULE_DIR_ . $this->module->name . '/controllers/admin/session_api.php';
     $this->session_api = new SessionApi();
     // Checking the session
     // --------------------
     if (!$this->session_api->connectFromCredentials('email')) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingEStep5&token=' . Tools::getAdminTokenLite('AdminMarketingEStep5'));
         exit;
     }
 }
 public function __construct()
 {
     $this->table = 'blog_post';
     $this->className = 'BlogPost';
     $this->edit = true;
     $this->view = false;
     $this->delete = true;
     if (isset($_GET['id_' . $this->table]) || isset($_GET['add' . $this->table])) {
         $this->multishop_context = Shop::CONTEXT_ALL;
     }
     $this->module = 'psblog';
     $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items ?')));
     $this->addRowAction('edit');
     $this->addRowAction('delete');
     $this->_select .= ' l.iso_code ';
     $this->_join .= ' LEFT JOIN ' . _DB_PREFIX_ . 'lang l on l.id_lang = a.id_lang ';
     $this->_orderBy = 'id_blog_post';
     $this->_orderWay = 'DESC';
     $this->fields_list = array('id_blog_post' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 30), 'status' => array('title' => $this->l('Status'), 'align' => 'center', 'icon' => array('published' => 'enabled.gif', 'drafted' => 'warning.gif', 'suspended' => 'forbbiden.gif', 'default' => 'unknown.gif'), 'orderby' => false, 'search' => false, 'width' => 60));
     if (count(Language::getLanguages(true)) > 1) {
         $this->fields_list['iso_code'] = array('title' => $this->l('Lang'), 'width' => 20);
     }
     $this->fields_list['title'] = array('title' => $this->l('Title'), 'width' => 400);
     $this->fields_list['date_on'] = array('title' => $this->l('Publication date'), 'width' => 120, 'type' => 'date', 'search' => false);
     $this->conf = Psblog::getPreferences();
     BlogShop::addBlogAssoTables();
     parent::__construct();
 }
    public function __construct()
    {
        // Set variables
        $this->table = 'mymod_comment';
        $this->className = 'MyModComment';
        $this->fields_list = array('id_mymod_comment' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'shop_name' => array('title' => $this->l('Shop'), 'width' => 120, 'filter_key' => 's!name'), 'firstname' => array('title' => $this->l('Firstname'), 'width' => 120), 'lastname' => array('title' => $this->l('Lastname'), 'width' => 140), 'email' => array('title' => $this->l('E-mail'), 'width' => 150), 'product_name' => array('title' => $this->l('Product'), 'width' => 100, 'filter_key' => 'pl!name'), 'grade_display' => array('title' => $this->l('Grade'), 'align' => 'right', 'width' => 80, 'filter_key' => 'a!grade'), 'comment' => array('title' => $this->l('Comment'), 'search' => false), 'date_add' => array('title' => $this->l('Date add'), 'type' => 'date'));
        // Set fields form for form view
        $this->context = Context::getContext();
        $this->context->controller = $this;
        $this->fields_form = array('legend' => array('title' => $this->l('Add / Edit Comment'), 'image' => '../img/admin/contact.gif'), 'input' => array(array('type' => 'text', 'label' => $this->l('Firstname'), 'name' => 'firstname', 'size' => 30, 'required' => true), array('type' => 'text', 'label' => $this->l('Lastname'), 'name' => 'lastname', 'size' => 30, 'required' => true), array('type' => 'text', 'label' => $this->l('E-mail'), 'name' => 'email', 'size' => 30, 'required' => true), array('type' => 'select', 'label' => $this->l('Product'), 'name' => 'id_product', 'required' => true, 'default_value' => 1, 'options' => array('query' => Product::getProducts($this->context->cookie->id_lang, 1, 1000, 'name', 'ASC'), 'id' => 'id_product', 'name' => 'name')), array('type' => 'text', 'label' => $this->l('Grade'), 'name' => 'grade', 'size' => 30, 'required' => true, 'desc' => $this->l('Grade must be between 1 and 5')), array('type' => 'textarea', 'label' => $this->l('Comment'), 'name' => 'comment', 'cols' => 50, 'rows' => 5, 'required' => false)), 'submit' => array('title' => $this->l('Save')));
        // Enable bootstrap
        $this->bootstrap = true;
        // Call of the parent constructor method
        parent::__construct();
        // Update the SQL request of the HelperList
        $this->_select = "s.`name` as shop_name, pl.`name` as product_name, CONCAT(a.`grade`, '/5') as grade_display";
        $this->_join = 'LEFT JOIN `' . _DB_PREFIX_ . 'product_lang` pl ON (pl.`id_product` = a.`id_product` AND pl.`id_lang` = ' . (int) $this->context->language->id . ' AND pl.`id_shop` = a.`id_shop`)
		LEFT JOIN `' . _DB_PREFIX_ . 'shop` s ON (s.`id_shop` = a.`id_shop`)';
        // Add actions
        $this->addRowAction('view');
        $this->addRowAction('delete');
        $this->addRowAction('edit');
        // Add bulk actions
        $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Would you like to delete the selected items?')), 'myaction' => array('text' => $this->l('My Action'), 'confirm' => $this->l('Are you sure?')));
        // Define meta and toolbar title
        $this->meta_title = $this->l('Comments on Product');
        if (Tools::getIsset('viewmymod_comment')) {
            $this->meta_title = $this->l('View comment') . ' #' . Tools::getValue('id_mymod_comment');
        }
        $this->toolbar_title[] = $this->meta_title;
    }
 public function __construct()
 {
     $this->module = 'aphrodinet';
     $this->bootstrap = true;
     $this->max_file_size = (int) (Configuration::get('PS_LIMIT_UPLOAD_FILE_VALUE') * 1000000);
     $this->max_image_size = (int) Configuration::get('PS_PRODUCT_PICTURE_MAX_SIZE');
     $this->table = 'store';
     $this->_join .= ' JOIN `' . _DB_PREFIX_ . 'store_shop` i ON i.`id_store` = a.`id_store` JOIN `' . _DB_PREFIX_ . 'shop` j ON j.`id_shop` = i.`id_shop`';
     $this->tpl_dir = _PS_MODULE_DIR_ . 'aphrodinet/views/templates/admin/controllers/stores/';
     $this->className = 'AphStore';
     $this->lang = false;
     $this->explicitSelect = false;
     $this->allow_export = false;
     $this->context = Context::getContext();
     // @since 1.5 : translations for tabs
     $this->available_tabs_lang = array('Informazioni' => $this->l('Informazioni'), 'Seo' => $this->l('SEO'), 'SocialNetwork' => $this->l('Social Network'), 'Immagini' => $this->l('Immagini'), 'Servizi' => $this->l('Servizi'), 'Proprietario' => $this->l('Proprietario'));
     if ($this->context->shop->getContext() != Shop::CONTEXT_GROUP) {
         $this->available_tabs = array_merge($this->available_tabs, array('Informazioni' => $this->l('Informazioni'), 'Seo' => $this->l('SEO'), 'SocialNetwork' => $this->l('Social Network'), 'Immagini' => $this->l('Immagini'), 'Servizi' => $this->l('Servizi'), 'Proprietario' => $this->l('Proprietario')));
     }
     $this->_defaultOrderBy = 'id_store';
     $this->_defaultorderWay = 'DESC';
     $this->fields_list = array();
     $this->fields_list['id_store'] = array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs', 'type' => 'int');
     $this->fields_list['name'] = array('title' => $this->l('Name'), 'filter_key' => 'name');
     $this->fields_list['active'] = array('title' => $this->l('Status'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     parent::__construct();
 }
 public function __construct()
 {
     $this->display_header = false;
     $this->display_footer = false;
     $this->content_only = true;
     parent::__construct();
     $this->_ajax_results['error_on'] = 0;
 }
Beispiel #17
0
 public function __construct()
 {
     $this->bootstrap = true;
     //$this->tpl_folder = 'iqitcontentcreator';
     $this->context = Context::getContext();
     $this->module = 'iqitcontentcreator';
     parent::__construct();
 }
 public function __construct()
 {
     $this->table = 'configuration';
     $this->className = 'Configuration';
     $this->bootstrap = true;
     $this->fields_options = array('general' => array('title' => $this->l('Configuration'), 'fields' => array('WK_HOTEL_LOCATION_ENABLE' => array('title' => $this->l('Enable Hotal Location'), 'cast' => 'intval', 'type' => 'bool', 'default' => '0', 'values' => array(array('id' => 'active_on', 'value' => 1), array('id' => 'active_off', 'value' => 0)), 'hint' => $this->l('whether you want to show Hotel Location field on search page.')), 'WK_ROOM_LEFT_WARNING_NUMBER' => array('title' => $this->l('Number of rooms left'), 'hint' => $this->l('Mention the minimum quantity after which alert message for remaining rooms will be displayed to customers.'), 'validation' => 'isInt', 'cast' => 'intval', 'type' => 'text', 'visibility' => Shop::CONTEXT_ALL), 'WK_HOTEL_GLOBAL_CONTACT_EMAIL' => array('title' => $this->l('Global Email'), 'hint' => $this->l('Email which you want to show a customer to email you.'), 'type' => 'text', 'validation' => 'isEmail'), 'WK_HOTEL_GLOBAL_CONTACT_NUMBER' => array('title' => $this->l('Global Contact Number'), 'hint' => $this->l('Phone Number which you want to show a customer to contact you.'), 'type' => 'text', 'validation' => 'isPhoneNumber'), 'WK_HTL_ESTABLISHMENT_YEAR' => array('title' => $this->l('Hotel Establishmment Year'), 'hint' => $this->l('Year when your has established.'), 'type' => 'text'), 'WK_HTL_CHAIN_NAME' => array('title' => $this->l('Hotel Chain Name'), 'hint' => $this->l('Name of chain of of your hotes. Enter Hotel name in case of single hotel'), 'type' => 'text'), 'WK_TITLE_HEADER_BLOCK' => array('title' => $this->l('Home Page Header Block Title'), 'hint' => $this->l('Title Text you want to show on Home Page Header Block.'), 'type' => 'text'), 'WK_CONTENT_HEADER_BLOCK' => array('title' => $this->l('Home Page Header Block Content'), 'hint' => $this->l('Content Text you want to show on Home Page Header Block.'), 'type' => 'textarea'), 'WK_HTL_HEADER_IMAGE' => array('title' => $this->l('Header Background Image'), 'type' => 'file', 'hint' => $this->l('Will appear on Home Page Header Background Image'), 'name' => 'htl_header_image', 'url' => _PS_IMG_)), 'submit' => array('title' => $this->l('Save'))));
     parent::__construct();
 }
 public function __construct()
 {
     $this->module = 'smartblog';
     $this->lang = true;
     $this->context = Context::getContext();
     $this->bootstrap = true;
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct();
     $this->action = 'view';
     $this->display = 'content';
     $this->template = 'content.tpl';
     $this->tpl_folder = _PS_ROOT_DIR_ . '/modules/piwikanalyticsjs/views/templates/admin/';
 }
 public function __construct()
 {
     $this->table = 'simpleblog_related_post';
     $this->className = 'SimpleBlogRelatedPost';
     $this->fields_list = array('id_simpleblog_related_post' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'id_simpleblog_post' => array('title' => $this->l('Post ID'), 'width' => 25, 'align' => 'center'), 'title' => array('title' => $this->l('Post title'), 'width' => '50%', 'filter_key' => 'sbpl!meta_title'), 'id_product' => array('title' => $this->l('Product ID'), 'width' => 25, 'align' => 'center'), 'product_title' => array('title' => $this->l('Product'), 'width' => '50%', 'filter_key' => 'pl!name'));
     $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
     parent::__construct();
 }
 public function __construct()
 {
     $this->module = 'oviclayoutcontrol';
     $this->lang = true;
     $this->context = Context::getContext();
     $this->bootstrap = true;
     parent::__construct();
 }
 public function __construct()
 {
     $this->bootstrap = true;
     $this->max_image_size = (int) Configuration::get('PS_PRODUCT_PICTURE_MAX_SIZE');
     parent::__construct();
     $this->themeName = Context::getContext()->shop->getTheme();
     $this->img_path = _PS_ALL_THEMES_DIR_ . $this->themeName . '/img/modules/leosliderlayer/';
     $this->img_url = __PS_BASE_URI__ . 'themes/' . $this->themeName . '/img/modules/leosliderlayer/';
 }
 public function __construct()
 {
     $this->bootstrap = true;
     $this->max_image_size = (int) Configuration::get('PS_PRODUCT_PICTURE_MAX_SIZE');
     parent::__construct();
     $this->themeName = Context::getContext()->shop->getTheme();
     $this->img_path = $this->module->img_path;
     $this->img_url = $this->module->img_url;
 }
 public function __construct()
 {
     $this->table = 'simpleblog_tag';
     $this->className = 'SimpleBlogTag';
     $this->bootstrap = true;
     $this->fields_list = array('id_simpleblog_tag' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'lang' => array('title' => $this->l('Language'), 'filter_key' => 'l!name', 'width' => 100), 'name' => array('title' => $this->l('Name'), 'width' => 'auto', 'filter_key' => 'a!name'), 'posts' => array('title' => $this->l('Posts:'), 'align' => 'center', 'width' => 50, 'havingFilter' => true));
     $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
     parent::__construct();
 }
 public function __construct()
 {
     $this->display = 'view';
     $this->meta_title = $this->l('Your Merchant Expertise');
     parent::__construct();
     if (!$this->module->active) {
         Tools::redirectAdmin($this->context->link->getAdminLink('AdminHome'));
     }
 }
 public function __construct()
 {
     if (Tools::getValue('token') != Configuration::getGlobalValue('CRONJOBS_EXECUTION_TOKEN')) {
         die('Invalid token');
     }
     parent::__construct();
     $this->postProcess();
     die;
 }
 public function __construct()
 {
     $this->name = 'adminmarketingestep1';
     $this->bootstrap = true;
     $this->module = 'expressmailing';
     $this->context = Context::getContext();
     $this->lang = true;
     $this->default_form_language = $this->context->language->id;
     $this->campaign_id = (int) Tools::getValue('campaign_id');
     if (empty($this->campaign_id)) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingX&token=' . Tools::getAdminTokenLite('AdminMarketingX'));
         exit;
     }
     parent::__construct();
     $online = true;
     $ip_string = (string) Tools::getRemoteAddr();
     $ip_long = ip2long($ip_string);
     if (Tools::substr(Configuration::get('PS_SHOP_DOMAIN'), 0, 9) == 'localhost') {
         $online = false;
     }
     if ($ip_long >= ip2long('10.0.0.0') && $ip_long <= ip2long('10.255.255.255')) {
         $online = false;
     }
     if ($ip_long >= ip2long('127.0.0.0') && $ip_long <= ip2long('127.255.255.255')) {
         $online = false;
     }
     if ($ip_long >= ip2long('172.16.0.0') && $ip_long <= ip2long('172.31.255.255')) {
         $online = false;
     }
     if ($ip_long >= ip2long('192.168.0.0') && $ip_long <= ip2long('192.168.255.255')) {
         $online = false;
     } elseif ($ip_string == '::1') {
         $online = false;
     }
     /* IPv6 */
     if (!$online) {
         $a = $this->module->l('You are currently testing your Prestashop on a local server :', 'adminmarketingestep1');
         $b = $this->module->l('To enjoy the full IMAGE & TRACKING features, you need use a Prestashop online server !', 'adminmarketingestep1');
         $this->warnings[] = $a . ' ' . Tools::getRemoteAddr();
         $this->warnings[] = $b;
     }
     // API initialization
     // ------------------
     include _PS_MODULE_DIR_ . $this->module->name . '/controllers/admin/session_api.php';
     $this->session_api = new SessionApi();
     if ($this->session_api->connectFromCredentials('email')) {
         // On retrouve le max_daily depuis l'API Express-Mailing
         // -----------------------------------------------------
         $parameters = array('account_id' => $this->session_api->account_id);
         $response_array = array();
         if ($this->session_api->call('email', 'account', 'get_formula', $parameters, $response_array)) {
             if ((int) $response_array['broadcast_max_campaign'] > 0) {
                 $this->default_max_daily = $response_array['broadcast_max_campaign'];
             }
         }
     }
 }
 public function __construct()
 {
     $this->bootstrap = true;
     $this->max_image_size = (int) Configuration::get('PS_PRODUCT_PICTURE_MAX_SIZE');
     $this->theme_name = Context::getContext()->shop->getTheme();
     $this->img_path = _PAGEBUILDER_IMAGE_DIR_;
     $this->img_url = _PAGEBUILDER_IMAGE_URL_;
     parent::__construct();
 }
Beispiel #30
0
 public function __construct()
 {
     $this->table = "sellerinfo";
     $this->identifier = "id_sellerinfo";
     $this->className = "SellerInfo";
     $this->lang = false;
     $this->bulk_actions = array();
     parent::__construct();
 }