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/customer_complaint.php
<?php
include_once("conf/settings.php");
include_once("conf/func.php");

$getAllBrands			=	getAllBrands("tblSpecies");
$getAllCategory			=	getAllCategory("tblCategory",$brandId);
?>
<!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>Customer Complaints & Feedback form - RSD Group</title>
<meta name="Description" content="Thanks for given us your valuable Feedback. Your Complaints & Feedback help us to improve our services and our products quality. Our Executive contacts you as soon as possible.">
<link rel="stylesheet" href="css/style.css">
<link media="screen" rel="stylesheet" href="css/colorbox_new1.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">
	$(document).ready(function(){
		$("#brandId").live('change',function(){		
			getAllSubBrands(); 
		});
		getAllSubBrands();
	});
	
	function getAllSubBrands(){
		var brand =$('#brandId').val();
		$.ajax({
			url: "ajax/category.html",
			type: "POST",
			data: {"BrandId":brand},
			success: function(res){
				//alert(res);
				$("#productsCategory").html(res);
			}
		});
	} 
	
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 validation(){
	var custName	=	$("#customerName").val();
	var custPhone	=	$("#custPhone").val();
	var custEmail	=	$("#custEmail").val();
	var custAddress	=	$("#custAddress").val();
	custName		=	jQuery.trim(custName);
	custPhone		=	jQuery.trim(custPhone);
	custEmail		=	jQuery.trim(custEmail);
	custAddress		=	jQuery.trim(custAddress);
	if(custName == ""){
		alert("Please Enter Name");
		$("#customerName").focus();
		return false;
	}
	if(custEmail == ""){
		alert("Please Enter Email");
		$("#custEmail").focus();
		return false;
	}
	if(custEmail != ""){
		if(!IsValidEmail(custEmail)){
			alert("Please Enter Valid Email");
			$('#custEmail').focus();
			return false;
		}
	}
	if(custPhone == ""){
		alert("Please Enter Mobile Number");
		$("#custPhone").focus();
		return false;
	}
	if(custPhone.length < 10){
		alert("Please Enter Valid Mobile Number");
		$("#custPhone").focus();
		return false;
	}
	if(custPhone.length > 12){
		alert("Too Long Mobile Number");
		$("#custPhone").focus();
		return false;
	}
	if(!IsNumeric(custPhone)){
		alert("Please Enter Mobile Number");
		$("#custPhone").focus();
		return false;
	}	
	if(custAddress == ""){
		alert("Please Enter Address");
		$("#custAddress").focus();
		return false;
	}
}
function formReset(){
	document.getElementById("complaintForm").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>

<script src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/jquery.mousewheel.min.js"></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>Customer Feedback</span></div>
 <div class="ourPro">
    	<h3>Customer Feedback</h3>
   
   <div class="contact_box">
   
   
   <div class="distrubution_left">
     
		<div class="table_box_comp">
		<form method="post" action="writeComplaint.html" enctype="multipart/form-data"  id="complaintForm">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
		<td valign="top" colspan="3" align="center">
			<?php
				if($_GET['msg'] == 'success'){ ?>
					<font color="#336600">Your Query has been submitted</font>
				<?php }
				else if($_GET['msg'] == 'err'){ ?>
					<font color="#FF0000">Some error occured</font>
			<?php	}
				else{}
			?>
		</td>
	</tr>
   <tr>
    <th width="25%" height="40" align="left" valign="top">Complaint Type<code>*</code></th>
    <td width="5%" height="40" align="left" valign="top">:</td>
    <td width="73%" height="40" valign="top"><div class="halfbox"><div class="dropArrow">
      <div class="styled-select">
        <select id="requestType" name="requestType">
          <option value="Complaint">Complaint</option>
          <option value="Feedback">Feedback</option>
        </select>
      </div>
    </div></div></td>
  </tr>
  
  <tr>
    <th width="25%" height="40" align="left" valign="top">Name<code>*</code></th>
    <td width="5%" height="40" align="left" valign="top">:</td>
    <td width="73%" height="40" valign="top"><div class="halfbox"><input name="custName" id="customerName" type="text" class="custom_input"></div></td>
  </tr>
  
  <tr>
    <th width="25%" height="40" align="left" valign="top">Email<code>*</code></th>
    <td width="5%" height="40" align="left" valign="top">:</td>
    <td width="73%" height="40" valign="top"><div class="halfbox"><input name="custEmail" id="custEmail" type="text" class="custom_input"></div></td>
  </tr>
  <tr>
    <th height="40" align="left" valign="top">Phone<code>*</code></th>
    <td height="40" align="left" valign="top">:</td>
    <td height="40" valign="top"><div class="halfbox"><input name="custPhone" id="custPhone" maxlength="12" type="text" class="custom_input" onKeyPress="return isNumber(event);"></div></td>
  </tr>
  <tr>
    <th height="40" align="left" valign="top">Address<code>*</code></th>
    <td height="40" align="left" valign="top">:</td>
    <td height="40" valign="top"><div class="halfbox"><input name="custAddress" id="custAddress" type="text" class="custom_input"></div></td>
  </tr>
  <tr>
    <th height="40" align="left" valign="top">Suggestions / Complaints</th>
    <td height="40" align="left" valign="top">:</td>
    <td height="50" valign="middle">
    
    
    	<div class="checkcontainer"><input name="suggestions[]" type="checkbox" value="Distributor">Distributor</div>
        <div class="checkcontainer"><input name="suggestions[]" type="checkbox" value="Retailer">Retailer</div>
        <div class="checkcontainer"><input name="suggestions[]" type="checkbox" value="Consumer(Registered)">Consumer (Registered)</div>
        <div class="checkcontainer"><input name="suggestions[]" type="checkbox" value="Employee">Employee</div>
        <div class="checkcontainer"><input name="suggestions[]" type="checkbox" value="Others">Others</div>
        <div class="checkcontainer"><input name="suggestions[]" type="checkbox" value="Consumer(Unregistered)">Consumer (Unregistered)</div>
        
        
    </td>
  </tr>
  <tr>
    <th height="40" align="left" valign="top">Suggestion Type</th>
    <td height="40" align="left" valign="top">:</td>
    <td height="50" valign="middle">
    
    	<div class="checkcontainer"><input name="suggestionType[]" type="checkbox" value="quality">Product Quality</div>
        <div class="checkcontainer"><input name="suggestionType[]" type="checkbox" value="packing">Product Packing</div>
        <div class="checkcontainer"><input name="suggestionType[]" type="checkbox" value="price">Product Price</div>
        <div class="checkcontainer"><input name="suggestionType[]" type="checkbox" value="retailing">Distribution / Retailing Service</div>
    
    </td>
  </tr>
  <tr>
    <th height="40" align="left" valign="top">Brand </th>
    <td height="40" align="left" valign="top">:</td>
    <td height="40" valign="top"><div class="halfbox"><div class="dropArrow">
      <div class="styled-select">
        <select id="brandId" name="brandId">
		  <?php foreach($getAllBrands as $key => $val){ ?>
			<option value="<?php echo $getAllBrands[$key]['Species_Id']; ?>"><?php echo $getAllBrands[$key]['Species_Name']; ?></option>
		<?php } ?>
        </select>
      </div>
    </div></div></td>
  </tr>
  <tr>
    <th height="40" align="left" valign="top">Regarding Product(s)</th>
    <td height="40" align="left" valign="top">:</td>
    <td height="70" valign="middle" id="productsCategory">

    </td>
  </tr>
  <tr>
    <th height="40" align="left" valign="top">Complaint / Feedback</th>
    <td height="40" align="left" valign="top">:</td>
    <td height="120" valign="middle"><div class="halfbox"><textarea name="remarks" id="remarks" cols="" rows="" class="custome_textarea"></textarea></div></td>
  </tr>
  <tr>
    <th height="30" align="left" valign="top">Customer Care No </th>
    <td height="30" align="left" valign="top">:</td>
    <td height="30" valign="top">1800116565</td>
  </tr>
  <tr>
    <th height="30" align="left" valign="top">Customer Care Mail Id</th>
    <td height="30" align="left" valign="top">:</td>
    <td height="30" valign="top">customercare@gopaljeedairy.com</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="submit" value="Submit" type="submit" class="submit_button" onClick="return validation();">&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