public function save() { $status_id = $this->position_ms_model->save(); if ($status_id) { echo $status_id; redirect(admin_ms_site('position/retrieve/' . num_param_url_encode($status_id) . '/success')); } else { redirect(admin_ms_site('position/action_error')); } }
public function save() { $status_id = $this->image_progress_daily_report_tr_model->save(); if ($status_id) { echo $status_id; redirect(admin_tr_site('imageprogressdailyreport/retrieve/' . num_param_url_encode($status_id) . '/success')); } else { redirect(admin_tr_site('imageprogressdailyreport/action_error')); } }
public function save() { $status_id = $this->time_sheet_tr_model->save(); if ($status_id) { echo $status_id; redirect(admin_tr_site('timesheet/retrieve/' . num_param_url_encode($status_id) . '/success')); } else { redirect(admin_tr_site('timesheet/action_error')); } }
public function save() { $status_id = $this->employee_job_title_tr_model->save(); if ($status_id) { echo $status_id; redirect(admin_tr_site('employeejobtitle/retrieve/' . num_param_url_encode($status_id) . '/success')); } else { redirect(admin_tr_site('employeejobtitle/action_error')); } }
public function save() { $status_id = $this->address_tr_model->save(); $this->project_ms_model->setAddr_id($status_id); $status_id = $this->project_ms_model->save(); if ($status_id) { echo $status_id; redirect(admin_ms_site('project/retrieve/' . num_param_url_encode($status_id) . '/success')); } else { redirect(admin_ms_site('project/action_error')); } }
?> </div> <?php } ?> <div class="row"> <div class="col-lg-6"> <form role="form" action="<?php echo admin_tr_site('department/save'); ?> " method="post"> <?php if (isset($dep_id)) { ?> <input type="hidden" id="dep_id" name="dep_id" value="<?php echo num_param_url_encode($dep_id); ?> "> <?php } ?> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <tbody> <tr class="odd gradeA"> <td align="center"> company_id </td> <td> <input class="form-control" placeholder="กรอกcompany_id" name="company_id" id="company_id" value="{company_id}" type="text" required="" autofocus=""></td> </tr>
?> </div> <?php } ?> <div class="row"> <div class="col-lg-6"> <form role="form" action="<?php echo admin_ms_site('companyholidays/save'); ?> " method="post"> <?php if (isset($holiday_id)) { ?> <input type="hidden" id="holiday_id" name="holiday_id" value="<?php echo num_param_url_encode($holiday_id); ?> "> <?php } ?> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <tbody> <tr class="odd gradeA"> <td align="center"> <?php echo_line('company_holiday_date'); ?> </td> <td>
<a href="<?php echo admin_ms_site('department/retrieve/' . num_param_url_encode($department->dep_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('department/modify_form/' . num_param_url_encode($department->dep_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($department->dep_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
?> </div> <?php } ?> <div class="row"> <div class="col-lg-6"> <form role="form" action="<?php echo admin_ms_site('position/save'); ?> " method="post"> <?php if (isset($position_id)) { ?> <input type="hidden" id="position_id" name="position_id" value="<?php echo num_param_url_encode($position_id); ?> "> <?php } ?> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <tbody> <tr class="odd gradeA"> <td align="center"> position_name </td> <td> <input class="form-control" placeholder="กรอกposition_name" name="position_name" id="position_name" value="{position_name}" type="text" required="" autofocus=""></td> </tr>
?> </div> <?php } ?> <div class="row"> <div class="col-lg-6"> <form role="form" action="<?php echo admin_tr_site('timesheet/save'); ?> " method="post"> <?php if (isset($time_sheet_id)) { ?> <input type="hidden" id="time_sheet_id" name="time_sheet_id" value="<?php echo num_param_url_encode($time_sheet_id); ?> "> <?php } ?> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <tbody> <tr class="odd gradeA"> <td align="center"> emp_id </td> <td> <input class="form-control" placeholder="กรอกemp_id" name="emp_id" id="emp_id" value="{emp_id}" type="text" required="" autofocus=""></td> </tr>
<a href="<?php echo admin_ms_site('province/retrieve/' . num_param_url_encode($province->province_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('province/modify_form/' . num_param_url_encode($province->province_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($province->province_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
<a href="<?php echo admin_ms_site('teammember/retrieve/' . num_param_url_encode($teammember->team_member_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('teammember/modify_form/' . num_param_url_encode($teammember->team_member_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($teammember->team_member_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
<a href="<?php echo admin_ms_site('project/retrieve/' . num_param_url_encode($project->project_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('project/modify_form/' . num_param_url_encode($project->project_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($project->project_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
?> </div> <?php } ?> <div class="row"> <div class="col-lg-6"> <form role="form" action="<?php echo admin_tr_site('user/save'); ?> " method="post"> <?php if (isset($user_id)) { ?> <input type="hidden" id="user_id" name="user_id" value="<?php echo num_param_url_encode($user_id); ?> "> <?php } ?> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <tbody> <tr class="odd gradeA"> <td align="center"> employee_emp_id </td> <td> <input class="form-control" placeholder="กรอกemployee_emp_id" name="employee_emp_id" id="employee_emp_id" value="{employee_emp_id}" type="text" required="" autofocus=""></td> </tr>
?> </div> <?php } ?> <div class="row"> <div class="col-lg-6"> <form role="form" action="<?php echo admin_ms_site('role/save'); ?> " method="post"> <?php if (isset($role_id)) { ?> <input type="hidden" id="role_id" name="role_id" value="<?php echo num_param_url_encode($role_id); ?> "> <?php } ?> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <tbody> <tr class="odd gradeA"> <td align="center"> role_name </td> <td> <input class="form-control" placeholder="กรอกrole_name" name="role_name" id="role_name" value="{role_name}" type="text" required="" autofocus=""></td> </tr>
<a href="<?php echo admin_ms_site('jobtitle/retrieve/' . num_param_url_encode($jobtitle->job_title_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('jobtitle/modify_form/' . num_param_url_encode($jobtitle->job_title_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($jobtitle->job_title_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
<a href="<?php echo admin_ms_site('companyholidays/retrieve/' . num_param_url_encode($companyholidays->holiday_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('companyholidays/modify_form/' . num_param_url_encode($companyholidays->holiday_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($companyholidays->holiday_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
?> '); $("#dep_id").val('<?php echo num_param_url_encode($dep_id); ?> '); $("#position_id").val('<?php echo num_param_url_encode($position_id); ?> '); $("#province_id").val('<?php echo num_param_url_encode($province_id); ?> '); $("#province_id2").val('<?php echo num_param_url_encode($province_id2); ?> '); if('{image}' != ''){ $("#userfile").removeAttr('required'); } if('{gender}' != 'm'){ $("#m").removeAttr('checked'); $("#f").attr( 'checked', true ); } <?php } ?>
<a href="<?php echo admin_ms_site('company/retrieve/' . num_param_url_encode($company->company_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('company/modify_form/' . num_param_url_encode($company->company_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($company->company_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
<a href="<?php echo admin_ms_site('imageprogressdailyreport/retrieve/' . num_param_url_encode($imageprogressdailyreport->image_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('imageprogressdailyreport/modify_form/' . num_param_url_encode($imageprogressdailyreport->image_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($imageprogressdailyreport->image_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
<a href="<?php echo admin_ms_site('emaillist/retrieve/' . num_param_url_encode($emaillist->email_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('emaillist/modify_form/' . num_param_url_encode($emaillist->email_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($emaillist->email_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
<a href="<?php echo admin_ms_site('typeleave/retrieve/' . num_param_url_encode($typeleave->type_leave_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('typeleave/modify_form/' . num_param_url_encode($typeleave->type_leave_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($typeleave->type_leave_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
?> </div> <?php } ?> <div class="row"> <div class="col-lg-6"> <form role="form" action="<?php echo admin_ms_site('typeprogress/save'); ?> " method="post"> <?php if (isset($type_progress_id)) { ?> <input type="hidden" id="type_progress_id" name="type_progress_id" value="<?php echo num_param_url_encode($type_progress_id); ?> "> <?php } ?> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <tbody> <tr class="odd gradeA"> <td align="center"> <?php echo_line('type_progress_name'); ?> </td> <td>
<a href="<?php echo admin_ms_site('employeejobtitle/retrieve/' . num_param_url_encode($employeejobtitle->emp_job_title_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('employeejobtitle/modify_form/' . num_param_url_encode($employeejobtitle->emp_job_title_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($employeejobtitle->emp_job_title_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
<a href="<?php echo admin_ms_site('roleurllist/retrieve/' . num_param_url_encode($roleurllist->role_url_list)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('roleurllist/modify_form/' . num_param_url_encode($roleurllist->role_url_list)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($roleurllist->role_url_list); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
<div class="alert alert-danger"> <?php echo $error_msg; ?> </div> <?php } ?> <div class="row"> <div class="col-lg-6"> <?php if (isset($progress_id)) { ?> <input type="hidden" id="progress_id" name="progress_id" value="<?php echo num_param_url_encode($progress_id); ?> "> <?php } ?> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <tbody> <tr class="odd gradeA"> <td align="center"> <?php echo_line('project_name'); ?>
?> </div> <?php } ?> <div class="row"> <div class="col-lg-6"> <form role="form" action="<?php echo admin_tr_site('manpower/save'); ?> " method="post"> <?php if (isset($man_id)) { ?> <input type="hidden" id="man_id" name="man_id" value="<?php echo num_param_url_encode($man_id); ?> "> <?php } ?> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <tbody> <tr class="odd gradeA"> <td align="center"> progress_id </td> <td> <input class="form-control" placeholder="กรอกprogress_id" name="progress_id" id="progress_id" value="{progress_id}" type="text" required="" autofocus=""></td> </tr>
<a href="<?php echo admin_ms_site('roleuser/retrieve/' . num_param_url_encode($roleuser->role_user_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('roleuser/modify_form/' . num_param_url_encode($roleuser->role_user_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($roleuser->role_user_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
<a href="<?php echo admin_ms_site('employeeinproject/retrieve/' . num_param_url_encode($employeeinproject->man_project_id)); ?> "> <button type="button" class="btn btn-success"> ดูข้อมูล </button> </a> <a href="<?php echo admin_ms_site('employeeinproject/modify_form/' . num_param_url_encode($employeeinproject->man_project_id)); ?> "> <button type="button" class="btn btn-primary"> แก้ไข </button> </a> <button id="<?php echo num_param_url_encode($employeeinproject->man_project_id); ?> " type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal"> ลบ </button> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
?> </div> <?php } ?> <div class="row"> <div class="col-lg-6"> <form role="form" action="<?php echo admin_tr_site('address/save'); ?> " method="post"> <?php if (isset($addr_id)) { ?> <input type="hidden" id="addr_id" name="addr_id" value="<?php echo num_param_url_encode($addr_id); ?> "> <?php } ?> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <tbody> <tr class="odd gradeA"> <td align="center"> province_id </td> <td></td> <td> <!-- <input class="form-control" placeholder="กรอกprovince_id" name="province_id" id="province_id" value="{province_id}" type="text" required="" autofocus=""> -->