Subversion Repositories SmartDukaan

Rev

Rev 20051 | Rev 20054 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20051 Rev 20053
Line 27... Line 27...
27
	public function admin_index() {
27
	public function admin_index() {
28
// 		throw new NotFoundException(__('Unauthorized access'));
28
// 		throw new NotFoundException(__('Unauthorized access'));
29
		if ($this->request->is('post')) {
29
		if ($this->request->is('post')) {
30
			alert('Clicked');
30
			alert('Clicked');
31
		}
31
		}
-
 
32
		$cur_date = date('Y-m-d', time());
32
		$this->Callhistory->recursive = 0;
33
		$this->Callhistory->recursive = 0;
33
		$this->Paginator->settings = array('order' => array('id'=>'desc'),'conditions' => array('call_time'=>'CURDATE()'));
34
		$this->Paginator->settings = array('order' => array('id'=>'desc'),'conditions' => array('call_time'=>$cur_date));
34
 
35
 
35
		$this->set('callhistories', $this->Paginator->paginate());
36
		$this->set('callhistories', $this->Paginator->paginate());
36
	}
37
	}
37
 
38
 
38
/**
39
/**