Revize 682
Přidáno uživatelem Roman Ševčík před více než 14 roky(ů)
freenetis/trunk/kohana/application/controllers/sms.php | ||
---|---|---|
|
||
$model_sms_message = new Sms_message_Model();
|
||
|
||
$total_sms_message = count($model_sms_message->find_all());
|
||
$all_sms_message = $model_sms_message->get_unread_messages();
|
||
|
||
$total_sms_message = count($all_sms_message);
|
||
if (($sql_offset = ($page - 1) * $limit_results) > $total_sms_message)
|
||
$sql_offset = 0;
|
||
|
||
$all_sms_message = $model_sms_message->get_unread_messages($sql_offset, (int)$limit_results, $order_by, $order_by_direction);
|
||
|
||
|
||
$headline = url_lang::lang('texts.SMS message list');
|
||
$grid = new Grid(url_lang::base().'sms', $headline, array(
|
||
'use_paginator' => true,
|
||
... | ... | |
$arr_subnets_netnames[] = $subnet->net_str."/".$subnet->mask.": ".$subnet->name ;
|
||
$arr_subnets_ids[]=$subnet->id;
|
||
}
|
||
|
||
array_multisort($arr_subnets_nets, SORT_NUMERIC, SORT_ASC,
|
||
$arr_subnets_masks, SORT_NUMERIC, SORT_ASC,
|
||
$arr_subnets_ids, SORT_NUMERIC, SORT_ASC,
|
Také k dispozici: Unified diff
Oprava počtu SMS.