Struktur ulang: memindahkan sistem ke folder public untuk Nginx
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
//form edit open
|
||||
echo form_open(base_url('registrasi/edit/'.$registrasi->no_trans));
|
||||
?>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="no_pendaftaran" class="col-sm-2 col-form-label">No. Pendaftaran</label>:
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="no_pendaftaran" class="form-control" placeholder="No. Pendaftaran" value="<?php echo $registrasi->no_pendaftaran?>" required disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="nama_lengkap" class="col-sm-2 col-form-label">Nama Lengkap</label>:
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="nama_lengkap" class="form-control" placeholder="Nama Lengkap" value="<?php echo $registrasi->nama_lengkap?>" required disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="sekolah_asal" class="col-sm-2 col-form-label">Sekolah Asal</label>:
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="sekolah_asal" class="form-control" placeholder="Sekolah Asal" value="<?php echo $registrasi->sekolah_asal?>" required disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="kompetensi" class="col-sm-2 col-form-label">Kompetensi Keahlian</label>:
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="kompetensi" class="form-control" placeholder="Kompetensi Keahlian" value="<?php echo $registrasi->kompetensi?>" required disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="tgl_bayar" class="col-sm-2 col-form-label">Tanggal Salin</label>:
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="tgl_bayar" class="form-control" placeholder="Tanggal Salin" value="<?php echo $registrasi->tgl_bayar?>" required disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="ketentuan" class="col-sm-2 col-form-label">Ketentuan Pembayaran</label>:
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="ketentuan" class="form-control" placeholder="Ketentuan Pembayaran" value="<?php echo $registrasi->ketentuan?>" required disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="angsuran" class="col-sm-2 col-form-label">Angsuran</label>:
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="angsuran" class="form-control" placeholder="angsuran" value="<?php echo $registrasi->angsuran?>" required disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="bayar" class="col-sm-2 col-form-label">Dibayarkan</label>:
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="bayar" class="form-control" placeholder="Dibayarkan" value="<?php echo $registrasi->bayar?>" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<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 Data
|
||||
</button>
|
||||
<button type="reset" class="btn btn-info">
|
||||
<i class="fa fa-times"></i> Reset
|
||||
</button>
|
||||
<a href="<?php echo base_url('registrasi') ?>" class="btn btn-default">
|
||||
<i class="fa fa-backward"></i> Kembali
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
//form close
|
||||
echo form_close();
|
||||
?>
|
||||
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
//open form
|
||||
echo form_open(base_url('pembayaran'),' class="form-horizontal"');
|
||||
?>
|
||||
|
||||
<p>
|
||||
<?php if($this->session->userdata('level')=="Administrator") { ?>
|
||||
<a class="btn btn-primary" href="<?php echo base_url('pembayaran/export') ?>" onclick="return confirm('Yakin ingin mengexport data pembayaran Tes ke excel ?')"><i class="fa fa-file-excel"></i> Export Excel</a>
|
||||
<?php } ?>
|
||||
<a href="<?php echo base_url('dashboard') ?>" class="btn btn-secondary" data-dismiss="modal"><i class="fa fa-times"></i> Kembali</a>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
//panggil form tambah
|
||||
//include('tambah.php');
|
||||
//closing form
|
||||
echo form_close();
|
||||
?>
|
||||
<table class="table table-bordered table-striped table-sm" id="example1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%">NO.</th>
|
||||
<th width="8%">NO. PEND</th>
|
||||
<th width="20%">NAMA/SEKOLAH</th>
|
||||
<th width="10%">KOMP/GEL</th>
|
||||
<th width="10%">TANGGAL</th>
|
||||
<th width="10%">BIAYA TES</th>
|
||||
<th width="10%">DISKON</th>
|
||||
<th width="10%">DIBAYARKAN</th>
|
||||
<th width="10%">PETUGAS</th>
|
||||
<!-- <?php if($this->session->userdata('level')=="Administrator") { ?>
|
||||
<th>ACTION</th>
|
||||
<?php } ?> -->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($pembayaran as $key => $pembayaran) { ?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo $key+1; ?></td>
|
||||
<td><b><?php echo $pembayaran->no_pendaftaran ?></b>
|
||||
</td>
|
||||
<td><b><?php echo $pembayaran->nama_lengkap ?></b>
|
||||
<br><small><?php echo $pembayaran->sekolah_asal ?></small>
|
||||
</td>
|
||||
<td><b><?php echo $pembayaran->kd_kompetensi ?></b>
|
||||
<br><small><?php echo $pembayaran->gelombang ?></small>
|
||||
</td>
|
||||
<td><?php echo date('d-m-Y', strtotime($pembayaran->tgl_trans)) ?></td>
|
||||
<td><b><?php echo number_format($pembayaran->biaya) ?></b></td>
|
||||
<td><b><?php echo number_format($pembayaran->diskon) ?></b></td>
|
||||
<td><b><?php echo number_format($pembayaran->bayar) ?></b></td>
|
||||
<td><small><?php echo $pembayaran->operator ?></small></td>
|
||||
<!-- <?php if($this->session->userdata('level')=="Administrator") { ?> -->
|
||||
<!-- <td>
|
||||
<div class="btn-group">
|
||||
<a href="<?php echo base_url('pembayaran/edit/'.$pembayaran->no_trans) ?>" class="btn btn-success btn-sm">
|
||||
<i class="fa fa-edit"></i> Edit
|
||||
</a>
|
||||
|
||||
<a href="<?php echo base_url('pembayaran/delete/'.$pembayaran->no_trans) ?>" class="btn btn-danger btn-sm" onclick="return confirm('Yakin ingin menghapus data pembayaran Tes <?php echo $pembayaran->no_trans ?> atas nama <?php echo $pembayaran->nama_lengkap ?> ?')">
|
||||
<i class="fa fa-trash"></i> Hapus
|
||||
</a>
|
||||
</div>
|
||||
</td> -->
|
||||
<?php } ?>
|
||||
</tr>
|
||||
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user