<style>
.myresult
{
-webkit-print-color-adjust: exact;
}
</style>

 


<script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
<div class="row">
	<div class="container">
    
    
    	<ol class="breadcrumb">
          <li><a href="#">التقارير</a></li>
          <li class="active">تقرير مبيعات منتج وعميل </li>
        
        </ol>
        

            
            
            <div class="panel panel-default">
          <!-- Default panel contents -->
          <div class="panel-heading">تقرير مبيعات منتج وعميل </div>
          <div class="panel-body">
          
          
      
        
        
        <form class="form-inline hidden-print" action="customersproductsController.php?do=show" method="post">
            
              
             
             
          
          <div class="form-group">
            <label class="sr-only">المنتج</label>
            
             <input type="hidden" class="select2product wdt100"  name="productId" id="productId" data-placeholder="اختر منتج"  />
                
               
          </div>
              &nbsp; &nbsp; &nbsp; &nbsp;
              
          <div class="form-group">
            <label class="sr-only"> العميل</label>
            <span id="spryselect1">
            <select class="select2 wdt100"  name="clientid" id="clientid" >
              <option value="-1">اختر عميل</option>
              
              
            
            {foreach $allclient as $myallclient}
                                            
									    
		
              
              <option value="{$myallclient->clientid}">{$myallclient->clientname} </option>
              
                          
                                       
           {/foreach}
										
          
            
            </select>
            <span class="selectInvalidMsg">اختر عميل.</span><span class="selectRequiredMsg">اختر عميل.</span></span></div>
              
              
              
               
          <br/>  
            
              
               <div class="form-group">
                <label class="sr-only">من التاريخ</label>
                
               <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" name="from" >
        
              </div>
              
              
               <div class="form-group">
                <label class="sr-only">إلى التاريخ</label>
                
              <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" name="to" >
        
              </div>
              
              
              
              
              <button type="submit" class="btn btn-primary">بحث</button>
              
 
        
            </form>
            
        
   
          </div>
          
          
        {if {count($allmydata)} > 0}
        
          <div class="panel panel-default">
          <!-- Default panel contents -->
          <div class="panel-heading">{$message}</div>
          <div class="panel-body">
         
          <hr/>
       
     
    
        <table class="table">
          <thead>
            <tr>
           		
                
           		<th>اسم المنتج</th>
				<th>التاريخ</th>
                <th>الكميه </th>
                <th>السعر</th>
                                           
		
           
            </tr>
          </thead>
          <tbody>
          
          
         
         
     
            {foreach $allmydata as $productdata}
                                    
                  <tr>
                                     
                    <td>{$productdata->productName}  /{$productdata->productCatName}</td>
                    <td>{$productdata->selldate}</td>
                    <td>{$productdata->quantity}</td>
                    <td>{$productdata->price}</td>
                           
                  </tr>
                                        
                                   
			
            {/foreach}
    
          
          </tbody>
        </table>
        
        
    
   {/if}
        
        
        
        <div class="clearfix"></div>
           
       
         <hr />
         
         
         
      {if {count($productData)} > 0}
            <div  class="hidden-print">
              <div class="col-lg-12">
                
                  
                  
                 <div class="form-group">
            <div class="col-lg-4">
              <button type="button" onclick="window.print() ;" class="btn btn-success pull-right hidden-print">طباعة</button>
            </div>
          </div>
                  
                  
              </div>
                  
                    <div class="clearfix"></div>
            </div>
                
           {/if}
       
                
             
              <div class="clearfix"></div>
            </div>
            
            
            
   		
            
  
  </div>
  
</div>
{literal}
<script type="text/javascript">
var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {invalidValue:"-1"});
            </script>
{/literal}