<?php
$pageName = 'Home Page';

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

include('hitCounter.php');

$obj = new DBClass();

$sql = "SELECT * FROM ".TBL_PAGES." WHERE page_name = 'home' AND status = 0";
$rs = $obj->executeQry($sql,$link);
$row = $obj->fetchrow();
?>

               
<div id="slideshow" align="center" style="margin-top:15px;">
<img src="images/wbannerbg_11.PNG" alt="Welcome To Coalbazaar.Com"  width="946"  class="active"  height="220"/>
<img src="images/Benifit_banner.PNG" alt="Benifits Of Coalbazaar.com"width="946" height="220"/>
<img src="images/advantage_bannar.PNG" alt="Advantages of Coalbazaar.com"  width="946" height="220"/>
<img src="images/roi_bannar.PNG" alt="Return of Investment of Coalbazaar"  width="946" height="220"/>
</div>

               
            
<!--workarea start------------------------->
<div class="workarea">
	<div class="workareatop">
		<img src="images/workareatopcorner_03.PNG" alt="" />
	</div>
	<!--workareamid start--------------------->
	<div class="workareamid">
		<div id="floatleft" style="width:590px; float:left;">
			<div class="welcomediv">

                                <h2>Coalbazaar.com</h2>
                                <img src="images/coalbazaar.PNG" alt="welcom to coalbazaar.com" class="coalimg" width="145" height="100" style="width:145px;height:100px;"/>
                                <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo substr(strip_tags(html_entity_decode(stripslashes($row['page_content']))),0,750); ?><br /><a href="page.php?page=home" tyle="text-align:right; float:right"><img src="images/readmore1.PNG" alt="" class="morebutton" style="border:none;" align="right"></a></p>

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

                            </div>

                            <div class="servicesdiv">
									  <div class="cprasentation">
											<h2><b>Company Brochure</b></h2>
											
											<img src="images/corporate_presentation.PNG" alt="Corporate Brochure" class="servicesimg" width="145" height="100"/>
											<p>
												<?php 
												$sql = "SELECT * FROM ".TBL_PAGES." WHERE page_name = 'Corporate Presentation' AND status = 0";
												$rs = $obj->executeQry($sql,$link);
												$row = $obj->fetchrow();
												echo substr(strip_tags(html_entity_decode(stripslashes($row['page_content']))),0,270);
												?>
											</p>
											<a href="coalbazaar.pps" class="readmoretxt">
													<img src="images/Download.PNG" alt="Download button" class="morebutton" style="border:none;" height="40" width="120">
											</a>
									  </div>
	
									  <div class="smanagement">
									  		<h2><b>We-Procurement</b></h2>
											<img src="images/coalmandi_logo.png" alt="we-procurement" width="145" height="100" class="servicesimg"/>
											<p>
												<?php 
													$sql = "SELECT * FROM ".TBL_PAGES." WHERE page_name = 'we-procurement' AND status = 0";
													$rs = $obj->executeQry($sql,$link);
													$row = $obj->fetchrow();
													echo substr(strip_tags(html_entity_decode(stripslashes($row['page_content']))),0,250);
												?>
											</p>
											<a href="page.php?page=we-procurement" class="readmoretxt">
												<img src="images/readmore1.PNG" alt="Read more button" class="morebutton" style="border:none;">
											</a>
									  </div>	
									  
									  <div class="oservices">
										  <h2><b>Our Services</b></h2>
											<img src="images/SERVICE_ONLINE.PNG" alt="Coal bazaar services" width="145" height="100" class="servicesimg"/>
											<p>
												<?php 
													$sql = "SELECT * FROM ".TBL_PAGES." WHERE page_name = 'Our Services' AND status = 0";
													$rs = $obj->executeQry($sql,$link);
													$row = $obj->fetchrow();
													echo substr(strip_tags(html_entity_decode(stripslashes($row['page_content']))),0,240);
												?>
											</p>
											<a href="page.php?page=Our Services" class="readmoretxt">
												<img src="images/readmore1.PNG" alt="Read more button" class="morebutton" style="border:none;">
											</a>
									  </div>
                                	  <div style="clear:both;"></div>
                            </div>
							
							<br />
							
							<a href="http://coalmandi.com" title="Welcome to Coalbazaar" target="_blank">
									<img src="images/home_add.PNG" title="contact us: 0731-2012323" alt="Welcome to Coalmandi.com" style="border:solid;border-width:1px;border-color:#A0A0A4;">
							</a>

                        </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.php');?>