Subversion Repositories SmartDukaan

Rev

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

Rev 19775 Rev 19789
Line 244... Line 244...
244
	public function admin_retailerverify($id,$tin){
244
	public function admin_retailerverify($id,$tin){
245
		if($this->request->is('post')){
245
		if($this->request->is('post')){
246
			$data = $this->request->data;
246
			$data = $this->request->data;
247
			$retId = $data['Retailer']['retId'];
247
			$retId = $data['Retailer']['retId'];
248
			$retcontact = $data['Retailer']['contact'];
248
			$retcontact = $data['Retailer']['contact'];
249
			$cur_date = date('Y-m-d h:i:s', time());
249
			$cur_date = date('Y-m-d H:i:s', time());
250
			if($data['type'] == "Verify"){
250
			if($data['type'] == "Verify"){
251
				$retquery ="update retailers set status = 'retailer_verified' ,modified = '".$cur_date."' , isvalidated = 1  where id = ".$retId."";
251
				$retquery ="update retailers set status = 'retailer_verified' ,modified = '".$cur_date."' , isvalidated = 1  where id = ".$retId."";
252
				$this->Retailer->query($retquery);
252
				$this->Retailer->query($retquery);
253
			}elseif($data['type'] == "Cancel"){
253
			}elseif($data['type'] == "Cancel"){
254
				$retquery ="update retailers set status = 'not_verified' ,modified = '".$cur_date."' , comments = '".$data['Retailer']['text']."' where id = ".$retId."";
254
				$retquery ="update retailers set status = 'not_verified' ,modified = '".$cur_date."' , comments = '".$data['Retailer']['text']."' where id = ".$retId."";