当前位置: 首页>>代码示例>>PHP>>正文


PHP AdminController::renderList方法代码示例

本文整理汇总了PHP中AdminController::renderList方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::renderList方法的具体用法?PHP AdminController::renderList怎么用?PHP AdminController::renderList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AdminController的用法示例。


在下文中一共展示了AdminController::renderList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: renderList

 public function renderList()
 {
     $this->_select = 'b.*';
     $this->_join = 'INNER JOIN `' . _DB_PREFIX_ . 'carrier_lang` b ON a.id_carrier = b.id_carrier' . Shop::addSqlRestrictionOnLang('b') . ' AND b.id_lang = ' . $this->context->language->id . ' LEFT JOIN `' . _DB_PREFIX_ . 'carrier_tax_rules_group_shop` ctrgs ON (a.`id_carrier` = ctrgs.`id_carrier` AND ctrgs.id_shop=' . (int) $this->context->shop->id . ')';
     $this->_use_found_rows = false;
     return parent::renderList();
 }
开发者ID:ortegon000,项目名称:tienda,代码行数:7,代码来源:AdminCarriersController.php

示例2: initRulesList

    public function initRulesList($id_group)
    {
        $this->table = 'tax_rule';
        $this->list_id = 'tax_rule';
        $this->identifier = 'id_tax_rule';
        $this->className = 'TaxRule';
        $this->lang = false;
        $this->list_simple_header = false;
        $this->toolbar_btn = null;
        $this->list_no_link = true;
        $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'), 'icon' => 'icon-trash'));
        $this->fields_list = array('country_name' => array('title' => $this->l('Country')), 'state_name' => array('title' => $this->l('State')), 'zipcode' => array('title' => $this->l('Zip/Postal code'), 'class' => 'fixed-width-md'), 'behavior' => array('title' => $this->l('Behavior')), 'rate' => array('title' => $this->l('Tax'), 'class' => 'fixed-width-sm'), 'description' => array('title' => $this->l('Description')));
        $this->addRowAction('edit');
        $this->addRowAction('delete');
        $this->_select = '
			c.`name` AS country_name,
			s.`name` AS state_name,
			CONCAT_WS(" - ", a.`zipcode_from`, a.`zipcode_to`) AS zipcode,
			t.rate';
        $this->_join = '
			LEFT JOIN `' . _DB_PREFIX_ . 'country_lang` c
				ON (a.`id_country` = c.`id_country` AND id_lang = ' . (int) $this->context->language->id . ')
			LEFT JOIN `' . _DB_PREFIX_ . 'state` s
				ON (a.`id_state` = s.`id_state`)
			LEFT JOIN `' . _DB_PREFIX_ . 'tax` t
				ON (a.`id_tax` = t.`id_tax`)';
        $this->_where = 'AND `id_tax_rules_group` = ' . (int) $id_group;
        $this->show_toolbar = false;
        $this->tpl_list_vars = array('id_tax_rules_group' => (int) $id_group);
        return parent::renderList();
    }
开发者ID:carloslastresDev,项目名称:HealthyTaiwan_UsingPrestaShop,代码行数:31,代码来源:AdminTaxRulesGroupController.php

示例3: renderList

 public function renderList()
 {
     $this->tpl_list_vars['zones'] = Zone::getZones();
     $this->tpl_list_vars['REQUEST_URI'] = $_SERVER['REQUEST_URI'];
     $this->tpl_list_vars['POST'] = $_POST;
     return parent::renderList();
 }
开发者ID:M03G,项目名称:PrestaShop,代码行数:7,代码来源:AdminStatesController.php

示例4: renderList

    public function renderList()
    {
        $this->addRowAction('view');
        $this->addRowAction('delete');
        $this->_select = '
 			CONCAT(c.`firstname`," ",c.`lastname`) as customer, cl.`name` as contact, l.`name` as language, group_concat(message) as messages,
 			(
				SELECT IFNULL(CONCAT(LEFT(e.`firstname`, 1),". ",e.`lastname`), "--")
				FROM `' . _DB_PREFIX_ . 'customer_message` cm2
				INNER JOIN ' . _DB_PREFIX_ . 'employee e
					ON e.`id_employee` = cm2.`id_employee`
				WHERE cm2.id_employee > 0
					AND cm2.`id_customer_thread` = a.`id_customer_thread`
				ORDER BY cm2.`date_add` DESC LIMIT 1
			) as employee';
        $this->_join = '
			LEFT JOIN `' . _DB_PREFIX_ . 'customer` c
				ON c.`id_customer` = a.`id_customer`
			LEFT JOIN `' . _DB_PREFIX_ . 'customer_message` cm
				ON cm.`id_customer_thread` = a.`id_customer_thread`
			LEFT JOIN `' . _DB_PREFIX_ . 'lang` l
				ON l.`id_lang` = a.`id_lang`
			LEFT JOIN `' . _DB_PREFIX_ . 'contact_lang` cl
				ON (cl.`id_contact` = a.`id_contact` AND cl.`id_lang` = ' . (int) $this->context->language->id . ')';
        $this->_group = 'GROUP BY cm.id_customer_thread';
        $contacts = CustomerThread::getContacts();
        $categories = Contact::getCategoriesContacts();
        $params = array($this->l('Total threads') => $all = CustomerThread::getTotalCustomerThreads(), $this->l('Threads pending') => $pending = CustomerThread::getTotalCustomerThreads('status LIKE "%pending%"'), $this->l('Total number of customer messages') => CustomerMessage::getTotalCustomerMessages('id_employee = 0'), $this->l('Total number of employee messages') => CustomerMessage::getTotalCustomerMessages('id_employee != 0'), $this->l('Unread threads') => $unread = CustomerThread::getTotalCustomerThreads('status = "open"'), $this->l('Closed threads') => $all - ($unread + $pending));
        $this->tpl_list_vars = array('contacts' => $contacts, 'categories' => $categories, 'params' => $params);
        return parent::renderList();
    }
开发者ID:rongandat,项目名称:vatfairfoot,代码行数:31,代码来源:AdminCustomerThreadsController.php

示例5: renderList

 public function renderList()
 {
     $this->addRowAction('edit');
     $this->addRowAction('delete');
     $this->_where = 'AND a.`deleted` = 0';
     return parent::renderList();
 }
开发者ID:jpodracky,项目名称:dogs,代码行数:7,代码来源:AdminCurrenciesController.php

示例6: renderList

    public function renderList()
    {
        $this->displayInformation('&nbsp;<b>' . $this->l('How do I create a new carrier?') . '</b>
			<br />
			<ul>
			<li>' . $this->l('Click "Add New."') . '<br /></li>
				<li>' . $this->l('Fill in the fields and click "Save."') . '</li>
				<li>' . $this->l('You need to set a price range -- or weight range -- for which the new carrier will be available.') . ' ' . $this->l('Under the "Shipping" menu, click either "Price ranges" or "Weight ranges.".') . '
				</li>
				<li>' . $this->l('Click "Add New."') . '</li>
				<li>' . $this->l('Select the name of the carrier before defining the price or weight range.') . ' ' . $this->l('For example, the carrier can be made available for a weight range between 0 and 5lbs. Another carrier can have a range between 5 and 10lbs.') . '
				</li>
				<li>' . $this->l('When you\'re done, click "Save."') . '</li>
				<li>' . $this->l('Click on the "Shipping" menu.') . '</li>
				<li>' . $this->l('You need to set the fees that will be applied for this carrier.') . ' ' . $this->l('At the bottom on the page -- in the "Fees" section -- select the name of the carrier.') . '
				</li>
				<li>' . $this->l('For each zone, enter a price and then click "Save."') . '</li>
				<li>' . $this->l('You\'re all set! The new carrier will now be displayed to customers.') . '</li>
			</ul>');
        $this->_select = 'b.*';
        $this->_join = 'LEFT JOIN `' . _DB_PREFIX_ . 'carrier_lang` b ON a.id_carrier = b.id_carrier' . Shop::addSqlRestrictionOnLang('b') . '
							LEFT JOIN `' . _DB_PREFIX_ . 'carrier_tax_rules_group_shop` ctrgs ON (a.`id_carrier` = ctrgs.`id_carrier`
								AND ctrgs.id_shop=' . (int) $this->context->shop->id . ')';
        $this->_where = 'AND b.id_lang = ' . $this->context->language->id;
        return parent::renderList();
    }
开发者ID:FAVHYAN,项目名称:a3workout,代码行数:26,代码来源:AdminCarriersController.php

示例7: renderList

 /**
  * AdminController::renderList() override
  * @see AdminController::renderList()
  */
 public function renderList()
 {
     $this->addRowAction('edit');
     $this->addRowAction('delete');
     $this->addRowAction('details');
     return parent::renderList();
 }
开发者ID:rongandat,项目名称:vatfairfoot,代码行数:11,代码来源:AdminAttributesGroupsController.php

示例8: renderList

 public function renderList()
 {
     $this->initToolbar();
     $this->toolbar_btn['new']['href'] .= '&amp;id_parent=' . (int) Tools::getValue('id_cms_category');
     $this->initTabModuleList();
     return parent::renderList();
 }
开发者ID:toufikadfab,项目名称:PrestaShop-1.5,代码行数:7,代码来源:AdminCmsCategoriesController.php

示例9: renderList

    /**
     * AdminController::renderList() override
     * @see AdminController::renderList()
     */
    public function renderList()
    {
        // removes links on rows
        $this->list_no_link = true;
        // adds actions on rows
        $this->addRowAction('edit');
        $this->addRowAction('view');
        $this->addRowAction('delete');
        // query: select
        $this->_select = '
			reference,
			name,
			management_type,
			CONCAT(e.lastname, \' \', e.firstname) as employee,
			ad.phone as contact,
			CONCAT(ad.city, \' - \', c.iso_code) as location';
        // query: join
        $this->_join = '
			LEFT JOIN `' . _DB_PREFIX_ . 'employee` e ON (e.id_employee = a.id_employee)
			LEFT JOIN `' . _DB_PREFIX_ . 'address` ad ON (ad.id_address = a.id_address)
			LEFT JOIN `' . _DB_PREFIX_ . 'country` c ON (c.id_country = ad.id_country)';
        $this->_use_found_rows = false;
        // display help informations
        $this->displayInformation($this->l('This interface allows you to manage your warehouses.') . '<br />');
        $this->displayInformation($this->l('Before adding stock in your warehouses, you should check the default currency used.') . '<br />');
        $this->displayInformation($this->l('You should also check the management type (according to the law in your country), the valuation currency and its associated carriers and shops.') . '<br />');
        $this->displayInformation($this->l('You can also see detailed information about your stock, such as its overall value, the number of products and quantities stored, etc.'));
        $this->displayInformation($this->l('Be careful! Products from different warehouses will need to be shipped in different packages.'));
        return parent::renderList();
    }
开发者ID:prestanesia,项目名称:PrestaShop,代码行数:34,代码来源:AdminWarehousesController.php

示例10: renderView

    public function renderView()
    {
        if ($id = Tools::getValue('id_feature')) {
            $this->setTypeValue();
            $this->list_id = 'feature_value';
            $this->position_identifier = 'id_feature_value';
            $this->position_group_identifier = 'id_feature';
            $this->lang = true;
            // Action for list
            $this->addRowAction('edit');
            $this->addRowAction('delete');
            if (!Validate::isLoadedObject($obj = new Feature((int) $id))) {
                $this->errors[] = Tools::displayError('An error occurred while updating the status for an object.') . '
					<b>' . $this->table . '</b> ' . Tools::displayError('(cannot load object)');
                return;
            }
            $this->feature_name = $obj->name;
            $this->toolbar_title = $this->feature_name[$this->context->employee->id_lang];
            $this->fields_list = array('id_feature_value' => array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs'), 'value' => array('title' => $this->l('Value')), 'position' => array('title' => $this->l('Position'), 'filter_key' => 'a!position', 'align' => 'center', 'class' => 'fixed-width-xs', 'position' => 'position'));
            $this->_where = sprintf('AND `id_feature` = %d', (int) $id);
            $this->_orderBy = 'position';
            self::$currentIndex = self::$currentIndex . '&id_feature=' . (int) $id . '&viewfeature';
            $this->processFilter();
            return AdminController::renderList();
        }
    }
开发者ID:hantonius,项目名称:advancedfeaturesvalues,代码行数:26,代码来源:AdminFeaturesController.php

示例11: renderList

    /**
     * Render form
     * @return string
     */
    public function renderList()
    {
        $this->form = '
			<div class="row">
				<table class="table">
					<thead>
						<tr>
							<th><span class="title_box ">Test</span></th>
							<th><span class="title_box ">Test</span></th>
							<th><span class="title_box ">Test</span></th>
						</tr>
					</thead>
					<tbody>
					</tbody>
				</table>
			</div>
			<div class="row">
				<div class="col-lg-12">
					<a class="btn btn-default pull-right" href="' . Tools::safeOutput($_SERVER['REQUEST_URI']) . '&refresh=1&refreshType=1">
						<i class="icon-refresh"></i> ' . $this->l('Refresh') . '
					</a>
				</div>
			</div>';
        $this->context->smarty->assign('form', $this->form);
        $this->output .= $this->context->smarty->fetch($this->path . 'views/templates/admin/socialuserheaderadmin.tpl');
        //$this->context->smarty->assign('current_url', '?controller=AdminXlsProductImport2&amp;token='.Tools::getAdminTokenLite('AdminSocialUserProfile'));
        return $this->output . parent::renderList();
    }
开发者ID:jpodracky,项目名称:dogs,代码行数:32,代码来源:AdminSocialUserHeaderController.php

示例12: renderList

 public function renderList()
 {
     $this->_select = 'z.`name` AS zone';
     $this->_join = 'LEFT JOIN `' . _DB_PREFIX_ . 'zone` z ON (z.`id_zone` = a.`id_zone`)';
     $this->tpl_list_vars['zones'] = Zone::getZones();
     return parent::renderList();
 }
开发者ID:AmineBENCHEIKHBRAHIM,项目名称:LnsTech-Prestashop-WebSite,代码行数:7,代码来源:AdminCountriesController.php

示例13: renderList

 /**
  * AdminController::renderList() override
  * @see AdminController::renderList()
  */
 public function renderList()
 {
     // sets actions
     $this->addRowAction('details');
     $this->addRowAction('addstock');
     $this->addRowAction('removestock');
     $this->addRowAction('transferstock');
     // no link on list rows
     $this->list_no_link = true;
     // inits toolbar
     $this->toolbar_btn = array();
     // overrides query
     $this->_select = 'a.id_product as id, COUNT(pa.id_product_attribute) as variations';
     $this->_join = 'LEFT JOIN `' . _DB_PREFIX_ . 'product_attribute` pa ON (pa.id_product = a.id_product)' . Shop::addSqlAssociation('product_attribute', 'pa', false);
     $this->_where = 'AND a.cache_is_pack = 0 AND a.is_virtual = 0';
     $this->_group = 'GROUP BY a.id_product';
     // displays informations
     $this->displayInformation($this->l('This interface allows you to manage product stock and their variations.') . '<br />');
     $this->displayInformation($this->l('Through this interface, you can increase and decrease product stock for an given warehouse.'));
     $this->displayInformation($this->l('Furthermore, you can alter product quantities between warehouses, or within one warehouse.') . '<br />');
     $this->displayInformation($this->l('If you want to increase quantities of multiple products at once, you can use the "Supply orders" page under the "Stock" menu.') . '<br />');
     $this->displayInformation($this->l('Finally, you need to provide the quantity that you\'ll be adding:'));
     $this->displayInformation($this->l('Usable for sale means that this quantity will be available in your shop(s),'));
     $this->displayInformation($this->l('otherwise it will be considered reserved (i.e. for other purposes).'));
     return parent::renderList();
 }
开发者ID:FAVHYAN,项目名称:a3workout,代码行数:30,代码来源:AdminStockManagementController.php

示例14: renderView

 public function renderView()
 {
     if ($id = Tools::getValue('id_attribute_group')) {
         $this->table = 'attribute';
         $this->className = 'Attribute';
         $this->identifier = 'id_attribute';
         $this->position_identifier = 'id_attribute';
         $this->position_group_identifier = 'id_attribute_group';
         $this->list_id = 'attribute_values';
         $this->lang = true;
         if (!Validate::isLoadedObject($obj = new AttributeGroup((int) $id))) {
             $this->errors[] = Tools::displayError('An error occurred while updating the status for an object.') . ' <b>' . $this->table . '</b> ' . Tools::displayError('(cannot load object)');
             return;
         }
         $this->attribute_name = $obj->name;
         $this->fields_list = array('id_attribute' => array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs'), 'name' => array('title' => $this->l('Value'), 'width' => 'auto', 'filter_key' => 'b!name'));
         if ($obj->group_type == 'color') {
             $this->fields_list['color'] = array('title' => $this->l('Color'), 'filter_key' => 'b!color');
         }
         $this->fields_list['position'] = array('title' => $this->l('Position'), 'filter_key' => 'a!position', 'position' => 'position', 'class' => 'fixed-width-md');
         $this->addRowAction('edit');
         $this->addRowAction('delete');
         $this->_where = 'AND a.`id_attribute_group` = ' . (int) $id;
         $this->_orderBy = 'position';
         self::$currentIndex = self::$currentIndex . '&id_attribute_group=' . (int) $id . '&viewattribute_group';
         $this->processFilter();
         return parent::renderList();
     }
 }
开发者ID:dev-lav,项目名称:htdocs,代码行数:29,代码来源:AdminAttributesGroupsController.php

示例15: renderList

 public function renderList()
 {
     $this->addRowAction('edit');
     $this->addRowAction('delete');
     $this->displayWarning($this->l('When you delete a language, all related translations in the database will be deleted.'));
     $this->displayInformation($this->l('Your .htaccess file must be writable.'));
     return parent::renderList();
 }
开发者ID:jicheng17,项目名称:vipinsg,代码行数:8,代码来源:AdminLanguagesController.php


注:本文中的AdminController::renderList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。