CRUD course schedule [Bagian 16]

The job of an administrator from the course registration website is to manage the available schedule and to check the details of incoming students. Well the author will first discuss the admin performance of this website one by one.

The first is to determine the course schedule available. An administrator has to enter course material, execution date, quota and lock the schedule when the remaining amount of the quota is used up.

Also read:

How to view, add, edit, and delete available course plans

1. Open Files welcome.php in the folder C: xampp htdocs inwepo application controllers admin then add the following code:

 function kursus()  {    $query = $this->admin_kursus->selectAll();    $data['internet'] = $query;    $user = $this->session->userdata('username');            $this->data['pengguna'] = $this->m_admin->data($user);    $this->load->view('admin/header',$this->data);    $this->load->view('admin/kursus',$data);    $this->load->view('admin/footer');  }  function tambah_data()  {    //$data['kursus']=$this->admin_kursus->tambah_kursus();     $user = $this->session->userdata('username');    $this->data['pengguna'] = $this->m_login->data($user);    $this->load->view('admin/header',$this->data);    $this->load->view('admin/form_tambah');    $this->load->view('admin/footer');  }

2. Create models with the name admin_course.php in the folder C: xampp htdocs inwepo application models Then enter the following program section:

db->order_by("id","asc");	return $this->db->get('internet')->result();}}

3. Create a view to display course plan data with the name Files course.php by doing Folder C: xampp htdocs inwepo application views admin.

'btn btn-danger btn-sm')) ?>

4. Create a view to add a course plan with the name Files form_add in the folder C: xampp htdocs inwepo application views admin.

Tambah Data

Silahkan menambahkan jadwal kursus yang tersedia

5. Create a view for editing the course plan with the name Files edit_form_add in the folder C: xampp htdocs inwepo application views admin.

Edit Jadwal Kursus

Silahkan mengubah jadwal kursus yang tersedia

The code for the above program is just the author provides an outline, you can download it later directly Source code which the author stated at the end of this article.

Here is a view of course.php

In the meantime, if the admin wants to add data for available courses, it will be displayed shape like this:

Later, if an error occurs while entering data, the admin can try the following steps: editing with the following display:

In addition, admins can also delete existing course data and lock the course schedule when the remaining participant quota has been used up.

Well, that’s more or less the admin’s first job. In the next article, the author provides a tutorial on managing participant data, in which he can view and delete participant data.

So look forward to the manufacturing process, inwepo friends!







Leave a Reply

Your email address will not be published.

No Nama Kursus Laboratorium Tanggal Harga Kuota Aksi