<?php

if(isset($_GET['msg']) && $_GET['msg'] == 'logerror'){
	$error[] = 'You have to login to view this page.';
}
if(isset($_GET['msg']) && $_GET['msg'] == 'logout'){
	$info[] = 'You are successfully logged out.';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" type="image/png" href="images/address_bar_logo.gif" />
<link href="css/style_coal.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="menu/style.css" type="text/css">

<title>Coalbazaar.com – Coal, Indian coal, Imported Coal, Steam Coal, PET Coal, MET Coal, Lignite, Husk, Fuel, Slack coal, ROM coal, Lassoers, Lifters, Transporter, shipping, shipping agents, stevedores, booking agents, Traders, Coal News, Coal Jobs, sell, buy, bazaar, bazaar, market, coal market</title>
<script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="js/slideshow.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script>
$( document ).ready(function() {
    
	
	if(window.location.hostname!='coalbazaar.com'){
		window.location.href= "https://coalbazaar.com";
	}
});
</script>
</head>
<!-- End css3menu.com BODY section -->

<body>
	<div class="maindiv">
    	<div align="center">
    	<div class="maindiv2">
                <div class="header1">
                	
                	<div class="topcalldiv">
                    	<h5>Call Me: +91-9993299974<a href="http://webmail.coalbazaar.com/mewebmail/Mondo/lang/sys/Login.aspx" target="_blank">&nbsp;</a></h5>
                    </div>
                    
                	<div class="topnavi">
                    	<div class="topnavileft">
                        	<img src="images/toplinklbg_03.PNG" alt="" />
                        </div>
                        
                        <div class="topnavimid">
                        	<ul>
                            	<li><a href="index.php">Home</a>|</li>
								<li><a href="http://shrinetra.com/shrinetrainfotech/aboutus.php" target="_blank">About Us</a>|</li>
                            	<li><a href="coaljobs.php"><font color="blue"><b><img src="images/new1.gif" height="15"/>COAL JOBS</b></font></a>|</li>
								<li><a href="news.php"><font color="red"><b><img src="images/New.gif" height="15"/>COAL NEWS</b></font></a>|</li>
                                <li><a href="coal_knowladge.php">Coal Conversion</a>|</li>
								<li><a href="enquiry.php">Enquiry</a>|</li>
								<li><a href="contact.php">Contact Us</a></li>
                                <div style="clear:both;"></div>
                            </ul>
                        </div>
                        
                        <div class="topnaviright">
                        	<img src="images/toplinklbgright.PNG" alt="" />
                        </div>

                        <div style="clear:both;"></div>
                    </div>

                    <div class="header1bottomdiv">
                    	<div class="guestdiv">
						<?php if((isset($_SESSION['memberID']) && $_SESSION['memberID'] != '') ||(isset($_COOKIE['memberID']) && $_COOKIE['memberID'] != '')) {?>
                        	<table width="400" border="0" cellspacing="0" cellpadding="0" class="selecttable">
							<?php } else { ?>
							<table width="260" border="0" cellspacing="0" cellpadding="0" class="selecttable">
							<?php } ?>
                              <tr>
                                <td width="260" align="right">
                                <?php if((isset($_SESSION['memberID']) && $_SESSION['memberID'] != '') ||(isset($_COOKIE['memberID']) && $_COOKIE['memberID'] != '')) {
										$sqt = mysql_fetch_array(mysql_query("select * from ".TBL_USER." where (id = '".$_COOKIE['memberID']."' OR id = '".$_SESSION['memberID']."')"));
									   $daylen = 60*60*24;
									   $expdate = $sqt['exp_date'];
									   $currentdate = date("Y-m-d");
									
									   $diffd =  (strtotime($expdate)-strtotime($currentdate))/$daylen;
									   $diffday = ($diffd > 1)? "Days left":"Day left";
									   $diffdays = $diffd." ".$diffday;
								?> Welcome&nbsp;  :  <?php echo "<b>".$sqt['fname'].' '.$sqt['lname']."</b> ( $diffdays )";
								}
								else {
								?>
                                <?php } ?><?php if((isset($_SESSION['memberID']) && $_SESSION['memberID'] != '') ||(isset($_COOKIE['memberID']) && $_COOKIE['memberID'] != '')) { ?>&nbsp; | <a href="logout.php">Logout</a><?php } else { ?><a href="login.php">Login</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="registration.php">Register</a></td>
								<?php } ?></tr>
                            </table>

                        </div>
                        
                        
                        
                       <div class="searchdiv" style="float:right;width:auto;margin-right:5px;"><div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, gaTrack: true, gaId: 'UA-46946609-2'}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
                        	<!--<a href="hindi"><img src="images/hindi.PNG" height="40" width="100"/></a>-->
                            <div style="clear:both;"></div>
                        </div>
                        
                        <div style="clear:both;"></div>
                    </div>
                </div>

                <div class="header2">
                	<div class="logo">
                    	<img src="images/coal_logo.png" height="81" width="210" alt=""/>
                    </div>
                    
                    <div class="topadd">
                 <a href="index.php"><img src="images/topadd3.PNG" alt="coalbazaar.com"/></a>
                    </div>
                    
                    <div style="clear:both;"></div>
                </div>
            
<!-- Start css3menu.com BODY section id=2 class="pressed" -->
<ul id="css3menu2" class="topmenu">
	<li class="topfirst"><a <?php if($active == 'Buy Fuel') { ?> class="pressed" <?php } ?> href="buycoal.php" title="Buy Fuel" style="height:12px;line-height:12px;">Buy Fuel</a></li>
	<li class="topmenu"><a <?php if($active == 'New Offers') { ?> class="pressed" <?php } ?> href="newarrival.php" title="New Offers" style="height:12px;line-height:12px;">New Offers</a></li>
	<li class="topmenu"><a <?php if($active == 'Hot Offers') { ?> class="pressed" <?php } ?> href="hot.php" title="Hot Offers" style="height:12px;line-height:12px;">Hot Offers</a></li>
	<li class="topmenu"><a <?php if($active == 'Sell Fuel') { ?> class="pressed" <?php } ?>  href="<?php if(!isset($_SESSION['memberID']) && $_COOKIE['memberID'] == '') { ?>members.php<?php } else { ?>sellcoal_step2.php<?php } ?>" title="Sell Fuel" style="height:12px;line-height:12px;">Sell Fuel</a></li>
	<li class="topmenu"><a <?php if($active == 'Directory') { ?> class="pressed" <?php } ?>  href="directory.php" title="Directory" style="height:12px;line-height:12px;">Directory</a></li>
	<li class="topmenu"><a <?php if($active == 'Related Services') { ?> class="pressed" <?php } ?>  href="javascript:void()" title="Related Services" style="height:12px;line-height:12px;"><span>Related Services</span></a>
	<ul>
		<li><a href="liasoning.php" title="Liasoning &amp; Lifting">Liasoning &amp; Lifting</a></li>
		<li><a href="transporter.php" title="Transportation &amp; logistics">Transportation &amp; logistics</a></li>
		<li><a href="stevedors.php" title="Stevedores &amp; Shiping agents">Stevedores &amp; Shiping agents</a></li>
	</ul></li>
	<li class="topmenu"><a <?php if($_GET['active'] == 'Coal Research') { ?> class="pressed" <?php } ?>  href="#" title="Coal Research" style="height:12px;line-height:12px;"><span>Coal Research</span></a>
	<ul>
		<li><a href="page.php?page=About Fuel Type&active=Coal Research" title="About Fuel Type">About Fuel Type</a></li>
		<li><a href="page.php?page=Coal as a Fuel&active=Coal Research" title="Coal as a Fuel">Coal as a Fuel</a></li>
		<li><a href="page.php?page=Coal Grades&active=Coal Research" title="Coal Grades">Coal Grades</a></li>
		<li><a href="page.php?page=Coal mining in India&active=Coal Research" title="Coal mining in India">Coal mining in India</a></li>
		<li><a href="page.php?page=Coal India and Its Subsidiary&active=Coal Research" title="Coal India and Its Subsidiary">Coal India and Its Subsidiary</a></li>
	</ul></li>
	<li class="topmenu"><a <?php if($active == 'My Shop') { ?> class="pressed" <?php } ?> href="javascript:void()" title="My Shop" style="height:12px;line-height:12px;"><span>My Shop</span></a>
	<ul>
		<?php if((isset($_SESSION['memberID']) && $_SESSION['memberID'] != '') ||(isset($_COOKIE['memberID']) && $_COOKIE['memberID'] != '')) {  ?>
		<li><a href="mylisting.php" title="Listing Details">Listing Details</a></li>
		<li><a href="myenquiries.php" title="Enquiry Details">Enquiry Details</a></li>
		<li><a href="edit_directory.php" title="Edit Directory">Edit Directory</a></li>
		<li><a href="change_password.php" title="Change Password">Change Password</a></li>
		<li><a href="web.php" title="Change Theme">Website theme</a></li>
		<li><a href="logout.php" title="Logout">Logout</a></li>
		<?php } else { ?>
		<li><a href="login.php" title="Login"><div align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Login&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></a></li>
		<?php } ?>
	</ul></li>
	<li class="toplast"><a <?php if($_GET['active'] == 'How to start a Coal Business') { ?> class="pressed" <?php } ?> href="javascript:void()" title="How to start a Coal Business" style="height:12px;line-height:12px;"><span>How to start a Coal Business</span></a>
	<ul>
		<li><a href="page.php?page=Minimum Requirement&active=How to start a Coal Business" title="Minimum Requirement">Minimum Requirement</a></li>
		<li><a href="page.php?page=Spot e-Auction Scheme 2007&active=How to start a Coal Business" title="Spot e-Auction Scheme 2007">Spot e-Auction Scheme 2007</a></li>
		<li><a href="page.php?page=Help to start a coal business&active=How to start a Coal Business" title="Help to start a coal business">Help to start a coal business</a></li>
	</ul></li>
</ul>
