File: /home/barbeatleanalyti/public_html/manage.beatleanalytics.com/site/template/profilenew-1.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>
<!-----profile--------->
<section class="content" style="min-height: 1078px;">
<div class="row" >
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="box box-primary" style="min-height: 978px;">
<!-- /.box-header -->
<div class="box-body">
<div class="new-profile">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="profile-name"><h1>Welcome Rahul Patel</h1></div>
</div>
<div class="col-md-6 col-sm-12 col-xs-12">
<div class="col-md-3 col-sm-3 col-xs-12 profile-left">
<div class="profile-img">
<img id="profile-image1" src="theme/black/images/profile-img.png">
<input id="profile-image-upload" class="hidden" type="file">
</div>
</div>
<div class="col-md-9 col-sm-9 col-xs-12">
<!-- panel preview -->
<div class="panel-default">
<div class="panel-body form-horizontal payment-form">
<div class="form-group">
<label for="concept" class="col-sm-3 control-label">Profile id</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="profile id" name="id" placeholder="Profile id">
</div>
</div>
<div class="form-group">
<label for="description" class="col-sm-3 control-label">Full Name</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="Full Nam" name="Full Name" placeholder="Full Name">
</div>
</div>
<div class="form-group">
<label for="description" class="col-sm-3 control-label">Email id</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="mail" name="Email" placeholder="Email id">
</div>
</div>
<div class="form-group">
<label for="amount" class="col-sm-3 control-label">Phone no</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="Phone no" name="Phone no" placeholder="Phone no">
</div>
</div>
<div class="form-group">
<label for="amount" class="col-sm-3 control-label">Address</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="Address" name="email" placeholder="Address">
</div>
</div>
<div class="form-group">
<label for="amount" class="col-sm-3 control-label">PIN Code</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="PIN Code" name="PIN Code" placeholder="PIN Code">
</div>
</div>
<div class="form-group">
<label for="status" class="col-sm-3 control-label">State</label>
<div class="col-sm-9">
<select class="form-control" id="status" name="status" >
<option>Gujarat</option>
<option>Maharatra</option>
</select>
</div>
</div>
<div class="form-group">
<label for="status" class="col-sm-3 control-label">City</label>
<div class="col-sm-9">
<select class="form-control" id="status" name="status">
<option>Rajkot</option>
<option>Surat</option>
</select>
</div>
</div>
<div class="button-save-edit-chang-pass">
<button type="button" class="btn btn-primary btn-md">Save</button>
<button type="button" class="btn btn-primary btn-md">Edit</button>
<button id="flip" type="button" class="btn btn-primary btn-md" data-toggle="modal" data-target="#myModal"> Change Password</button>
<div id="panel" class="popup">
<div class="chang-pass">
<div class="form-group">
<label for="amount" class="col-sm-5 control-label">Old password</label>
<div class="col-sm-7">
<input type="password" class="form-control" id="password" name="password">
</div>
</div>
<div class="form-group">
<label for="amount" class="col-sm-5 control-label">New password</label>
<div class="col-sm-7">
<input type="password" class="form-control" id="password" name="password">
</div>
</div>
<div class="form-group">
<label for="amount" class="col-sm-5 control-label">Confirm password</label>
<div class="col-sm-7">
<input type="password" class="form-control" id="password" name="password">
</div>
</div>
<button type="button" class="btn btn-primary btn-md">Chang</button>
</div>
</div>
</div>
</div>
</div>
<!-- / panel preview -->
</div>
</div>
<div class="col-md-6 profile-box">
<div class="bx-box footer-box" style="border:2px solid #5097c2 !important;">
<div class="box-header with-border box-header">
<h3 class="box-title"> <i class="fa fa-fw fa-sun-o" style="margin-right:10px;"></i>My Bonus Point</h3>
</div>
<div class="box-body map" style="height:auto;">
<div class="news-manu skill-bar">
<div class="tab-pane <?php if($objProfile->back == 'tab_2') echo 'active';?>" id="tab_2">
<!------------------tab-2---------------->
<div class="container" style="width:100%; margin:25px 0px;">
<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>
</div>
</div>
</div>
<div class="col-md-6 profile-box">
<div class="bx-box footer-box" style="border:2px solid #5097c2 !important;">
<div class="box-header with-border box-header">
<h3 class="box-title"> <i class="fa fa-window-restore" aria-hidden="true" style="margin-right:10px;"></i> My Visit</h3>
</div>
<div class="box-body map" style="min-height: 229px;overflow: scroll;">
<div class="news-manu skill-bar">
<div class="col-md-12-">
<div class="tab-pane <?php if($objProfile->back == 'tab_3') echo 'active';?>" id="tab_3">
<!------------------tab3-------->
<div class="">
<?php
$rsCustomerInfo = $objProfile->fetchCustomerVisit();
if(count($rsCustomerInfo) > 0 ) {
?>
<?php //echo pagination_log($s,$perpage,$start,$nume,$totalpage,$pg,$v); ?>
<?php
}
?>
<div class="">
<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>
</div>
</div>
</div>
</div>
<div class="col-md-12 profile-box">
<div class="bx-box footer-box" style="border:2px solid #5097c2 !important;">
<div class="box-header with-border box-header">
<h3 class="box-title"> <span class="glyphicon glyphicon-shopping-cart" style="margin-right: 10px;"></span> My orders</h3>
</div>
<div class="box-body map" style="height:auto;">
<div class="news-manu skill-bar">
<div class="col-md-12-">
<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>
</div>
</div>
</div>
</div>
</div>
<script>
$(function() {
$('#profile-image1').on('click', function() {
$('#profile-image-upload').click();
});
});
</script>
<script>
$(document).ready(function(){
$("#flip").click(function(){
$("#panel").slideToggle("slow");
});
});
</script>
</div>
</div>
</div>
</div>
</div>
</section>
<!----//-profile------>
</div>
<style>
.box-header.with-border {
background: red;
background: -webkit-linear-gradient(left top, red, yellow);
background: -o-linear-gradient(bottom right, red, yellow);
background: -moz-linear-gradient(bottom right, red, yellow);
background: linear-gradient(to bottom right, #b1c6de, #3c8dbc);
color: #fff !IMPORTANT;
}
.profile-box {
margin-top: 17px;
}
.box-body.map {
background: whitesmoke;
}
.bx-box.footer-box { border-radius:5px;}
.box-header.with-border.box-header { border-radius:4px;}
.my-point {background: -webkit-linear-gradient(red, yellow, green);
background: -o-linear-gradient(red, yellow, green);
background: -moz-linear-gradient(red, yellow, green);
background: linear-gradient(#3c8dbc, #222d32, #3c8dbc);
}
</style>