Exemple #1
0
function get_locations_manage_table_data_rows($locations, $controller)
{
    $CI =& get_instance();
    $table_data_rows = '';
    foreach ($locations->result() as $location) {
        $table_data_rows .= get_location_data_row($location, $controller);
    }
    if ($locations->num_rows() == 0) {
        $table_data_rows .= "<tr><td colspan='7'><div class='warning_message' style='padding:7px;'>" . $CI->lang->line('location_no_have_locations') . '</div></tr></tr>';
    }
    return $table_data_rows;
}
function get_locations_manage_table_data_rows($locations, $controller)
{
    $CI =& get_instance();
    $table_data_rows = '';
    foreach ($locations->result() as $location) {
        $table_data_rows .= get_location_data_row($location, $controller);
    }
    if ($locations->num_rows() == 0) {
        $table_data_rows .= "<tr><td colspan='11'><span class='col-md-12 text-center text-warning' >" . lang('locations_no_locations_to_display') . "</span></tr>";
    }
    return $table_data_rows;
}