• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tool_tips_tpl函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中tool_tips_tpl函数的典型用法代码示例。如果您正苦于以下问题:PHP tool_tips_tpl函数的具体用法?PHP tool_tips_tpl怎么用?PHP tool_tips_tpl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: listado

 public function listado($offset = 0)
 {
     $seccion = '/listado';
     $tab_detalle = $this->tab3;
     $limit = $this->limit_max;
     $uri_view = $this->modulo . $seccion;
     $url_link = $this->path . 'listado';
     $filtro = $this->ajax_post('filtro') ? $this->ajax_post('filtro') : "";
     $sqlData = array('buscar' => $filtro, 'offset' => $offset, 'limit' => $limit, 'orden' => TRUE);
     $uri_segment = $this->uri_segment();
     $total_rows = count($this->db_model->db_get_data($sqlData));
     $sqlData['aplicar_limit'] = true;
     $list_content = $this->db_model->db_get_data($sqlData);
     $url = base_url($url_link);
     $paginador = $this->pagination_bootstrap->paginator_generate($total_rows, $url, $limit, $uri_segment, array('evento_link' => 'onclick', 'function_js' => 'load_content', 'params_js' => '1'));
     if ($total_rows) {
         foreach ($list_content as $value) {
             // Evento de enlace
             $atrr = array('href' => '#', 'onclick' => $tab_detalle . '(' . $value['id_nutricion_menu'] . ')');
             // Datos para tabla
             $tbl_data[] = array('id' => $value['id_nutricion_menu'], 'area' => tool_tips_tpl($value['menu'], $this->lang_item("tool_tip"), 'right', $atrr), 'clave_corta' => $value['clave_corta'], 'descripcion' => $value['sucursal']);
         }
         // Plantilla
         $tbl_plantilla = set_table_tpl();
         // Titulos de tabla
         $this->table->set_heading($this->lang_item("ID"), $this->lang_item("lbl_menu"), $this->lang_item("lbl_clave_corta"), $this->lang_item("lbl_sucursal"));
         // Generar tabla
         $this->table->set_template($tbl_plantilla);
         $tabla = $this->table->generate($tbl_data);
         $buttonTPL = array('text' => $this->lang_item("btn_xlsx"), 'iconsweets' => 'fa fa-file-excel-o', 'href' => base_url($this->path . 'export_xlsx?filtro=' . base64_encode($filtro)));
     } else {
         $buttonTPL = "";
         $msg = $this->lang_item("msg_query_null");
         $tabla = alertas_tpl('', $msg, false);
     }
     $tabData['filtro'] = isset($filtro) && $filtro != "" ? sprintf($this->lang_item("msg_query_search", false), $total_rows, $filtro) : "";
     $tabData['tabla'] = $tabla;
     $tabData['export'] = button_tpl($buttonTPL);
     $tabData['paginador'] = $paginador;
     $tabData['item_info'] = $this->pagination_bootstrap->showing_items($limit, $offset, $total_rows);
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $tabData, true));
     } else {
         return $this->load_view_unique($uri_view, $tabData, true);
     }
 }
开发者ID:minorusal,项目名称:admin_salon,代码行数:46,代码来源:menus.php


示例2: listado_marcas

 public function listado_marcas($offset = 0)
 {
     $data_tab_2 = "";
     $filtro = $this->ajax_post('filtro') ? $this->ajax_post('filtro') : "";
     $uri_view = $this->uri_modulo . '/listado';
     $limit = 10;
     $uri_segment = $this->uri_segment();
     $lts_content = $this->catalogos_model->get_marcas($limit, $offset, $filtro);
     $total_rows = count($this->catalogos_model->get_marcas($limit, $offset, $filtro, false));
     $url = base_url($this->uri_modulo . $this->uri_submodulo . '/' . $this->uri_seccion . '/listado_marcas');
     $paginador = $this->pagination_bootstrap->paginator_generate($total_rows, $url, $limit, $uri_segment, array('evento_link' => 'onclick', 'function_js' => 'load_content', 'params_js' => '1'));
     if ($total_rows > 0) {
         foreach ($lts_content as $value) {
             $atrr = array('href' => '#', 'onclick' => 'detalle_marca(' . $value['id_compras_marca'] . ')');
             $marcas = $this->catalogos_model->db_get_marcas_user($value['id_compras_marca']);
             $eliminar = '<span style="color:red;" id="ico-eliminar_' . $value['id_compras_marca'] . '" class="ico_eliminar fa fa-times" onclick="confirm_delete(' . $value['id_compras_marca'] . ')" title="' . $this->lang_item("lbl_eliminar") . '"></span>';
             $btn_acciones['eliminar'] = $marcas[0]['num_marcas'] == 0 ? $eliminar : '<span style="color:gray;" id="ico-eliminar_' . $value['id_compras_marca'] . '" class="ico_eliminar fa fa-times" title="' . $this->lang_item("lbl_eliminar") . '"></span>';
             $btn_acciones['detalle'] = '<span id="ico-detalle_' . $value['id_compras_marca'] . '" class="ico_acciones ico_detalle fa fa-search-plus" onclick="detalle(' . $value['id_compras_marca'] . ')" title="' . $this->lang_item("detalle") . '"></span>';
             $acciones = implode('&nbsp;&nbsp;&nbsp;', $btn_acciones);
             $tbl_data[] = array('id' => $value['id_compras_marca'], 'marca' => tool_tips_tpl($value['marca'], $this->lang_item("tool_tip"), 'right', $atrr), 'clave_corta' => $value['clave_corta'], 'descripcion' => $value['descripcion'], 'acciones' => $acciones);
         }
         $tbl_plantilla = set_table_tpl();
         $this->table->set_heading($this->lang_item("id"), $this->lang_item("marca"), $this->lang_item("cvl_corta"), $this->lang_item("descripcion"), $this->lang_item("acciones"));
         $this->table->set_template($tbl_plantilla);
         $tabla = $this->table->generate($tbl_data);
         $buttonTPL = array('text' => $this->lang_item("btn_xlsx"), 'iconsweets' => 'fa fa-file-excel-o', 'href' => base_url($this->uri_modulo . $this->uri_seccion . '/export_xlsx?filtro=' . base64_encode($filtro)));
     } else {
         $buttonTPL = "";
         $msg = $this->lang_item("msg_query_null");
         $tabla = alertas_tpl('', $msg, false);
     }
     $data_tab_2['filtro'] = $filtro != "" ? sprintf($this->lang_item("msg_query_search"), $total_rows, $filtro) : "";
     $data_tab_2['tabla'] = $tabla;
     $data_tab_2['export'] = button_tpl($buttonTPL);
     $data_tab_2['paginador'] = $paginador;
     $data_tab_2['item_info'] = $this->pagination_bootstrap->showing_items($limit, $offset, $total_rows);
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $data_tab_2, true));
     } else {
         return $this->load_view_unique($uri_view, $data_tab_2, true);
     }
 }
开发者ID:minorusal,项目名称:admin_salon,代码行数:42,代码来源:marcas.php


示例3: listado_articulos

 public function listado_articulos($offset = 0)
 {
     $data_tab_2 = "";
     $filtro = $this->ajax_post('filtro') ? $this->ajax_post('filtro') : "";
     $uri_view = $this->uri_modulo . '/listado';
     $limit = 10;
     $uri_segment = $this->uri_segment();
     $lts_content = $this->catalogos_model->get_articulos($limit, $offset, $filtro);
     $total_rows = count($this->catalogos_model->get_articulos($limit, $offset, $filtro, false));
     $url = base_url($this->uri_modulo . $this->uri_seccion . '/listado_articulos');
     $paginador = $this->pagination_bootstrap->paginator_generate($total_rows, $url, $limit, $uri_segment, array('evento_link' => 'onclick', 'function_js' => 'load_content', 'params_js' => '1'));
     if ($total_rows > 0) {
         foreach ($lts_content as $value) {
             $atrr = array('href' => '#', 'onclick' => 'detalle_articulo(' . $value['id_compras_articulo'] . ')');
             $tbl_data[] = array('id' => $value['articulo'], 'articulos' => tool_tips_tpl($value['articulo'], $this->lang_item("tool_tip"), 'right', $atrr), 'clave_corta' => $value['clave_corta'], 'articulo_tipo' => $value['articulo_tipo'], 'linea' => $value['linea'], 'um' => $value['um'], 'descripcion' => $value['descripcion']);
         }
         $tbl_plantilla = set_table_tpl();
         $this->table->set_heading($this->lang_item("articulos"), $this->lang_item("articulos"), $this->lang_item("cvl_corta"), $this->lang_item("articulo_tipo"), $this->lang_item("lineas"), $this->lang_item("um"), $this->lang_item("descripcion"));
         $this->table->set_template($tbl_plantilla);
         $tabla = $this->table->generate($tbl_data);
         $buttonTPL = array('text' => $this->lang_item("btn_xlsx"), 'iconsweets' => 'iconsweets-excel', 'href' => base_url($this->uri_modulo . $this->uri_seccion . '/export_xlsx?filtro=' . base64_encode($filtro)));
     } else {
         $buttonTPL = "";
         $msg = $this->lang_item("msg_query_null");
         $tabla = alertas_tpl('', $msg, false);
     }
     $data_tab_2['filtro'] = $filtro != "" ? sprintf($this->lang_item("msg_query_search", false), $total_rows, $filtro) : "";
     $data_tab_2['tabla'] = $tabla;
     $data_tab_2['export'] = button_tpl($buttonTPL);
     $data_tab_2['paginador'] = $paginador;
     $data_tab_2['item_info'] = $this->pagination_bootstrap->showing_items($limit, $offset, $total_rows);
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $data_tab_2, true));
     } else {
         return $this->load_view_unique($uri_view, $data_tab_2, true);
     }
 }
开发者ID:erick120191,项目名称:adminplayidea,代码行数:37,代码来源:articulos.php


示例4: listado

 public function listado($offset = 0)
 {
     $seccion = '/listado';
     $tab_detalle = $this->tab3;
     $limit = $this->limit_max;
     $uri_view = $this->modulo . $seccion;
     $url_link = $this->path . 'listado';
     $filtro = $this->ajax_post('filtro') ? $this->ajax_post('filtro') : "";
     $sqlData = array('buscar' => $filtro, 'offset' => $offset, 'limit' => $limit);
     $uri_segment = $this->uri_segment();
     $total_rows = count($this->db_model->db_get_data($sqlData));
     $sqlData['aplicar_limit'] = true;
     $list_content = $this->db_model->db_get_data($sqlData);
     $url = base_url($url_link);
     $paginador = $this->pagination_bootstrap->paginator_generate($total_rows, $url, $limit, $uri_segment, array('evento_link' => 'onclick', 'function_js' => 'load_content', 'params_js' => '1'));
     if ($total_rows) {
         foreach ($list_content as $value) {
             $atrr = array('href' => '#', 'onclick' => $tab_detalle . '(' . $value['id_administracion_subrogacion'] . ')');
             $subrogaciones = $this->db_model->db_get_subrogaciones_user($value['id_administracion_subrogacion']);
             //print_debug($subrogaciones);
             $eliminar = '<span style="color:red;" id="ico-eliminar_' . $value['id_administracion_subrogacion'] . '" class="ico_eliminar fa fa-times" onclick="confirm_delete(' . $value['id_administracion_subrogacion'] . ')" title="' . $this->lang_item("lbl_eliminar") . '"></span>';
             $btn_acciones['eliminar'] = !empty($subrogaciones) ? $eliminar : '<span style="color:gray;" id="ico-eliminar_' . $value['id_administracion_areas'] . '" class="ico_eliminar fa fa-times" title="' . $this->lang_item("lbl_eliminar") . '"></span>';
             $btn_acciones['detalle'] = '<span id="ico-detalle_' . $value['id_administracion_subrogacion'] . '" class="ico_acciones ico_detalle fa fa-search-plus" onclick="detalle(' . $value['id_administracion_subrogacion'] . ')" title="' . $this->lang_item("detalle") . '"></span>';
             $acciones = implode('&nbsp;&nbsp;&nbsp;', $btn_acciones);
             $tbl_data[] = array('id' => $value['id_administracion_subrogacion'], 'area' => tool_tips_tpl($value['subrogacion'], $this->lang_item("tool_tip"), 'right', $atrr), 'valor' => $value['valor'], 'clave_corta' => $value['clave_corta'], 'descripcion' => $value['descripcion'], 'acciones' => $acciones);
         }
         // Plantilla
         $tbl_plantilla = set_table_tpl();
         // Titulos de tabla
         $this->table->set_heading($this->lang_item("ID"), $this->lang_item("lbl_subrogacion"), $this->lang_item("lbl_valor"), $this->lang_item("lbl_clave_corta"), $this->lang_item("lbl_descripcion"), $this->lang_item("lbl_acciones"));
         // Generar tabla
         $this->table->set_template($tbl_plantilla);
         $tabla = $this->table->generate($tbl_data);
         $buttonTPL = array('text' => $this->lang_item("btn_xlsx"), 'iconsweets' => 'fa fa-file-excel-o', 'href' => base_url($this->path . 'export_xlsx?filtro=' . base64_encode($filtro)));
     } else {
         $buttonTPL = "";
         $msg = $this->lang_item("msg_query_null");
         $tabla = alertas_tpl('', $msg, false);
     }
     $tabData['filtro'] = isset($filtro) && $filtro != "" ? sprintf($this->lang_item("msg_query_search", false), $total_rows, $filtro) : "";
     $tabData['tabla'] = $tabla;
     $tabData['export'] = button_tpl($buttonTPL);
     $tabData['paginador'] = $paginador;
     $tabData['item_info'] = $this->pagination_bootstrap->showing_items($limit, $offset, $total_rows);
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $tabData, true));
     } else {
         return $this->load_view_unique($uri_view, $tabData, true);
     }
 }
开发者ID:minorusal,项目名称:administrador,代码行数:50,代码来源:subrogacion.php


示例5: listado

 public function listado($offset = 0)
 {
     $seccion = '/listado';
     $tab_detalle = $this->tab3;
     $limit = $this->limit_max;
     $uri_view = $this->modulo . $seccion;
     $url_link = $this->path . 'listado';
     $filtro = $this->ajax_post('filtro') ? $this->ajax_post('filtro') : "";
     $sqlData = array('buscar' => $filtro, 'offset' => $offset, 'limit' => $limit, 'aplicar_limit' => true);
     $uri_segment = $this->uri_segment();
     $list_content = $this->db_model->db_get_data($sqlData);
     $sqlData['aplicar_limit'] = null;
     $total_rows = count($this->db_model->db_get_data($sqlData));
     $url = base_url($url_link);
     $paginador = $this->pagination_bootstrap->paginator_generate($total_rows, $url, $limit, $uri_segment, array('evento_link' => 'onclick', 'function_js' => 'load_content', 'params_js' => '1'));
     if ($total_rows > 0) {
         foreach ($list_content as $value) {
             $atrr = array('href' => '#', 'onclick' => 'detalle(' . $value['id_compras_articulo_precios'] . ')');
             // Acciones
             $accion_id = $value['id_compras_articulo_precios'];
             $btn_acciones['detalle'] = '<span id="ico-detalle_' . $accion_id . '" class="ico_detalle fa fa-search-plus" onclick="detalle(' . $accion_id . ')" title="' . $this->lang_item("detalle") . '"></span>';
             $btn_acciones['eliminar'] = '<span id="ico-eliminar_' . $accion_id . '" class="ico_eliminar fa fa-times" onclick="eliminar(' . $accion_id . ')" title="' . $this->lang_item("eliminar") . '"></span>';
             $acciones = implode('&nbsp;&nbsp;&nbsp;', $btn_acciones);
             $tbl_data[] = array('id' => $value['id_compras_articulo_precios'], 'upc' => tool_tips_tpl($value['upc'], $this->lang_item("tool_tip"), 'right', $atrr), 'sku' => tool_tips_tpl($value['sku'], $this->lang_item("tool_tip"), 'right', $atrr), 'articulo' => tool_tips_tpl($value['articulo'], $this->lang_item("tool_tip"), 'right', $atrr), 'cl_region' => $value['cl_region'], 'nombre_comercial' => $value['nombre_comercial'], 'marca' => $value['marca'], 'presentacion' => $value['presentacion'], 'costo_sin_impuesto' => $this->session->userdata('moneda') . ' ' . $value['costo_sin_impuesto'], 'acciones' => $acciones);
         }
         // Plantilla
         $tbl_plantilla = set_table_tpl();
         // Titulos de tabla
         $this->table->set_heading($this->lang_item("listado_precios"), $this->lang_item("upc"), $this->lang_item("sku"), $this->lang_item("articulo"), $this->lang_item("cl_region"), $this->lang_item("proveedor"), $this->lang_item("marca"), $this->lang_item("presentacion"), $this->lang_item("costo"), $this->lang_item("acciones"));
         // Generar tabla
         $this->table->set_template($tbl_plantilla);
         $tabla = $this->table->generate($tbl_data);
         $buttonTPL = array('text' => $this->lang_item("btn_xlsx"), 'iconsweets' => 'iconsweets-excel', 'href' => base_url($this->path . 'export_xlsx?filtro=' . base64_encode($filtro)));
     } else {
         $buttonTPL = "";
         $msg = $this->lang_item("msg_query_null");
         $tabla = alertas_tpl('', $msg, false);
     }
     $tabData['filtro'] = isset($filtro) && $filtro != "" ? sprintf($this->lang_item("msg_query_search"), $total_rows, $filtro) : "";
     $tabData['tabla'] = $tabla;
     $tabData['export'] = button_tpl($buttonTPL);
     $tabData['paginador'] = $paginador;
     $tabData['item_info'] = $this->pagination_bootstrap->showing_items($limit, $offset, $total_rows);
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $tabData, true));
     } else {
         return $this->load_view_unique($uri_view, $tabData, true);
     }
 }
开发者ID:erick120191,项目名称:adminplayidea,代码行数:49,代码来源:listado_precios.php


示例6: listado

 public function listado($offset = 0)
 {
     $data_tab_2 = "";
     $filtro = $this->ajax_post('filtro') ? $this->ajax_post('filtro') : "";
     $uri_view = $this->uri_modulo . 'listado';
     $limit = 10;
     $uri_segment = $this->uri_segment();
     $lts_content = $this->clientes_model->consulta_clientes($limit, $offset, $filtro);
     $total_rows = count($this->clientes_model->consulta_clientes($limit, $offset, $filtro, false));
     $url = base_url($this->uri_modulo . $this->uri_submodulo . 'listado');
     $paginador = $this->pagination_bootstrap->paginator_generate($total_rows, $url, $limit, $uri_segment, array('evento_link' => 'onclick', 'function_js' => 'load_content', 'params_js' => '1'));
     if ($total_rows > 0) {
         foreach ($lts_content as $value) {
             $atrr = array('href' => '#', 'onclick' => 'detalle(' . $value['id_ventas_clientes'] . ')');
             $clientes = $this->clientes_model->sucursales_cliente_venta($value['id_ventas_clientes']);
             $eliminar = '<span style="color:red;" id="ico-eliminar_' . $value['id_ventas_clientes'] . '" class="ico_eliminar fa fa-times" onclick="confirm_delete(' . $value['id_ventas_clientes'] . ')" title="' . $this->lang_item("lbl_eliminar") . '"></span>';
             $btn_acciones['eliminar'] = $clientes[0]['num_clientes'] == 0 ? $eliminar : '<span style="color:gray;" id="ico-eliminar_' . $value['id_ventas_clientes'] . '" class="ico_eliminar fa fa-times" title="' . $this->lang_item("lbl_eliminar") . '"></span>';
             $acciones = implode('&nbsp;&nbsp;&nbsp;', $btn_acciones);
             $tbl_data[] = array('id' => $value['nombre'], 'nombre_cliente' => tool_tips_tpl($value['nombre'] . ' ' . $value['paterno'] . ' ' . $value['materno'], $this->lang_item("tool_tip"), 'right', $atrr), 'razon_social' => $value['razon_social'], 'clave_corta' => $value['cv_cliente'], 'rfc' => $value['rfc'], 'telefonos' => $value['telefonos'], 'id_entidad' => $value['entidad'], 'id_sucursal' => $value['sucursal'], 'acciones' => $acciones);
         }
         $tbl_plantilla = set_table_tpl();
         $this->table->set_heading($this->lang_item("nombre_cliente"), $this->lang_item("nombre_cliente"), $this->lang_item("razon_social"), $this->lang_item("clave_corta"), $this->lang_item("rfc_clientes"), $this->lang_item("telefonos"), $this->lang_item("entidad"), $this->lang_item("sucursal"), $this->lang_item("acciones"));
         $this->table->set_template($tbl_plantilla);
         $tabla = $this->table->generate($tbl_data);
         $buttonTPL = array('text' => array($this->lang_item('btn_import_xlsx'), $this->lang_item("btn_xlsx")), 'event' => array(array('event' => 'onclick', 'function' => 'upload_file', 'params' => '')), 'iconsweets' => array('fa fa-cloud-upload', 'fa fa-file-excel-o'), 'href' => array('', base_url($this->uri_modulo . $this->uri_submodulo . 'export_xlsx?filtro=' . base64_encode($filtro))));
     } else {
         $msg = $this->lang_item("msg_query_null");
         $tabla = alertas_tpl('', $msg, false);
         $buttonTPL = "";
     }
     $data_tab_2['filtro'] = $filtro != "" ? sprintf($this->lang_item("msg_query_search"), $total_rows, $filtro) : "";
     $data_tab_2['export'] = button_tpl($buttonTPL);
     $data_tab_2['tabla'] = $tabla;
     $data_tab_2['paginador'] = $paginador;
     $data_tab_2['item_info'] = $this->pagination_bootstrap->showing_items($limit, $offset, $total_rows);
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $data_tab_2, true));
     } else {
         return $this->load_view_unique($uri_view, $data_tab_2, true);
     }
 }
开发者ID:minorusal,项目名称:admin_salon,代码行数:41,代码来源:clientes.php


示例7: listado

 public function listado($offset = 0)
 {
     // Crea tabla con listado de elementos capturados
     $accion = $this->tab['listado'];
     $tab_detalle = $this->tab['detalle'];
     $limit = $this->limit_max;
     $uri_view = $this->modulo . '/' . $accion;
     $url_link = $this->modulo . '/' . $this->submodulo . '/' . $accion;
     $buttonTPL = '';
     $filtro = $this->ajax_post('filtro') ? $this->ajax_post('filtro') : "";
     $sqlData = array('buscar' => $filtro, 'offset' => $offset, 'limit' => $limit);
     $uri_segment = $this->uri_segment();
     $total_rows = count($this->db_model->db_get_data($sqlData));
     $sqlData['aplicar_limit'] = false;
     $list_content = $this->db_model->db_get_data($sqlData);
     $url = base_url($url_link);
     $paginador = $this->pagination_bootstrap->paginator_generate($total_rows, $url, $limit, $uri_segment, array('evento_link' => 'onclick', 'function_js' => 'load_content', 'params_js' => '1'));
     if ($total_rows) {
         foreach ($list_content as $value) {
             // Evento de enlace
             $atrr = array('href' => '#', 'onclick' => $tab_detalle . '(' . $value['id_compras_orden'] . ')');
             // Acciones
             $accion_id = $value['id_compras_orden'];
             $btn_acciones['detalle'] = '<span id="ico-detalle_' . $accion_id . '" class="ico_acciones ico_detalle fa fa-search-plus" onclick="detalle(' . $accion_id . ')" title="' . $this->lang_item("detalle") . '"></span>';
             $btn_acciones['agregar'] = '<span id="ico-articulos_' . $accion_id . '" class="ico_acciones ico_articulos fa fa-cart-plus" onclick="articulos(' . $accion_id . ')" title="' . $this->lang_item("agregar_articulos") . '"></span>';
             $btn_acciones['eliminar'] = '<span id="ico-eliminar_' . $accion_id . '" class="ico_acciones ico_eliminar fa fa-times" onclick="eliminar(' . $accion_id . ')" title="' . $this->lang_item("eliminar") . '"></span>';
             $btn_acciones['imprimir'] = '<span id="ico-imprimir_' . $accion_id . '" class="ico_acciones ico_imprimir fa fa-print" onclick="ver_pdf(\'' . base_url($this->modulo . '/' . $this->submodulo) . '/export_imprimir?id=' . $accion_id . '\');" title="' . $this->lang_item("imprimir") . '"></span>';
             $acciones = implode('&nbsp;&nbsp;&nbsp;', $btn_acciones);
             // Datos para tabla
             $tbl_data[] = array('id' => $value['id_compras_orden'], 'orden_num' => tool_tips_tpl($value['orden_num'], $this->lang_item("tool_tip"), 'right', $atrr), 'descripcion' => tool_tips_tpl($value['descripcion'], $this->lang_item("tool_tip"), 'right', $atrr), 'sucursal' => $value['sucursal'], 'timestamp' => $value['timestamp'], 'entrega_fecha' => $value['entrega_fecha'], 'estatus' => $value['estatus'], 'acciones' => $acciones);
         }
         // Plantilla
         $tbl_plantilla = set_table_tpl();
         // Titulos de tabla
         $this->table->set_heading($this->lang_item("id"), $this->lang_item("orden_num"), $this->lang_item("descripcion"), $this->lang_item("sucursal"), $this->lang_item("fecha_registro"), $this->lang_item("entrega_fecha"), $this->lang_item("estatus"), $this->lang_item("acciones"));
         // Generar tabla
         $this->table->set_template($tbl_plantilla);
         $tabla = $this->table->generate($tbl_data);
         // XLS
         $buttonTPL = array('text' => $this->lang_item("btn_xlsx"), 'iconsweets' => 'iconsweets-excel', 'href' => base_url($this->modulo . '/' . $this->submodulo) . '/export_xlsx?filtro=' . base64_encode($filtro));
     } else {
         $msg = $this->lang_item("msg_query_null");
         $tabla = alertas_tpl('', $msg, false);
     }
     $tabData['filtro'] = isset($filtro) && $filtro != "" ? sprintf($this->lang_item("msg_query_search", false), $total_rows, $filtro) : "";
     $tabData['tabla'] = $tabla;
     $tabData['paginador'] = $paginador;
     $tabData['item_info'] = $this->pagination_bootstrap->showing_items($limit, $offset, $total_rows);
     $tabData['export'] = button_tpl($buttonTPL);
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $tabData, true));
     } else {
         return $this->load_view_unique($uri_view, $tabData, true);
     }
 }
开发者ID:erick120191,项目名称:adminplayidea,代码行数:55,代码来源:ordenes.php


示例8: listado

 public function listado($offset = 0)
 {
     $seccion = '/listado';
     $tab_detalle = $this->tab3;
     $limit = $this->limit_max;
     $uri_view = $this->modulo . $seccion;
     $url_link = $this->path . 'listado';
     $filtro = $this->ajax_post('filtro') ? $this->ajax_post('filtro') : "";
     $sqlData = array('buscar' => $filtro, 'offset' => $offset, 'limit' => $limit);
     $uri_segment = $this->uri_segment();
     $total_rows = count($this->db_model->db_get_data($sqlData));
     $sqlData['aplicar_limit'] = false;
     $list_content = $this->db_model->db_get_data($sqlData);
     $url = base_url($url_link);
     $paginador = $this->pagination_bootstrap->paginator_generate($total_rows, $url, $limit, $uri_segment, array('evento_link' => 'onclick', 'function_js' => 'load_content', 'params_js' => '1'));
     if ($total_rows) {
         foreach ($list_content as $value) {
             // Evento de enlace
             $atrr = array('href' => '#', 'onclick' => $tab_detalle . '(' . $value['id_sucursal'] . ')');
             $btn_acciones['ficha'] = '<span style="color:blue;"  class="ico_acciones ico_articulos fa fa-search-plus" onclick="sucursales(' . $value['id_sucursal'] . ')" title="' . $this->lang_item("lbl_ficha_tecnica") . '"></span>';
             $btn_acciones['excel'] = '<span id="ico-excel_' . $value['id_sucursal'] . '" class="ico_acciones ico_excel fa fa-file-text" onclick="window.location.href=\'' . base_url($this->path . 'export_sucursal_xlsx?filtro=' . base64_encode($value['id_sucursal'])) . '\';" title="' . $this->lang_item("reporte") . '"></span>';
             $acciones = implode('&nbsp;&nbsp;&nbsp;', $btn_acciones);
             // Datos para tabla
             $tbl_data[] = array('id' => $value['id_sucursal'], 'sucursal' => tool_tips_tpl($value['sucursal'], $this->lang_item("tool_tip"), 'right', $atrr), 'clave_corta' => $value['cv_sucursal'], 'horario_atencion' => $value['inicio'] . ' a ' . $value['final'], 'regiones' => $value['region'], 'entidad' => $value['entidad'], 'direccion' => tool_tips_tpl($value['direccion'], $this->lang_item("tool_tip"), 'right', $atrr), 'acciones' => $acciones);
         }
         // Plantilla
         $tbl_plantilla = set_table_tpl();
         // Titulos de tabla
         $this->table->set_heading($this->lang_item("lbl_id"), $this->lang_item("lbl_sucursal"), $this->lang_item("lbl_clave_corta"), $this->lang_item("lbl_horario_atencion"), $this->lang_item("lbl_region"), $this->lang_item("lbl_entidad"), $this->lang_item("lbl_direccion"), $this->lang_item("lbl_acciones"));
         // Generar tabla
         $this->table->set_template($tbl_plantilla);
         $tabla = $this->table->generate($tbl_data);
         $buttonTPL = array('text' => $this->lang_item("btn_xlsx"), 'iconsweets' => 'iconsweets-excel', 'href' => base_url($this->path . 'export_xlsx?filtro=' . base64_encode($filtro)));
     } else {
         $buttonTPL = "";
         $msg = $this->lang_item("msg_query_null");
         $tabla = alertas_tpl('', $msg, false);
     }
     $tabData['filtro'] = isset($filtro) && $filtro != "" ? sprintf($this->lang_item("msg_query_search", false), $total_rows, $filtro) : "";
     $tabData['tabla'] = $tabla;
     $tabData['export'] = button_tpl($buttonTPL);
     $tabData['paginador'] = $paginador;
     $tabData['item_info'] = $this->pagination_bootstrap->showing_items($limit, $offset, $total_rows);
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $tabData, true));
     } else {
         return $this->load_view_unique($uri_view, $tabData, true);
     }
 }
开发者ID:erick120191,项目名称:adminplayidea,代码行数:49,代码来源:listado_sucursales.php


示例9: listado

 public function listado($offset = 0)
 {
     $seccion = '';
     $filtro = $this->ajax_post('filtro') ? $this->ajax_post('filtro') : "";
     $accion = $this->tab['listado'];
     $tab_detalle = $this->tab['detalle'];
     $limit = $this->limit_max;
     $uri_view = $this->modulo . '/' . $accion;
     $url_link = $this->path . $seccion . $accion;
     $sqlData = array('user' => $this->session->userdata('id_usuario'), 'buscar' => $filtro, 'offset' => $offset, 'limit' => $limit, 'aplicar_limit' => true);
     $uri_segment = $this->uri_segment();
     $total_rows = count($this->db_model->get_users($sqlData));
     $list_content = $this->db_model->get_users($sqlData);
     $url = base_url($url_link);
     $paginador = $this->pagination_bootstrap->paginator_generate($total_rows, $url, $limit, $uri_segment, array('evento_link' => 'onclick', 'function_js' => 'load_content', 'params_js' => '1'));
     if ($total_rows > 0) {
         foreach ($list_content as $value) {
             // Evento de enlace
             $atrr = array('href' => '#', 'onclick' => $tab_detalle . '(' . $value['id_personal'] . ')');
             $btn_acciones['ficha'] = '<span style="color:blue;"  class="ico_acciones ico_articulos fa fa-user" onclick="asignar_perfil(' . $value['id_personal'] . ',' . $value['id_usuario'] . ',' . $value['id_perfil'] . ')" title="' . $this->lang_item("lbl_asignar_perfil") . '"></span>';
             $btn_acciones['email'] = '<span style="color:green;"  class="ico_acciones ico_articulos fa fa-envelope" onclick="enviar_email()" title="' . $this->lang_item("lbl_enviar_email") . '"></span>';
             $acciones = implode('&nbsp;&nbsp;&nbsp;', $btn_acciones);
             // Datos para tabla
             $tbl_data[] = array('id' => $value['id_usuario'], 'nombre' => tool_tips_tpl($value['name'], $this->lang_item("tool_tip"), 'right', $atrr), 'nombre_de_usuario' => $value['user'], 'perfil' => $value['perfil'], 'area' => $value['area'], 'puesto' => $value['puesto'], 'acciones' => $acciones);
         }
         $tbl_plantilla = set_table_tpl();
         $this->table->set_heading($this->lang_item("id"), $this->lang_item("lbl_nombre"), $this->lang_item("lbl_user"), $this->lang_item("lbl_perfil"), $this->lang_item("lbl_area"), $this->lang_item("lbl_puesto"), $this->lang_item("lbl_acciones"));
         $buttonTPL = array('text' => $this->lang_item("btn_xlsx"), 'iconsweets' => 'iconsweets-excel', 'href' => base_url($this->path . 'export_xlsx?filtro=' . base64_encode($filtro)));
         $this->table->set_template($tbl_plantilla);
         $tabla = $this->table->generate($tbl_data);
     } else {
         $buttonTPL = "";
         $msg = $this->lang_item("msg_query_null");
         $tabla = alertas_tpl('', $msg, false);
     }
     $tabData['filtro'] = isset($filtro) && $filtro != "" ? sprintf($this->lang_item("msg_query_search"), $total_rows, $filtro) : "";
     $tabData['tabla'] = $tabla;
     $tabData['export'] = button_tpl($buttonTPL);
     $tabData['paginador'] = $paginador;
     $tabData['item_info'] = $this->pagination_bootstrap->showing_items($limit, $offset, $total_rows);
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $tabData, true));
     } else {
         return $this->load_view_unique($uri_view, $tabData, true);
     }
 }
开发者ID:erick120191,项目名称:adminplayidea,代码行数:46,代码来源:usuarios.php


示例10: listado

 public function listado($offset = 0)
 {
     $seccion = '/listado';
     $tab_detalle = $this->tab3;
     $limit = $this->limit_max;
     $uri_view = $this->modulo . $seccion;
     $url_link = $this->path . 'listado';
     $filtro = $this->ajax_post('filtro') ? $this->ajax_post('filtro') : "";
     $sqlData = array('buscar' => $filtro, 'offset' => $offset, 'limit' => $limit);
     $uri_segment = $this->uri_segment();
     $total_rows = count($this->db_model->db_get_data_almacen($sqlData));
     $sqlData['aplicar_limit'] = false;
     $list_content = $this->db_model->db_get_data_almacen($sqlData);
     $url = base_url($url_link);
     $paginador = $this->pagination_bootstrap->paginator_generate($total_rows, $url, $limit, $uri_segment, array('evento_link' => 'onclick', 'function_js' => 'load_content', 'params_js' => '1'));
     if ($total_rows > 0) {
         foreach ($list_content as $value) {
             $atrr = array('href' => '#', 'onclick' => 'detalle(' . $value['id_almacen_almacenes'] . ')');
             // Validación de pasillos y/o gavetas en almacen
             $pasillos = $this->db_model->db_get_data_pasillos_por_almacen(array('id_almacen' => $value['id_almacen_almacenes']));
             $gavetas = $this->db_model->db_get_data_gavetas_por_almacen(array('id_almacen' => $value['id_almacen_almacenes']));
             // Acciones
             $accion_id = $value['id_almacen_almacenes'];
             $btn_acciones['detalle'] = '<span id="ico-detalle_' . $accion_id . '" class="ico_acciones ico_detalle fa fa-search-plus" onclick="detalle(' . $accion_id . ')" title="' . $this->lang_item("detalle") . '"></span>';
             $btn_acciones['eliminar'] = $value['edit'] && !$pasillos && !$gavetas ? '<span id="ico-eliminar_' . $accion_id . '" class="ico_acciones ico_eliminar fa fa-times" onclick="eliminar(' . $accion_id . ')" title="' . $this->lang_item("eliminar") . '"></span>' : '';
             $acciones = implode('&nbsp;&nbsp;&nbsp;', $btn_acciones);
             $edit = !$value['edit'] ? '*' : '';
             // Datos para tabla
             $tbl_data[] = array('id' => $value['clave_corta'], 'almacenes' => $edit . tool_tips_tpl($value['almacenes'], $this->lang_item("tool_tip"), 'right', $atrr), 'clave_corta' => $edit . $value['clave_corta'], 'sucursal' => $value['sucursal'], 'tipos' => $value['tipos'], 'descripcion' => $value['descripcion'], 'acciones' => $acciones);
         }
         // Plantilla
         $tbl_plantilla = set_table_tpl();
         // Titulos de tabla
         $this->table->set_heading($this->lang_item("cvl_corta"), $this->lang_item("almacen"), $this->lang_item("cvl_corta"), $this->lang_item("sucursal"), $this->lang_item("tipo"), $this->lang_item("descripcion"), $this->lang_item("acciones"));
         // Generar tabla
         $this->table->set_template($tbl_plantilla);
         $tabla = $this->table->generate($tbl_data);
         $buttonTPL = array('text' => $this->lang_item("btn_xlsx"), 'iconsweets' => 'iconsweets-excel', 'href' => base_url($this->path . 'export_xlsx?filtro=' . base64_encode($filtro)));
     } else {
         $buttonTPL = "";
         $msg = $this->lang_item("msg_query_null");
         $tabla = alertas_tpl('', $msg, false);
     }
     $tabData['filtro'] = isset($filtro) && $filtro != "" ? sprintf($this->lang_item("msg_query_search"), $total_rows, $filtro) : "";
     $tabData['tabla'] = $tabla;
     $tabData['export'] = button_tpl($buttonTPL);
     $tabData['paginador'] = $paginador;
     $tabData['item_info'] = $this->pagination_bootstrap->showing_items($limit, $offset, $total_rows);
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $tabData, true));
     } else {
         return $this->load_view_unique($uri_view, $tabData, true);
     }
 }
开发者ID:erick120191,项目名称:adminplayidea,代码行数:54,代码来源:almacenes.php


示例11: listado

 public function listado($offset = 0)
 {
     $seccion = '';
     $filtro = $this->ajax_post('filtro') ? $this->ajax_post('filtro') : "";
     $accion = $this->tab['listado'];
     $tab_detalle = $this->tab['detalle'];
     $limit = $this->limit_max;
     $uri_view = $this->modulo . '/' . $accion;
     $url_link = $this->path . $seccion . $accion;
     $sqlData = array('buscar' => $filtro, 'offset' => $offset, 'limit' => $limit, 'aplicar_limit' => true);
     $uri_segment = $this->uri_segment();
     $total_rows = $this->db_model->db_get_total_rows($sqlData);
     $list_content = $this->db_model->db_get_data($sqlData);
     $url = base_url($url_link);
     $paginador = $this->pagination_bootstrap->paginator_generate($total_rows, $url, $limit, $uri_segment, array('evento_link' => 'onclick', 'function_js' => 'load_content', 'params_js' => '1'));
     if ($total_rows > 0) {
         foreach ($list_content as $value) {
             // Evento de enlace
             $atrr = array('href' => '#', 'onclick' => $tab_detalle . '(' . $value['id_compras_proveedor'] . ')');
             // Acciones
             $btn_acciones['detalle'] = '<span id="ico-detalle" style="cursor:pointer;" onclick="detalle(' . $value['id_compras_proveedor'] . ')"><i class="fa fa-search-plus" style="color:blue;" title="' . $this->lang_item("detalle") . '"></i></span>';
             $btn_acciones['eliminar'] = '<span id="ico-eliminar" style="cursor:pointer;" onclick="eliminar(' . $value['id_compras_proveedor'] . ')"><i class="fa fa-times" style="color:red;" title="' . $this->lang_item("eliminar") . '"></i></span>';
             $acciones = implode('&nbsp;&nbsp;&nbsp;', $btn_acciones);
             // Datos para tabla
             $tbl_data[] = array('id' => $value['razon_social'], 'razon_social' => tool_tips_tpl($value['razon_social'], $this->lang_item("tool_tip"), 'right', $atrr), 'nombre_comercial' => $value['nombre_comercial'], 'rfc' => $value['rfc'], 'clave_corta' => $value['clave_corta'], 'region' => $value['region'], 'entidad' => $value['entidad'], 'acciones' => $acciones);
         }
         $tbl_plantilla = set_table_tpl();
         $this->table->set_heading($this->lang_item("id"), $this->lang_item("lbl_rsocial"), $this->lang_item("lbl_nombre"), $this->lang_item("lbl_rfc"), $this->lang_item("lbl_clv"), $this->lang_item("lbl_clv_region"), $this->lang_item("lbl_entidad"), $this->lang_item("acciones"));
         $buttonTPL = array('text' => $this->lang_item("btn_xlsx"), 'iconsweets' => 'iconsweets-excel', 'href' => base_url($this->path . 'export_xlsx?filtro=' . base64_encode($filtro)));
         $this->table->set_template($tbl_plantilla);
         $tabla = $this->table->generate($tbl_data);
     } else {
         $buttonTPL = "";
         $msg = $this->lang_item("msg_query_null");
         $tabla = alertas_tpl('', $msg, false);
     }
     $tabData['filtro'] = isset($filtro) && $filtro != "" ? sprintf($this->lang_item("msg_query_search"), $total_rows, $filtro) : "";
     $tabData['tabla'] = $tabla;
     $tabData['export'] = button_tpl($buttonTPL);
     $tabData['paginador'] = $paginador;
     $tabData['item_info'] = $this->pagination_bootstrap->showing_items($limit, $offset, $total_rows);
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $tabData, true));
     } else {
         return $this->load_view_unique($uri_view, $tabData, true);
     }
 }
开发者ID:erick120191,项目名称:adminplayidea,代码行数:47,代码来源:proveedores.php


示例12: listado

 public function listado($offset = 0)
 {
     $data_tab_2 = "";
     $filtro = $this->ajax_post('filtro') ? $this->ajax_post('filtro') : "";
     $uri_view = $this->uri_modulo . 'listado';
     $limit = 10;
     $uri_segment = $this->uri_segment();
     $lts_content = $this->clientes_model->consulta_clientes($limit, $offset, $filtro);
     $total_rows = count($this->clientes_model->consulta_clientes($limit, $offset, $filtro, false));
     $url = base_url($this->uri_modulo . $this->uri_submodulo . 'listado');
     $paginador = $this->pagination_bootstrap->paginator_generate($total_rows, $url, $limit, $uri_segment, array('evento_link' => 'onclick', 'function_js' => 'load_content', 'params_js' => '1'));
     if ($total_rows > 0) {
         foreach ($lts_content as $value) {
             $atrr = array('href' => '#', 'onclick' => 'detalle(' . $value['id_ventas_clientes'] . ')');
             $tbl_data[] = array('id' => $value['nombre'], 'nombre_cliente' => tool_tips_tpl($value['nombre'] . ' ' . $value['paterno'] . ' ' . $value['materno'], $this->lang_item("tool_tip"), 'right', $atrr), 'razon_social' => $value['razon_social'], 'clave_corta' => $value['clave_corta'], 'rfc' => $value['rfc'], 'telefonos' => $value['telefonos'], 'id_entidad' => $value['entidad'], 'id_sucursal' => $value['sucursal']);
         }
         $tbl_plantilla = set_table_tpl();
         $this->table->set_heading($this->lang_item("nombre_cliente"), $this->lang_item("nombre_cliente"), $this->lang_item("razon_social"), $this->lang_item("clave_corta"), $this->lang_item("rfc_clientes"), $this->lang_item("telefonos"), $this->lang_item("entidad"), $this->lang_item("sucursal"));
         $this->table->set_template($tbl_plantilla);
         $tabla = $this->table->generate($tbl_data);
         $buttonTPL = array('text' => $this->lang_item("btn_xlsx"), 'iconsweets' => 'iconsweets-excel', 'href' => base_url($this->uri_modulo . $this->uri_submodulo . 'export_xlsx?filtro=' . base64_encode($filtro)));
     } else {
         $msg = $this->lang_item("msg_query_null");
         $tabla = alertas_tpl('', $msg, false);
         $buttonTPL = "";
     }
     $data_tab_2['filtro'] = $filtro != "" ? sprintf($this->lang_item("msg_query_search"), $total_rows, $filtro) : "";
     $data_tab_2['export'] = button_tpl($buttonTPL);
     //$data_tab_2['import']    = button_tpl($buttonIPX);
     $data_tab_2['tabla'] = $tabla;
     $data_tab_2['paginador'] = $paginador;
     $data_tab_2['item_info'] = $this->pagination_bootstrap->showing_items($limit, $offset, $total_rows);
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $data_tab_2, true));
     } else {
         return $this->load_view_unique($uri_view, $data_tab_2, true);
     }
 }
开发者ID:erick120191,项目名称:adminplayidea,代码行数:38,代码来源:clientes.php


示例13: listado

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP toolbox_content_nav函数代码示例发布时间:2022-05-23
下一篇:
PHP tool_origin函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap