<?php
$query="SELECT terms_indicator,terms FROM ".$prefix."payment_terms where inactive=0 ORDER BY terms_indicator ASC";
$accountType=mysqli_query($linkid,$query);
?>
<div id="contentwrapper">
  <div class="main_content">
    <nav>
      <div id="jCrumbs" class="breadCrumb module">
        <ul>
          <li> <a href="#"><i class="icon-home"></i></a> </li>
          <li> <a href="#">Reports</a> </li>
          <li> <a href="index.php?tab=order-report">Order Summary Report</a> </li>
        </ul>
      </div>
    </nav>
    <div class="row-fluid">
      <div class="span12">
        <h3 class="heading">Order Summary Report</h3>
        <form class="form_validation_reg" id="form_validation_reg" name="form_validation_reg" action="order-summary.php" method="post" target="_blank">
          <div class="formSep">
            <div class="row-fluid">
              
              <div class="span2" id="startdateval">
                <label>Start Date <span class="f_req">*</span></label>
                <input type="text" name="startdate" id="startdate" class="span12" />
              </div>
              <div class="span2" id="enddateval">
                <label>End Date <span class="f_req">*</span></label>
                <input type="text" name="enddate" id="enddate" class="span12" />
              </div>
              <div class="span2">
                <label>Sales Person</label>
                <SELECT class="input_text" name="head" id="head">
                  <OPTION SELECTED VALUE="">Please Select</OPTION>
				  <OPTION VALUE="All">All</OPTION>
                  <?php

					if($accountType)

					{

					   while($mydata=mysqli_fetch_row($accountType)){

						 echo "<option value='$mydata[0]'>$mydata[1]</option>";

						}

					}	

						?>
                </SELECT>
              </div>
              
            </div>
          </div>
          <div class="form-actions">
            <input class="btn btn-inverse" name="submit" type="submit" value="Submit"/>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
