<!-- ******************************** ประเมินการจัดฝึกอบรมและวิทยากรภายใน ****************************************** -->
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ page import="com.csc.library.database.*,com.csc.library.session.*,com.csc.library.utilities.*,com.csc.library.utility.*"  %>
<%@ include file="../CHECKPROFILE.jsp" %>
<% request.setCharacterEncoding("UTF-8"); %>
<%
	CheckNull chk = new CheckNull();

	UProfile up = null;
	if (session != null){
		up = (UProfile)session.getAttribute("userprofile");
	}

	if (up == null){
		return ;
	}
	String p_apsid = chk.chkNullString(request.getParameter("apsid"));
	String p_trainingid = chk.chkNullString(request.getParameter("trainingid"));
	String p_apsassessor = chk.chkNullString(request.getParameter("apsassessor"));

%>
<html ng-app='TRN_TRAINING'>
	<head>
		<title>Employee View</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<%=request.getContextPath()%>/EMPVIEW/css/APP_UP/style_apsup.css" />
	</head>
	<body ng-controller='TrainingForm'>
		<div class='bg-com'></div>
		<div class="hide">
			<jsp:include page="EMV_HEADMENU.jsp" flush="true" />
		</div>

		<script type="text/javascript" src="../JS/SCREEN.js"></script>
		<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
		<script type='text/javascript' src="../public/lib/angular-resource/angular-resource.min.js"></script>
		<script type='text/javascript' src='JS/TRN_APS/TRN_TRAINING/Module.Controller.js'></script>
		<script type='text/javascript' src='JS/TRN_APS/TRN_TRAINING/services.js'></script>
		<script type='text/javascript' src='JS/TRN_APS/TRN_TRAINING/Trainingform.Controller.js'></script>
		<script type='text/javascript'>
			setLang('<%=up.get("lang")%>')
		</script>

		<section>
      <form name="cscform" class="form-horizontal" method="post" >
				<input type='hidden' name='apsid' value='<%=p_apsid%>'/>
				<input type='hidden' name='trainingid' value='<%=p_trainingid%>'/>
				<input type='hidden' name='me' value='<%=up.get("employeeid")%>' />
				<input type='hidden' name='apsassessor' value='<%=p_apsassessor%>' />

			  <div class='container csc-content'>
					<div class='csc-block-white'>
						<h3 class="center">ประเมินการจัดฝึกอบรมและวิทยากรภายใน</h3>

            <div class="form-horizontal new-line">
              <div class="row">
								<div class="col-lg-1"></div>
                <div class="col-lg-5">
                  <label class="b txt-underline">ชื่อหลักสูตร : </label>
									<span>{{headdata[0].course}}</span>
                </div>
                <div class="col-lg-6">
                  <label class="b">สถานที่ฝึกอบรม : </label>
									<span>{{headdata[0].location}}</span>
                </div>
              </div>

							<div class="row">
								<div class="col-lg-1"></div>
                <div class="col-lg-5">
                    <label class="b">วิทยากร : </label>
										<span>{{headdata[0].trner_fullname}}</span>
                </div>
								<div class="col-lg-3">
									<label class="b">วันที่อบรม : </label>
									<span>{{headdata[0].datetrain}}</span>
								</div>
                <div class="col-lg-3">
                  <label class="b">เวลา : </label>
									<span>{{headdata[0].timetrain}}</span>
                </div>
							</div>
            </div>

						<div class="form-horizontal new-line">
							<div class="row">
								<div class="col-lg-1"></div>
                <div class="col-lg-11">
									<label class='b txt-underline'>คำชี้แจง</label>
                  <label class="b"> : ขอความร่วมมือจากท่านในการประเมินผลการฝึกอบรม โดยใส่เครื่องหมาย</label>
									<input type='radio' checked='checked'/>
									<label class="b">ลงในช่องว่าง พร้อมแสดงความคิดเห็น</label>
                </div>
              </div>
							<div class="row">
								<div class="col-lg-1"></div>
                <div class="col-lg-10">
									<label class="b">และข้อเสนอแนะเพิ่มเติม เพื่อนำมาใช้ในการปรับปรุงหลักสูตรและการจัดฝึกอบรมในครั้งต่อไป</label>
								</div>
              </div>
						</div>

						<div class='container csc-content'>
							<div class='table-responsive'>
		            <table class="table table-head table-hover table-bordered table-title-left" >
									<thead>
										<tr>
											<th class='width-t3' rowspan='3'>หัวข้อประเมิน</th>
											<th colspan='5'>ระดับความเห็น</th>
										</tr>
										<tr>
											<th class='width-t2'>ดีมาก</th>
											<th class='width-t2'>ดี</th>
											<th class='width-t2'>ปานกลาง</th>
											<th class='width-t2'>ค่อนข้างน้อย</th>
											<th class='width-t2'>น้อย</th>
										</tr>
										<tr>
											<th class='width-t2'>5</th>
											<th class='width-t2'>4</th>
											<th class='width-t2'>3</th>
											<th class='width-t2'>2</th>
											<th class='width-t2'>1</th>
										</tr>
									</thead>
									<tbody ng-repeat='form1 in apsform[0].groupAry'>
										<tr>
											<td class='b' colspan='6'>{{form1.groupdesc}}</td>
										</tr>
										<tr ng-repeat='mas in form1.masAry'>
											<td>{{mas.masdesc}}</td>
											<td class='center'><input ng-model='mas.score' value='5.00' type='radio' ng-disabled='checkprivilege()'/></td>
											<td class='center'><input ng-model='mas.score' value='4.00' type='radio' ng-disabled='checkprivilege()'/></td>
											<td class='center'><input ng-model='mas.score' value='3.00' type='radio' ng-disabled='checkprivilege()'/></td>
											<td class='center'><input ng-model='mas.score' value='2.00' type='radio' ng-disabled='checkprivilege()'/></td>
											<td class='center'><input ng-model='mas.score' value='1.00' type='radio' ng-disabled='checkprivilege()'/></td>
										</tr>
									</tbody>
		            </table>
							</div>
							<div class='table-responsive'>
		            <table class="table table-head table-bordered table-title-left" >
									<tr>
										<td colspan='2'></td>
										<td class='center'>1</td>
										<td class='center'>2</td>
										<td class='center'>3</td>
										<td class='center'>4</td>
										<td class='center'>5</td>
										<td class='center'>6</td>
										<td class='center'>7</td>
										<td class='center'>8</td>
										<td class='center'>9</td>
										<td class='center'>10</td>
									</tr>
									<tr>
										<td rowspan='2'>ท่านมีความรู้ ความเข้าใจ ก่อนและหลังการฝึกอบรมสัมนาเรื่องนี้ มากน้อยเพียงใด</td>
										<td class='center'>ก่อน</td>
										<td class='center'><input ng-model='headdata[0].score_1' value='1.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_1' value='2.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_1' value='3.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_1' value='4.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_1' value='5.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_1' value='6.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_1' value='7.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_1' value='8.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_1' value='9.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_1' value='10.00' type='radio' ng-disabled='checkprivilege()'/></td>
									</tr>
									<tr>
										<td class='center'>หลัง</td>
										<td class='center'><input ng-model='headdata[0].score_2' value='1.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_2' value='2.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_2' value='3.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_2' value='4.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_2' value='5.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_2' value='6.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_2' value='7.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_2' value='8.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_2' value='9.00' type='radio' ng-disabled='checkprivilege()'/></td>
										<td class='center'><input ng-model='headdata[0].score_2' value='10.00' type='radio' ng-disabled='checkprivilege()'/></td>
									</tr>
								</table>
							</div>
						</div>

						<div class="form-horizontal">
              <div class="row">
								<div class="col-lg-1"></div>
                <div class="col-lg-11">
                  <span class="b">สิ่งที่ท่านประทับใจในการจัดอบรมครั้งนี้ คือ :</span>
                </div>
							</div>
              <div class="row">
								<div class="col-lg-1"></div>
                <div class="col-lg-11">
                  <textarea rows="5" cols="114" ng-model='headdata[0].comment1' ng-disabled='checkprivilege()'></textarea>
                </div>
							</div>
            </div>

						<div class="form-horizontal">
              <div class="row">
								<div class="col-lg-1"></div>
                <div class="col-lg-11">
                  <span class="b">สิ่งที่ท่านคิดว่าผู้จัดอบรมควรปรับปรุงครั้งนี้ คือ :</span>
                </div>
							</div>
              <div class="row">
								<div class="col-lg-1"></div>
                <div class="col-lg-11">
                  <textarea rows="5" cols="114" ng-model='headdata[0].comment2' ng-disabled='checkprivilege()'></textarea>
                </div>
							</div>
            </div>

						<div class="center new-line">
							<button type="button" class="btn btn-info" ng-click='saveDraff()' ng-disabled='checkprivilege()' swlang code='SW012867'>Save Draft</button>
							<button type="button" class="btn btn-info" ng-click='save()' ng-disabled='checkprivilege()' swlang code='SW012098'>Submit</button>
						</div>

						<div class='spece-bot'></div>
					</div> <!-- end csc-block-white -->
        </div> <!-- end csc-content -->
      </form>
		</section>
	</body>
</html>