
<div id="content">
  <div id="inner">

  
 <div class="detailservice">
 
 <?php if(!$this->session->userdata('username'))
	   {

		echo "<center><h2>Please first login or register new member</h2></center>";
?>

<?php }else{?>
<table width="850" border="35" cellspacing="20" cellpadding="5" summary="oppppppp">
  <caption style="margin-bottom: 9px; margin-top: 6px;">  <h2> Order Your Product Online</h2></caption>
  
  
  <tr>
    <td style="background-color:#cd9510" color="#fff" bordercolor="#000000"  width="50px;">ID</td>
    <td style="background-color:#894daf" color="#fff" bordercolor="#000000"  width="500px;">Product Name</td>
        <td style="background-color:#894daf" color="#fff" bordercolor="#000000"  width="200px;">Unit Price</td>

    <td style="background-color:#894daf" color="#fff" bordercolor="#000000"  width="100px;">Order</td>
  </tr>
   <?php
             if($posts!=FALSE){
             $x=0;
		     foreach($posts->result() as $row):
		      $x++;
		     ?>
  <tr>
    <td style="background-color:#999" color="#fff" bordercolor="#000000"  width="50px;"><?php echo $row->id;?></td>
    <td style="background-color:#e7be5d" color="#cd9510" bordercolor="#000000"  width="500px;"><?php echo $row->name;?></td>
        <td style="background-color:#e7be5d" color="#cd9510" bordercolor="#000000"  width="200px;"><?php echo $row->txt1;?></td>

    <td style="background-color:#e7be5d" color="#cd9510" bordercolor="#000000"  width="250px;"> 
       <form name="cart_form<?php echo $x;?>" method="post" action="<?php echo base_url()?>index.php/order_now/add">
			<input type="hidden" value="<?php echo $row->name?>" name="name">
			<input type="hidden" value="<?php echo $row->name?>" name="title">
			<input type="hidden" value="<?php echo $row->id?>" name="id">
			<input type="hidden" value="<?php echo $row->txt1?>" name="price">

	        <input type="text" value="1" height="24" name="qty" style="width: 43px"  >   <a class="cart float-right" style="cursor:pointer;font-size:11px" onclick="cart_form<?php echo $x;?>.submit()"><img src="<?php echo base_url();?>template/images/add.png" width="13" height="10" />Add To Cart</a>
		</form>
	</td>
  
  </tr>
    <?php endforeach; }?>  
   
</table>

 <?php }?>
 
 
    </div>

   <div style="clear:both"></div>
   <?php echo $this->pagination->create_links();?>

  
  
  
  </div>
</div>

















