  

  <?php  $lg=$this->fun->get_lang();

         foreach($lg->result() as $r):

         $language=$r->lang;

         endforeach;

?>


  <head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>

  <div id="mws-container" class="clearfix">
            <div class="container">
            
       
       
   
  <div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span class="mws-i-24 i-table-1">Orders</span>
                    </div>
                    <div class="mws-panel-body">
                        <table class="table">

							<tr>

								

								<td colspan="2"><h3>Products Information</h3></td>

							</tr>

						
							<tr>

								

								<td colspan="2">

								

								

								

								

								

								<table style="width: 700px" class="msw-table" cellspacing="9" cellpadding="9">

									<tr>

										<td style="color:#3E5A79;font-weight:bold">#</td>

										<td style="color:#3E5A79;font-weight:bold">product name</td>

										<td style="color:#3E5A79;font-weight:bold">qty</td>

										<td style="color:#3E5A79;font-weight:bold">price</td>

										<td style="color:#3E5A79;font-weight:bold" >Total</td>

									</tr>

									<?php  

                                  

				                	$social_q= $this->orders_model->view_products($uid);

				                	if($social_q!=FALSE){

				                	$total=0;

				                	foreach($social_q as $row):

				                	$p=$row->qty*$row->price;

				                	$total=$total+$p;								    

				                ?>



									<tr>

										<td><?php echo $row->pid?></td>

										<td><?php echo $row->pname?></td>

										<td><?php echo $row->qty?></td>

										<td><?php echo $row->price?></td>

										<td><?php echo $row->qty*$row->price?></td>

									</tr>

									<?php endforeach;

				                	}?>



									<tr>

										<td>&nbsp;</td>

										<td>&nbsp;</td>

										<td>&nbsp;</td>

										<td>&nbsp;</td>

										<td style="color:#3E5A79;font-weight:bold"><?php echo $total?></td>

									</tr>

									</table>

								

								

								

								

								

								</td>

							</tr>



						</table>

                        

                    </div>
                    
                    <br>
                    <div class="mws-button-row">   
                                        </div>              		
                    					                    		
                </div>

  </div>
    



    
    
    



  
 






















