本文整理汇总了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);
}
}
示例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);
}
}