HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/barbeatleanalyti/public_html/barisnew.beatleanalytics.com/site/backup/template/profileemp.php
<!--<link rel="stylesheet" type="text/css" href="theme/black/css/tm_editable.css">
<link rel="stylesheet" type="text/css" href="theme/black/css/tm_validator.css">
<link rel="stylesheet" type="text/css" href="theme/black/css/profile.css">
<link rel="stylesheet" type="text/css" href="theme/black/css/round-button-theme.css">
-->
<link href="http://fontawesome.io/assets/font-awesome/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="theme/black/css/profile.css">
<!--<link rel="stylesheet" href="profile.css"> -->

<?php
	// Declare new object
	$objProfile = object;
	
	// Assing object 
	$objProfile = $objDB->objController;
	
	// Assign all variable's value
	$pg 			= $objProfile->pg;
	$acn 			= $objProfile->acn;
	$v 			  = $objProfile->v;
	
	$error 			= $objProfile->error;      
	$msg 			= $objProfile->msg;
	
	$login		  = $objProfile->login;
	
	$profileimage  = $objProfile->profileimage;
?>

<style>
.head-line{
margin-top:2px !important;
margin-bottom:2px !important;
}
</style>
<div class="content-wrapper">
<section class="content-header">
 <h1> 
 <?php if(strtolower($v) == 'list') { ?> Profile details. 
 <?php  }?>
 </h1>
 </section>
<div class="col-md-12">
<?php
	// Error or success message display
	$objDB->NotificaitonForResult($msg,$error);
?>
</div>
<section class="content">

<div class="row">
<div class="col-md-12">


<?php if($v == 'list') { 

		if(empty($uInfo___[0]['db_userLoginName'])) { ?>
		<div class="callout callout-danger text-center">
          <h3>THANK YOU FOR USING <strong>BEATLEANALYTICS.COM PORTAL</strong></h3>
          <h3><em>Please fill and complete your profile first &nbsp;&nbsp;&nbsp; <i class="fa fa-hand-o-down" aria-hidden="true"></i></em></h3>
        </div>
<?php } 

$rsUserInfo =  $uInfo___;


//if($rsUserInfo[0]['db_state'])
$stateid = $rsUserInfo[0]['db_state'];
$cityid = $rsUserInfo[0]['db_city'];

?>
<div class="">
		<?php if($_SESSION['UserInfo']['UType'] == 'End_user') { ?>
        <!---<div class="box box-primary card hovercard " style="border:none; border-top:2px solid #3c8dbc;">
        <div class="card" id="festival-banner"></div>
        <style>
		.card{padding:5px;margin-top: 5px;}
    	</style>
        <script>
		
		$(window).load(function(){
			 // alert(0);
			  var xhttp = new XMLHttpRequest();
			  xhttp.onreadystatechange = function() {
				if (this.readyState == 4 && this.status == 200) {
					document.getElementById("festival-banner").innerHTML = this.responseText;
				}
			  };
			  xhttp.open("GET", "runajax.php?acn=getFastivalBanner", true);
			  xhttp.send();
		  })
		
        </script>
    </div>------------>
        <br />
        <?php } ?>

    	<div class="box box-primary card hovercard " style="border:none; border-top:2px solid #3c8dbc;">
        <div class="card-background">


								<?php 
											$ProfileImage = $objProfile->FetchWebProfileImage();
											
											//$ProfileImage = $objProfile->FetchUserProfilePhoto();
											if($ProfileImage != "")
												
												$ProfileImage = UPLOAD_WEBPROFILEIMAGE.$ProfileImage;
											else
											
												$ProfileImage = _IMAGEPATH_.'/noimage_responsive.png';
								?>
                            			
                                                
            <img class="card-bkimg" alt="" src="<?php echo $ProfileImage ;?>">
          
        </div>
        <div class="useravatar">
            <img alt="" src="<?php echo $ProfileImage ;?>">
        </div>
        <div class="card-info"> <span class="card-title"><?php echo $rsUserInfo[0]['db_username'];?></span>

        </div>
    </div>

 

     <div class="well"style="padding:6px;">
         <div class="tab-content">
       
                       <!-------------------------28-8-1017------------------->
	
	<style>.f-from {
    margin-bottom: 23px;
}</style>
	
	<div class="">
          <!-- Custom Tabs -->
          <div class="nav-tabs-custom">
          
          	
           
			<ul class="nav nav-tabs">
            	
              <li <?php if($objProfile->back == 'tab_1') echo 'class="active"';?>><a href="#tab_1" data-toggle="tab"><span class="glyphicon glyphicon-user" style="margin-right: 10px;"></span>Profile</a></li>
              <?php
			if(!empty($rsUserInfo[0]['db_userLoginName'])) {
			  	
				if(strtolower($_SESSION['UserInfo']['UType']) == 'end_user') {
              ?>
             <li <?php if($objProfile->back == 'tab_2') echo 'class="active"';?>><a href="#tab_2" data-toggle="tab"><span class="glyphicon glyphicon-edit" style="margin-right: 10px;"></span>My Bonus Point</a></li>
              <li <?php if($objProfile->back == 'tab_3') echo 'class="active"';?>><a href="#tab_3" data-toggle="tab"><span class="glyphicon glyphicon-gift" style="margin-right: 10px;"></span>My visit</a></li>
              <li <?php if($objProfile->back == 'tab_4') echo 'class="active"';?>><a href="#tab_4" data-toggle="tab"><span class="glyphicon glyphicon-shopping-cart" style="margin-right: 10px;"></span>My orders</a></li>
              <?php } ?>
              <?php } ?>
              <li <?php if($objProfile->back == 'tab_5') echo 'class="active"';?>><a href="#tab_5" data-toggle="tab"> <i class="fa fa-key" aria-hidden="true"></i> Change Password</a></li>
            
             
             
            </ul>
            <div class="tab-content">
              <div class="tab-pane <?php if($objProfile->back == 'tab_1') echo 'active';?>" id="tab_1">
		   		<div class="p">
        <div class="full_row main_container" >
                <form name="frmSettings" id="frmSettings" method="post" action="manage.php?pg=profileemp&acn=setSettingData" enctype="multipart/form-data" > 
                <input type="hidden" name="ctype" id="ctype" value="<?php echo strtolower($rsUserInfo[0]['UserType'])?>" />

            <div class = "full_row">
			
            <div class=" col-md-12 f-from">
			  <div class="col-md-1"></div>
                  <div class="col-md-4">   <i class="fa fa-id-badge" aria-hidden="true"></i>&nbsp;&nbsp;</span> Profile id: </div>
               
                <div class="col-md-6 f-pro">
                       <?php if(!empty($rsUserInfo[0]['db_userLoginName'])) { ?>
						 	<input name="username" id="username" value="<?php echo $rsUserInfo[0]['db_userLoginName']; ?>" type="hidden">
                            <?php echo "# ".$rsUserInfo[0]['db_userLoginName']; ?>
						  <?php }else {  ?>
                         <input  name="username" id="username" class="form-control input-md" onkeyup="javascript: return validateAddress(this.value)" <?php if(!empty($rsUserInfo[0]['db_userLoginName'])) echo 'disabled="disabled"'; ?>  value="<?php echo $rsUserInfo[0]['db_userLoginName']; ?>" type="text">
                         <?php } ?>
                </div>
				 <div class="col-md-1"></div>
		    </div>
            
            <div class=" col-md-12 f-from">
			    <div class="col-md-1"></div>
                <div class="col-md-4">   <i class="fa fa-user"></i>&nbsp;&nbsp;</span>  Full Name :</div>
                <div class="col-md-6 f-pro">
                    <input name="name" id="name" class="form-control input-md" type="text" value="<?php echo $rsUserInfo[0]['db_username']; ?>">   
                </div>
				<div class="col-md-1"></div>
		    </div>


            <div class=" col-md-12 f-from">  
			    <div class="col-md-1"></div>
                <div class="col-md-4"><i class="fa fa-envelope-open" aria-hidden="true"></i>&nbsp;&nbsp;</span> Email id: </div>
            
				<div class="col-md-6 f-pro">
					<input name="email" id="email" class="form-control input-md"type="text" value="<?php echo $rsUserInfo[0]['db_email']; ?>">
				</div>
				<div class="col-md-1"></div>
        </div>
        
            <div class=" col-md-12 f-from">
                 <div class="col-md-1"></div>
                <div class="col-md-4"> <i class="fa fa-mobile" aria-hidden="true"></i>&nbsp;&nbsp;</span> Phone no: </div>
			    <div class="col-md-6 f-pro">
					<input class="form-control input-md" type="text" maxlength="10" name="contact_number" id="contact_number" value="<?php echo $rsUserInfo[0]['db_phone']; ?>" >
				</div>
				 <div class="col-md-1"></div>
        </div>
            
			
			
			<div class=" col-md-12  f-from">
                  <div class="col-md-1"></div>
                 <div class="col-md-4"><i class="fa fa-address-card" aria-hidden="true"></i>&nbsp;&nbsp;</span> Address :</div>
                
                <div class="col-md-6 f-pro">
                    <input class="form-control input-md" name="address" id="address" type="text" value="<?php echo $rsUserInfo[0]['db_address']; ?>" >
                </div>
				<div class="col-md-1"></div>
		    </div>
			
			
			
				<div class=" col-md-12  f-from">
				    <div class="col-md-1"></div>
             
                   <div class="col-md-4"> <i class="fa fa-file-archive-o"></i>&nbsp;&nbsp;</span> PIN Code :</div>
              
						<div class="col-md-6 f-pro">
							<input class="form-control input-md" id="pincode" maxlength="6"  name="pincode" type="text"  value="<?php echo $rsUserInfo[0]['db_pincode']; ?>" >
						</div>
						  <div class="col-md-1"></div>
		    </div>
            

				<div class=" col-md-12  f-from">
                      <div class="col-md-1"></div>
                         <div class="col-md-4">  <i class="fa fa-flag"></i>&nbsp;&nbsp;</span> State :</div>
                
                <div class="col-md-6 f-pro">
                     <select onchange="javascript: fetchCityData(this.value)" class="form-control" name="state" id="state">
                     
                    <?php 
					$SQL = "SELECT * FROM states where country_id = 101 order by name ASC ";
					$rsStates = $objDB->sql_query($SQL);
					for($s = 0; $s<count($rsStates); $s++) {
						
						if(empty($stateid)){
							$stateid = $rsStates[0]['id'];
						}
						$selState = '';
						if($stateid == $rsStates[$s]['id']){
							$selState = 'selected="selected"';
						}
						
                    ?>
                      <option <?php echo $selState;?> value="<?php echo $rsStates[$s]['id']?>"><?php echo $rsStates[$s]['name']?></option>
                      <?php } ?>
					</select>   
                
		    </div>
			 <div class="col-md-1"></div>
            </div>
            <script>
				function fetchCityData(sid){
					var xhttp = new XMLHttpRequest();
					xhttp.onreadystatechange = function() {
						if (this.readyState == 4 && this.status == 200) {
							document.getElementById("city-data").innerHTML = this.responseText;
					   }
					};
					xhttp.open("GET", "runajax.php?acn=fetchCityData&sid="+sid, true);
					xhttp.send(); 
				}
           
				   
				   function validateAddress(TCode){
						if(/[^a-zA-Z0-9\/]/.test( TCode )) {
							document.getElementById('username').value = TCode.slice(0, -1)
							return false;
						}
						return true;
					}

                                    function validateFrom(){
                                            
                                            var name = document.getElementById('name');
                                            var contact_number = document.getElementById('contact_number');
                                            var email = document.getElementById('email');
                                            //var user_name_hdn = document.getElementById('user_name_hdn');
											var username = document.getElementById('username');
											
											var address = document.getElementById('address');
											var pincode = document.getElementById('pincode');
                                            
                                            
                                            var error = 0;
											
											//if(user_name_hdn.value.trim() == ""){
												if(username.value.trim() == ""){
                                                	username.style.border = "1px solid red";
                                               	 	error = 1;
												}else{
													username.style.border = "1px solid #ccc";
												}
												
											//}
											
											
											
                                            if(name.value.trim() == ""){
                                                name.style.border = "1px solid red";
                                                error = 1;
                                            }else{
                                                name.style.border = "1px solid #ccc";
                                            }
                                            if(contact_number.value.trim() == ""){
                                                contact_number.style.border = "1px solid red";
                                                error = 1;
                                            }else{
                                                contact_number.border = "1px solid #ccc";
                                            }
                                            if(contact_number.value.length != 10){
                                                contact_number.style.border = "1px solid red";
                                                error = 1;
                                            }else{
                                                contact_number.style.border = "1px solid #ccc";
                                            }
                                            
											if(ValidateEmail(email) == false){
												email.style.border = "1px solid red";
												error = 1;
											}else{
												email.style.border = "1px solid #ccc";
											}
											
											if(address.value.trim() == ""){
												address.style.border = "1px solid red";
												error = 1;
											}else{
												address.style.border = "1px solid #ccc";
											}
											
											if(pincode.value.trim() == ""){
												pincode.style.border = "1px solid red";
												error = 1;
											}else{
												pincode.style.border = "1px solid #ccc";
											}
												
                                            if(error == 1)
                                            return false;
											
											document.getElementById('frmSettings').submit();
											
                                    }
                                    
                                    
                                        
                                
                                    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;
                                    }
                                    
                                    function ValidateEmail(mail) 
                                    {
                                     if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(mail.value.trim()))
                                      {
                                        return true;
                                      }
                                        //alert("You have entered an invalid email address!")
                                        return false;
                                    }
    
                                </script>
            
            <div class=" col-md-12  f-from">
			
			<div class="col-md-1"></div>
               <div class="col-md-4">  <i class="fa fa-building"></i>&nbsp;&nbsp;</span>  City :</div>
               
                <div class="col-md-6 f-pro" id="city-data">
                     <select class="form-control" name="city" id="city">
                     
                    <?php $SQL = "SELECT * FROM cities where state_id = ".$stateid." order by name ASC ";
					$rsCity = $objDB->sql_query($SQL);
					for($s = 0; $s<count($rsCity); $s++) {
						
						$selState = '';
						if($cityid == $rsCity[$s]['id']){
							$selState = 'selected="selected"';
						}
						
                    ?>
                      <option <?php echo $selState; ?> value="<?php echo $rsCity[$s]['id']?>"><?php echo $rsCity[$s]['name']?></option>
                      <?php } ?>
					</select>  
                </div>
		    
			
			<div class="col-md-1"></div>
            </div>
			
            
 </div>
 			</form>
 
 <div class="col-md-12  bt-button">
 <div class="col-md-4"></div>
 <button  type="submit" onclick="javascript: return validateFrom();" class=" col-md-4 btn btn-block btn-success">Save</button>
  <div class="col-md-4"></div>
<!-- <button type="button" class="btn btn-block btn-info">Edit</button>
 <button type="button" class="btn btn-block btn-warning">Cencle</button>
 --> </div>
 </div>
        
        <!-- Other Libraries -->
		<!---woch-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> 
        -->
        <!-- Tm Library -->
        
</div>
		 
              </div>
              <!-- /.tab-pane -->
              
              <?php
			  	if(strtolower($_SESSION['UserInfo']['UType']) == 'end_user') {
              ?>
              <div class="tab-pane <?php if($objProfile->back == 'tab_2') echo 'active';?>" id="tab_2">
                  <!------------------tab-2---------------->
				  
				    <div class="container" style="width:100%;">
  
  <div class="my-bounes-point">
  <div class="col-lg-6 bonas-main">
  <div class="my-point"><P><?php echo $totalPoints =  $objProfile->fetchTotalBonus();?></p></div>
  <P class="f-bounes">My Bonus points</p>
  </div>
  
    
  
    <div class="col-lg-6 bonas-main">
      <div class="pur">
	 
	  
	  <!-----------redem -popup------------------>
	  
	   <a href="#" data-target="#pwdModal" data-toggle="modal" class=""> <button type="button">Redeem</button></a>
							

<!--modal-->
<div id="pwdModal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" style="display: none;">
    <div class="modal-dialog redem">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="opacity: 14; color:#FFF;">×</button>
                 <h2 class="text-center">Redeem</h2>

            </div>
            <div class="modal-body">
                <div class="col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-body">
                          
                          <?php
								$SQL = "SELECT * FROM beatle_products WHERE stock != 0";
								$rsProducts = $objDB->sql_query($SQL);
								
								//echo "<pre>";
								//print_r($rsProducts);
								//echo "</pre>";
								
								
								if(count($rsProducts) > 0){ 
								
								for($i=0; $i<count($rsProducts); $i++ ) { 
								
									$div = $i%4; 
								
									//if($div == 0) { echo '<div class="text-center Redeem-main">'; }
								?>
									
								
                               	<div class="col-md-3 Redeem-box">
                                   <div class="Redeem-item">
                                   
                                  <?php
								  if($_SERVER['HTTP_HOST']=='localhost' || $_SERVER['HTTP_HOST']=='kalpeshpc' ) { 
								  		echo '<img src="http://'.$_SERVER['HTTP_HOST'].'/newdemo.beatleanalytics.com/assets/products/'.$rsProducts[$i]['prod_image'].'">';
								  }else{
										if(SUBDOMAIN_NAME == 'owner'){ 
											echo '<img src="http://newdemo.beatleanalytics.com/assets/products/'.$rsProducts[$i]['prod_image'].'">';
										}else if(SUBDOMAIN_NAME == 'manage'){
											echo '<img src="http://manage.beatleanalytics.com/assets/products/'.$rsProducts[$i]['prod_image'].'">';
										}
								  } 
								  ?>
                                   
                                   
                                   </div>
                                   <div class="point-rd">
                                   <b><?php echo $rsProducts[$i]['name'];?></b>
                                   <p><?php echo $rsProducts[$i]['points'];?><span> Point</span></p>
                                   <!--<button class="rd" type="button">Redeem Now</button> -->
                                  <div class="col-md-3"></div>
                                   <div class="col-md-6 prodacat-btn">
                                   <?php
								   	if($totalPoints >= $rsProducts[$i]['points']) {
                                   ?>
                                   <a href="orderprocess.html?prid=<?php echo $rsProducts[$i]['productid'];?>" class="btn btn-block btn-primary">Redeem Now</a>
                                   <?php } else {   ?>
								   <a onclick="javascript:;" href="#" class="btn btn-block btn-primary disabled">Redeem Now</a>
								  <?php  }?>
                                   
                                   </div>
								   <div class="col-md-3"></div>  
                                   
                                   </div>
							  	</div>

                            
								<?php  
									//if($div == 3 || $div == count($rsProducts)-1) { echo '</div> <hr>'; }
								}
								
								} else{
									
									echo 'No any products found';
									
								} ?>
                          	
                            
							<hr>
							
							
							
							
							
							
							
							 
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <div class="col-md-12">
                    <button class="btn" data-dismiss="modal" aria-hidden="true" style="padding: 8px 30px;
    font-size: 19px;">Cancel</button>
                </div>
            </div>
        </div>
    </div>
</div>
								
				<!------poup-forget-pass--end----->
							
								
	  
	  
	  
	
	  </div>
	   
  </div>
  
  </div>
  
  
  
  <br>
                                                                                        
  
</div>

              </div>
              <div class="tab-pane <?php if($objProfile->back == 'tab_3') echo 'active';?>" id="tab_3">
                     <!------------------tab3-------->
					 <div class="row">
         <?php
		 			$rsCustomerInfo = $objProfile->fetchCustomerVisit();
		 		
						if(count($rsCustomerInfo) > 0 ) {
                    ?>
                   
                    <?php  //echo   pagination_log($s,$perpage,$start,$nume,$totalpage,$pg,$v); ?>
                   
					<?php
						}
                    ?>
        
                    <div class="col-md-12">
                    <div class="table-responsive">
                        
                		 <table class="table table-striped table-bordered">
								  <tbody>
								  <tr>
								  <th class="text-center">Sr.No.</th>
                                  <th class="text-center">User ID</th>
                                  <th class="text-center">Organization</th>
                                  <th class="text-center">Branch</th>
                                  <th class="text-center">Industry</th>
                                  <th class="text-center">Date</th>
								  </tr>
								<?php 
								
								//print_r($_SESSION);
								//echo "<pre>";
								//print_r($rsCustomerInfo);
								//echo "</pre>";
								
								
								if(count($rsCustomerInfo)>0){
								
								if(!empty($FromDate))
								$lnk = "&FromDate=".$FromDate;
								if(!empty($ToDate))
								$lnk .= "&ToDate=".$ToDate;
								
								for ($i=0;$i< count($rsCustomerInfo);$i++)
								{
									   if($i%2)
											$bgclass='altrow';
										else
											$bgclass='oddrow';
								?>
									<tr class="<?php echo $bgclass;?>" >
									<td class="text-center"><label name="No"><?php echo $i+1; ?></label></td>
									<td class="text-center"><label name="User ID"><a href="cusers.html?back=profileemp&v=list&cid=<?php echo $rsCustomerInfo[$i]['db_surveyUserid']."&tid=".$rsCustomerInfo[$i]['tokenid']."&Industrys=".$rsCustomerInfo[$i]['db_surveyIndId'].$lnk;?>"><?php echo $rsCustomerInfo[$i]['db_phone']; ?></a></label></td>
                                    
                                    <td class="text-center"><label name="Organization Name"><?php echo $objProfile->FetchOrganizationName($rsCustomerInfo[$i]['orgid']);  ?></label></td>
                                    <td class="text-center"><label name="Branch Name"><?php echo  $objProfile->FetchBranchName($rsCustomerInfo[$i]['db_surveyBranchid']); ?></label></td>
                                    <td class="text-center"><label name="Industry Name"><?php echo $objProfile->FetchIndustryName($rsCustomerInfo[$i]['db_surveyIndId']); ?></label></td>
                                    <td class="text-center"><label name="Date"><?php echo date("d/m/Y H:i A",strtotime($rsCustomerInfo[$i]['created_date'])); ?></label></td>
									</tr>
									<?php }
									}else{
									 ?>
										<tr class="altrow" > <td colspan="10" align="center"> No any data found. </td> </tr>

									<?php } ?>
								 </tbody>
                                 </table>
                                 
					</div>
                    </div>
                    
                <?php
						if(count($rsCustomerInfo) > 0 ) {
				?>
				<?php  //echo   pagination_log($s,$perpage,$start,$nume,$totalpage,$pg,$v); ?>
				
				<?php
				}
				?>
                    </div>
					 <!-------tab3end------------>
              </div>
              <div class="tab-pane <?php if($objProfile->back == 'tab_4') echo 'active';?>" id="tab_4">
                     <!------------------tab4-------->
					 <div class="row">
         <?php
		 			$rsOrderData = $objProfile->fetchOrderDetails();
					
					//echo "<pre>";
					//print_r($rsOrderData);
					//echo "</pre>";
					
		 		
						if(count($rsOrderData) > 0 ) {
                    ?>
                   
                    <?php  //echo   pagination_log($s,$perpage,$start,$nume,$totalpage,$pg,$v); ?>
                   
					<?php
						}
                    ?>
        
                    <div class="col-md-12">
                    <div class="table-responsive">
                        
                		 <table class="table table-striped table-bordered">
								  <tbody>
								  <tr>
                                  <th class="text-center">Order ID</th>
                                  <th class="text-center">Product Name</th>
                                  <th class="text-center">Image</th>
                                  <th class="text-center">Quantity</th>
                                  <th class="text-center">Status</th>
                                  <th class="text-center">Created Date</th>
								  </tr>
								<?php 
								
								//print_r($_SESSION);
								//echo "<pre>";
								//print_r($rsCustomerInfo);
								//echo "</pre>";
								
								
								if(count($rsOrderData)>0){
								
								
								
								for ($i=0;$i< count($rsOrderData);$i++)
								{
									   if($i%2)
											$bgclass='altrow';
										else
											$bgclass='oddrow';
								?>
									<tr class="<?php echo $bgclass;?>" >
                                    <td class="text-center"><label name="Organization Name"><?php echo $rsOrderData[$i]['orderuid']; ?></label></td>
                                    <td class="text-center"><label name="Branch Name"><?php echo $rsOrderData[$i]['productname']; ?></label></td>
                                    <td class="text-center">
                                    
                                     <?php
									$SQL = "SELECT prod_image FROM beatle_products WHERE productid = ".$rsOrderData[$i]['productid'];	 
									$rsProdImage = $objDB->sql_query($SQL);
									
									
								  if($_SERVER['HTTP_HOST']=='localhost' || $_SERVER['HTTP_HOST']=='kalpeshpc' ) { 
								  		echo '<img height="50" width="50" src="http://'.$_SERVER['HTTP_HOST'].'/newdemo.beatleanalytics.com/assets/products/'.$rsProdImage[0]['prod_image'].'">';
								  }else{
										if(SUBDOMAIN_NAME == 'owner'){ 
											echo '<img height="50" width="50" src="http://newdemo.beatleanalytics.com/assets/products/'.$rsProdImage[0]['prod_image'].'">';
										}else if(SUBDOMAIN_NAME == 'manage'){
											echo '<img height="50" width="50" src="http://manage.beatleanalytics.com/assets/products/'.$rsProdImage[0]['prod_image'].'">';
										}
								  } 
								  ?>
                                  
                                    </td>
                                    <td class="text-center"><label name="Date"><?php echo $rsOrderData[$i]['quantity']; ?></label></td>
                                    <td class="text-center"><label name="Date"><?php echo $rsOrderData[$i]['status']; ?></label></td>
                                    <td class="text-center"><label name="Date"><?php echo date("d/m/Y H:i A",strtotime($rsOrderData[$i]['created_date'])); ?></label></td>
									</tr>
									<?php }
									}else{
									 ?>
										<tr class="altrow" > <td colspan="10" align="center"> No any data found. </td> </tr>

									<?php } ?>
								 </tbody>
                                 </table>
                                 
					</div>
                    </div>
                    
                <?php
						if(count($rsCustomerInfo) > 0 ) {
				?>
				<?php  //echo   pagination_log($s,$perpage,$start,$nume,$totalpage,$pg,$v); ?>
				
				<?php
				}
				?>
                    </div>
					 <!-------tab3end------------>
              </div>
              
			  <?php } ?>
              
              
              
              <div class="tab-pane <?php if($objProfile->back == 'tab_5') echo 'active';?>" id="tab_5">
                     <!------------------tab5-------->
					 <div class="row">
                     
                     <div class="full_row main_container" >
                <form name="frmSettings" id="frmSettings" method="post" action="manage.php?pg=profileemp&acn=setPasswordData" enctype="multipart/form-data" > 
                <input type="hidden" name="ctype" id="ctype" value="<?php echo strtolower($rsUserInfo[0]['UserType'])?>" />

            <div class = "full_row">
			
            <div class=" col-md-12 f-from">
			  <div class="col-md-1"></div>
                  <div class="col-md-4">&nbsp;&nbsp;</span> </div>
               
                <div class="col-md-6 f-pro"> &nbsp; </div>
				 <div class="col-md-1"></div>
		    </div>
            
            <div class=" col-md-12 f-from">
			    <div class="col-md-1"></div>
                <div class="col-md-4">   <i class="fa fa-key" aria-hidden="true"></i> &nbsp;&nbsp;</span>  Old password :</div>
                <div class="col-md-6 f-pro">
                    <input name="oldpass" id="oldpass" class="form-control input-md" type="password" value="">
                </div>
				<div class="col-md-1"></div>
		    </div>


            <div class=" col-md-12 f-from">  
			    <div class="col-md-1"></div>
                <div class="col-md-4"><i class="fa fa-key" aria-hidden="true"></i> &nbsp;&nbsp;</span> New password: </div>
            
				<div class="col-md-6 f-pro">
					<input name="newpass" id="newpass" class="form-control input-md"type="password" value="">  (6 to 20 Char. )
				</div>
				<div class="col-md-1"></div>
        </div>
        
            <div class=" col-md-12 f-from">
                 <div class="col-md-1"></div>
                <div class="col-md-4"> <i class="fa fa-key" aria-hidden="true"></i> &nbsp;&nbsp;</span> Confirm password: </div>
			    <div class="col-md-6 f-pro">
					<input class="form-control input-md" type="password" maxlength="10" name="cnewpass" id="cnewpass" value="" >
				</div>
				 <div class="col-md-1"></div>
        </div>
        
        	<div class="col-md-12  bt-button">
 <div class="col-md-4"></div>
 <button  type="submit" onclick="javascript: return validatePassword();" class=" col-md-4 btn btn-block btn-success">Change</button>
  <div class="col-md-4"></div>
<!-- <button type="button" class="btn btn-block btn-info">Edit</button>
 <button type="button" class="btn btn-block btn-warning">Cencle</button>
 --> </div>
            
			
			
			
			
			
			
				
            

				
            					<script>
                                    function validatePassword(){
                                            
                                            var oldpass = document.getElementById('oldpass');
                                            var newpass = document.getElementById('newpass');
                                            var cnewpass = document.getElementById('cnewpass');
                                            var error = 0;
											
											
											
                                            if(oldpass.value.trim() == ""){
                                                oldpass.style.border = "1px solid red";
                                                error = 1;
                                            }else{
                                                oldpass.style.border = "1px solid #ccc";
                                            }
											
											
                                            if(newpass.value.trim() == ""){
                                                newpass.style.border = "1px solid red";
                                                error = 1;
                                            }else{
                                              
											  if(newpass.value.length < 6 || newpass.value.length > 20){
                                                	newpass.style.border = "1px solid red";
                                                	//alert("new pas error");
													error = 1;
											  }else{
													newpass.style.border = "1px solid #ccc";
											  }
											  
                                            }
                                           
										    
                                            
											
											
											if(cnewpass.value.trim() == ""){
												cnewpass.style.border = "1px solid red";
												error = 1;
											}else{
												
												if(cnewpass.value.length < 6 || cnewpass.value.length > 20){
                                               	 	cnewpass.style.border = "1px solid red";
                                                	//alert("cpass eror");
													error = 1;
												}else{
												  	cnewpass.style.border = "1px solid #ccc";
												}
											}
											
											//alert(error);
											if(error == 1)
                                            return false;
											
											if(newpass.value.trim() != cnewpass.value.trim()){
												alert("Confirm password not matched.");
												cnewpass.style.border = "1px solid red";
                                                error = 1;
                                            }else{
                                               // cnewpass.style.border = "1px solid #ccc";
                                            }
											
                                            if(error == 1)
                                            return false;
											
											
											
                                    }
                                </script>
            
            
			
            
 </div>
 			</form>
 
 
 </div>
                     
         
                    </div>
					 <!-------tab3end------------>
              </div>
              <!-- /.tab-pane -->
            </div>
            <!-- /.tab-content -->
          </div>
          <!-- nav-tabs-custom -->
        </div>
	
	
	
	
	
	<!-------------->
        
      </div>
    </div>
	
	
	
	

	
	
	
	
    
    </div>
<?php } ?>    
                  

</div>
</div>







</section>
</div>





        <!-- Other Libraries -->
<!---<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>------> 
        
        <!-- Tm Library -->
         <!--
        <script type="text/javascript" src="theme/black/js/tm_validator.js"></script>
        <script type="text/javascript" src="theme/black/js/tm_editable.js"></script>
        
        <script type="text/javascript">
            $(document).ready(function(){
                $('#text_demo, #textarea_demo, #checkbox_demo, #select_demo, .width_auto_demo').tm_editbale('init',{
                                    theme:'round-button-theme',
                                    outside_btn:{
                                                    onshow:"&nbsp;<i class='fa fa-pencil'></i>&nbsp;",
                                                    new_line:false,
                                                    onhover:''
                                                },
                                    inside_btn:{
                                                    new_line:false,
                                                    ok:"<i class='fa fa-check'></i>",
                                                    cancel:"<i class='fa fa-times'></i>"
                                                }            
                                });
                setTimeout(function(){
                            $('#radio_demo').tm_editbale('init',{
                                 theme:'round-button-theme',
                                    outside_btn:{
                                                    onshow:"&nbsp;<i class='fa fa-pencil'></i>&nbsp;",
                                                    new_line:false,
                                                    onhover:''
                                                },
                                    inside_btn:{
                                                    new_line:false,
                                                    ok:"<i class='fa fa-check'></i>",
                                                    cancel:"<i class='fa fa-times'></i>"
                                                }            
                                });
                },350);
            });
        </script> -->