Revize c1bdc1c4
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/controllers/voip.php | ||
---|---|---|
*/
|
||
class VoIP_Controller extends Controller
|
||
{
|
||
/**
|
||
* Only check whether is VoIP enabled
|
||
*
|
||
* @author Michal Kliment
|
||
*/
|
||
public function __construct()
|
||
{
|
||
parent::__construct();
|
||
|
||
// voip is not enabled, quit
|
||
if (!Settings::get('voip_enabled'))
|
||
Controller::error(ACCESS);
|
||
}
|
||
|
||
/**
|
||
* Redirects to show all
|
||
*/
|
||
... | ... | |
Controller::error(ACCESS);
|
||
|
||
// get new selector
|
||
if (is_numeric($this->input->get('record_per_page')))
|
||
$limit_results = (int) $this->input->get('record_per_page');
|
||
if (is_numeric($this->input->post('record_per_page')))
|
||
$limit_results = (int) $this->input->post('record_per_page');
|
||
|
||
// parameters control
|
||
$allowed_order_type = array('id', 'name', 'user_id');
|
||
... | ... | |
->label('User');
|
||
|
||
$grid->order_link_field('member_id')
|
||
->link('members/show', 'mname')
|
||
->label('Member');
|
||
->link('users/show', 'mname')
|
||
->label('User');
|
||
|
||
$grid->callback_field('regseconds')
|
||
->label('')
|
||
... | ... | |
$view->title = __('Change member limit');
|
||
$view->breadcrumbs = $breadcrumbs->html();
|
||
$view->content = new View('form');
|
||
$view->content->headline = 'VoIP ' . __('Limit of member');
|
||
$view->content->headline = 'VoIP' . __('Limit of member');
|
||
$view->content->form = $form->html();
|
||
$view->render(TRUE);
|
||
}
|
Také k dispozici: Unified diff
Release 1.1.0