/var/www/doncode.com.ua/www/controllers
Edit: /var/www/doncode.com.ua/www/controllers/class.arm.php (2504B)
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="Список Arm";
$this->view->render('arm/arm');
}
public function fetchSingleRecordsFromCode(){
// TODO: fetchSingleRecordsFromCode
$this->model->fetchSingleRecordsFromCode();
}
public function getList ($param=0){
// TODO: getList
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){
// TODO: fetchSingleRecordsFromId
$this->model->fetchSingleRecordsFromId($param['id']);
}
public function editArm ($param){
// TODO: edit
$id=(int)$param['id'];
$this->view->arm=$this->model->fetchSingleRecordsFromId($id,false);
$this->view->render('arm/js/forms/edit',true);
}
public function createForm (){
$this->view->render('arm/js/forms/create',true);
}
//public function createArm(){
// $this->model->createArm();
//}
public function saveEditRecords ( ){
$this->model->saveEditRecords ( );
}
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']);
}
}