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


PHP get_people_manage_table_data_rows函数代码示例

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


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

示例1: get_people_manage_table

function get_people_manage_table($people, $controller)
{
    $CI =& get_instance();
    $table = '<table class="tablesorter table table-bordered  table-hover" id="sortable_table">';
    $controller_name = strtolower(get_class($CI));
    if ($controller_name == 'customers' && $CI->config->item('customers_store_accounts')) {
        $headers = array('<input type="checkbox" id="select_all" />', lang('common_person_id'), lang('common_last_name'), lang('common_first_name'), lang('common_email'), lang('common_phone_number'), lang('customers_balance'), '&nbsp', '&nbsp');
    } else {
        $headers = array('<input type="checkbox" id="select_all" />', lang('common_person_id'), lang('common_last_name'), lang('common_first_name'), lang('common_email'), lang('common_phone_number'), '&nbsp');
    }
    $table .= '<thead><tr>';
    $count = 0;
    foreach ($headers as $header) {
        $count++;
        if ($count == 1) {
            $table .= "<th class='leftmost'>{$header}</th>";
        } elseif ($count == count($headers)) {
            $table .= "<th class='rightmost'>{$header}</th>";
        } else {
            $table .= "<th>{$header}</th>";
        }
    }
    $table .= '</tr></thead><tbody>';
    $table .= get_people_manage_table_data_rows($people, $controller);
    $table .= '</tbody></table>';
    return $table;
}
开发者ID:ekchanthorn,项目名称:demo_loan,代码行数:27,代码来源:table_helper.php

示例2: search

 function search()
 {
     $search = $this->input->post('search');
     $limit_from = $this->input->post('limit_from');
     $lines_per_page = $this->Appconfig->get('lines_per_page');
     $customers = $this->Customer->search($search, $lines_per_page, $limit_from);
     $total_rows = $this->Customer->get_found_rows($search);
     $links = $this->_initialize_pagination($this->Customer, $lines_per_page, $limit_from, $total_rows);
     $data_rows = get_people_manage_table_data_rows($customers, $this);
     echo json_encode(array('total_rows' => $total_rows, 'rows' => $data_rows, 'pagination' => $links));
 }
开发者ID:iwaphei,项目名称:bengkelpos,代码行数:11,代码来源:customers.php

示例3: get_people_manage_table

function get_people_manage_table($people, $controller)
{
    $CI =& get_instance();
    $table = '<table class="tablesorter" id="sortable_table">';
    $headers = array('<input type="checkbox" id="select_all" />', $CI->lang->line('common_last_name'), $CI->lang->line('common_first_name'), $CI->lang->line('common_email'), $CI->lang->line('common_phone_number'), '&nbsp');
    $table .= '<thead><tr>';
    foreach ($headers as $header) {
        $table .= "<th>{$header}</th>";
    }
    $table .= '</tr></thead><tbody>';
    $table .= get_people_manage_table_data_rows($people, $controller);
    $table .= '</tbody></table>';
    return $table;
}
开发者ID:praet0ri4n,项目名称:opensourcepos,代码行数:14,代码来源:table_helper.php

示例4: get_alumno_manage_table

function get_alumno_manage_table($alumnos, $controller)
{
    //Declaramos la tabla(clase, id, etc.)
    $table = '<table class="tablesorter" id="sortable_table">';
    //Declramos los headers de la tabla en un array
    $headers = array('<input type="checkbox" id="select_all" />', "Rut", "Nombres", "Apellidos", '&nbsp');
    //podemos dejar esta columna vacía para usar opciones por alumno
    //concatenamos el header con la tabla usando el array previamente definido
    $table .= '<thead><tr>';
    foreach ($headers as $header) {
        $table .= "<th>{$header}</th>";
    }
    $table .= '</tr></thead><tbody>';
    //concatenamos con la información que sacaremos de la base de datos almacenada en la variable $alumnos
    $table .= get_people_manage_table_data_rows($alumnos, $controller);
    $table .= '</tbody></table>';
    return $table;
}
开发者ID:aeduc,项目名称:mideteed,代码行数:18,代码来源:table_helper.php

示例5: search

 function search()
 {
     $this->check_action_permission('search');
     $search = $this->input->post('search');
     $offset = $this->input->post('offset') ? $this->input->post('offset') : 0;
     $order_col = $this->input->post('order_col') ? $this->input->post('order_col') : 'last_name';
     $order_dir = $this->input->post('order_dir') ? $this->input->post('order_dir') : 'asc';
     $customers_search_data = array('offset' => $offset, 'order_col' => $order_col, 'order_dir' => $order_dir, 'search' => $search);
     $this->session->set_userdata("customers_search_data", $customers_search_data);
     $per_page = $this->config->item('number_of_items_per_page') ? (int) $this->config->item('number_of_items_per_page') : 20;
     $search_data = $this->Customer->search($search, $per_page, $offset, $order_col, $order_dir);
     $config['base_url'] = site_url('customers/search');
     $config['total_rows'] = $this->Customer->search_count_all($search);
     $config['per_page'] = $per_page;
     $this->pagination->initialize($config);
     $data['pagination'] = $this->pagination->create_links();
     $data['total_rows'] = $this->Customer->search_count_all($search);
     $data['manage_table'] = get_people_manage_table_data_rows($search_data, $this);
     echo json_encode(array('manage_table' => $data['manage_table'], 'pagination' => $data['pagination']));
 }
开发者ID:ekchanthorn,项目名称:demo_loan,代码行数:20,代码来源:customers.php

示例6: search

 function search()
 {
     $search = $this->input->post('search');
     $data_rows = get_people_manage_table_data_rows($this->Employee->search($search), $this);
     echo $data_rows;
 }
开发者ID:raouf505,项目名称:php-point-of-sale,代码行数:6,代码来源:employees.php

示例7: search

 public function search()
 {
     $search = $this->input->post('search');
     $data_rows = get_people_manage_table_data_rows($this->Customer->search($search), $this);
     echo $data_rows;
 }
开发者ID:gocanto,项目名称:gocanto-pos,代码行数:6,代码来源:customers.php


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