getConnection(); // Check admin permission $usr = new user($db); $adminpermission = $usr->check_admin_permission($_SESSION["user"]); // initialize object $off = new office($db); $stmtoff = $off->off_read(); $numoff = $stmtoff->rowCount(); $emp = new employee($db); $totalEmp = $emp->count_all_empid(); $usr = new user($db); $stmtusr = $usr->user_read(); $numusr = $stmtusr->rowCount(); $usr->userbranchcode = $_POST['brachcode']; $usr->mobile = $_POST['mobile']; $usr->username = $_POST['user_name']; $usr->useremail = $_POST['user_email']; $usr->userpass = $_POST['user_pass']; $usr->userstatus = "active"; $setng = new setting($db); $stmtsetng = $setng->setting_read(); //$numsetng = $stmtusr->rowCount(); $setng->gmap_api = $_POST['setting_gmapid']; if(isset($_POST['submit']) && isset($_POST['form1submission'])){ // Update the attendance if($usr->user_create()){ header('Location: ' . $_SERVER['PHP_SELF'] . '?success=true'); exit(); }else{ echo ("Failed Submission."); } } if(isset($_POST['submit']) && isset($_POST['form2submission'])){ if($setng->setting_create()){ //header('Location: dashboard.employee.qr.php'); header('Location: dashboard.success.php'); }else{ // tell the user echo ("Failed Submission."); } } ?> STATS
Total Branches :
Total Employees :
Total Users :
User Is Created Successfully.
"; } ?> User Deleted Successfully.
"; } ?>
0): ?>
fetch(PDO::FETCH_ASSOC)): ?>
Branch Code Mobile No User Name Email Action
" onclick="return confirm('Are you sure you want to delete this user?')" class="btn btn-sm btn-danger">
No results to display!
Add New User
Google Map Setting
Download Sample Excel/CSV