<?php 
require('../headers.php');
?>


<table border="0" width="100%">
	<tr>
		<td colspan="3"  height="150px" valign="bottom" align="center" >
			<label id="main_lab" >
				 HEXA<font size="6">N</font>DEAL COMING SOON!.. </label><br/>
				 <small><i>(Nani Nina Nini-Nani Nahitaji Nini)</i></small> 
			
		</td>
	</tr>
	<tr>
		<td align="left">
			<ul style="padding-left:0%;">
			<li>
	        <form action="hexaNdealOut.php" method="post">
		      <!--<input class="hi" type="hidden" name="owniD"  value="<?php// echo $ownID;?>">-->

               <input  class="pos" type="submit" value="Deal Posts" name="post"  >
            </form>
 
			</li>
			<li>
				<form action="hexaNdealOut.php" method="post">

		          <!-- <input class="hi" type="hidden" name="owniD"  value="<?php// echo $ownID;?>">-->

                    <input  class="pos" type="submit" value="Need Posts" name="post"  >
                 </form>
			</li>
		</ul>
		
		</td>
		<td width="50%" align="center">
		 <!--<form action="hexaNdealOut.php" method="post">

            <label id="search_lab">
                       <i>
                          Search a deal here:-
                      </i> 
            </label>

		              <!--<input class="hi" type="hidden" name="owniD"  value="<?php //echo $ownID;?>">--
                      <input type="text" class="hotel_info" height="25px" name="searchValue" value="">
                     <input class="subs" type="submit" value="Search" name="post"><br>
                       
            
          </form>-->
		</td>
		<td align="right" width="25%">
		<ul>
			<li>
				<form action="../home.php" method="post">

		          <!-- <input class="hi" type="hidden" name="owniD"  value="<?php //echo $ownID;?>">-->

                    <input  class="pos" type="submit" value="Have what?" name="post"  >
                 </form>
			</li>
			<li>
				<form action="../home.php" method="post">

		           <!--<input class="hi" type="hidden" name="owniD"  value="<?php //echo $ownID;?>">-->

                    <input  class="pos" type="submit" value="Need what?" name="post"  >
                 </form>
			</li>
		</ul>
		
		</td>
	</tr>
	<tr>
		<td colspan="3" style="padding-left:2%;"> 
	                     
       

			<?php
			if (isset($_POST['post'])) {
				
			$post=$_POST['post'];

			if($post=="Need Posts"){ 
              	
			                   require('getNeedPostOut.php');
			                // $hs=$xcon->getOtherHexaNdeal($ownID);
			                        }
			                  if ($post=="Deal Posts")
			                        {
			               
			                 	  require('getDealsPostOut.php');
			 	                 // $hs=$xcon->getMyHexaNdealPost($ownID);
			                        }
						          }
            // if ($post=="Deal Posts")
              else   {
               
                 	require('getDealsPostOut.php');
 	                 // $hs=$xcon->getMyHexaNdealPost($ownID);
                  }

                  //

            
             /* else if ($post=="Switch other's need") {
                 
                   require('getOtherNeedPost.php');
                // $hs=$xcon->getOtherHexaNdeal($ownID);
                  }
               else if ($post=="Switch other's deal posts") {
                 
                   require('getOtherDealsIn.php');
                // $hs=$xcon->getOtherHexaNdeal($ownID);
                  }
                 else{
              	 
              	
                   require('getOtherDealsIn.php');
                // $hs=$xcon->getOtherHexaNdeal($ownID);
                  }*/
			 ?>
		</td>
	</tr>
</table>
<?php
require_once('../footers.php');
?> 