
 
<!DOCTYPE html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <meta charset="utf-8">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
<title> Express Way Fly LTD </title>
  <meta name="description" content="Express Way Fly LTD">
  <meta name="viewport" content="width=device-width,initial-scale=1">

  
  <script type="text/javascript" src="css/f72daea3b7"></script><script src="js/nr-1039.js"></script>
  <script src="js/main.js"></script>

<script src="js/ajax.js"></script>
   
<link rel="stylesheet" href="css/vendor.css">
  <link rel="stylesheet" href="css/app.css">
</head>


<style> 
					
					#trackline_wrap #grey_line #pointer_img #perc_count{
	background-color: #129518;
	padding: 5px;
	color: #fff;
	margin-left: -7px;
	margin-top: -10px;
}


#trackline_wrap #grey_line{
	width: 100%;
	height: 5px;
	background-color: #cc0000;
	position: relative;
}

#trackline_wrap #grey_line #startpoint{
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background-color: #129518;
	position: absolute;
	left: -3px;
	top: -7px;
}

#trackline_wrap #grey_line #endpoint{
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background-color: #129518;
	position: absolute;
	right: -3px;
	top: -7px;
}

#trackline_wrap #grey_line #movingline{
	height: 5px;
	width: 0%;
	background-color: #129518;
}

#trackline_wrap #grey_line #pointer_img{
	position: absolute;
	top: -13px;
	/*left: 0px;*/
}

#trackline_wrap #grey_line #pointer_img #perc_count{
	background-color: #129518;
	padding: 5px;
	color: #fff;
	margin-left: -7px;
	margin-top: -10px;
}

.clear{
	clear: both;
}
					
					</style>
 

<body ng-app="aceCrmApp">
<!--[if lt IE 7]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
  your browser</a> to improve your experience.</p>
<![endif]-->
<header  class="alternate"><div class="header-main">


<div class="container"><!----><div class="template-container" ng-include="headerCtrl.template">

<?php

include "dbconnection.php";

if(isset($_POST['trackbutton']))
{

$trackingno = $_POST['trackingno'];
$d = date("Y-m-d");


//$trackingno = 'HAB1145Q';

	
	$query = "select * from tracking where trackingno = '$trackingno'"; 
	$result = mysqli_query($dbcon,$query) ;
	
	if($result->num_rows > 0)
	{
	 // $frow = mysqli_fetch_assoc($result);
	  
	 // if($frow['active'] == 1)
	 // {

		
				
		//echo"<td> SENDER:". $row['sender'] "</td><td> RECEIVER:".$row['receiver']."<br>TEL:".$row['recphone']."<br>ADDRESS:".$row['address']." </td>";
		while($row = mysqli_fetch_assoc($result))
		{
		
			if($row['active'] == 1)
			{
			
			
				
				
	echo

   

'<div class="header-content"><div class="logo-container"><a ui-sref="tracker" href="track.php"><img src="images/logo.png" class="logo" alt="Express Way Fly LTD"><span>Order Tracker</span></a></div><div class="tagline hide-on-med-and-down"><strong><font size="2" face="Verdana" color="#FFFFFF">Welcome</font></strong><font face="Verdana">&nbsp; </font> '. $row['receiver'].' <font face="Verdana"> | </font> <a href="track.php">
				<font color="#FF0000" size="2" face="Verdana"> <span style="text-decoration: none">Logout</span></font></a></div></div></div></div></div><ace-notification><div class="notification-container" ng-swipe-left="notificationCtrl.close()"></div></ace-notification></header>

				
				
		 


 <div class="main-content">
  <div class="main-container" id="mainContainer">
    <div id="top"></div>
    <!----><div class="content" ui-view=""><div class="update-order-notification" ace-in-place-notification="" notification-type=" " notification-title="orderCtrl.packagesList" notification-title-args="{RES: orderCtrl.editingPackagesCount, packagesList: orderCtrl.packagesList}" notification-open="orderCtrl.order.temporary"><div class="notification-container" ng-swipe-left="notificationCtrl.close()">
	<div id="notification" class="notification main-notification success warning" ng-style="{"margin-top" : notificationCtrl.notification.open ? 0 : (-1 * notificationCtrl.elemHeight) + "px"}" ng-class="{open: notificationCtrl.notification.open,
            success: notificationCtrl.notification.type === "ok",
            error: notificationCtrl.notification.type === "err",
            warning: notificationCtrl.notification.type === "warn",
            info: notificationCtrl.notification.type === "info"}" style="">
			<div class="container"><ng-md-icon class="notification-icon" icon="warning" ace-notification-icon="notificationCtrl.notification.type">
			<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path></svg></ng-md-icon>
			<div class="notification-message"><p><strong class="title" ng-bind="notificationCtrl.notification.title"></strong></p><p class="message hide-on-small-only" ng-bind-html="notificationCtrl.notification.message" ng-hide=""></p></div>
			<div class="actions"><!----> <!----></div></div></div></div></div><sub-header><div class="container"><h1 class="sub-header">Order</h1></div></sub-header><div class="container" ng-transclude=""><!----><section class="order-details">
			<div class="order-details-summary alternatestyle" ng-class="{alternatestyle : orderCtrl.alternetStyle === "tracker"  }">
			
			<div class="card order-customer-details"><div class="card-content"><!----><!---->
			<div class="card-title alt" ng-if="orderCtrl.alternetStyle === "tracker"">Tracking #'.$trackingno.'</div><!---->
			<div class="details-container"><!----><div class="details" ng-if="orderCtrl.alternetStyle === "tracker"">
			
			<div class="small-title">Senders Details</div><p class="profile-name" flex="" ng-bind-template="'. $row['sender'].' ">'. $row['sender'].' </p>
			
			<address><span ng-bind="orderCtrl.order.deliveryAddress"> <!--Afghanistan --></span></address>
			<dl><!----><dd ng-if="orderCtrl.order.customerDetails.phoneNumber || orderCtrl.order.phoneNumber" ng-bind="::orderCtrl.order.customerDetails.phoneNumber || orderCtrl.order.phoneNumber | tel"> +1 510 277 4002             </dd><!----><!----><!----></dl>
			
			<p ng-bind="orderCtrl.order.customerDetails.email"> '. $row['semail'].'</p></div><!---->
			
			<div class="details"><!----><div class="small-title" ng-if="orderCtrl.alternetStyle === "tracker"">Receivers Details</div>
			<!----><p class="profile-name" flex="" ng-bind-template="'. $row['receiver'].'">'. $row['receiver'].'</p>
			
			<address><span ng-bind="orderCtrl.order.deliveryAddress"> '. $row['address'].'</span></address>
			
			<dl><!----><dd ng-if="orderCtrl.order.customerDetails.phoneNumber || orderCtrl.order.phoneNumber" ng-bind="::orderCtrl.order.customerDetails.phoneNumber || orderCtrl.order.phoneNumber | tel">'. $row['recphone'].'</dd><!----><!----><!----></dl><p ng-bind="orderCtrl.order.customerDetails.email"> '. $row['remail'].'</p></div></div></div></div></div><div class="order-packages"><!----><div ace-package="pack" ng-repeat="pack in orderCtrl.order.packages | orderBy:"id"" is-current="orderCtrl.packNo === pack.packageNumber || orderCtrl.expandAll" allow-edit="orderCtrl.crudOps"><form ng-submit="packCtrl.update(pack, packageForm)" name="packageForm" novalidate="" class="ng-pristine ng-valid"><div class="card-with-action">
			<div class="card order-package" ace-collapsible=""><div class="card-content"><div class="card-title" ace-collapsible-origin="">
			<div class="collapsible-origin collapsible-expanded" ng-class="{"collapsible-expanded": collapseCtrl.expanded}"><ng-md-icon icon="expand_more" class="collapsible-origin-icon">
			<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"></path></svg></ng-md-icon>
			<div ng-transclude=""><span class="package-title">Package '. $row['packagetype'].'</span> <!----> <!----><iframe></iframe></div></div></div><div ace-collapsible-target="" ng-class="{expanded: packCtrl.opened}" class="expanded"><div class="collapsible-target collapsible-expanded" ng-class="{"collapsible-expanded": collapseCtrl.expanded}" ng-style="{"height": collapseCtrl.currentHeight}" style="height: auto;"><div class="collapsible-target-content" ng-transclude=""><div class="package-content"><div class="package-summary-container"><div class="package-summary">
			
			<div class="package-state"><div class="value no-title"><dl>Status:<dd> '. $row['status'].'</dd><br><!----><!----><!----><dd>Current Location:  <span style = "font-weight:bold; color:red;">'. $row['clocation'].' </span>  <b></b></dd></dl></div><div class="widget-container"><div title="" class="widget-marker" ng-style="{left: "calc((100% / 5) * " + pack.marker.position + " - 23px)"}" style="right: calc(100% - 23px);"><img ng-src="assets/images/state-progress/marker-dispatched.svg" src="img/marker-dispatched.svg"><!----></div><div class="widget-background success" ng-class="pack.marker.back">
			
			
			
			
			<div class="clear"></div>
			<div id="trackline_wrap">
					
					
						<div id="grey_line">
							<div id="startpoint"></div>

							<div id="endpoint"></div>

							<div id="movingline"></div>

							<div id="pointer_img">
								<img src="img/marker-dispatched.svg" />
								<span id="perc_count">00%</span>
							</div>
						</div>
					</div>
			
			
			
			</div></div></div><div class="package-additional-info"><div class="value"><dl><dd > '. $row['address'].'</dd><dt>Destination</dt></dl></div><!----><div class="estimated-delivery" ng-if="pack.minEstDeliveryDate &amp;&amp; pack.maxEstDeliveryDate">
			
			<dl><dt>Date Sent:</dt><dd><span> '. $row['dispdate'].'</span><!----></dd></dl></div><!----><div class="estimated-delivery" ng-if="pack.minEstDeliveryDate &amp;&amp; pack.maxEstDeliveryDate"><dl><dt>Estimated Delivery Date:</dt><dd><span>'. $row['pickdate'].'</span><!----></dd></dl></div><!----></div></div><!----></div><div class="package-details" ace-tabs=""><ul class="tabs"><li class="tab"><a ng-href="#228319-items" href="#228319-items" class="active" style="">Package Description</a></li>
			
			<li class="tab"><a ng-href="#228319-items" href="#228319-items" class="active" style="">Package Description</a></li>
			
			<div class="indicator" style="right: 916px; left: 1px;"></div></ul><div id="228319-items" class="tab-container active" style=""><table ng-form="package-228319" class="package-items ace-table responsive ng-pristine ng-valid" ng-class="{"with-error": packageForm["package-"+ pack.id].$invalid &amp;&amp; packageForm.$submitted}" cellspacing="1" cellpadding="1"><colgroup><col class="extra-large"><col class="large"><col class="small"><col class="large"><!----><!----></colgroup><thead><tr><th class="text-left">Item Description</th><th class="text-right">Parcel Colour</th><th class="text-right">Cost</th><th class="text-right">Date</th><!----><!----></tr></thead><tbody><!----><tr ng-repeat="packItem in pack.items | orderBy:"id"" ng-class="{"last-row": $last &amp;&amp; !packCtrl.userEdit, "to-be-deleted": packItem.toBeDeleted}" class="last-row"><td class="text-left extra-large"><span class="item-label">Item</span> <span class="item-value" ng-bind="::packItem.description"> '. $row['packagetype'].'</span></td><td class="text-right large"><span class="item-label">Parcel Colour</span> <span class="item-value" ng-bind="::packItem.price | currency"> '. $row['color'].'</span></td><td class="text-right small"><span class=" "></span> <span class="item-value" ng-bind=" ">'. $row['cost'].'</span></td><td class="text-right large"><span class="item-label">       </span> <span class="item-value" ng-bind="::packItem.price * packItem.quantity | currency"> '. $row['dispdate'].'         </span></td><!----><!----></tr><!----><!---->
			
				
			</tbody><tfoot><tr class="error-row" ng-class="{"with-error": packageForm["package-"+ pack.id].$invalid &amp;&amp; (packageForm.$submitted &amp;&amp; packageForm.$error.required || packageForm.$submitted &amp;&amp; packageForm.$error.pattern)}"><td ng-attr-colspan="{{(packCtrl.userEdit &amp;&amp; packCtrl.canEdit) || pack.showItemsStatus ? 5 : 4}}" colspan="4"><!----><!----><!----></td></tr><!----></tfoot>
			
			</table>
			
			<td><span style = "font-weight:bold; color:blue;">Comment: </span></td>
		<br>
 <td><span style = "font-weight:bold; color:red;">'. $row['msg'].' </span></td>
 
  
</tr>
	
	</div>';

		}
			else
			{
				echo "<span style = 'font-weight:bold; color:red;'>Invalid Tracking Code or Non Receipt of Payment/Confirmation !</span> : ";
			}
			
		}
		
		 
	}
    else
	{
           echo "<span style = 'font-weight:bold; color:red;'>Invalid Tracking No</span> : ".$trackingno;
	}	
	         
//	}
//	else
//	{
//	  echo "<span style = 'font-weight:bold; color:red;'>Invalid Tracking Code or Non Receipt of Payment/Confirmation !</span> : ";
//	}	
	
	
}






?>

<style>
table,thead, th, td {
  border: 1px solid black;
  border-collapse: collapse;
}
</style>
		
			<table id="datatable-buttons" class="table table-striped table-bordered dt-responsive" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead><tr> <th>Previous Status</th><th>Tracking No</th><th>Previous Location</th><th>Date / Time </th><th></th></tr></thead>




<?php	
include "dbconnection.php";

if(isset($_POST['trackbutton']))
{

$trackingno = $_POST['trackingno'];
$d = date("Y-m-d");


//$trackingno = 'HAB1145Q';

	
	$query = "select * from move where trackingno = '$trackingno'"; 
	$result = mysqli_query($dbcon,$query) ;
	
 
	

		
				
		//echo"<td> SENDER:". $row['sender'] "</td><td> RECEIVER:".$row['receiver']."<br>TEL:".$row['recphone']."<br>ADDRESS:".$row['address']." </td>";
		while($row = mysqli_fetch_array($result))
	
		{
		
 
				 
				 echo "<tr>";
			 
				  echo "<td>".$row['status'].'<a>'."</td>";
				 
				  echo "<td>".$row['trackingno']."</td>";
				  echo "<td>" .$row['clocation']."</td>";
				  echo "<td>".$row['da']."</td>";
			
				  
				  
			 }
	}
		
		?>
		
	
	












 </table>
			
	
			
			</div>
			</div>
			</div><!----></div></div></div>
			
			</div>
			
		
			</div>
			
			
			
			
			</div>
			
			
			</form>
  
  
  
  






<!---->



</div><!----></div><!----></section>
                        <!----></div></div>
   

<script src="js/app.js"></script>
  
        

<div>
  <link href="css/css.css" rel="stylesheet" type="text/css">
     
                                    <style>
        a{
            color:gray;
        }
        
        #ff select{
            
            background:black;
        }
    </style>
                                    
                                    <div class="subscribe-form">
                                        
                                        <div class="row">
                                            <div id="ff" class="col-md-8">
                                               <!-- GTranslate: https://gtranslate.io/ -->
<a href="#" onclick="doGTranslate('en|af');return false;" title="Afrikaans" class="gflag nturl" style="background-position:-300px -500px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Afrikaans" /></a><a href="#" onclick="doGTranslate('en|sq');return false;" title="Albanian" class="gflag nturl" style="background-position:-300px -400px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Albanian" /></a><a href="#" onclick="doGTranslate('en|ar');return false;" title="Arabic" class="gflag nturl" style="background-position:-100px -0px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Arabic" /></a><a href="#" onclick="doGTranslate('en|hy');return false;" title="Armenian" class="gflag nturl" style="background-position:-400px -600px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Armenian" /></a><a href="#" onclick="doGTranslate('en|en');return false;" title="English" class="gflag nturl" style="background-position:-0px -0px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="English" /></a><a href="#" onclick="doGTranslate('en|fr');return false;" title="French" class="gflag nturl" style="background-position:-200px -100px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="French" /></a><a href="#" onclick="doGTranslate('en|de');return false;" title="German" class="gflag nturl" style="background-position:-300px -100px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="German" /></a><a href="#" onclick="doGTranslate('en|it');return false;" title="Italian" class="gflag nturl" style="background-position:-600px -100px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Italian" /></a><a href="#" onclick="doGTranslate('en|pt');return false;" title="Portuguese" class="gflag nturl" style="background-position:-300px -200px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Portuguese" /></a><a href="#" onclick="doGTranslate('en|ru');return false;" title="Russian" class="gflag nturl" style="background-position:-500px -200px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Russian" /></a><a href="#" onclick="doGTranslate('en|es');return false;" title="Spanish" class="gflag nturl" style="background-position:-600px -200px;"><img src="//gtranslate.net/flags/blank.png" height="16" width="16" alt="Spanish" /></a>

<style type="text/css">
<!--
a.gflag {vertical-align:middle;font-size:16px;padding:1px 0;background-repeat:no-repeat;background-image:url(//gtranslate.net/flags/16.png);}
a.gflag img {border:0;}
a.gflag:hover {background-image:url(//gtranslate.net/flags/16a.png);}
#goog-gt-tt {display:none !important;}
.goog-te-banner-frame {display:none !important;}
.goog-te-menu-value:hover {text-decoration:none !important;}
body {top:0 !important;}
#google_translate_element2 {display:none!important;}
-->
</style>

<br /><select onchange="doGTranslate(this);"><option value="">Select Language</option><option value="en|af">Afrikaans</option><option value="en|sq">Albanian</option><option value="en|ar">Arabic</option><option value="en|hy">Armenian</option><option value="en|az">Azerbaijani</option><option value="en|eu">Basque</option><option value="en|be">Belarusian</option><option value="en|bg">Bulgarian</option><option value="en|ca">Catalan</option><option value="en|zh-CN">Chinese (Simplified)</option><option value="en|zh-TW">Chinese (Traditional)</option><option value="en|hr">Croatian</option><option value="en|cs">Czech</option><option value="en|da">Danish</option><option value="en|nl">Dutch</option><option value="en|en">English</option><option value="en|et">Estonian</option><option value="en|tl">Filipino</option><option value="en|fi">Finnish</option><option value="en|fr">French</option><option value="en|gl">Galician</option><option value="en|ka">Georgian</option><option value="en|de">German</option><option value="en|el">Greek</option><option value="en|ht">Haitian Creole</option><option value="en|iw">Hebrew</option><option value="en|hi">Hindi</option><option value="en|hu">Hungarian</option><option value="en|is">Icelandic</option><option value="en|id">Indonesian</option><option value="en|ga">Irish</option><option value="en|it">Italian</option><option value="en|ja">Japanese</option><option value="en|ko">Korean</option><option value="en|lv">Latvian</option><option value="en|lt">Lithuanian</option><option value="en|mk">Macedonian</option><option value="en|ms">Malay</option><option value="en|mt">Maltese</option><option value="en|no">Norwegian</option><option value="en|fa">Persian</option><option value="en|pl">Polish</option><option value="en|pt">Portuguese</option><option value="en|ro">Romanian</option><option value="en|ru">Russian</option><option value="en|sr">Serbian</option><option value="en|sk">Slovak</option><option value="en|sl">Slovenian</option><option value="en|es">Spanish</option><option value="en|sw">Swahili</option><option value="en|sv">Swedish</option><option value="en|th">Thai</option><option value="en|tr">Turkish</option><option value="en|uk">Ukrainian</option><option value="en|ur">Urdu</option><option value="en|vi">Vietnamese</option><option value="en|cy">Welsh</option><option value="en|yi">Yiddish</option></select><div id="google_translate_element2"></div>
<script type="text/javascript">
function googleTranslateElementInit2() {new google.translate.TranslateElement({pageLanguage: 'en',autoDisplay: false}, 'google_translate_element2');}
</script><script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit2"></script>


<script type="text/javascript">
/* <![CDATA[ */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6 7(a,b){n{4(2.9){3 c=2.9("o");c.p(b,f,f);a.q(c)}g{3 c=2.r();a.s(\'t\'+b,c)}}u(e){}}6 h(a){4(a.8)a=a.8;4(a==\'\')v;3 b=a.w(\'|\')[1];3 c;3 d=2.x(\'y\');z(3 i=0;i<d.5;i++)4(d[i].A==\'B-C-D\')c=d[i];4(2.j(\'k\')==E||2.j(\'k\').l.5==0||c.5==0||c.l.5==0){F(6(){h(a)},G)}g{c.8=b;7(c,\'m\');7(c,\'m\')}}',43,43,'||document|var|if|length|function|GTranslateFireEvent|value|createEvent||||||true|else|doGTranslate||getElementById|google_translate_element2|innerHTML|change|try|HTMLEvents|initEvent|dispatchEvent|createEventObject|fireEvent|on|catch|return|split|getElementsByTagName|select|for|className|goog|te|combo|null|setTimeout|500'.split('|'),0,{}))
/* ]]> */
</script>


                                            </div><!-- /.col-md-8 -->

                                             
                                        </div><!-- /.row -->
                                    </div><!-- /.subscribe-form -->
        

</div></body></html>



					

<script type="text/javascript" src="js/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="js/cycle2.js"></script>
<script type="text/javascript" src="js/cycle2.tile.min.js"></script>
<script type="text/javascript" src="js/cycle2.shuffle.min.js"></script>
<script type="text/javascript" src="js/cycle2.scrollVert.min.js"></script>


<script type="text/javascript" src="js/cycle2.caption2.min.js"></script>
<script type="text/javascript" src="js/cycle2.carousel.min.js"></script>
<script type="text/javascript" src="js/cycle2.center.min.js"></script>
<script type="text/javascript" src="js/cycle2.flip.min.js"></script>

<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/jquery.bgswitcher.js"></script>
<script type="text/javascript" src="js/caller.js"></script>


</html>




<?php
include "dbconnection.php";
 
  
			
		 $sql= "select * from tracking where trackingno = '$trackingno'"; 

			 
			 //executing
			 $record = mysqli_query($dbcon,$sql);
			 while($row=mysqli_fetch_array($record))
			 {
			 
      $d = $row['move'];
	  
				  
			 }
		
		?> 
								
							

<script type="text/javascript">

    $(document).ready(function() {

    	function indicator(){

    		$("#pointer_img").css({'left' : ''});
    		$("#pointer_img").css({'right' : ''});
    		$("#movingline").css({'width': '0%'});
	    	var moving_guage = <?php echo $d ?>;
			var moving_guage2 = <?php echo $d ?>;


	    	// var moving_guage = 90;
	    	

			
			

			if(moving_guage > 100){
				moving_guage = 100;
			}

			if(moving_guage < 0){
				moving_guage = 0;
			}

			if(moving_guage2 > 98){
				moving_guage2 = 98;
			}

			if(moving_guage2 < 0){
				moving_guage2 = 0;
			}

			if(moving_guage2 > 50){
				moving_guage2 = 100 - moving_guage2 - 5;
				$("#pointer_img").css({'left' : ''});
				$("#pointer_img").animate({'right' : moving_guage2+'%'}, 5000);
			}else{
				$("#pointer_img").css({'right' : ''});
				$("#pointer_img").animate({'left' : moving_guage2+'%'},5000);
			}

			$("#movingline").animate({'width': moving_guage+'%'}, 5000);






			var perc_num = 0;
			var interval = 5000/moving_guage;

			var counterLoop = window.setInterval(function(){
				perc_num += 1;

				if(perc_num >= moving_guage){
					perc_num = 0;
					// $("#perc_count").text(perc_num + "%");
					clearInterval(counterLoop);
					window.setTimeout(function(){
			    		// countPerc();
					}, 2000)
				}else if(perc_num < 10){
					$("#perc_count").text("0" + perc_num + "%");
				}else{
					$("#perc_count").text(perc_num + 1 + "%");
				}

			}, interval)
    	}

    	indicator();

    	window.setInterval(function(){
    		indicator();
		}, 7000)



	});

</script>