Subversion Repositories SmartDukaan

Rev

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

Rev 19466 Rev 19468
Line 230... Line 230...
230
		$sendata = array();
230
		$sendata = array();
231
		if($type != null){
231
		if($type != null){
232
			$senddata['user_id'] = $user_id;
232
			$senddata['user_id'] = $user_id;
233
			$senddata['_id'] = $id;
233
			$senddata['_id'] = $id;
234
			$senddata['amount'] = $amount;
234
			$senddata['amount'] = $amount;
235
			$sendata['type'] = $rtype;
235
			$senddata['type'] = $rtype;
236
// 			$senddata = '{"user_id" : '.$user_id.' , "_id" : '.$id.'}';
236
// 			$senddata = '{"user_id" : '.$user_id.' , "_id" : '.$id.'}';
237
			$sendurl = $this->apihost."updateRefundStatus?status=".$type;
237
			$sendurl = $this->apihost."updateRefundStatus?status=".$type;
238
			$this->make_request($sendurl, json_encode($senddata));
238
			$this->make_request($sendurl, json_encode($senddata));
-
 
239
 			return $this->redirect(array('action' => 'admin_pendingapproval'));
239
		}
240
		}		
240
		$url  = $this->apihost."refundToWallet?offset=".$offset."&limit=".$limit."&status=Pending";
241
		$url  = $this->apihost."refundToWallet?offset=".$offset."&limit=".$limit."&status=Pending";
241
		$pending = $this->make_request($url, null);;
242
		$pending = $this->make_request($url, null);;
242
		$this->set(compact('pending','page'));
243
		$this->set(compact('pending','page'));
243
	}
244
	}
244
}
245
}
245
246