/
home
/
efamember
/
domains
/
efa-member.com
/
public_html
/
up file
home
<!DOCTYPE html> <?php include("../config/check_session.php"); ?> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>GMG Group</title> <link rel="icon" type="image/png" href="../images/Logo.png" /> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <!-- Bootstrap 3.3.6 --> <link rel="stylesheet" href="../main/template/bootstrap/css/bootstrap.min.css"> <!-- Font Awesome --> <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css"> --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <!-- Ionicons --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css"> <!-- Theme style --> <link rel="stylesheet" href="../main/template/dist/css/AdminLTE.min.css"> <!-- AdminLTE Skins. Choose a skin from the css/skins folder instead of downloading all of them to reduce the load. --> <link rel="stylesheet" href="../main/template/dist/css/skins/_all-skins.min.css"> <!-- iCheck for checkboxes and radio inputs --> <link rel="stylesheet" href="../main/template/plugins/iCheck/all.css"> <!-- iCheck --> <link rel="stylesheet" href="../main/template/plugins/iCheck/flat/blue.css"> <!-- Morris chart --> <link rel="stylesheet" href="../main/template/plugins/morris/morris.css"> <!-- jvectormap --> <link rel="stylesheet" href="../main/template/plugins/jvectormap/jquery-jvectormap-1.2.2.css"> <!-- Date Picker --> <link rel="stylesheet" href="../main/template/plugins/datepicker/datepicker3.css"> <!-- Daterange picker --> <link rel="stylesheet" href="../main/template/plugins/daterangepicker/daterangepicker.css"> <!-- bootstrap wysihtml5 - text editor --> <link rel="stylesheet" href="../main/template/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css"> <!-- DataTables --> <link rel="stylesheet" href="../main/template/plugins/datatables/dataTables.bootstrap.css"> <!-- Select2 --> <link rel="stylesheet" href="../main/template/plugins/select2/select2.min.css"> <!-- LightBox --> <link rel="stylesheet" href="../main/template/plugins/fullcalendar/fullcalendar.min.css"> <link rel="stylesheet" href="../main/template/plugins/fullcalendar/fullcalendar.print.css" media="print"> <!-- Sweet Alert --> <link href="../main/template/plugins/sweetalert/sweetalert.css" rel="stylesheet"> <!-- <link rel="stylesheet" href="../typeahead/typeahead.css"> --> <link rel="stylesheet" href="../css/bootstrap-loading.css"> <? include("config/connect_db.php"); ?> <? include("main.class.php"); ?> <? include("main_function.php"); ?> <script> function SESSION(getID, name, link, target) { $.ajax({ type: 'GET', url: 'ajax/getSESSION.php', data: { id: getID, name: name }, dataType: 'json', success: function(data) { if (data.result == 1) { if (target == 1) { window.location.href = link; } else if (target == 2) { window.open(link, '_blank'); } } } }); } function fnCheckAllCheckBox(name, check_status) { $("[name='" + name + "']").prop('checked', check_status); } </script> </head> <body class="hold-transition skin-blue sidebar-mini sidebar-collapse"> <div class="wrapper"> <header class="main-header"> <!-- Logo --> <a href="index.php" class="logo"><span class="logo-lg"><b>GMG Group</b></span></a> <!-- Header Navbar: style can be found in header.less --> <nav class="navbar navbar-static-top"> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> </a> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <li> <a href="#" data-toggle="modal" data-target="#edit_user"><i class="fa fa-edit"></i> เปลี่ยนรหัสผ่าน</a> </li> <li> <a href="logout.php"><i class="fa fa-sign-out"></i> ออกจากระบบ</a> </li> </ul> </div> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <li> <a href="#"> <?php $sql_name = "SELECT * FROM tbl_user WHERE user_id = '".$_SESSION['gmg_user_id']."'"; $rs_name = mysql_query($sql_name); $row_name = mysql_fetch_array($rs_name); echo "สวัสดี คุณ ".$row_name['fullname']." ".$row_name['user_no']; ?> </a> </li> </ul> </div> </nav> </header> <aside class="main-sidebar"> <section class="sidebar"> <ul class="sidebar-menu"> <?php $page_name = str_replace("/system/","",$_SERVER['PHP_SELF']); $sql_announce = "select count(*) as count FROM tbl_announce WHERE announce_id not in(select announce_id from tbl_announce_user WHERE user_id = '".$_SESSION['gmg_user_id']."');"; $rs_announce = mysql_query($sql_announce) or die(mysql_error()); $row_announce = mysql_fetch_array($rs_announce); ?> <li <?php if($page_name=="index.php" ){echo "class='active'";} ?> > <a href="index.php"><i class="fa fa-home"></i> <span> หน้าหลัก </span></a> </li> <?php if($_SESSION['gmg_position_status'] == 1 || $_SESSION['gmg_position_status'] == 2){ ?> <?php //if($row_announce['count'] == 0){ ?> <?php if(1){ ?> <?php if( checkAccessByUserId($_SESSION['gmg_user_id'],'3') ) { ?> <li class="treeview <?php if($page_name == " index_form.php "){echo "class='active' ";}?>" > <a href="#"> <i class="fa fa-globe"></i> <span>คำร้อง MOU</span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <?php if ($_SESSION['gmg_user_status'] != 2 || $_SESSION['gmg_admin_status'] != 0) { ?> <li <?php if($page_name=="form_new_form.php" ){echo "class='active'";}?>> <a href="form_new_form.php"> สร้างคำร้อง MOU</a> </li> <?php } ?> <li <?php if($page_name=="index_form_pagination.php" ){echo "class='active'";}?>> <a href="index_form_pagination.php"> คำร้อง MOU</a> </li> <?php if( checkAccessByUserId($_SESSION['gmg_user_id'],'4') ) { ?> <!-- <li <?php if($page_name=="index_form_redesign.php" ){echo "class='active'";}?>> <a href="index_form_redesign.php"> คำร้อง MOU (New)</a> </li> --> <?php } ?> <?php if( checkAccessByUserId($_SESSION['gmg_user_id'],'5') ) { ?> <li <?php if($page_name=="index_mou_plan.php" ){echo "class='active'";}?>> <a href="index_mou_plan.php"> แพลน MOU</a> </li> <?php } ?> <li <?php if($page_name=="search_form.php" ){echo "class='active'";}?>> <a href="search_form.php"> ค้นหาคำร้อง MOU</a> </li> <!-- <li <?php if($page_name=="index_import_form_request.php" ){echo "class='active'";}?>> <a href="index_import_form_request.php"> คำขออนุมัตินำเข้าแรงงาน</a> </li> --> <?php if( $_SESSION['gmg_admin_status'] == '1' ) { ?> <li <?php if($page_name=="index_import_form_approve_new.php" ){echo "class='active'";}?>> <a href="index_import_form_approve_new.php"> อนุมัตินำเข้าแรงงาน</a> </li> <?php } ?> <?php if( checkAccessByUserId($_SESSION['gmg_user_id'],'5') ) { ?> <li <?php if($page_name=="index_import_form_calendar.php" ){echo "class='active'";}?>> <a href="index_import_form_calendar.php"> ปฏิทินนำเข้าแรงงาน</a> </li> <?php } ?> </ul> </li> <?php } ?> <?php if( checkAccessByUserId($_SESSION['gmg_user_id'],'1') ) { ?> <li class="treeview <?php if($page_name == "index_form_internal_pagination.php" || $page_name == "index_form_internal_setting_cost.php"){echo "class='active' ";}?>" > <a href="#"> <i class="fa fa-newspaper-o"></i> <span>คำร้องภายในประเทศ</span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li <?php if($page_name=="index_form_internal_pagination.php" ){echo "class='active'";}?>> <a href="index_form_internal_pagination.php"><i class="fa fa-newspaper-o"></i> <span>คำร้องในประเทศ</span></a> </li> <li <?php if($page_name=="index_form_internal_setting_cost.php" ){echo "class='active'";}?>> <a href="index_form_internal_setting_cost.php"><i class="fa fa-gear"></i> <span>ตั้งค่ากลุ่มค่าใช้จ่าย</span></a> </li> </ul> </li> <?php } ?> <?php if( checkAccessByUserId($_SESSION['gmg_user_id'],'2') ) { ?> <li <?php if($page_name=="index_form2.php" ){echo "class='active'";}?>> <a href="index_form2.php"><i class="fa fa-file-text-o"></i> <span> คำขอ เปลี่ยน-ต่อ</span></a> </li> <?php } ?> <li <?php if($page_name=="index_form_resign.php" ){echo "class='active'";}?>> <a href="index_form_resign.php"><i class="fa fa-file-text-o"></i> <span>เอกสารแจ้งออก</span></a> </li> <?php if ($_SESSION['gmg_user_status'] != 2 || $_SESSION['gmg_admin_status'] != 0) { ?> <li class="treeview <?php if($page_name == "index_employee_pagination.php" || $page_name == "index_employee_group.php"){echo "active ";}?>"> <a href="#"> <i class="fa fa-user-secret"></i> <span>นายจ้าง </span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li <?php if($page_name=="index_employee_pagination.php" ){echo "class='active'";}?>> <a href="index_employee_pagination.php"> นายจ้าง</a> </li> <li <?php if($page_name=="index_employee_group.php" ){echo "class='active'";}?>> <a href="index_employee_group.php"> กลุ่มนายจ้าง</a> </li> </ul> </li> <li <?php if($page_name=="index_worker_all_pagination.php" ){echo "class='active'";}?>> <a href="index_worker_all_pagination.php"><i class="fa fa-user"></i> <span> ลูกจ้าง</span></a> </li> <?php if($_SESSION['gmg_position_status'] == 2){ ?> <li class="treeview <?php if($page_name == " index_team.php " || $page_name == "index_user.php " || $page_name == "index_foreign_company.php "){echo "active ";}?>"> <a href="#"> <i class="fa fa-group"></i> <span>บุคลากร </span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li <?php if($page_name=="index_user.php" ){echo "class='active'";}?>> <a href="index_user.php"> พนักงาน</a> </li> </ul> </li> <?php } ?> <li class="treeview <?php if($page_name == " index_status_form " || $page_name == "index_sup_worker_type.php " || $page_name == "index_business_type.php " || $page_name == "index_nationality.php " || $page_name == "index_document.php " || $page_name == "index_wage.php "){echo "active ";}?>"> <a href="#"> <i class="fa fa-gear"></i> <span>ตั้งค่า </span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li <?php if($page_name=="index_business_type.php" ){echo "class='active'";}?>> <a href="index_business_type.php">ประเภทธุรกิจ </a> </li> </ul> </li> <li <?php if($page_name=="index_documents_receive.php" ){echo "class='active'";}?>> <a href="index_documents_receive.php"><i class="fa fa-envelope"></i> <span> รับเอกสาร</span></a> </li> <?php } ?> <?php } ?> <?php } ?> <?php if($_SESSION['gmg_position_status'] == 3 || $_SESSION['gmg_position_status'] == 4){ ?> <?php if( checkAccessByUserId($_SESSION['gmg_user_id'],'3') ) { ?> <li class="treeview <?php if($page_name == " index_form.php "){echo "class='active' ";}?>"> <a href="#"> <i class="fa fa-globe"></i> <span>คำร้อง MOU </span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <?php if ($_SESSION['gmg_user_status'] != 2 || $_SESSION['gmg_admin_status'] != 0) { ?> <li <?php if($page_name=="form_new_form.php" ){echo "class='active'";}?>> <a href="form_new_form.php"> สร้างคำร้อง MOU</a> </li> <?php } ?> <li <?php if($page_name=="index_form_pagination.php" ){echo "class='active'";}?>> <a href="index_form_pagination.php"> คำร้อง MOU</a> </li> <?php if( checkAccessByUserId($_SESSION['gmg_user_id'],'4') ) { ?> <!-- <li <?php if($page_name=="index_form_redesign.php" ){echo "class='active'";}?>> <a href="index_form_redesign.php"> คำร้อง MOU (New)</a> </li> --> <?php } ?> <?php if( checkAccessByUserId($_SESSION['gmg_user_id'],'5') ) { ?> <li <?php if($page_name=="index_mou_plan.php" ){echo "class='active'";}?>> <a href="index_mou_plan.php"> แพลน MOU</a> </li> <?php } ?> <li <?php if($page_name=="search_form.php" ){echo "class='active'";}?>> <a href="search_form.php"> ค้นหาคำร้อง MOU</a> </li> <!-- <li <?php if($page_name=="index_import_form_request.php" ){echo "class='active'";}?>> <a href="index_import_form_request.php"> คำขออนุมัตินำเข้าแรงงาน</a> </li> --> <?php if( $_SESSION['gmg_admin_status'] == '1' ) { ?> <li <?php if($page_name=="index_import_form_approve_new.php" ){echo "class='active'";}?>> <a href="index_import_form_approve_new.php"> อนุมัตินำเข้าแรงงาน</a> </li> <?php } ?> <?php if( checkAccessByUserId($_SESSION['gmg_user_id'],'5') ) { ?> <li <?php if($page_name=="index_import_form_calendar.php" ){echo "class='active'";}?>> <a href="index_import_form_calendar.php"> ปฏิทินนำเข้าแรงงาน</a> </li> <?php } ?> </ul> </li> <?php } ?> <?php if( checkAccessByUserId($_SESSION['gmg_user_id'],'1') ) { ?> <li class="treeview <?php if($page_name == "index_form_internal_pagination.php" || $page_name == "index_form_internal_setting_cost.php"){echo "class='active' ";}?>" > <a href="#"> <i class="fa fa-newspaper-o"></i> <span>คำร้องภายในประเทศ</span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li <?php if($page_name=="index_form_internal_pagination.php" ){echo "class='active'";}?>> <a href="index_form_internal_pagination.php"><i class="fa fa-newspaper-o"></i> <span>คำร้องในประเทศ</span></a> </li> <li <?php if($page_name=="index_form_internal_setting_cost.php" ){echo "class='active'";}?>> <a href="index_form_internal_setting_cost.php"><i class="fa fa-gear"></i> <span>ตั้งค่ากลุ่มค่าใช้จ่าย</span></a> </li> </ul> </li> <?php } ?> <?php if( checkAccessByUserId($_SESSION['gmg_user_id'],'2') ) { ?> <li <?php if($page_name=="index_form2.php" ){echo "class='active'";}?>> <a href="index_form2.php"><i class="fa fa-file-text-o"></i> <span> คำขอ เปลี่ยน-ต่อ</span></a> </li> <?php } ?> <li <?php if($page_name=="index_form_resign.php" ){echo "class='active'";}?>> <a href="index_form_resign.php"><i class="fa fa-file-text-o"></i> <span>เอกสารแจ้งออก</span></a> </li> <?php if ($_SESSION['gmg_user_status'] != 2 || $_SESSION['gmg_admin_status'] != 0) { ?> <li class="treeview <?php if($page_name == "index_employee_pagination.php" || $page_name == "index_employee_group.php"){echo "active ";}?>"> <a href="#"> <i class="fa fa-user-secret"></i> <span>นายจ้าง </span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li <?php if($page_name=="index_employee_pagination.php" ){echo "class='active'";}?>> <a href="index_employee_pagination.php"> นายจ้าง</a> </li> <li <?php if($page_name=="index_employee_group.php" ){echo "class='active'";}?>> <a href="index_employee_group.php"> กลุ่มนายจ้าง</a> </li> </ul> </li> <li class="treeview <?php if($page_name == " index_worker_all_pagination.php " || $page_name == "search_worker_all.php " ){echo "active ";}?>"> <a href="#"> <i class="fa fa-user"></i> <span>ลูกจ้าง </span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li <?php if($page_name=="index_worker_all_pagination.php" ){echo "class='active'";}?>> <a href="index_worker_all_pagination.php"> รายการลูกจ้าง</a> </li> <li <?php if($page_name=="search_worker_all.php" ){echo "class='active'";}?>> <a href="search_worker_all.php"> ค้นหาลูกจ้าง</a> </li> </ul> </li> <li class="treeview <?php if($page_name == " index_team.php " || $page_name == "index_user.php " || $page_name == "index_foreign_company.php "){echo "active ";}?>"> <a href="#"> <i class="fa fa-group"></i> <span>บุคลากร </span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li <?php if($page_name=="index_user.php" ){echo "class='active'";}?>> <a href="index_user.php"> พนักงาน</a> </li> <li <?php if($page_name=="index_team.php" ){echo "class='active'";}?>> <a href="index_team.php"> ทีม</a> </li> <li <?php if($page_name=="index_foreign_company.php" ){echo "class='active'";}?>> <a href="index_foreign_company.php"> บริษัทต่างชาติ</a> </li> <li <?php if($page_name=="index_broker.php" ){echo "class='active'";}?>> <a href="index_broker.php"> โบรกเกอร์</a> </li> </ul> </li> <li class="treeview <?php if($page_name == " index_status_form " || $page_name == "index_sup_worker_type.php " || $page_name == "index_business_type.php " || $page_name == "index_nationality.php " || $page_name == "index_document.php " || $page_name == "index_wage.php " || $page_name == "index_account.php "){echo "active ";}?>"> <a href="#"> <i class="fa fa-gear"></i> <span>ตั้งค่า </span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li <?php if($page_name=="index_business_type.php" ){echo "class='active'";}?>> <a href="index_business_type.php">ประเภทธุรกิจ </a> </li> <li <?php if($page_name=="index_document.php" ){echo "class='active'";}?>> <a href="index_document.php"> เอกสารบริษัท</a></li> <li <?php if($page_name=="index_company_information.php" ){echo "class='active'";}?>> <a href="index_company_information.php"> ข้อมูลบริษัท</a></li> <li <?php if($page_name=="index_wage.php" ){echo "class='active'";}?>> <a href="index_wage.php"> ตั่งค่าค่าแรง</a></li> <li <?if($page_name=="index_sup_worker_type.php" ){echo "class='active'";}?>> <a href="index_sup_worker_type.php"> ประเภทลูกจ้างภายใน</a></li> <li <?if($page_name=="index_nationality.php" ){echo "class='active'";}?>> <a href="index_nationality.php"> ตั่งค่าประเทศ</a></li> <li <?if($page_name=="index_status_form.php" ){echo "class='active'";}?>> <a href="index_status_form.php"> ตั่งค่าสถานะคำร้อง</a></li> <li <?if($page_name=="index_payment_period.php" ){echo "class='active'";}?>> <a href="index_payment_period.php"> งวดชำระ</a></li> <li <?if($page_name=="index_import_cost.php" ){echo "class='active'";}?>> <a href="index_import_cost.php"> ค่าใช้จ่ายในการนำเข้า</a></li> <li <?if($page_name=="index_announce.php" ){echo "class='active'";}?>> <a href="index_announce.php"> ประกาศ</a></li> <li <?if($page_name=="index_account.php" ){echo "class='active'";}?>> <a href="index_account.php"> บัญชีบริษัท</a></li> </ul> </li> <li class="treeview <?php if($page_name == " index_report_bt13_all.php " || $page_name == "index_report_nj18.php " || $page_name == "index_export_excel.php "){echo "active ";}?>"> <a href="#"> <i class="fa fa-file-text-o"></i> <span>รายงาน </span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li <?php if($page_name=="index_report_nj18.php" ){echo "class='active'";}?>> <a href="index_report_nj18.php"> นจ.18</a></li> <li <?php if($page_name=="index_report_bt13_all.php" ){echo "class='active'";}?>> <a href="index_report_bt13_all.php"> บต.13</a></li> <li <?php if($page_name=="index_export_excel.php" ){echo "class='active'";}?>> <a href="index_export_excel.php"> Export ข้อมูล</a></li> <li <?php if($page_name=="index_report_form.php" ){echo "class='active'";}?>> <a href="index_report_form.php"> คำร้อง MOU</a></li> <li <?php if($page_name=="index_report_form_internal.php" ){echo "class='active'";}?>> <a href="index_report_form_internal.php"> คำร้องภายในประเทศ</a></li> </ul> </li> <li <?php if($page_name=="index_coupon.php" ){echo "class='active'";}?>> <a href="index_coupon.php"><i class="fa fa-ticket"></i> <span> คูปองแก้ไข</span></a> </li> <li class="treeview <?php if($page_name == " form_new_document_send.php " || $page_name == "index_documents_receive.php " || $page_name == "index_documents_send.php "){echo "active ";}?>"> <a href="#"> <i class="fa fa-envelope"></i> <span>ส่งเอกสาร </span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li <?php if($page_name=="index_documents_send.php" ){echo "class='active'";}?>> <a href="index_documents_send.php"> ส่งเอกสาร</a></li> <li <?php if($page_name=="index_documents_receive.php" ){echo "class='active'";}?>> <a href="index_documents_receive.php"> รับเอกสาร</a></li> <li <?php if($page_name=="form_new_document_send.php" ){echo "class='active'";}?>> <a href="form_new_document_send.php"> สร้างเอกสาร</a></li> </ul> </li> <li <?if($page_name=="index_document_other.php" ){echo "class='active'";}?>> <a href="index_document_other.php"><i class="fa fa-file-text"></i> <span> หนังสือเรียน</span></a> </li> <li class="treeview <?php if($page_name == " index_payment.php "){echo "active ";}?>"> <a href="#"> <i class="fa fa-file-text-o"></i> <span>การเงิน </span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li <?php if($page_name=="index_payment.php" ){echo "class='active'";}?>> <a href="index_payment.php"> แจ้งเติมเงิน</a></li> <li <?php if($page_name=="index_setting_price.php" ){echo "class='active'";}?>> <a href="index_setting_price.php"> ตั้งค่า</a></li> </ul> </li> <?php } ?> <?php } ?> <?php if ($_SESSION['gmg_user_status'] != 2 || $_SESSION['gmg_admin_status'] != 0) { ?> <li class="treeview"> <a href="#"> <i class="fa fa-internet-explorer"></i> <span> เว็บภายนอก </span> <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span> </a> <ul class="treeview-menu"> <li> <a href="http://mou-namelist.000webhostapp.com" target="_blank"> ViewList</a></li> <li> <a href="https://www.gmgmou.com/" target="_blank"> เว็บบริษัท</a></li> <li> <a href="http://www.triplemou.com" target="_blank"> เว็บพันธมิตร</a></li> <li> <a href="https://sites.google.com/view/passport-vesa-workpermit/dowloads-%E0%B9%80%E0%B8%AD%E0%B8%81%E0%B8%AA%E0%B8%B2%E0%B8%A3/%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%9F%E0%B8%AD%E0%B8%A3%E0%B8%A1%E0%B8%9A%E0%B8%A3%E0%B8%A9%E0%B8%97?authuser=0" target="_blank"> แบบฟอร์ม</a></li> </ul> </li> <?php } ?> </ul> </section> <!-- /.sidebar --> </aside> <?php if( isset($_POST['submit_password']) ){ $password = recheck_query($_POST['re_password']); $password2 = recheck_query($_POST['re_password2']); $update_date = date('Y-m-d H:i:s'); $re_pass = md5($_POST['re_password']); if($password == $password2){ $sql_update1 ="UPDATE tbl_user SET password = '$re_pass' WHERE user_id = '".$_SESSION['gmg_user_id']."' "; mysql_query($sql_update1); $sql_edit = "INSERT INTO tbl_update_log (update_date, user_id, update_type, update_form) VALUES ('$update_date','".$_SESSION['gmg_user_id']."','5','".$_SESSION['gmg_user_id']."')"; mysql_query($sql_edit); session_start(); session_destroy(); echo " <script type='text/javascript'> alert('Succeed!'); window.location.href = '../index.php'; </script> "; }else{ echo " <script type='text/javascript'> alert('Succeed!'); window.location.href = '$page_name'; </script> "; } } ?> <form class="" action="" name="form5" method="post"> <div id="edit_user" class="modal fade" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> </div> <div class="modal-body"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label>รหัสผ่านใหม่ <font color="red">**</font></label> <input type="password" class="form-control" name="re_password" id="password" placeholder="รหัสผ่านใหม่"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label>รหัสผ่านใหม่ (อีกครั้ง) <font color="red">**</font></label> <input type="password" class="form-control" name="re_password2" id="password2" placeholder="รหัสผ่านใหม่ (อีกครั้ง)"> </div> </div> </div> </div> <div class="modal-footer"> <div class="col-md-12"> <button type="submit" class="btn btn-warning" name="submit_password">ยืนยัน</button> <button type="button" class="btn btn-danger" data-dismiss="modal">ยกเลิก</button> </div> </div> </div> </div> </div> </form>