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


<table border="0" width="100%">
	<tr>
		<td colspan="3" align="center">
			<label id="main_lab" >
				 HEXA<font size="6">N</font>DEAL </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="hexaNdeal.php" method="post">
		      <input class="hi" type="hidden" name="owniD"  value="<?php echo $ownID;?>">

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

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

                    <input  class="pos" type="submit" value="My Need Posts" name="post"  >
                 </form>
			</li>
		</ul>
		
		</td>
		<td width="50%" align="center">
		 <form action="hexaNdeal.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="dealPostForm.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="needPostForm.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
			$post=$_POST['post'];
             if ($post=="My Deal Posts")
                 {
               
                 	require('getMyDealsPost.php');
 	                 // $hs=$xcon->getMyHexaNdealPost($ownID);
                  }

                  //

                   else if ($post=="My Need Posts") { 
              	
                   require('getMyNeedPost.php');
                // $hs=$xcon->getOtherHexaNdeal($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('../footerIns.php');
        ?>