$obj1 = new tasks(); $tid = intval($_REQUEST['id']); $obj1->finish_task($tid); echo '<div id="divStatus" class="success"> Task Completed <span class="ti-check-box" ></span></div> '; } break; case 9: if (isset($_REQUEST['st'])) { include_once 'tasks.php'; session_start(); $obj = new tasks(); $status = $_REQUEST['st']; $status .= ""; if ($isadmin) { $obj->get_task_by_status($status); } else { $obj->get_task_by_status_id($status, $user_id); } $row = $obj->fetch(); $tid = $row['task_id']; if ($tid == 0) { echo '<div>No Tasks </div>'; } else { if ($isadmin) { echo '<div id="divContent">'; echo '<table id="tableExample" class="reportTable">'; echo "<tr><th>Task</th><th>Assigned To</th>\n <th>Priority</th><th>Task Status </th>\n <th>Due Date</th></tr>"; $i = 0; while ($row) { $fn = $row['nurse_fname'];