File "mpaypal_responses-20260225080524.php"

Full Path: /home/ichhrkpd/public_html/application/models/database/mpaypal_responses-20260225080524.php
File size: 3.05 KB
MIME-type: text/x-php
Charset: utf-8

<?php 
			
/**
 * Version 1.0.0
 * Creation date: 18/Dec/2017
 * @Written By: S.M. Sarwar Hasan
 *     Genuity Systems
 */						
class Mpaypal_responses extends GSModel{	
	var $id;
	var $response;
	var $payment_txn;
	var $amount;


		function __construct() {
			parent::__construct ();
			$this->SetValidation();	
			$this->tableName="paypal_responses";
			$this->primaryKey="id";
		}
			
	 function Reset(){
		$this->id=$this->response=$this->payment_txn=$this->amount=null;

	}



	function SetValidation(){
		$this->validations=array(
			"id"=>array("Text"=>"id", "Rule"=>"required|xss_clean"),
			"response"=>array("Text"=>"response", "Rule"=>"required|xss_clean"),
			"payment_txn"=>array("Text"=>"payment_txn", "Rule"=>"required|xss_clean"),
			"amount"=>array("Text"=>"amount", "Rule"=>"required|xss_clean")
			
		);
	}
	 function GetAddForm($label_col=5,$input_col=7,$mainobj=null){
		
				if(!$mainobj){
				$mainobj=$this;
				}
					?>
			 <div class="form-group">
		      	<label class="control-label col-md-<?php echo $label_col;?>" for="id"><?php _e("Id"); ?></label>
		      	<div class="col-md-<?php echo $input_col;?>">                   			     	
		      		<input type="text" maxlength="11"  value="<?php echo  $mainobj->GetPostValue("id");?>" class="form-control" id="id" name="id" placeholder="Id" data-bv-notempty="true" 	data-bv-notempty-message="<?php  _e("Id is required");?>">
		      	</div>
		      </div> 
			
			 <div class="form-group">
		      	<label class="control-label col-md-<?php echo $label_col;?>" for="response"><?php _e("Response"); ?></label>
		      	<div class="col-md-<?php echo $input_col;?>">                   			     	
		      		<input type="text" maxlength=""  value="<?php echo  $mainobj->GetPostValue("response");?>" class="form-control" id="response" name="response" placeholder="Response" data-bv-notempty="true" 	data-bv-notempty-message="<?php  _e("Response is required");?>">
		      	</div>
		      </div> 
			
			 <div class="form-group">
		      	<label class="control-label col-md-<?php echo $label_col;?>" for="payment_txn"><?php _e("Payment Txn"); ?></label>
		      	<div class="col-md-<?php echo $input_col;?>">                   			     	
		      		<input type="text" maxlength="24"  value="<?php echo  $mainobj->GetPostValue("payment_txn");?>" class="form-control" id="payment_txn" name="payment_txn" placeholder="Payment Txn" data-bv-notempty="true" 	data-bv-notempty-message="<?php  _e("Payment Txn is required");?>">
		      	</div>
		      </div> 
			
			 <div class="form-group">
		      	<label class="control-label col-md-<?php echo $label_col;?>" for="amount"><?php _e("Amount"); ?></label>
		      	<div class="col-md-<?php echo $input_col;?>">                   			     	
		      		<input type="text" maxlength="102"  value="<?php echo  $mainobj->GetPostValue("amount");?>" class="form-control" id="amount" name="amount" placeholder="Amount" data-bv-notempty="true" 	data-bv-notempty-message="<?php  _e("Amount is required");?>">
		      	</div>
		      </div> 
			
			<?php 
	}



}
?>