<?php require_once "./includes/initialize.php"; session_start(); $tf_id = $_SESSION['taskforce']; $emp = $_SESSION['tfemp']; $bdm_id = $_GET['bdm']; $doctor = doctor::list_doctor($bdm_id); if (isset($_POST['sub'])) { for ($i = 0; $i < count($_POST['docid']); $i++) { $exitrecord = tf_doc::find_by_id($_POST['docid'][$i], $tf_id); if (empty($exitrecord)) { $field_array = array('doc_id' => $_POST['docid'][$i], 'tf_id' => $tf_id, 'created_at' => date('Y:m:d H:i:s'), 'emp_id' => $emp); $tf_doc = new tf_doc(); $tf_doc->create($field_array); flashMessage('Added Successfully', 'success'); } } } require_once './header.php'; ?> <style> .bgc-fff { background-color: #9DC7E0!important; } .box-shad { -webkit-box-shadow: 1px 1px 0 rgba(0,0,0,.2); box-shadow: 1px 1px 0 rgba(0,0,0,.2); } .brdr { border: 1px solid #ededed;
<?php require_once "./includes/initialize.php"; session_start(); $tf_id = $_SESSION['taskforce']; $doctor = tf_doc::list_doctor($tf_id); if (isset($_GET['delete_doc'])) { $field_array = array('doc_id' => $_GET['delete_doc']); // $field_array = array('id' => $id); $del_doc = new tf_doc(); $del_doc->delete($field_array, 'tf_doc'); flashMessage(' Deleted Successfully.', 'Success'); } require_once './header.php'; if (isset($_SESSION['message'])) { echo $_SESSION['message']; unset($_SESSION['message']); } ?> <style> .bgc-fff { background-color: #9DC7E0!important; } .box-shad { -webkit-box-shadow: 1px 1px 0 rgba(0,0,0,.2); box-shadow: 1px 1px 0 rgba(0,0,0,.2); } .brdr { border: 1px solid #ededed; }