EVOLUTION-NINJA
Edit File: courselist-details.php
<?php echo view('includes/admin-header'); ?> <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/assets/css/jquery-ui.css'); ?>"/> <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/assets/css/conference.css'); ?>"> <div class="col-sm-10"> <div class="add-conference-right"> <div class="container"> <h3 class="conf-tag"><?php echo $details[0]['fields'] ?></h3> <div class="prog-schedule"> <input type="hidden" class="form-control insert_id" id="insert_id" name="insert_id" value = '0'> <p class="mt-5" style="font-size:16px;"><b>Select the category to view and edit its courses</b></p> <div class="table-responsive pt-3"> <!-- hide the id --> <table class="table table-bordered" > <thead> <tr > <th>Category Name</th> <th>Action</th> <!-- <th>View Details</th> --> </tr> </thead> <tbody id="ps"> <?php foreach($details as $key => $val){ ?> <tr> <td><?php echo $val['category_name'] ?></td> <td><button onclick="myfun(<?php echo $val['id'] ?>)">Click Here</button></td> <!--<td><button onclick="myfun(<?php echo $val['id'] ?>)">View Details</button></td>--> </tr> <?php } ?> </tbody> </table> </div><!--table-responsive--> </div><!--prog-schedule--> </div> </div><!--add-conference-right---> </div><!----> <script> function myfun(id){ // console.log(id); window.location = '<?php echo base_url("Online-course-category")?>?id='+id; } </script> <?php echo view('includes/admin-footer'); ?>