<?php
$page_title = 'Select Sales Plan';
  require_once('includes/load.php');
  // Checkin What level user has permission to view this page
   page_require_level(3);
   $all_plans = find_all('plandetails');
?>
<?php include_once('layouts/header.php'); ?>
<div class="row">
  <div class="col-md-6">
    <?php echo display_msg($msg); ?>
  </div>
</div>
<div class="row">
  <div class="col-md-6">
    <div class="panel">
      <div class="panel-heading">

      </div>
      <div class="panel-body">
          <form class="clearfix" method="post" action="sales_plan.php">
            <div class="form-group">
            <select id="PlanId" class="form-control" name="planid" >
                      <option value="">Select Plan</option>
                    <?php  foreach ($all_plans as $cat): ?>
                      <option value="<?php echo $cat['PlanId']; ?>">
                        <?php echo $cat['PlanName'] ?></option>
                    <?php endforeach; ?>
                    </select>
            </div>
            <div class="form-group">
                 <button type="submit" name="submit" class="btn btn-primary">Show Plan</button>
            </div>
          </form>
      </div>

    </div>
  </div>

</div>
<?php include_once('layouts/footer.php'); ?>
