/var/www/doncode.com.ua/www/controllers
Edit: /var/www/doncode.com.ua/www/controllers/class.dmp_platforms.php (2188B)
getList();
return;
}
$this->view->jsOut[0]= URL.'public/js/jquery.paginator.src.js';
$this->view->jsOut[1]= URL.'public/js/template.js';
$this->view->jsOut[2]= URL.'public/js/jquery.colorbox-min.js';
$this->view->jsOut[3] = URL.'public/js/jquery-ui-1.8.20.custom.min.js';
$this->view->css[0] = 'jquery-ui-1.8.20.custom.css';
$this->view->count=$this->model->fetchCountRecords();
$this->view->title="Пользователи Dmp platforms";
$this->view->render('dmp_platforms/dmp_platforms');
}
public function fetchSingleRecordsFromCode(){
$this->model->fetchSingleRecordsFromCode();
}
public function getList ($param=0){
if(isset($param['page'])){
$page=(int)$param['page'];
}else{
$page=0;
}
if(ajax::check_ajax_request()) {
$this->model->clientsGetList ($page);
$this->view->currentPage=$page;
}else{
$this->view->currentPage=$page;
$this->index();
}
}
public function fetchSingleRecordsFromId ($param){
$this->model->fetchSingleRecordsFromId($param['id']);
}
public function deleteRecords ($param){
$id=(int)$param['id'];
$this->model->deleteRecords ($id);
}
public function search ($t){
if(ajax::check_ajax_request()){
$this->model->search($_POST['chars'],$t['type']);
}else{
die('Bad request');
}
}
public function checkPhoneNumber (){
$this->model->checkPhoneNumber();
}
public function fetechArm ($t){
$this->model->fetechArm((int)$t['id']);
}
}