<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>

      <div class="main my-0">
        <div class="row mt-3 mx-0">
          <div class="col-md-6">
            <h3><?php echo $pgheading;?></h3>
          </div>
          <div class="col-md-5 text-right">
            &nbsp;
          </div>
        </div>

         <?php
			if($this->session->flashdata("message")!="" && $this->session->flashdata("alerttype")!="")
			{
         ?>
         <div class="text-center my-4">
			 <span class="alert <?php echo $this->session->flashdata("alerttype");?>"><?php echo $this->session->flashdata("message");?></span>
         </div>
         <?php
			}
         ?>
        
        <div class="container_fluid mt-2 px-3">
		<form name="frmgeneral" method="get" action="outlet/projecteditemstock/exportcsv" enctype="multipart/form-data" onsubmit="return checkform();">
			<input type="hidden" name="outletids[]" value="<?php echo $this->outletid;?>">
        <table class="webforms mt-0 table-responsive-sm">
		<tr>
          <td width="20%"><label>No. of days for previous sale:</label></td>
          <td width="30%"><input type="number" name="prevnoofdays" id="prevnoofdays" value="<?php echo $this->input->get("prevnoofdays");?>" placeholder="no. of days for previous sale" required></td>
          <td width="20%"><label>No. of days for projected sale:</label></td>
          <td width="30%"><input type="number" name="noofdays" id="noofdays" value="<?php echo $this->input->get("noofdays");?>" placeholder="no. of days for projected sale sale" required></td>
		</tr>
		<tr>
			<td><label>Select Product</label></td>
			<td colspan="3">
			<select name="productid" id="productid" class="js-example-basic-single" style="width:400px;">
			  <option value="">Select Item</option>
							<?php
							if(is_array($rsproducts) && count(array_filter($rsproducts))>0)
							{

								foreach($rsproducts as $row)
								{
									$selelement = "";
									if(decodeValue($this->input->get("productid"))==$row->fld_id)
									{
										$selelement = ' selected="selected"';
									}				
										?>
												<option value="<?php echo encodeValue($row->fld_id);?>" <?php echo $selelement;?>><?php echo $row->fld_name;?></option>
										<?php
									
								}
							}
							?> 
			  </select>				
			</td>
		</tr>

		 <tr>
             <td></td>
             <td colspan="3"><button class="btn btn-primary" id="submit">Export Data</button></td>
         </tr>
         </table>
         </form> 
	         <div class="clearfix"></div>          
        </div>
       </div>


