Show course plan table [Bagian 10]

Have a nice weekend, loyal inwepo readers. On this holiday weekend, the author will continue with the article on how to create a course registration website with the Codeigniter framework.

The subject of discussion this time around is the compilation of a list of available courses. For readers who want to follow the process of creating this website, the author recommends following this article from Part 1. However, to make this easier, the author has provided an article link to remind you how to do it.

Also read:

The author immediately explains the steps to make a list of courses available on the page User.


1. Paste the following code into the file header.php Contained in C: xampp htdocs inwepo application views user

  • user/welcome/kursus"> Kursus
  • The purpose of adding this code is to bring up the Available Schedule menu on the page User. So that later participants can enter and view the available course materials.

    2. Do function course by doing Files welcome.php saved in the folder User.

    function kursus()	{    	$query = $this->m_kursus->selectAll();   	$data['internet'] = $this->m_kursus->selectAll($id);    	$data['lock'] = $this->m_kursus->get_lock(); //untuk mengunci ketika kuota telah habis   	$user = $this->session->userdata('username');            $this->data['pengguna'] = $this->m_login->data($user);        if($query){        $data['internet'] = $query;        $this->load->view('user/header',$this->data);        $this->load->view('user/kursus',$data);        $this->load->view('user/footer');       }  }

    function In addition to calling up the available timetable view, it is also used to display the created “course_list” table that is saved in the course Folder Models folder m_course. The above program excerpt has also provided the session sharing for every logged-in user. So that the processed data of each user will later differ from one another.

    3. In the model folder, create a file named M_kurs.php.

    db->order_by("id","asc");	return $this->db->get('daftar_kursus')->result();  }  function get_lock()  {	  			return $this->db->get('daftar_kursus')->row();  }}

    4. Create a file named course.php in the folder Views / users.

    Pendaftaran Kursus

    status ==1){ echo '
    No Nama Kursus Nama Laboratorium Tanggal Harga Kuota Aksi
    nama_kursus?> lepkom?> periode?> harga?> kuota?> user/welcome/daftar/nama_kursus;?>" disabled="disabled" class="btn btn-sm btn-default">Locked user/welcome/daftar/nama_kursus;?>" class="btn btn-sm btn-default">Daftar

    This “course.php” file is used to display the “course_list” table. This allows users to see what schedules are available. Users can also view available allotments, course dates and, most importantly, course materials. If the user would like to register for the desired course material later, interested parties can press the button perform. Then go to the next page to enter your personal information.

    Well, for the process of filling in the personal bio data, the author will discuss in the next article. So, follow the process of creating this website through to the final stage.

    Finally, the author wishes you a nice weekend.

    Leave a Reply

    Your email address will not be published.