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


PHP Query_helper::get_list方法代码示例

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


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

示例1: system_add

 private function system_add()
 {
     if ($this->permissions['add']) {
         $this->current_action = 'add';
         $ajax['status'] = true;
         $data = array();
         $data['title'] = $this->lang->line("NEW_PRODUCT_ASSIGN");
         $data['product'] = array('id' => '', 'product_name' => '', 'product_code' => '');
         $data['product'] = $this->Product_assign_model->get_unassigned_products();
         $data['user'] = Query_helper::get_list($this->config->item('table_users'), 'name_en', array('status = 1'));
         $ajax['system_content'][] = array("id" => "#system_wrapper", "html" => $this->load_view("asset_management/product_assign/add_edit", $data, true));
         if ($this->message) {
             $ajax['system_message'] = $this->message;
         }
         $ajax['system_page_title'] = $this->lang->line("NEW_PRODUCT_ASSIGN");
         $ajax['system_page_url'] = $this->get_encoded_url('asset_management/product_assign/index/add');
         $this->jsonReturn($ajax);
     } else {
         $ajax['system_message'] = $this->lang->line("YOU_DONT_HAVE_ACCESS");
         $this->jsonReturn($ajax);
     }
 }
开发者ID:mazba,项目名称:ams,代码行数:22,代码来源:Product_assign.php

示例2: system_edit

 private function system_edit($id)
 {
     if ($this->permissions['edit']) {
         $this->current_action = 'edit';
         $ajax['status'] = true;
         $data = array();
         $data['title'] = $this->lang->line("EDIT_PRODUCT");
         $data['product'] = Query_helper::get_info($this->config->item('table_product'), '*', array('id =' . $id), 1);
         $data['category'] = Query_helper::get_list($this->config->item('table_product_category'), 'category_name', array('status = 1'));
         $data['manufacture'] = Query_helper::get_list($this->config->item('table_manufacture'), 'manufacture_name', array('status = 1'));
         $data['supplier'] = Query_helper::get_list($this->config->item('table_supplier'), 'company_name', array('status = 1'));
         $data['warehouse'] = Query_helper::get_list($this->config->item('table_warehouse'), 'warehouse_name', array('status = 1'));
         $ajax['system_content'][] = array("id" => "#system_wrapper", "html" => $this->load_view("asset_management/product/add_edit", $data, true));
         if ($this->message) {
             $ajax['system_message'] = $this->message;
         }
         $ajax['system_page_url'] = $this->get_encoded_url('asset_management/product/index/edit/' . $id);
         $this->jsonReturn($ajax);
     } else {
         $ajax['status'] = true;
         $ajax['system_message'] = $this->lang->line("YOU_DONT_HAVE_ACCESS");
         $this->jsonReturn($ajax);
     }
 }
开发者ID:mazba,项目名称:ams,代码行数:24,代码来源:Product.php


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