SHARE
TWEET

Untitled

a guest Jul 24th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery(document).on("click", ".btn_view_emp", function () {
  2.     var info = data_table_emp_list.page.info();
  3.     sessionStorage.pageNum = info.page;
  4.     console.log(sessionStorage.pageNum);
  5.     var data = data_table_emp_list.row(jQuery(this).parents('tr')).data();
  6.     var form = jQuery('[name="emp_selection_form"]');
  7.     var form_id_input = jQuery('[name="form_id"]');
  8.     form_id_input.val(data["form_id"]);
  9.     form.submit();
  10. })
  11.      
  12. function all_emp_list_show(){
  13.     require_once SHONIZ_INC."dao/employee.php";
  14.     require_once SHONIZ_INC."dao/old_website_web_api.php";
  15.     if(!isset($_POST["form_id"])){
  16.         $emp_list = employee::get_all_employee_list();
  17.         include SHONIZ_VIEW_BACK_END."emp_list.php";
  18.     }
  19.     else{
  20.         require_once SHONIZ_INC."dao/employee.php";
  21.         $form_id = $_POST["form_id"];
  22.         $emp_detail = employee::get_employee_form($form_id)[0];
  23.         $emp_experiance = employee::get_employee_experiance($form_id);
  24.         $emp_edu = employee::get_employee_edu($form_id);
  25.         include SHONIZ_VIEW_BACK_END."emp_form.php";
  26.     }
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top