<?php defined('BASEPATH') or exit('No direct script access allowed');?>
<?php echo form_open(current_url(), 'method="get" class="form-horizontal"');?>
  <div class="form-group">
    <label class="col-sm-3 control-label">Periode</label>
    <div class="col-sm-9">
      <select class="form-control" name="periode" required="required">
        <option value="1"<?php echo $bulan == 1 ? ' selected="selected"' : '';?>>Januari <?php echo $tahun;?></option>
        <option value="2"<?php echo $bulan == 2 ? ' selected="selected"' : '';?>>Februari <?php echo $tahun;?></option>
        <option value="3"<?php echo $bulan == 3 ? ' selected="selected"' : '';?>>Maret <?php echo $tahun;?></option>
        <option value="4"<?php echo $bulan == 4 ? ' selected="selected"' : '';?>>April <?php echo $tahun;?></option>
        <option value="5"<?php echo $bulan == 5 ? ' selected="selected"' : '';?>>Mei <?php echo $tahun;?></option>
        <option value="6"<?php echo $bulan == 6 ? ' selected="selected"' : '';?>>Juni <?php echo $tahun;?></option>
        <option value="7"<?php echo $bulan == 7 ? ' selected="selected"' : '';?>>Juli <?php echo $tahun;?></option>
        <option value="8"<?php echo $bulan == 8 ? ' selected="selected"' : '';?>>Agustus <?php echo $tahun;?></option>
        <option value="9"<?php echo $bulan == 9 ? ' selected="selected"' : '';?>>September <?php echo $tahun;?></option>
        <option value="10"<?php echo $bulan == 10 ? ' selected="selected"' : '';?>>Oktober <?php echo $tahun;?></option>
        <option value="11"<?php echo $bulan == 11 ? ' selected="selected"' : '';?>>November <?php echo $tahun;?></option>
        <option value="12"<?php echo $bulan == 12 ? ' selected="selected"' : '';?>>Desember <?php echo $tahun;?></option>
        <!--<option value="semua"<?php echo $bulan == 'semua' ? ' selected="selected"' : '';?>>Semua</option>-->
      </select>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-3 control-label">Status</label>
    <div class="col-sm-9">
      <select class="form-control" name="status" required="required">
        <option value="sukses">Transaksi Sukses</option>
        <!--<option value="semua">Semua</option>-->
      </select>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-3 control-label">Format</label>
    <div class="col-sm-9">
      <select class="form-control" name="format" required="required">
        <option value="xls">Excel (.xls)</option>
        <option value="xlsx">Excel (.xlsx)</option>
      </select>
    </div>
  </div>
  <div class="form-group" style="margin-bottom:0">
    <div class="col-sm-offset-3 col-sm-9">
      <button type="submit" class="btn btn-primary" name="submit" value="download"><i class="fa fa-download"></i> Download</button>
      &nbsp;
      <a href="<?php echo site_url('admin/transaksi');?>" class="btn btn-default" data-dismiss="modal"><i class="fa fa-remove"></i> Batal</a>
    </div>
  </div>
<?php echo form_close();?>