Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 654

Přidáno uživatelem Roman Ševčík před více než 14 roky(ů)

Dokončena metoda pro výpis hovorů člena.

Zobrazit rozdíly:

freenetis/trunk/kohana/application/controllers/voip_calls.php
if (!$billing->has_driver() || ($billing->get_account($member_id) == null))
Controller::error(RECORD);
if (is_numeric($this->input->get('from')))
$from = (int) $this->input->get('from');
if (is_numeric($from))
$from = (int) $from;
else
$from = 0;
if (is_numeric($this->input->get('to')))
$to = (int) $this->input->get('to');
if (is_numeric($to))
$to = (int) $to;
else
$to = time();
......
$order_by_direction = 'asc';
$account_calls = $billing->get_account_calls($member_id, $from, $to);
$calls = $account_calls->calls;
$count = count($calls);
if (($sql_offset = ($page - 1) * $limit_results) > $count)
$sql_offset = 0;
$calls = NULL;
$count = 0;
if (isset( $account_calls->calls))
{
$calls = $account_calls->calls;
$calls = array_reverse($calls);
$count = count($calls);
if ($limit_results < $count)
{
$new = 0;
$out = array();
$i =(($page - 1) * $limit_results);
if (($i + $limit_results) > $count)
$max = $count;
else
$max = $i + $limit_results;
for ($i ; $i < $max; $i++)
{
$out[$new] = $calls[$i];
$new++;
}
unset($calls);
$calls = $out;
unset($out);
}
}
//if (($sql_offset = ($page - 1) * $limit_results) > $count)
// $sql_offset = 0;
//exit;
$headline = url_lang::lang('texts.VoIP');
$grid = new Grid(url_lang::base().'voip_calls', $headline, array(
'use_paginator' => true,
......
//$grid->action_field('id')->label(url_lang::lang('texts.VoIP'))->url(url_lang::base().'voip/show')->action(url_lang::lang('texts.Show'));
//$grid->action_field('callee')->label(url_lang::lang('texts.Account'))->url(url_lang::base().'voip/show')->action(url_lang::lang('texts.Show'));
//$grid->action_field('user_id')->label(url_lang::lang('texts.User'))->url(url_lang::base().'users/show')->action(url_lang::lang('texts.Show'));
$grid->datasource(array_reverse($calls));
$grid->datasource($calls);
$view = new View('main');
$view->title = $headline;
$view->content = $grid;
freenetis/trunk/kohana/application/controllers/help.php
parent::__construct();
$this->messages['voip_voicemail'][0]= 'Hlasová schánka';
$this->messages['voip_voicemail'][1]= 'Tot je nápověda pro hlasovou schánku.';
$this->messages['voip_voicemail'][1]= 'Toto je nápověda pro hlasovou schránku.';
}
public function show( $message = null)

Také k dispozici: Unified diff