<?php
  echo form_open(base_url('pengaturan2/edit'));
  $pengaturan = $this->setting_model->panitia();
 
?>

<section class="content">
	<div class="container-fluid">
		<div class="row">
			<div class="col-12">
				<!-- Default box -->
				<div class="card">
					<div class="card-header">
						<h3 class="card-title"><b><span class="text-blue">IDENTITAS SEKOLAH</span></b></h3>
						<div class="card-tools">
							<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
								<i class="fas fa-minus"></i>
							</button>
						</div>
					</div>
          <div class="card-body">
            <div class="form-group row">
                <label for="sekolah" class="col-sm-2 col-form-label">Nama Sekolah</label>:
                <div class="col-sm-6">
                  <input type="text" name="sekolah" id="sekolah"  class="form-control" placeholder="Nama Sekolah" value="<?php echo $pengaturan2->sekolah?>" required>
                </div>
            </div>

            <div class="form-group row">
                <label for="alamat" class="col-sm-2 col-form-label">Alamat Sekolah</label>:
                <div class="col-sm-6">
                  <input type="text" name="alamat" id="alamat"  class="form-control" placeholder="Alamat Sekolah" value="<?php echo $pengaturan2->alamat?>" required>
                </div>
            </div>

            <div class="form-group row">
                <label for="website" class="col-sm-2 col-form-label">Website Sekolah</label>:
                <div class="col-sm-6">
                  <input type="text" name="website" id="website"  class="form-control" placeholder="Website Sekolah" value="<?php echo $pengaturan2->website?>" required>
                </div>
            </div>

            <div class="form-group row">
                <label for="tlp" class="col-sm-2 col-form-label">Telepon / WA</label>:
                <div class="col-sm-6">
                  <input type="text" name="tlp" id="tlp"  class="form-control" placeholder="Telepon/WA Sekolah" value="<?php echo $pengaturan2->tlp?>" required>
                </div>
            </div>

            <div class="form-group row">
                <label for="ketua_yayasan" class="col-sm-2 col-form-label">Ketua Yayasan</label>:
                <div class="col-sm-6">
                  <input type="text" name="ketua_yayasan" id="ketua_yayasan"  class="form-control" placeholder="Ketua Yayasan" value="<?php echo $pengaturan2->ketua_yayasan?>" required>
                </div>
            </div>

            <div class="form-group row">
                <label for="kepsek" class="col-sm-2 col-form-label">Kepala Sekolah</label>:
                <div class="col-sm-6">
                  <input type="text" name="kepsek" id="kepsek"  class="form-control" placeholder="Kepala Sekolah" value="<?php echo $pengaturan2->kepsek?>" required>
                </div>
            </div>

            <div class="form-group row">
                <label for="ketua_ppdb" class="col-sm-2 col-form-label">Ketua Panitia</label>:
                <div class="col-sm-6">
                  <input type="text" name="ketua_ppdb" id="ketua_ppdb"  class="form-control" placeholder="Ketua PPDB" value="<?php echo $pengaturan2->ketua_ppdb?>" required>
                </div>
            </div>

            <div class="form-group row">
                <label for="bendahara" class="col-sm-2 col-form-label">Bendahara</label>:
                <div class="col-sm-6">
                  <input type="text" name="bendahara" id="bendahara"  class="form-control" placeholder="Bendahara" value="<?php echo $pengaturan2->bendahara?>" required>
                </div>
            </div>
            </div>
          
          <div class="card-header">
						<h3 class="card-title"><b><span class="text-danger">TAHUN PELAJARAN & BIAYA TES</span></b></h3>
						<div class="card-tools">
							<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
								<i class="fas fa-minus"></i>
							</button>
						</div>
					</div>           
          <div class="card-body">
            <div class="form-group row">
                <label for="tp" class="col-sm-2 col-form-label">Tahun Pelajaran</label>:
                <div class="col-sm-6">
                  <input type="text" name="tp" id="tp"  class="form-control" placeholder="Tahun Pelajaran" value="<?php echo $pengaturan2->tp?>" required>
                </div>
            </div>

            <div class="form-group row">
                <label for="kelas_tahun" class="col-sm-2 col-form-label">6 Digit Awal</label>:
                <div class="col-sm-6">
                  <input type="text" name="kelas_tahun" id="kelas_tahun"  class="form-control" placeholder="6 Digit Awal No. Pendaftaran" value="<?php echo $pengaturan2->kelas_tahun?>" onkeypress="return event.charCode >= 48 && event.charCode <=57" required>
                </div>
            </div>

            <div class="form-group row">
                <label for="gelombang" class="col-sm-2 col-form-label">Gelombang</label>:
                <div class="col-sm-6">
                <select name="gelombang" class="form-control">       
                  <option value="Gelombang 1" <?php if($pengaturan2->gelombang=="Gelombang 1") { echo "selected"; } ?>>
                      Gelombang 1</option>
                  <option value="Gelombang 2" <?php if($pengaturan2->gelombang=="Gelombang 2") { echo "selected"; } ?>>
                      Gelombang 2</option>
                </select>
                </div>
            </div>

            <div class="form-group row">
                <label for="biaya_for" class="col-sm-2 col-form-label">Biaya Tes Akademik & BTQ</label>:
                <div class="col-sm-6">
                  <input type="text" name="biaya_for" id="biaya_for"  class="form-control" placeholder="Biaya Tes Akademik & BTQ" value="<?php echo $pengaturan2->biaya_for?>" onkeypress="return event.charCode >= 48 && event.charCode <=57" required>
                </div>
            </div>

            <div class="form-group row">
                <label for="diskon" class="col-sm-2 col-form-label">Diskon Biaya Tes *</label>:
                <div class="col-sm-6">
                  <input type="text" name="diskon" id="diskon"  class="form-control" placeholder="Diskon Biaya Tes *" value="<?php echo $pengaturan2->diskon?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"  required>
                </div>
            </div>

            <!---simpan,reset,kembali-->
              <div class="form-group row">
                <label for="ok" class="col-sm-2 col-form-label"></label>
                <div class="col-sm-9">
                  <button type="submit" class="btn btn-primary">
                      <i class="fa fa-save"></i> Simpan
                  </button>
                  <button type="reset" class="btn btn-info">
                      <i class="fa fa-cut"></i> Reset
                  </button>
                  <a href="<?php echo base_url('dashboard') ?>" class="btn btn-default">
                    <i class="fa fa-backward"></i> Kembali      	
                  </a>
                </div>
              </div>
            
              </div>
              </div>
						</div>
					</div><!-- /.card -->
				</div>
			</div>
		</div>
</section><!-- /.content -->

<?php
//form close
echo form_close();
?>