403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/rsdgroup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/rsdgroup/distributor_form.php
<?php
include_once("conf/settings.php");
include_once("conf/func.php");

$getAllBrands		=	getAllBrands("tblSpecies");
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Ananda Distributorship</title>
<meta name="Description" content="Thanks for your interest for Ananda Group  - One of the leading manufacturers and suppliers of dairy products. If you want to associate with us as a Distributor/Franchisee please fill the Form.">
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->

<script type="text/javascript">
function getBrandDiv(val)
{
  if(val=="Distributor")
  {
    document.getElementById("brand").style.display="";
  }
  else if(val=="Franchisee")
  {
    document.getElementById("brand").style.display="";
  }
}

function IsValidEmail(email){
	var filter = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
	return filter.test(email);
}

function IsNumeric(sText){
   var ValidChars = "0123456789-";
   var IsNumber=true;
   var Char;
   for (i = 0; i < sText.length && IsNumber == true; i++){
	  Char = sText.charAt(i);
	  if (ValidChars.indexOf(Char) == -1)
		 {
		 IsNumber = false;
		 }
   }  
   return IsNumber;  
}

function validate()
{
	var distName	=	$("#distName").val();
	var distCity	=	$("#distCity").val();
	var distLocation=	$("#distLocation").val();
	var distPincode=	$("#distPincode").val();
	var distPhone	=	$("#distPhone").val();
	var distAddress	=	$("#distAddress").val();
	var distInterested	=	$("#distInterested").val();
	var distProductId	=	$("#distProductId").val();
	var distQualification	=	$("#distQualification").val();
	var distCurrentOccupation	=	$("#distCurrentOccupation").val();
	var distExServiceman	=	$("#distExServiceman").val();
	var distExposerDdairyBusiness	=	$("#distExposerDdairyBusiness").val();
	
	distName		          =	jQuery.trim(distName);
	distCity		          =	jQuery.trim(distCity);
	distLocation	          =	jQuery.trim(distLocation);
	distPincode	          =	jQuery.trim(distPincode);
	distPhone		          =	jQuery.trim(distPhone);
	distAddress		          =	jQuery.trim(distAddress);
	distInterested		      =	jQuery.trim(distInterested);
	distProductId		      =	jQuery.trim(distProductId);
	distQualification		  =	jQuery.trim(distQualification);
	distCurrentOccupation	  =	jQuery.trim(distCurrentOccupation);
	distExServiceman		  =	jQuery.trim(distExServiceman);
	distExposerDdairyBusiness =	jQuery.trim(distExposerDdairyBusiness);

	if(distName == ''){
		alert('Please enter name');
		$("#distName").focus();
		return false;
	}			
	if(distCity == ''){
		alert('Please enter city');
		$("#distCity").focus();
		return false;
	}			
	if(distLocation == ''){
		alert('Please enter location');
		$("#distLocation").focus();
		return false;
	}
	if(distPincode == ''){
		alert('Please enter pin code');
		$("#distPincode").focus();
		return false;
	}			
	if(distPhone == ''){
		alert('Please enter mobile number');
		$("#distPhone").focus();
		return false;
	}
	if(distPhone.length < 10){
		alert("Please Enter Valid mobile number");
		$("#distPhone").focus();
		return false;
	}
	if(distPhone.length > 12){
		alert("Too long mobile number");
		$("#distPhone").focus();
		return false;
	}
	if(!IsNumeric(distPhone)){
		alert("Please enter mobile number");
		$("#distPhone").focus();
		return false;
	}
	if(distAddress == ''){
		alert('Please enter address');
		$("#distAddress").focus();
		return false;
	}			
	if(distInterested == ''){
		alert('Please select Interested ');
		$("#distInterested").focus();
		return false;
	}
	/*if(distInterested!="" && distProductId == ''){
		alert('Please select Product Name ');
		$("#distInterested").focus();
		return false;
	}*/
	if(distQualification == ''){
		alert('Please select qualification');
		$("#distQualification").focus();
		return false;
	}	
	if(distCurrentOccupation == ''){
		alert('Please select current occupation');
		$("#distCurrentOccupation").focus();
		return false;
	}
	if((document.distributorForm.distExServiceman[0].checked ==false) && (document.distributorForm.distExServiceman[1].checked==false)){
		alert('Please select Ex-Serviceman');
		$("#distExServiceman").focus();
		return false;
	}
	if((document.distributorForm.distExposerDdairyBusiness[0].checked ==false) && (document.distributorForm.distExposerDdairyBusiness[1].checked==false)){
		alert('Please select Dairy business');
		$("#distExServiceman").focus();
		return false;
	}
	
	return true;		
}
function abc(){
	$("#response").hide(2500);
}

function formReset(){
	document.getElementById("distributorForm").reset();
	return false;
}

function isNumber(evt) {
    evt = (evt) ? evt : window.event;
    var charCode = (evt.which) ? evt.which : evt.keyCode;
    if (charCode > 31 && (charCode < 48 || charCode > 57)) {
            return false;
    }
    return true;
}
</script>
</head>

<body>
<!--header start here-->  
<?php include_once("inc/header.php"); ?>
<!--header end here-->  

<!--section start here-->
<section>
<div class="braedcrumb"><a href="<?php echo $baseurl; ?>">Home</a>&nbsp;&nbsp;&gt;&nbsp;&nbsp;<span>Distributor Form</span></div>
 <div class="ourPro">
    	<h3>Distributor Form</h3>
        
        <p>Dear All, we are inviting energetic people, who are interested for longtime association with us as Distributor/ Franchisee modes under  Ananda. Interested people can fill the below inquiry form. Our executive will call you shortly.</p>
   
   <div class="contact_box">
   
   
   <div class="distrubution_left">
     
 <div class="table_box_comp">
 
 <form method="post" action="writeDistributor.html" name="distributorForm" id="distributorForm">
		
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  
    <tr id="response">
	<?php
	if($_GET['msg'] == 'suc'){ ?>
		<td colspan='3' align='center'><font color='green'><b>Your Feedback submitted</b></font></td>
	<?php	}
		else if($_GET['msg'] == 'err'){ ?>
		<td colspan='3' align='center'><font color='red'><b>There is some error.Please try after some time</b></font></td>
	<?php	}	?>									
	</tr>
								
	<tr>
    <th width="36%" height="40" align="left" valign="top">Name<code>*</code></th>
    <td width="3%" height="40" align="left" valign="top">:</td>
    <td width="61%" height="40" valign="top"><div class="halfbox"><input name="distName" id="distName" type="text" class="custom_input"></div></td>
   </tr>
  
  <tr>
    <th width="36%" height="40" align="left" valign="top">City Name<code>*</code></th>
    <td width="3%" height="40" align="left" valign="top">:</td>
    <td width="61%" height="40" valign="top"><div class="halfbox"><input name="distCity" id="distCity" type="text" class="custom_input"></div></td>
  </tr>
  
  <tr>
    <th width="36%" height="40" align="left" valign="top">Location/ Area Name:<code>*</code></th>
    <td width="3%" height="40" align="left" valign="top">:</td>
    <td width="61%" height="40" valign="top"><div class="halfbox"><input name="distLocation" id="distLocation" type="text" class="custom_input"></div></td>
  </tr>
  
  <tr>
    <th width="36%" height="40" align="left" valign="top">Pin Code:<code>*</code></th>
    <td width="3%" height="40" align="left" valign="top">:</td>
    <td width="61%" height="40" valign="top"><div class="halfbox"><input name="distPincode" id="distPincode" type="text" maxlength="10" onKeyPress="return isNumber(event);" class="custom_input"></div></td>
  </tr>
  
  <tr>
    <th width="36%" height="40" align="left" valign="top">Mobile No.<code>*</code></th>
    <td width="3%" height="40" align="left" valign="top">:</td>
    <td width="61%" height="40" valign="top"><div class="halfbox"><input name="distPhone" id="distPhone" maxlength="12" type="text" class="custom_input" onKeyPress="return isNumber(event);"></div></td>
  </tr>
  
  <tr>
    <th width="36%" height="40" align="left" valign="top">Full Address of Shop/ Business Centre<code>*</code></th>
    <td width="3%" height="40" align="left" valign="top">:</td>
    <td width="61%" height="120" valign="top"><div class="halfbox">
      <textarea name="distAddress" id="distAddress" cols="" rows="" class="custome_textarea"></textarea>
    </div></td>
  </tr>
   <tr>
    <th width="36%" height="40" align="left" valign="top">Interested for <code>*</code></th>
    <td width="3%" height="40" align="left" valign="top">:</td>
    <td width="61%" height="40" valign="top"><div class="halfbox"><div class="dropArrow">
      <div class="styled-select">
        <select id="distInterested" name="distInterested">
		  <option value="">--Select--</option>
          <option value="Distributor">Distributor</option>
          <option value="Franchisee">Franchisee</option>
        </select>
      </div>
    </div></div></td>
  </tr>
  

   <tr id="brand">
    <th width="36%" height="40" align="left" valign="top">Brand </th>
    <td width="3%" height="40" align="left" valign="top">:</td>
    <td width="61%" height="40" valign="top"><div class="halfbox"><div class="dropArrow">
      <div class="styled-select">
        <select id="distProductId" name="distProductId">
		<option value="">--Select--</option>
		 <?php 
		 foreach($getAllBrands as $BrandsList)
		 {
		 ?>
          <option value="<?php echo $BrandsList['Species_Id'];?>"><?php echo $BrandsList['Species_Name'];?></option>
		 <?php } ?> 
        </select>
      </div>
    </div></div></td>
  </tr>

  
  <tr>
    <th width="36%" height="40" align="left" valign="top">Qualification<code>*</code></th>
    <td width="3%" height="40" align="left" valign="top">:</td>
    <td width="61%" height="40" valign="top"><div class="halfbox"><div class="dropArrow">
      <div class="styled-select">
        <select id="distQualification" name="distQualification">
		  <option value="">--Select--</option>
          <option value="Below 12th">Below 12th</option>
          <option value="12th Pass">12th Pass</option>
          <option value="Graduate">Graduate</option>
          <option value="Post Graduate">Post Graduate</option>          
        </select>
      </div>
    </div></div></td>
  </tr>
  
  <tr>
    <th width="36%" height="40" align="left" valign="top">Current Occupation<code>*</code></th>
    <td width="3%" height="40" align="left" valign="top">:</td>
    <td width="61%" height="40" valign="top"><div class="halfbox"><div class="dropArrow">
      <div class="styled-select">
        <select id="distCurrentOccupation" name="distCurrentOccupation">
		  <option value="">--Select--</option>
          <option value="Student">Student</option>
          <option value="Service">Service</option>
          <option value="Self-Employed">Self-Employed</option>
          <option value="Retired">Retired</option>  
        </select>
      </div>
    </div></div></td>
  </tr>
  
  <tr>
    <th width="36%" height="40" align="left" valign="top">Are you Ex-Serviceman?<code>*</code></th>
    <td width="3%" height="40" align="left" valign="top">:</td>
    <td width="61%" height="40" valign="top"><div class="halfbox">
      <input type="radio" name="distExServiceman" id="radio" value="Yes">
    Yes&nbsp;&nbsp;<input type="radio" name="distExServiceman" id="radio" value="No">
    No</div></td>
  </tr>
  
  
  <tr>
    <th width="36%" height="40" align="left" valign="top">Do you have any exposer of Dairy business?<code>*</code></th>
    <td width="3%" height="40" align="left" valign="top">:</td>
    <td width="61%" height="40" valign="top"><div class="halfbox">
      <input type="radio" name="distExposerDdairyBusiness" id="radio" value="Yes">
    Yes&nbsp;&nbsp;<input type="radio" name="distExposerDdairyBusiness" id="radio" value="No">
    No</div></td>
  </tr>
  
  <tr>
    <th height="30" align="left" valign="middle">&nbsp;</th>
    <td height="30" align="left" valign="middle">&nbsp;</td>
    <td height="50" valign="middle"><input name="button" value="Submit" type="submit" class="submit_button" onClick="return validate();">&nbsp;
	<input name="" value="Reset" type="button" class="reset_button" onClick="return formReset()"> </td>
  </tr>
</table>
</form>
        </div>
        
        
      </div>
   <div class="cl"></div></div>
   
   
   
   <div class="cl"></div> </div>
    
    
<!--footer top start here-->
<?php include_once("inc/footer-top.php"); ?>
<!--footer top end here-->
    
</section>
<!--section end here-->


<!--footer start here-->
<?php include_once("inc/footer.php"); ?>
<!--footer end here-->

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit