<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_POST['user_id']; $password = $_POST['password']; $password = md5($password); $modifier = $_SESSION["user"]; // updation $column = array('password', 'modified_by'); $value = array("{$password}", "{$modifier}"); $condition_column = array('user_id'); $condition_value = array("{$user_id}"); $update = new crud($conn, 'login_details', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('User Password has been updated', '../../pages/change-password.php');
$modifier = $_SESSION["user"]; // File processing $ext_array = array("pdf"); $mime_array = array("application/pdf"); $location = "../../media/reimbursement-form/"; $file = new uploader(); if (is_uploaded_file($_FILES['file']['tmp_name'])) { if ($file->upload_validate($_FILES['file'], $ext_array, $mime_array) == true) { $file_name = $file->upload($_FILES['file'], $location); $column = array('form_name', 'form', 'uploaded_by', 'modified_by'); $value = array("{$form_name}", "{$file_name}", "{$modifier}", "{$modifier}"); $condition_column = array('form_id'); $condition_value = array("{$form_id}"); $update = new crud($conn, 'reimbursement_forms', $column, $value); $update->update($condition_column, $condition_value); $move->moveWithAlert('Reimbursement form has been updated', '../pages/addreimbursement.php'); } else { $move = new alert_redirect(); $move->moveWithAlert('File Extension not valid', '../pages/addreimbursement.php'); } } else { $column = array('form_name', 'modified_by'); $value = array("{$form_name}", "{$modifier}"); $condition_column = array('form_id'); $condition_value = array("{$form_id}"); $update = new crud($conn, 'reimbursement_forms', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('Reimbursement form has been updated', '../../pages/edit-reimbursement.php'); } // updation
<?php include "../../connection/phpmysqlconnect.php"; include "../../lib/CRUD_lib.php"; include "../../lib/miss_lib.php"; // post data // File processing $ext_array = array("jpeg", "jpg", "png"); $mime_array = array("image/jpeg", "image/jpg", "image/png"); $location = "../../media/featured_product/"; $image = new uploader(); if ($image->upload_validate($_FILES['files'], $ext_array, $mime_array) == true) { $image_name = $image->upload($_FILES['files'], $location); $column = array('logo'); $value = array($image_name); $insert = new crud($conn, 'featured-product', $column, $value); $insert->insert(); $move = new alert_redirect(); $move->moveWithAlert('Logo has been added', '../../pages/distributor-logo.php'); } $move->moveWithAlert('Error in uploading image', '../../pages/distributor-logo.php');
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_GET['id']; // updation $column = array('status'); $value = array("0"); $condition_column = array('user_id'); $condition_value = array("{$user_id}"); $update = new crud($conn, 'customer_details', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('User Customer has been delete', '../../pages/edit-customer.php');
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_GET['id']; // updation $column = array('status'); $value = array("0"); $condition_column = array('user_id'); $condition_value = array("{$user_id}"); $update = new crud($conn, 'administrator_details', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('User Administrator has been delete', '../../pages/edit-admin.php');
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $slip_id = $_GET['id']; // updation $column = array('status'); $value = array("0"); $condition_column = array('slip_id'); $condition_value = array("{$slip_id}"); $update = new crud($conn, 'salary_slip', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('Salary Slip has been deleted', '../../pages/edit-salary.php');
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_POST['user_id']; $name = $_POST['name']; $role = 'employee'; $designation = $_POST['designation']; $password = $_POST['password']; $password = md5($password); $modifier = $_SESSION["user"]; // insertion $column = array('user_id', 'name', 'designation', 'added_by', 'modified_by'); $value = array("{$user_id}", "{$name}", "{$designation}", "{$modifier}", "{$modifier}"); $insert = new crud($conn, 'employee_details', $column, $value); $insert->insert(); $column1 = array('user_id', 'role', 'password', 'added_by', 'modified_by'); $value1 = array("{$user_id}", "{$role}", "{$password}", "{$modifier}", "{$modifier}"); $insert1 = new crud($conn, 'login_details', $column1, $value1); $insert1->insert(); $move = new alert_redirect(); $move->moveWithAlert('New User Employee has been added', '../../pages/add-employee.php');
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_GET['id']; // updation $column = array('status'); $value = array("0"); $condition_column = array('user_id'); $condition_value = array("{$user_id}"); $update = new crud($conn, 'distributors_details', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('User Distributor has been delete', '../../pages/edit-distributor.php');
$year = $_POST['year']; $modifier = $_SESSION["user"]; // File processing $ext_array = array("xls", "csv", "xlsx"); $mime_array = array("application/vnd.ms-excel", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); $location = "../../media/performance-sheet/"; $file = new uploader(); if (is_uploaded_file($_FILES['file']['tmp_name'])) { if ($file->upload_validate($_FILES['file'], $ext_array, $mime_array) == true) { $file_name = $file->upload($_FILES['file'], $location); $column = array('performance_sheet', 'user_id', 'month', 'year', 'modified_by'); $value = array("{$file_name}", "{$user_id}", "{$month}", "{$year}", "{$modifier}"); $condition_column = array('$performance_sheet_id'); $condition_value = array("{$performance_sheet_id}"); $update = new crud($conn, 'employee_performance', $column, $value); $update->update($condition_column, $condition_value); $move->moveWithAlert('Performance Sheet has been updated', '../pages/addperformance.php'); } else { $move = new alert_redirect(); $move->moveWithAlert('File Extension not valid', '../pages/addperformance.php'); } } else { $column = array('user_id', 'month', 'year', 'modified_by'); $value = array("{$user_id}", "{$month}", "{$year}", "{$modifier}"); $condition_column = array('performance_sheet_id'); $condition_value = array("{$performance_sheet_id}"); $update = new crud($conn, 'employee_performance', $column, $value); $update->update($condition_column, $condition_value); $move->moveWithAlert('Performance Sheet has been updated', '../pages/addperformance.php'); } // updation
// included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_POST['user_id']; $month = $_POST['month']; $year = $_POST['year']; $modifier = $_SESSION["user"]; // File processing $ext_array = array("xls", "csv", "xlsx"); $mime_array = array("application/vnd.ms-excel", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); $location = "../../media/distributor-earning/"; $file = new uploader(); if (is_uploaded_file($_FILES['file']['tmp_name'])) { if ($file->upload_validate($_FILES['file'], $ext_array, $mime_array) == true) { $file_name = $file->upload($_FILES['file'], $location); // insertion $column = array('statements', 'user_id', 'month', 'year', 'uploaded_by', 'modified_by'); $value = array("{$file_name}", "{$user_id}", "{$month}", "{$year}", "{$modifier}", "{$modifier}"); $insert = new crud($conn, 'distributor_earning', $column, $value); $insert->insert(); $move = new alert_redirect(); $move->moveWithAlert('New Statement has been added', '../../pages/add-incentive.php'); } else { $move = new alert_redirect(); $move->moveWithAlert('File Extension not valid', '../../pages/add-incentive.php'); } $move = new alert_redirect(); $move->moveWithAlert('File not uploaded', '../../pages/add-incentive.php'); }
<?php include "../../connection/phpmysqlconnect.php"; include "../../lib/CRUD_lib.php"; include "../../lib/miss_lib.php"; // post data // File processing $ext_array = array("jpeg", "jpg", "png"); $mime_array = array("image/jpeg", "image/jpg", "image/png"); $location = "../../media/slider/"; $image = new uploader(); echo $_FILES['image']['name']; if ($image->upload_validate($_FILES['image'], $ext_array, $mime_array) == true) { $image_name = $image->upload($_FILES['image'], $location); $column = array('slider'); $value = array($image_name); $insert = new crud($conn, 'slider', $column, $value); $insert->insert(); $move = new alert_redirect(); $move->moveWithAlert('Slider has been added', '../../pages/slider.php'); } $move = new alert_redirect(); $move->moveWithAlert('Error in uploading image', '../../pages/slider.php');
session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $form_name = $_POST['form_name']; $modifier = $_SESSION["user"]; // File processing $ext_array = array("pdf"); $mime_array = array("application/pdf"); $location = "../../media/reimbursement-form/"; $file = new uploader(); if (is_uploaded_file($_FILES['file']['tmp_name'])) { if ($file->upload_validate($_FILES['file'], $ext_array, $mime_array) == true) { $file_name = $file->upload($_FILES['file'], $location); // insertion $column = array('form_name', 'form', 'uploaded_by', 'modified_by'); $value = array("{$form_name}", "{$file_name}", "{$modifier}", "{$modifier}"); $insert = new crud($conn, 'reimbursement_forms', $column, $value); $insert->insert(); $move = new alert_redirect(); $move->moveWithAlert('New Reimbursement Form has been added', '../../pages/add-reimbursement.php'); } else { $move = new alert_redirect(); $move->moveWithAlert('File Extension not valid', '../../pages/add-reimbursement.php'); } $move = new alert_redirect(); $move->moveWithAlert('File not uploaded', '../../pages/add-reimbursement.php'); }
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_POST['user_id']; $name = $_POST['name']; $date_of_enrollment = $_POST['date_of_enrollment']; $email = $_POST['email']; $mobile = $_POST['mobile']; $landline = $_POST['landline']; $business_name = $_POST['business_name']; $business_type = $_POST['business_type']; $modifier = $_SESSION["user"]; // updation $column = array('name', 'date_of_enrollment', 'email_id', 'mobile', 'landline', 'business_name', 'business_type', 'added_by', 'modified_by'); $value = array("{$name}", "{$date_of_enrollment}", "{$email}", "{$mobile}", "{$landline}", "{$business_name}", "{$business_type}", "{$modifier}", "{$modifier}"); $condition_column = array('user_id'); $condition_value = array("{$user_id}"); $update = new crud($conn, 'distributors_details', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('User Distributor has been updated', '../../pages/edit-distributor.php');
// included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_POST['user_id']; $month = $_POST['month']; $year = $_POST['year']; $modifier = $_SESSION["user"]; // File processing $ext_array = array("xls", "csv", "xlsx"); $mime_array = array("application/vnd.ms-excel", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); $location = "../../media/salary-slip/"; $file = new uploader(); if (is_uploaded_file($_FILES['file']['tmp_name'])) { if ($file->upload_validate($_FILES['file'], $ext_array, $mime_array) == true) { $file_name = $file->upload($_FILES['file'], $location); // insertion $column = array('slip_name', 'user_id', 'month', 'year', 'uploaded_by', 'modified_by'); $value = array("{$file_name}", "{$user_id}", "{$month}", "{$year}", "{$modifier}", "{$modifier}"); $insert = new crud($conn, 'salary_slip', $column, $value); $insert->insert(); $move = new alert_redirect(); $move->moveWithAlert('New Salary Slip has been added', '../../pages/add-salary.php'); } else { $move = new alert_redirect(); $move->moveWithAlert('File Extension not valid', '../../pages/add-salary.php'); } $move = new alert_redirect(); $move->moveWithAlert('File not uploaded', '../../pages/add-salary.php'); }
// File processing $ext_array = array("xls", "csv", "xlsx"); $mime_array = array("application/vnd.ms-excel", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); $location = "../../media/distributor-earning/"; $file = new uploader(); if (is_uploaded_file($_FILES['file']['tmp_name'])) { if ($file->upload_validate($_FILES['file'], $ext_array, $mime_array) == true) { $file_name = $file->upload($_FILES['file'], $location); $column = array('statements', 'user_id', 'month', 'year', 'modified_by'); $value = array("{$file_name}", "{$user_id}", "{$month}", "{$year}", "{$modifier}"); $condition_column = array('statement_id'); $condition_value = array("{$statement_id}"); $update = new crud($conn, 'distributor_earning', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('Distributor Statement has been updated', '../../pages/edit-incentive.php'); } else { $move = new alert_redirect(); $move->moveWithAlert('File Extension not valid', '../../pages/edit-incentive.php'); } } else { $column = array('user_id', 'month', 'year', 'modified_by'); $value = array("{$user_id}", "{$month}", "{$year}", "{$modifier}"); $condition_column = array('statement_id'); $condition_value = array("{$statement_id}"); $update = new crud($conn, 'distributor_earning', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('Distributor Statement has been updated', '../pages/addstatement.php'); } // updation
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_POST['user_id']; $name = $_POST['name']; $role = 'customer'; $date_of_enrollment = $_POST['date_of_enrollment']; $email = $_POST['email']; $mobile = $_POST['mobile']; $landline = $_POST['landline']; $password = $_POST['password']; $password = md5($password); $modifier = $_SESSION["user"]; // insertion $column = array('user_id', 'name', 'date_of_enrollment', 'email_id', 'mobile', 'landline', 'added_by', 'modified_by'); $value = array("{$user_id}", "{$name}", "{$date_of_enrollment}", "{$email}", "{$mobile}", "{$landline}", "{$modifier}", "{$modifier}"); $insert = new crud($conn, 'customer_details', $column, $value); $insert->insert(); $column1 = array('user_id', 'role', 'password', 'added_by', 'modified_by'); $value1 = array("{$user_id}", "{$role}", "{$password}", "{$modifier}", "{$modifier}"); $insert1 = new crud($conn, 'login_details', $column1, $value1); $insert1->insert(); $move = new alert_redirect(); $move->moveWithAlert('New User Customer has been added', '../../pages/add-customer.php');
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $modifier = $_SESSION["user"]; // File processing $ext_array = array("pdf"); $mime_array = array("application/pdf"); $location = "../../media/form-16/"; $file = new uploader(); if (is_uploaded_file($_FILES['file']['tmp_name'])) { if ($file->upload_validate($_FILES['file'], $ext_array, $mime_array) == true) { $file_name = $file->upload($_FILES['file'], $location); $column = array('form_16', 'modified_by'); $value = array("{$file_name}", "{$modifier}"); $condition_column = array('form_id'); $condition_value = array("1"); $update = new crud($conn, 'form_16', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('Form 16 has been updated', '../../pages/form-16.php'); } else { $move = new alert_redirect(); $move->moveWithAlert('File Extension not valid', '../../pages/form-16.php'); } } // updation
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $statement_id = $_GET['id']; // updation $column = array('status'); $value = array("0"); $condition_column = array('statement_id'); $condition_value = array("{$statement_id}"); $update = new crud($conn, 'distributor_earning', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('Statement has been delete', '../../pages/edit-incentive.php');
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_POST['user_id']; $name = $_POST['name']; $date_of_enrollment = $_POST['date_of_enrollment']; $email = $_POST['email']; $mobile = $_POST['mobile']; $landline = $_POST['landline']; $modifier = $_SESSION["user"]; // updation $column = array('name', 'date_of_enrollment', 'email_id', 'mobile', 'landline', 'modified_by'); $value = array("{$name}", "{$date_of_enrollment}", "{$email}", "{$mobile}", "{$landline}", "{$modifier}"); $condition_column = array('user_id'); $condition_value = array("{$user_id}"); $update = new crud($conn, 'customer_details', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('User Customer has been updated', '../../pages/edit-customer.php');
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $modifier = $_SESSION["user"]; // File processing $ext_array = array("pdf"); $mime_array = array("application/pdf"); $location = "../../media/staff-handbook/"; $file = new uploader(); if (is_uploaded_file($_FILES['file']['tmp_name'])) { if ($file->upload_validate($_FILES['file'], $ext_array, $mime_array) == true) { $file_name = $file->upload($_FILES['file'], $location); $column = array('staff_handbook', 'modified_by'); $value = array("{$file_name}", "{$modifier}"); $condition_column = array('id'); $condition_value = array("1"); $update = new crud($conn, 'staff_handbook', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('Staff Handbook has been updated', '../../pages/staff-handbook.php'); } else { $move = new alert_redirect(); $move->moveWithAlert('File Extension not valid', '../../pages/staff-handbook.php'); } } // updation
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_POST['user_id']; $name = $_POST['name']; $role = 'distributor'; $date_of_enrollment = $_POST['date_of_enrollment']; $email = $_POST['email']; $mobile = $_POST['mobile']; $landline = $_POST['landline']; $business_name = $_POST['business_name']; $business_type = $_POST['business_type']; $password = $_POST['password']; $password = md5($password); $modifier = $_SESSION["user"]; // insertion $column = array('user_id', 'name', 'date_of_enrollment', 'email_id', 'mobile', 'landline', 'business_name', 'business_type', 'added_by', 'modified_by'); $value = array("{$user_id}", "{$name}", "{$date_of_enrollment}", "{$email}", "{$mobile}", "{$landline}", "{$business_name}", "{$business_type}", "{$modifier}", "{$modifier}"); $insert = new crud($conn, 'distributors_details', $column, $value); $insert->insert(); $column1 = array('user_id', 'role', 'password', 'added_by', 'modified_by'); $value1 = array("{$user_id}", "{$role}", "{$password}", "{$modifier}", "{$modifier}"); $insert1 = new crud($conn, 'login_details', $column1, $value1); $insert1->insert(); $move = new alert_redirect(); $move->moveWithAlert('New User Distributor has been added', '../../pages/add-distributor.php');
// included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_POST['user_id']; $month = $_POST['month']; $year = $_POST['year']; $modifier = $_SESSION["user"]; // File processing $ext_array = array("xls", "csv", "xlsx"); $mime_array = array("application/vnd.ms-excel", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); $location = "../../media/performance-sheet/"; $file = new uploader(); if (is_uploaded_file($_FILES['file']['tmp_name'])) { if ($file->upload_validate($_FILES['file'], $ext_array, $mime_array) == true) { $file_name = $file->upload($_FILES['file'], $location); // insertion $column = array('performance_sheet', 'user_id', 'month', 'year', 'uploaded_by', 'modified_by'); $value = array("{$file_name}", "{$user_id}", "{$month}", "{$year}", "{$modifier}", "{$modifier}"); $insert = new crud($conn, 'employee_performance', $column, $value); $insert->insert(); $move = new alert_redirect(); $move->moveWithAlert('New Performance Sheet has been added', '../pages/addperformance.php'); } else { $move = new alert_redirect(); $move->moveWithAlert('File Extension not valid', '../pages/addperformance.php'); } $move = new alert_redirect(); $move->moveWithAlert('File not uploaded', '../pages/addperformance.php'); }
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_POST['user_id']; $name = $_POST['name']; $designation = $_POST['designation']; $modifier = $_SESSION["user"]; // updation $column = array('name', 'designation', 'added_by', 'modified_by'); $value = array("{$name}", "{$designation}", "{$modifier}", "{$modifier}"); $condition_column = array('user_id'); $condition_value = array("{$user_id}"); $update = new crud($conn, 'employee_details', $column, $value); $update->update($condition_column, $condition_value); $move = new alert_redirect(); $move->moveWithAlert('User Employee has been updated', '../../pages/edit-employee.php');
<!-- FastClick --> <script src="../../plugins/fastclick/fastclick.min.js"></script> <!-- AdminLTE App --> <script src="../../dist/js/app.min.js"></script> <!-- AdminLTE for demo purposes --> <script src="../../dist/js/demo.js"></script> <script> function validate(){ var password = $("#password").val(); var password_check = $("#password_check").val(); if(password==password_check){ return true; }else{ alert("Passwords dont match"); $("#password").val(""); $("#password_check").val(""); return false; } } </script> </body> <?php } else { $move = new alert_redirect(); $move->move('../../../404.html'); } ?> </html>
<?php session_start(); // included files include "../../../connection/phpmysqlconnect.php"; include "../../../library/CRUD_lib.php"; include "../../../library/miss_lib.php"; // post data $user_id = $_POST['user_id']; $name = $_POST['name']; $role = 'administrator'; $designation = $_POST['designation']; $password = $_POST['password']; $password = md5($password); $modifier = $_SESSION["user"]; // insertion $column = array('user_id', 'name', 'designation', 'added_by', 'modified_by'); $value = array("{$user_id}", "{$name}", "{$designation}", "{$modifier}", "{$modifier}"); $insert = new crud($conn, 'administrator_details', $column, $value); $insert->insert(); $column1 = array('user_id', 'role', 'password', 'added_by', 'modified_by'); $value1 = array("{$user_id}", "{$role}", "{$password}", "{$modifier}", "{$modifier}"); $insert1 = new crud($conn, 'login_details', $column1, $value1); $insert1->insert(); $move = new alert_redirect(); $move->moveWithAlert('New User Administrator has been added', '../../pages/add-admin.php');