<?php 
$active = 'Buy Fuel';
$pageName = 'Buy Fuel';

require_once('../config/config.php');
require_once(CLASS_DIR.'dbClass.php');
require_once(INCLUDES_DIR.'header_hindi.php');

include('hitCounter.php');

$obj4 = new DBClass();
$obj1 = new DBClass();
?>


<div style="margin-top:3px;padding:2px 0; margin-bottom:-13px;background-color:#000000;color:#FFFFFF;border-radius:6px;border:solid;border-color:#000000;">
<marquee onMouseOver="this.scrollAmount=0" onMouseOut="this.scrollAmount=2" scrollamount="2" loop="true" width="100%">Translation is done by software, for correctness please refer english version ! &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;हमारी टीम द्वारा कुछ विश्वसनीय सॉफ्टवेयर का उपयोग करके यह अनुवाद किया गया है, कृपया सही और सटीक अनुवाद के लिए अंग्रेजी संस्करण का का अनुसरण करें!</marquee>
</div>


<div class="workarea">
		<div class="workareatop">
			<img src="../images/workareatopcorner_03.PNG" alt="" />
		</div>            
		<div class="workareamid">
			<div id="floatleft" style="width:100%; float:left;">
				<div class="welcomediv">
				
                        <h2>ईंधन खरीदने</h2>


<div class="err_msg"><?php ShowError($error); ShowInfo($info);?></div>

<table  class="main" width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
				<td width="30%" valign="top" class="bdr1">
						<table width="100%"  border="0" cellspacing="0" cellpadding="0">
								<tr  class="bg_td1">
										<td class="list_link" width="49%" align="center" valign="top" style="margin:5px;padding:5px;">
												<h2 style="background:none; text-align:center">स्थान के प्रति के रूप में ईंधन</h2>
													भारतीय कोयले की खोज खानों या वांछित बंदरगाह पर आयातित कोयले की उपलब्धता के नाम के आधार पर.<br /><br />
													<input type="image" name="button" value="ENTER" src="../images/enter.gif" height="20" width="80" onclick="window.location.href='imported-coal-mine.php'" />
										</td>
								</tr>
						</table>
				</td>
				<td width="5" height="100" valign="top">&nbsp;</td>
				<td width="30%" height="100" valign="top" class="bdr1">
						<table width="100%"  border="0" cellspacing="0" cellpadding="0">
								<tr  class="bg_td1"  >
										<td class="list_link" width="49%" align="center" valign="top" style="margin:5px;padding:5px;">
												<h2 style="background:none; text-align:center">विनिर्देशों के अनुसार ईंधन</h2>
													खोज विनिर्देशन के आधार पर कोयले के रूप में विक्रेता द्वारा गारंटी<br /><br /><br />
													<input type="image" name="button" value="ENTER" src="../images/enter.gif" height="20" width="80" onclick="window.location.href='imported-coal-spec.php'" />
										</td>
								</tr>
						</table>
				</td>
				<td width="5" height="100" valign="top">&nbsp;</td>
				<td width="30%" height="100" valign="top" class="bdr1">
						<table width="100%"  border="0" cellspacing="0" cellpadding="0">
								<tr  class="bg_td1"  >
										<td class="list_link" width="49%" align="center" valign="top" style="margin:5px;padding:5px;">
													<h2 style="background:none; text-align:center">हमारे विशेषज्ञों के अनुसार ईंधन</h2>
														 यदि आप हमारे खरीद करने के लिए विशेषज्ञ की मदद की जरूरत है.बस के लिए इसका इस्तेमाल करने के लिए स्वतंत्र महसूस हो रहा है.<br /><br /><br />
														<input type="image" name="button" value="ENTER" src="../images/enter.gif" height="20" width="80" onclick="window.location.href='expert.php'" />
										</td>
								</tr>
						</table>
				</td>
          </tr>
		<p>&nbsp;</p>
 </table>
 <p>&nbsp;</p>
<!--  Hot Offers-->
<h2><img src="../images/new_animated.gif" alt="hot offer" width="60" height="30" style="border:none;"/>हॉट ऑफर</h2>
<div style="width: 910px;overflow: hidden;">
	<marquee scrollamount="3" onMouseOver="this.scrollAmount=0" onMouseOut="this.scrollAmount=2"  behavior="alternate">
		<table  class="main" width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td class="bdr1">
					<table class="sub" width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<?php
							$sql1 = "SELECT * FROM ".TBL_LISTING." WHERE status = '0' AND popular = '1' order by id DESC";
							$rs1 = $obj1->executeQry($sql1,$link);
							while($row1 = $obj1->fetchrow()) { 
							
							$sql4 = "SELECT * FROM ".TBL_DIRECTORY." WHERE memberID = ".$row1['memberID'];
							$rs4 = $obj4->executeQry($sql4,$link);
							$row4 = $obj4->fetchrow();
							?>
							<td width="250" valign="top" style="border-right-style: solid;border-right-color: #ccc;border-right-width: 1px;">
								<table class="coal" width="230" border="0" cellspacing="0" cellpadding="0">
									   <tr>
										  <td colspan="2" class="form_head" style="padding-left:5px"><?php echo $row4['organisation_name'];?></td>
									   </tr>
									   <tr>
										<td width="40%" class="contain"><b>कमोडिटी</b></td>
										<td width="60%" class="contain"><?php echo $row1['commodity'] ?></td>
									   </tr>
									  <tr>
										<td class="contain"><?php echo $row1['origin'] ?></td>
										<td class="contain"><b>मूल</b></td>
									 </tr>
									 <tr>
										<td class="contain"><b>स्थान</b></td>
										<td class="contain"><?php if($row1['commodity'] == 'Coal') { echo ($row1['origin']=='Indian')?$row1['area'].' ('.$row1['mines_name'].')':$row1['port']; } else { echo ($row1['origin']=='Indian')?$row1['noncoal_state']:$row1['noncoal_state'].' ('.$row1['noncoal_port'].')'; }?></td>
									 </tr>
									  <tr>
										<td class="contain"><b>उप स्थान</b></td>
										<td class="contain"><div style="text-align: left;"><span style="font-size: x-small;"><span style="font-family: Tahoma;"><?php if($row1['commodity'] == 'Coal') {  if($row1['origin']=='Indian') { echo $row1['mines_name']; } } else { echo ($row1['origin']=='Indian')?$row1['noncoal_district']:$row1['noncoal_district']; }?></td>
									 </tr>
									<tr>
										<td class="contain"><b>GCV(A.D.Basis)</b></td>
										<td class="contain"><?php echo $row1['actual_gcv'] ?></td>
									 </tr>
									 <tr>
										<td colspan="2" align="right" style="padding-right:5px;"><a href="viewlisting.php?id=<?php echo $row1['id'] ?>">More Details</a></td>
									 </tr>
								</table>
							</td>
							<?php 	}	?>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</marquee>
</div>
<br />
<!-- New Arrivals-->

<h2><img src="../images/New.gif" alt="hot offer" width="60" height="30" style="border:none;"/>नई आगमन</h2>
<table  class="main" width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
				<td class="bdr1">
						<table class="sub" width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
										<?php
										$sql1 = "SELECT * FROM ".TBL_LISTING." WHERE status = '0' order by id DESC limit 0,4";
										$rs1 = $obj1->executeQry($sql1,$link);
										while($row1 = $obj1->fetchrow()) { 
										
										$sql4 = "SELECT * FROM ".TBL_DIRECTORY." WHERE memberID = ".$row1['memberID'];
										$rs4 = $obj4->executeQry($sql4,$link);
										$row4 = $obj4->fetchrow();
										?>
										<td width="250" valign="top" >
												<table class="coal" width="100%" border="0" cellspacing="0" cellpadding="0">
													   <tr>
														  <td colspan="2" class="form_head" style="padding-left:5px"><?php echo $row4['organisation_name'];?></td>
													   </tr>
													   <tr style="padding:2px;">
														<td width="40%" class="contain"><b>कमोडिटी</b></td>
														<td width="60%" class="contain"><?php echo $row1['commodity'] ?></td>
													   </tr>
													  <tr style="padding:2px;">
														<td width="40%" class="contain"><b>मूल</b></td>
														<td width="60%" class="contain"><?php echo $row1['origin'] ?></td>
													 </tr>
													 <tr style="padding:2px;">
														<td width="40%" class="contain"><b>स्थान</b></td>
														<td width="60%" class="contain"><?php if($row1['commodity'] == 'Coal') { echo ($row1['origin']=='Indian')?$row1['area'].' ('.$row1['mines_name'].')':$row1['port']; } else { echo ($row1['origin']=='Indian')?$row1['noncoal_state']:$row1['noncoal_state'].' ('.$row1['noncoal_port'].')'; }?></td>
													 </tr>
													  <tr style="padding:2px;">
														<td width="40%" class="contain"><b>उप स्थान</b></td>
														<td width="60%" class="contain"><div style="text-align: left;"><span style="font-size: x-small;"><span style="font-family: Tahoma;"><?php if($row1['commodity'] == 'Coal') {  if($row1['origin']=='Indian') { echo $row1['mines_name']; } } else { echo ($row1['origin']=='Indian')?$row1['noncoal_district']:$row1['noncoal_district']; }?></td>
													 </tr>
													 <tr style="padding:2px;">
														<td width="40%" class="contain"><b>GCV(A.D.Basis)</b></td>
														<td width="60%" class="contain"><?php echo $row1['actual_gcv'] ?></td>
													 </tr>
													 <tr>
														<td colspan="2" align="right" style="padding-right:5px;"><a href="viewlisting.php?id=<?php echo $row1['id'] ?>">More Details</a></td>
													 </tr>
												</table>
										</td>
										<?php 	}	?>
								</tr>
						</table>
				</td>
		</tr>
</table>
<br />

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

                    </div>

                </div>

                

                <?php //require_once(INCLUDES_DIR.'left_bar.php');?>

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

            </div>

            

            <div class="workareabottom">

                <img src="../images/workareabottomcorner_03.PNG" alt="" />

            </div>

        </div>

<?php require_once(INCLUDES_DIR.'footer_hindi.php');?>