								<div class="card">
                                    <?php 
                                    $limit =100;
                                    $offset = RMC($_GET['m']);
                                    if($offset<1){
                                        $offset = 0;
                                        $num = 1;
                                    }else{
                                        $num=$offset+1;
                                    }
									
									//echo $i_url;
 									if(strpos($i_url, 'comments-view') !== false){
										$sql4="SELECT * from j_courses_comments WHERE j_deleted < 1 order by j_id desc"; //check 
										$result4 = runSQL($sql4);
										$total = mysqli_num_rows($result4);
										//
										$sql4="SELECT * from j_courses_comments WHERE j_deleted < 1 order by j_id desc limit $limit offset $offset"; //check 
										$result4 = runSQL($sql4);
										$count = mysqli_num_rows($result4); 
									}


                                    
                                    if($count>0){
                                    ?>
                                    <div class="card-body">
                                        <p>Count: <?php echo number_format($total); ?></p>
                                         <div style="cursor:pointer; margin-bottom:10px;" id="searchAnything"> 
                                            <span class="badge badge-pill badge-primary font-size-12">Search Anything</span>
                                        </div>
                                        <div style="cursor:pointer;display:none; margin-bottom:10px;" id="hide_searchAnything"> 
                                            <span class="badge badge-pill badge-danger font-size-12">Hide Search</span>
                                        </div>

                                        <div id="my_saearch" style="display:none;">
                                             <form method="POST" action="" id="form" enctype="multipart/form-data">
                                                 <div class="form-row">
													<div class="form-group" style="display:none;">
                                                          <div class="input-affix m-b-2">
                                                             <input autocomplete="off" type="text" value="<?php echo $i_url; ?>" class="form-control rMe" name="url"/>
                                                         </div>
                                                    </div>
                                                    <div class="form-group col-md-6">
                                                          <div class="input-affix m-b-2">
                                                             <input autocomplete="off" type="text" placeholder="Search" class="form-control rMe" name="search"/>
                                                         </div>
                                                    </div>


                                                    <div class="form-group col-md-3">
                                                          <div class="input-affix m-b-2">
                                                                <button id="submit"  name="submit" class="btn btn-primary btn-block">Search</button>
                                                         </div>
                                                    </div>
                                                </div>
                                             </form>
                                            <div id="formresult"></div>
                                        </div>
                                        <!--table-responsive-->
                                         <div class="table-responsive m-t-10 my-content" id="my-content">
                                            <table style="font-size:11px;" class="table table-hover table-bordered">
                                                <thead>
                                                    <tr>
                                                        <th>S/N</th>
                                                         <th>Reference ID</th>
                                                         <th>Course</th>
                                                         <th>Comment</th>
                                                         <th>Status</th>
                                                           <th>Date</th>
                                                          <th>Menu </th>
                                                      </tr>
                                                </thead>
                                                <tbody>
                                                    <?php
                                                    while ($row = mysqli_fetch_array($result4)){
                                                    $sql44="SELECT * from j_courses WHERE j_id='".$row['j_course_id']."'"; //check 
                                                    $result44 = runSQL($sql44);
                                                    $data44 = mysqli_fetch_array($result44);
                                                    $course = $data44['j_title'];
                                                    $course_ref = $data44['j_transact_id'];
                                                    ?>
                                                        
                                                    <tr id="i<?php echo $row['j_id']; ?>">
                                                        <td> <?php echo $num++; ?></td>
                                                        <td> <?php echo $row['j_transact_id']; ?></td>
                                                        <td> <?php echo $course; ?></td>
                                                        <td> <?php echo $row['j_desc']; ?></td>
                                                        <td> 
                                                            <?php 
                                                            if($row['j_status'] > 0){ echo "Enabled"; }else{ echo "Disabled";  }
                                                            ?>
                                                        </td>
                                                        <td> <?php echo FULL_DATE($row['j_date']); ?></td>
                                                        
                                                        <td>
														
															<div class="btn-group" role="group">
																<button id="btnGroupDrop1" type="button" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
																  Option
																</button>
																<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
                                                                
                                                                <a class="dropdown-item" href="<?php echo $dir; ?>comments-view/enable.php?t_id=<?php echo base64_encode($row['j_id']);?>&b_url=<?php echo $url;?>">
                                                                    <?php 
                                                                    if($row['j_status'] > 0){ echo "Disable"; }else{ echo "Enable";  }
                                                                    ?>
                                                                    </a>
                                                                    
 																 <div class="dropdown-divider"></div>
                                                                    
																  <a class="dropdown-item" href="<?php echo $dir; ?>comments-view/del.php?t_id=<?php echo base64_encode($row['j_id']);?>&b_url=<?php echo $url;?>">Delete</a>
																</div>
															</div>
                                                            
                                                        </td>
											
                                                        
													
                                                        
                                                    </tr>
                                                    <?php } ?>

                                                </tbody>
                                            </table>
                                            <p align="center">
                                                <?php if($offset+$limit < $total){ ?>
                                                <a class="btn btn-sm btn-default" href="?m=<?php echo $offset+$limit; ?>">Load Next<i class="fa fa-chevron-right text-2 ml-2"></i></a>
                                                <?php } ?>
                                                &nbsp; &nbsp;
                                                <?php if($offset > 0){ ?>
                                                <a class="btn btn-sm btn-default" href="?m=<?php echo $offset-$limit; ?>"><i class="fa fa-chevron-left text-2 ml-2"></i>  Previous</a>
                                                <?php } ?>
                                            </p>
                                        </div>
                                        
                                        
                                    </div>



                                    <?php }else{ //no record ?> 
                                    <div class="card-body">
                                        <div class="container">
                                            <div class="row">
                                                 <div class="col-md-12" style="text-align:center;">
                                                    <div class="avatar avatar-image avatar-lg avatar-red">
                                                        <i class="fa fa-times"></i>
                                                     </div>
                                                     <p class="text-center">No record found.</p>
                                                      
                                                 </div>
                                            </div>

                                        </div>
                                    </div>
                                    <?php } ?>

                                </div>