deploy awal

This commit is contained in:
atuy
2026-06-27 13:11:58 +07:00
commit c32764f514
8977 changed files with 1499555 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
<?php
class Laporan extends CI_Controller
{
public function __construct()
{
parent::__construct();
//chek_role();
chek_session();
$this->load->model('Model_Laporan');
}
function index($start = null , $end = null)
{
if (isset($_POST['search'])) {
$start = $this->input->post('start_date');
$end = $this->input->post('end_date');
$metode = $this->input->post('metode');
$data['laporan'] = $this->Model_Laporan->get_range($start,$end,$metode);
$data['metode'] = $this->Model_Laporan->get_metode();
$this->template->load('Template/template', 'Laporan/lihat_data', $data);
$this->load->view('Template/datatables');
} else {
$data['laporan'] = $this->Model_Laporan->get_data();
$data['metode'] = $this->Model_Laporan->get_metode();
$this->template->load('Template/template', 'Laporan/lihat_data', $data);
$this->load->view('Template/datatables');
}
}
function hapus($id)
{
$this->Model_laporan->hapus_trf($id);
$this->Model_laporan->hapus_id($id);
}
}