<?php 
$active = 'Buy Fuel';
$pageName = "As per location";

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

include('hitCounter.php');

$obj = new DBClass();
$obj4 = new DBClass();
$obj9 = new DBClass();
?>
<script type="text/javascript" src="citySelection.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="JqueryLoader.js" type="text/javascript"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.5/mootools-yui-compressed.js"></script>


<script type="text/javascript">
function change_origin1(val) {
	if(val=='Indian') {
		document.getElementById('area').style.display='';
		document.getElementById('area2').style.display='';
		document.getElementById('area3').style.display='';
		document.getElementById('areas').style.display='';
		document.getElementById('port').style.display='none';
		document.getElementById('ports').style.display='none';		
		document.getElementById('noncoalport').style.display='none';
		document.getElementById('noncoalport1').style.display='none';		
	}
	else {
		document.getElementById('area').style.display='none';
		document.getElementById('area2').style.display='none';
		document.getElementById('area3').style.display='none';		
		document.getElementById('areas').style.display='none';
		document.getElementById('port').style.display='';
		document.getElementById('ports').style.display='';		
		document.getElementById('noncoalport').style.display='';
		document.getElementById('noncoalport1').style.display='';	
	}
}

function changeCommudity(val){
   if(val=='Coal') {
		document.getElementById('coalselection').style.display='';
		document.getElementById('coalselection1').style.display='';
		document.getElementById('noncoalselection').style.display='none';
		document.getElementById('noncoalselection1').style.display='none';
		document.getElementById('noncoalselection2').style.display='none';
	}
	else {
		document.getElementById('coalselection').style.display='none';
		document.getElementById('coalselection1').style.display='none';
		document.getElementById('noncoalselection').style.display='';
		document.getElementById('noncoalselection1').style.display='';
		document.getElementById('noncoalselection2').style.display='';		
	}
}
</script>

<!--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>Fuel as per Location</h2>
<div id="preloader" style="margin-top:50px;"><img src="ajax-loader.gif"  style="border:none;"/></div>						

	<form action="imported-coal-mine.php" method="POST">
			<table border="0" cellspacing="0" cellpadding="0">
					<tr>
							<td colspan="2"><div class="err_msg">Select any or all..</div></td>
					</tr>
					<tr>
							<td>&nbsp;</td>
					</tr>
					<!-- Commudity -->
					<tr>
							<td class="formtxt" >Commodity</td>
							 <td>
							 		<select name="commodity" class="txt_box2" onChange="changeCommudity(this.value)">
											<option value="">--Select Commodity--</option>
											<?php 
											$obj1 = new DBClass();
											$sql2 = "SELECT DISTINCT(commodity) as commodity FROM ".TBL_LISTING." where `commodity`!='' order by commodity ASC";
											$rs2 = $obj1->executeQry($sql2,$link);
											while($row2 = $obj1->fetchrow()){ 
											?>
											<option value="<?php echo $row2['commodity'];?>" <?php if($_REQUEST['commodity'] == $row2['commodity']) echo 'selected'; ?>><?php echo $row2['commodity'];?></option>
											<?php } ?>
									</select>
							 </td>
					</tr>
					<tr>
							<td class="formtxt">Origin</td>
							<td>
									<select name="origin" id="origin" class="txt_box2" onChange="change_origin1(this.value)">
											<option value="">--Select Origin--</option>
											<?php 											
											$sql2 = "SELECT DISTINCT(origin) as origin FROM ".TBL_LISTING." where `origin`!='' order by origin ASC";											
											$rs2 = $obj1->executeQry($sql2,$link);											
											while($row2 = $obj1->fetchrow()){ 											
											?>          										
											<option value="<?php echo $row2['origin'];?>" <?php if($_REQUEST['origin'] == $row2['origin']) echo 'selected'; ?>><?php echo $row2['origin'];?></option>
											<?php } ?>											
									</select>
							</td>
					</tr>
					<tr id="coalselection" <?php if(($_REQUEST['commodity'] != 'Coal') || ($_REQUEST['origin']=='')){ ?> style="display:none"<?php } ?>>
							<td class="formtxt">
									<span id="areas" <?php if(($_REQUEST['origin']=='Imported') || ($_REQUEST['origin']=='')) { ?> style="display:none"<?php } ?>>Area/Mines</span>
									<span id="ports" <?php if(($_REQUEST['origin']!='Imported') || ($_REQUEST['origin']=='')) { ?> style="display:none"<?php } ?>>Port</span>
							</td>
							 <td>
								 <span id="area" <?php if(($_REQUEST['origin']=='Imported') || ($_REQUEST['origin']=='')){ ?> style="display:none"<?php } ?>>
								 		<select name="area" id="area_mines" class="txt_box2">
												<option value="">--Select Area/Mines--</option>
														<?php 	
														$sql2 = "SELECT DISTINCT(area) as area FROM ".TBL_LISTING." where `area`!='' order by area ASC";														
														$rs2 = $obj1->executeQry($sql2,$link);														
														while($row2 = $obj1->fetchrow()){ 											
														?>
														<option value="<?php echo $row2['area'];?>" <?php if($_REQUEST['area'] == $row2['area']) echo 'selected'; ?>><?php echo $row2['area'];?></option>
														<?php } ?>
										</select>
								 </span>
								 
								 <span id="port" <?php if(($_REQUEST['origin']!='Imported') || ($_REQUEST['origin']=='')){ ?> style="display:none"<?php } ?>>
								 		<select name="port" class="txt_box2">
													<option value="">--Select Ports--</option>
													<?php 
													$sql2 = "SELECT DISTINCT(port) as port FROM ".TBL_LISTING." where `port`!='' order by port ASC";													
													$rs2 = $obj1->executeQry($sql2,$link);													
													while($row2 = $obj1->fetchrow()){ 													
													?>
													<option value="<?php echo $row2['port'];?>" <?php if($_REQUEST['port'] == $row2['port']) echo 'selected'; ?>><?php echo $row2['port'];?></option>													
													<?php } ?>
										</select>
								 </span>
								</td>
					</tr>
					
					<tr id="coalselection1" <?php if(($_REQUEST['commodity'] != 'Coal') || ($_REQUEST['origin']=='')){ ?> style="display:none"<?php } ?>>
							<td><span id="area3" <?php if(($_REQUEST['origin']=='Imported') || ($_REQUEST['origin']=='')) { ?> style="display:none"<?php } ?>>Mines Name</span></td>
							<td>
									<span id="area2" <?php if(($_REQUEST['origin']=='Imported') || ($_REQUEST['origin']=='')) { ?> style="display:none"<?php } ?>>
											<select name="mines_name" id="mines_name" class="txt_box2">
													<option value="">--Select Mines Name--</option>
													<?php
														$sql2 = "SELECT DISTINCT(mines_name) as mines_name FROM ".TBL_LISTING." WHERE mines_name != '' ORDER BY mines_name ASC";
														$rs2 = $obj1->executeQry($sql2,$link);
														while($row2 = $obj1->fetchrow()){
													?>
													<option value="<?php echo $row2['mines_name'];?>" <?php if($_REQUEST['mines_name'] == $row2['mines_name']) echo 'selected'; ?>><?php echo $row2['mines_name'];?></option>
													<?php } ?>
											</select>
									</span>
							</td>
					</tr>
					
					<tr id="noncoalselection" <?php if(($_REQUEST['commodity'] == 'Coal') || ($_REQUEST['commodity'] == '')) { ?> style="display:none"<?php } ?>>
							<td>State</td>	
							<td>
									<select name="noncoal_state" class="txt_box2" id="noncoal_state">
											<option value="">--Select State--</option>
												<?php 
												$sql2 = "SELECT DISTINCT(noncoal_state) as noncoal_state FROM ".TBL_LISTING." where `noncoal_state`!='' order by noncoal_state ASC";												
												$rs2 = $obj1->executeQry($sql2,$link);												
												while($row2 = $obj1->fetchrow()){ 												
												?>												
												<option value="<?php echo $row2['noncoal_state'];?>" <?php if($_REQUEST['noncoal_state'] == $row2['noncoal_state']) echo 'selected'; ?>><?php echo $row2['noncoal_state'];?></option>
												
												<?php } ?>
									</select>
							</td>
					</tr>
					
					<tr id="noncoalselection1" <?php if(($_REQUEST['commodity'] == 'Coal') || ($_REQUEST['commodity'] == '')) { ?> style="display:none"<?php } ?>>
							<td>District</td>
							<td>
									<select name="noncoal_district" class="txt_box2" id="noncoaldistrict">
											<option value="">--Select District--</option>
											<?php
												$sql2 = "SELECT DISTINCT(noncoal_district) as noncoal_district FROM ".TBL_LISTING." where noncoal_district != '' ORDER BY noncoal_district ASC";
												$rs2 = $obj1->executeQry($sql2,$link);
												while($row2 = $obj1->fetchrow()){
											?>
											<option value="<?php echo $row2['noncoal_district'];?>" <?php if($_REQUEST['noncoal_district'] == $row2['noncoal_district']) echo 'selected'; ?>><?php echo $row2['noncoal_district'];?></option>
										<?php } ?>
									</select>
							</td>
					</tr>
					<tr id="noncoalselection2" <?php if(($_REQUEST['commodity'] == 'Coal') || ($_REQUEST['commodity'] == '')) { ?> style="display:none"<?php } ?>>
							<td><span id="noncoalport1" <?php if(($_REQUEST['origin'] == '') || ($_REQUEST['origin'] != 'Imported')) { ?> style="display:none"<?php } ?>>Port</span></td>
							<td>
									<span id="noncoalport" <?php if(($_REQUEST['origin'] == '') || ($_REQUEST['origin'] != 'Imported')) { ?> style="display:none"<?php } ?>>
											<select name="noncoal_port" class="txt_box2" id="noncoal_port">
													<option value="">--Select Port--</option>
													<?php
														$sql2 = "SELECT DISTINCT(noncoal_port) as noncoal_port FROM ".TBL_LISTING." where noncoal_port != '' ORDER BY noncoal_port ASC";
														$rs2 = $obj1->executeQry($sql2,$link);
														while($row2 = $obj1->fetchrow()){
													?>
													<option value="<?php echo $row2['noncoal_port'];?>" <?php if($_REQUEST['noncoal_port'] == $row2['noncoal_port']) echo 'selected'; ?>><?php echo $row2['noncoal_port'];?></option>
													<?php } ?>
											</select>
									</span>
							</td>
					</tr>
					<tr>
							<td height="5"></td>
					</tr>
					<tr>
							<td style="margin-left:5px;"><input type="submit" name="submit" value="Find" class="login_btn" style="width:60px;height: 25px;"/></td>
					</tr>										
			</table>
	</form>
	<br /><br />
	<?php 
		$con = "";
		$cond = "?submit=Search";
		
		if(isset($_REQUEST['submit'])) {
		
		if($_REQUEST['commodity']!='') {
			$con .= " AND commodity = '".$_REQUEST['commodity']."'";	
			$cond .= "&commodity=".$_REQUEST['commodity'];
		}
		
		if($_REQUEST['origin']!='') {
			$con .= " AND origin = '".$_REQUEST['origin']."'";
			$cond .= "&origin=".$_REQUEST['origin'];
		}
					
		if($_REQUEST['commodity'] =='Coal') {
			if($_REQUEST['origin'] =='Indian') {

				// COAL - INDIAN
				
				if($_REQUEST['area']!='') {
					$con .= " AND area = '".$_REQUEST['area']."' ";	
					$cond .= "&area=".$_REQUEST['area'];
				}
			
				if($_REQUEST['mines_name']!='') {
					$con .= " AND mines_name = '".$_REQUEST['mines_name']."'";
					$cond .= "&mines_name=".$_REQUEST['mines_name'];
				}
				
			}
			else {
			 // COAL IMPORTED
				
				if($_REQUEST['port']!='') {
					$con .= " AND port = '".$_REQUEST['port']."' ";
					$cond .= "&port=".$_REQUEST['port'];
				}
			}
		}
		else {
			if($_REQUEST['origin'] =='Indian') {
				// NON COAL INDIAN
				
				if($_REQUEST['noncoal_state']!='') {
					$con .= " AND noncoal_state = '".$_REQUEST['noncoal_state']."'";
					$cond .= "&noncoal_state=".$_REQUEST['noncoal_state'];
				}
				
				if($_REQUEST['noncoal_district']!='' && $_REQUEST['commodity']!='Coal'){
					$con .= " AND noncoal_district = '".$_REQUEST['noncoal_district']."'";	
					$cond .= "&noncoal_district=".$_REQUEST['noncoal_district'];
				
				}
			}
			else {
				// NON COAL IMPORTED
				if($_REQUEST['noncoal_state']!='') {
					$con .= " AND noncoal_state = '".$_REQUEST['noncoal_state']."'";
					$cond .= "&noncoal_state=".$_REQUEST['noncoal_state'];
				}
				
				if($_REQUEST['noncoal_district']!=''){
					$con .= " AND noncoal_district = '".$_REQUEST['noncoal_district']."'";	
					$cond .= "&noncoal_district=".$_REQUEST['noncoal_district'];
				
				}
				
				if($_REQUEST['noncoal_port']!='') {
					$con .= " AND noncoal_port = '".$_REQUEST['noncoal_port']."'";	
					$cond .= "&noncoal_port=".$_REQUEST['noncoal_port'];
				}
			}
		}
		}
		$adjacents = 5;

		$tbl_name=TBL_LISTING;
		
		$query = "SELECT COUNT(*) as num FROM $tbl_name WHERE status = '0' $con";
		$total_pages = mysql_fetch_array(mysql_query($query));
		$total_pages = $total_pages[num];
		
		$targetpage = "imported-coal-mine.php".$cond;
		
		$limit = 10;
		$page = $_GET['page'];
		if($page) 
			$start = ($page - 1) * $limit;
		else
			$start = 0;	
		
		$sql = "SELECT * FROM $tbl_name WHERE status = '0' $con LIMIT $start, $limit";
		$result = mysql_query($sql);
		
		if ($page == 0) $page = 1;					//if no page var is given, default to 1.
		$prev = $page - 1;							//previous page is page - 1
		$next = $page + 1;							//next page is page + 1
		$lastpage = ceil($total_pages/$limit);		//lastpage is = total pages / items per page, rounded up.
		$lpm1 = $lastpage - 1;						//last page minus 1
		
		/* 
			Now we apply our rules and draw the pagination object. 
			We're actually saving the code to a variable in case we want to draw it more than once.
		*/
		$pagination = "";
		if($lastpage > 1)
		{	
			$pagination .= "<div class=\"pagination\">";
			//previous button
			if ($page > 1) 
				$pagination.= "<a href=\"$targetpage&page=$prev\">previous</a>";
			else
				$pagination.= "<span class=\"disabled\">previous</span>";	
			
			//pages	
			if ($lastpage < 7 + ($adjacents * 2))	//not enough pages to bother breaking it up
			{	
				for ($counter = 1; $counter <= $lastpage; $counter++)
				{
					if ($counter == $page)
						$pagination.= "<span class=\"current\">$counter</span>";
					else
						$pagination.= "<a href=\"$targetpage&page=$counter\">$counter</a>";					
				}
			}
			elseif($lastpage > 5 + ($adjacents * 2))	//enough pages to hide some
			{
				//close to beginning; only hide later pages
				if($page < 1 + ($adjacents * 2))		
				{
					for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++)
					{
						if ($counter == $page)
							$pagination.= "<span class=\"current\">$counter</span>";
						else
							$pagination.= "<a href=\"$targetpage&page=$counter\">$counter</a>";					
					}
					$pagination.= "...";
					$pagination.= "<a href=\"$targetpage&page=$lpm1\">$lpm1</a>";
					$pagination.= "<a href=\"$targetpage&page=$lastpage\">$lastpage</a>";		
				}
				//in middle; hide some front and some back
				elseif($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2))
				{
					$pagination.= "<a href=\"$targetpage&page=1\">1</a>";
					$pagination.= "<a href=\"$targetpage&page=2\">2</a>";
					$pagination.= "...";
					for ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++)
					{
						if ($counter == $page)
							$pagination.= "<span class=\"current\">$counter</span>";
						else
							$pagination.= "<a href=\"$targetpage&page=$counter\">$counter</a>";					
					}
					$pagination.= "...";
					$pagination.= "<a href=\"$targetpage&page=$lpm1\">$lpm1</a>";
					$pagination.= "<a href=\"$targetpage&page=$lastpage\">$lastpage</a>";		
				}
				//close to end; only hide early pages
				else
				{
					$pagination.= "<a href=\"$targetpage&page=1\">1</a>";
					$pagination.= "<a href=\"$targetpage&page=2\">2</a>";
					$pagination.= "...";
					for ($counter = $lastpage - (2 + ($adjacents * 2)); $counter <= $lastpage; $counter++)
					{
						if ($counter == $page)
							$pagination.= "<span class=\"current\">$counter</span>";
						else
							$pagination.= "<a href=\"$targetpage&page=$counter\">$counter</a>";					
					}
				}
			}
			
			//next button
			if ($page < $counter - 1) 
				$pagination.= "<a href=\"$targetpage&page=$next\">next</a>";
			else
				$pagination.= "<span class=\"disabled\">next</span>";
			$pagination.= "</div>\n";		
		}
		
		$rs = $obj->executeQry($sql,$link);
		$rownum = $obj->getrow();
		if($obj->getrow()>0) {
	
			while($row = $obj->fetchrow()) { 
			
				$sql9 = "SELECT * FROM ".TBL_THEME." WHERE memberID = '".$row['memberID']."'";
				$rs2 = $obj9->executeQry($sql9,$link);
				$row9 = $obj9->fetchrow();
				
				$sql4 = "SELECT * FROM ".TBL_DIRECTORY." WHERE memberID = ".$row['memberID'];
				$rs4 = $obj4->executeQry($sql4,$link);
				$row4 = $obj4->fetchrow();
	?>
	<table  class="main" width="96%" border="0" cellspacing="0" cellpadding="0">
		<tr>
				<td class="bdr1">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
										<td bgcolor="#990066" class="form_head" style="padding-left:5px"><span style="text-align: left;"><a href="<?php echo $row9['themeID']; ?>/index.php?id=<?php echo $row['memberID']; ?>" target="_blank"><span style="font-size: small;"><b><?php echo $row4['person_name'].' ('.$row4['organisation_name'].')';?></b></span></a></span><span style="float:right;padding-right:5px;padding-top:5px;font-size:10px;"><?php echo date("j-F-Y, h:i:s A",strtotime($row['added_on']));?></span></td>
								</tr>
								<tr>
										<td>
												<table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
														<tr>
														  <td width="40%" class="contain"><b>Commodity</b></td> 
														  <td width="60%" class="contain"><?php echo $row['commodity'] ?></td>
													   </tr>
													   <tr>
														  <td class="contain"><b>Origin</b></td> 
														  <td class="contain"><?php echo $row['origin'] ?></td>
													   </tr>
															  <tr>
														  <td class="contain"><b>Location</b></td> 
														  <td class="contain"><?php if($row['commodity'] == 'Coal') { echo ($row['origin']=='Indian')?$row['area'].' ('.$row['mines_name'].')':$row['port']; } else { echo ($row['origin']=='Indian')?$row['noncoal_state']:$row['noncoal_state'].' ('.$row['noncoal_port'].')'; }?></td>
													   </tr>
													   <tr>
														  <td class="contain"><b>Sub Location</b></td> 
														  <td class="contain"><?php if($row['commodity'] == 'Coal') {  if($row['origin']=='Indian') { echo $row['mines_name']; } } else { echo ($row['origin']=='Indian')?$row['noncoal_district']:$row['noncoal_district']; }?></td>
													   </tr>
													   <tr>
														  <td class="contain"><b>Size</b></td> 
														  <td class="contain"><?php echo $row['size'] ?></td>
													   </tr>
													   <tr>
														  <td class="contain"><b>Gross Calorific Value(A.D.Basis)</b></td> 
														  <td class="contain"><?php echo $row['actual_gcv'] ?></td>
													   </tr>
													   <tr>
														  <td class="contain"><b>Total Moisture(A.R.Basis)</b></td> 
														  <td class="contain"><?php echo $row['actual_tm'] ?></td>
													   </tr>
													   <tr>
														  <td class="contain"><b>ASH(A.D.Basis)</b></td> 
														  <td class="contain"><?php echo $row['actual_ash'] ?></td>
													   </tr>
													   <tr>
														  <td class="contain"><b>Sulphur</b></td> 
														  <td class="contain"><?php echo $row['actual_sulpher'] ?></td>
													   </tr>
														<tr>
														  <td class="contain"><b>Base Rate (INR/Mt ,Exclude Transport)</b></td> 
														  <td class="contain"><?php echo $row['base_rate'] ?></td>
													   </tr>
													   <tr> 
															<td colspan="2">
																	<span id="contact_<?php echo $row['id'] ?>" style="display:none;">
																			<table width="100%" border="0" cellspacing="0" cellpadding="0">
																					<tr>
																						<td colspan="3" bgcolor="#990066" class="form_head" style="padding-left:5px"><div style="text-align: center;"><span style="font-family: Tahoma;"><span style="color: rgb(0, 0, 0);"><b>Contact Details</b></span></span></div></td>
																					</tr>
																					<tr>
																						<td class="contain" valign="top"><b>Address</b></td>
																						<td width="5"></td>
																						<td class="contain"><?php echo $row4['address'];?>, <?php echo $row4['district'];?>, <?php echo $row4['state'];?> - <?php echo $row4['pincode'];?></td>
																					</tr>
																					<tr>
																						<td class="contain" valign="top"><b>Phone</b></td>
																						<td width="5"></td>
																						<td class="contain"><?php echo $row4['phone'];?></td>
																					</tr>
																					<tr>
																						<td class="contain" valign="top"><b>Fax</b></td>
																						<td width="5"></td>
																						<td class="contain"><?php echo $row4['fax'];?></td>
																					</tr>
																					<tr>
																						<td class="contain" valign="top"><b>Mobile</b></td>
																						<td width="5"></td>
																						<td class="contain"><?php echo $row4['mobile1'];?>, <?php echo $row4['mobile2'];?></td>
																					</tr>
																					<tr>
																						<td class="contain" valign="top"><b>Email</b></td>
																						<td width="5"></td>
																						<td class="contain"><?php echo $row4['email1'];?>, <?php echo $row4['email2'];?></td>
																					</tr>
																					<tr>
																						<td class="contain" valign="top"><b>Website</b></td>
																						<td width="5"></td>
																						<td class="contain"><?php echo $row4['website'];?></td>
																					</tr>
																					<tr>
																						<td colspan="3"><span style="text-align:right !important; float:right"><a href="showListing.php?id=<?php echo $row['memberID'] ?>">Show all product of same trader </a></span></td>
																					</tr>
																			</table>
																	</span>
															</td>
													   </tr>
													   <tr>
															<td colspan="2"><span style="text-align:right !important; float:right"  id="more_<?php echo $row['id'] ?>"><a href="enq.php?id=<?php echo $row['id'] ?>" rel="ibox">Contact Details</a></span></td>
														</tr>
												</table>
										</td>
								</tr>
						</table>
				</td>
		</tr>
		<p>&nbsp;</p>
	</table>
	<?php } ?> <br /><br />
	<?php } else { ?>
	<table>
		<tr>
				<td height="10"></td>
		</tr>
	    <tr>
    		    <td style="color:#D40000;"><strong>Record not found !</strong></td>
	    </tr>		
	</table>
	 <?php } ?>
	 
	 <table width="100%" align="center" cellpadding="0" cellspacing="0">
		<tr>
				<td align="center" width="100%"><?php echo $pagination; ?></td>
		</tr>                   
	</table>    



						</div>
				</div>
				<?php require_once(INCLUDES_DIR.'left_bar.php');?>
                <!--floatright close-------------------->
                <div style="clear:both;"></div>
            </div>
            <!--workareamid close--------------------->
            <div class="workareabottom">
                <img src="images/workareabottomcorner_03.PNG" alt="" />
            </div>
        </div>
    <!--workarea close------------------------->
<?php require_once(INCLUDES_DIR.'footer.php');?>