Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 8d0578dc

Přidáno uživatelem Filip Miškařík před téměř 5 roky(ů)

refs #1135: lBilling, voip, voip sip deleted. All relations for this controllers and models deleted.

Zobrazit rozdíly:

application/controllers/js.php
private function _js_users_show_work_report($work_id = NULL)
{
$this->views['users_show_work_report'] = View::factory('js/work_reports_show')->render();
}
private function _js_voip_show($user_id = NULL)
{
$this->voip_calculator($user_id);
}
private function _js_voip_calls_show_by_user($user_id = NULL)
{
$this->voip_calculator($user_id);
}
}
private function _js_work_reports_add()
{
......
View::factory('js/__pieces/time_activity_rule')->render();
}
/**
* Calculator for VoIP calls
*
* @param integer $user_id
*/
private function voip_calculator($user_id = NULL)
{
if ($user_id && is_numeric($user_id))
{
$user = new User_Model($user_id);
if ($user && $user->id)
{
$sip = ORM::factory('voip_sip')
->where('user_id', $user->id)
->find();
if ($sip && $sip->id)
{
$view = View::factory('js/__pieces/voip_calculator');
$view->sip_name = $sip->name;
$this->views['__pieces_voip_calculator'] = $view->render();
}
}
}
}
/**
* Adds javascript for work reports forms
*/

Také k dispozici: Unified diff