TREMP004.jsp 7.24 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.utilities.*"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*"  %>
<%@ include file="../CHECKPROFILE.jsp" %>
<% request.setCharacterEncoding("UTF-8"); %>
<jsp:useBean id="TREMP004" class="com.csc.library.system.Task" scope="page" />
<jsp:setProperty name="TREMP004" property="appname" value="empview" />
<%
	TREMP004.setChannel(request, response);	
	HelpEntry screen = (HelpEntry)TREMP004.process("HelpEntry", "TREMP004"); 
	screen.process();
	screen.nextRec();

	screen.referLangOn();
	CheckNull chk = new CheckNull();
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" ng-app="myHR">

	<head>

		<title>Employee View</title>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<link rel="stylesheet" href="<%=request.getContextPath()%>/CSS/font-awesome.css">
		<link rel="stylesheet" type="text/css" href="../CSS/Bootstrap/css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="../CSS/EMPVIEW_LAYOUT.min.css" />
		
		<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
		<script type="text/javascript" src="../JS/UTILITIES.js"></script>
		<script type="text/javascript"src="../JS/EVENTS.js"></script>
		<script type="text/javascript"src="../JS/SCREEN.js"></script>
		<script type="text/javascript" src="../JS/angular-1.3.15/angular.js"></script>
		<script type="text/javascript" src="../JS/ANGULAR/SCREEN_ANGULAR.js"></script>
		
		<script>
			setLang("<%=screen.getUProfile().get("lang")%>");
			var swap = new swaplang();
            var titlename = swap.swap2String("SW000614");
			setPageTitle(titlename);
			
			function viewTrainer(trainerid){
			}
			function viewLocation(locid){
			}
			function viewAcademy(inid){
			}
			function showFile(){
				with(document.cscform){
					window.open('../TRAINING/UPLOAD/PICTURE/TRAINER/'+__photo.value,'Picture','width=800,height=600,status=yes,scrollbars=yes,resizable=yes');
				}
			}
			function setOnPicError(pic){
				pic.value = "DEFAULT.jpg";
			}
			function replaceTexta(id){
				if(document.getElementById(id)!=null){
					var tmp = document.getElementById(id).value;
					while(tmp.indexOf("\x0D")>=0){
						tmp = tmp.replace("\x0D","<br>");
					}
					document.write(tmp);
				}
			}
		</script>
	</head>
	<body>
		<div class="bg-com"></div>
	
			<div class="container csc-content">
				<form name="cscform" class="form-horizontal" method="post" action="TREMP004.jsp">
					<%=screen.InitialVariable()%>
					<input type="hidden"name="__screen"  value="TREMP004">
					<input type="hidden" name="__fixCon" value="">
					<input type="hidden" name="__help" value="">
					<input type="hidden" name="__keyList" value="">
					<input type="hidden" name="__cmd"  value="">
					<input type="hidden" name="__calendar">
					<script language="javascript">//getInputFormatDate();</script>
					<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">
					<input type="hidden" name="__companyid" value="<%=screen.getUProfile().get("companyid")%>">
					<input type="hidden" name="__backpage" value = "<%=request.getParameter("__backpage")%>">
					
					<div class="csc-block">
						<%
							String picture = screen.getDataLabel("photo");
							if (picture.equals("")){picture = "DEFAULT.jpg";}
								FileDownloadUtils downloadutils = new FileDownloadUtils("TRAINING_UPLOAD", "dir", picture, "PICTURE");
								downloadutils.setDefaultFileName("DEFAULT.jpg");
								String path = downloadutils.getViewURL();
						%>
						<div class="row">
							<div class="form-group">
								<div class="center">
									 <a href="javaScript:showFile();">
										<img src="<%=path%>" name="pic" width="100" height="100" border="1" align="center"  class="img-thumbnail" onError="this.src='../IMAGES/EMPVIEW/DEFAULT-PERSON.gif';setOnPicError(__photo);">
									</a>
								</div>
							</div>
						</div>
						
						<div class="row"> 
							<div class="form-group">
								<div class="col-md-3 col-sm-3 col-xs-3">
									<label class="control-label label-right" swlang code="SW007745">Name Surname</label>  
								</div>
								<div class="col-md-3 col-sm-3 col-xs-3">
									<label class="control-label" ><%=screen.getString("mtrainer","fullname")%></label>
								</div>
								<div class="col-md-3 col-sm-3 col-xs-3">
									<label class="control-label label-right" swlang code="SW001916">Current Position</label>
								</div>
								<div class="col-md-3 col-sm-3 col-xs-3">
									<label class="control-label" ><%=screen.getString("mtrainer","trposition")%></label>
								</div>
							</div>
						</div>
						
						<div class="row">
							<div class="form-group">
								<div class="col-md-3 col-sm-3 col-xs-3">
									<label class="control-label label-right" swlang code="SW000202">Educational Background</label>
								</div>
								<div class="col-md-3 col-sm-3 col-xs-3">
									<label class="control-label" >
										<%
											DbInquiry dba = (DbInquiry) screen.getInquiry().getChild("mtraineredu");
											if(dba.recCount()>0){
											do{
										%>
										<%=dba.getString("mdegree","tdesc")+" : "+dba.getString("mmajor","tdesc")+" : "+dba.getString("minstitue","tdesc")%>
										<%
												}while(dba.next());
											}
										%>
									</label>
								</div>
								<div class="col-md-3 col-sm-3 col-xs-3">
									<label class="control-label label-right" swlang code="SW001964">Exprience Background</label>
								</div>
								<div class="col-md-3 col-sm-3 col-xs-3">
									<label class="control-label" >
										<%
											dba = (DbInquiry) screen.getInquiry().getChild("mtrainerexp");
											if(dba.recCount()>0){
												do{
										%>
										<%=dba.getString("exp_position")+" : "+dba.getString("companyname")%>
										<%
											}while(dba.next());
											}
										%>
									</label>
								</div>
							</div>
						</div>
						
						<div class="row"> 
							<div class="form-group">
								<div class="col-md-3 col-sm-3 col-xs-3">
									<label class="control-label label-right"><%=screen.getLabel("expert")%> </label>  
								</div>
								<div class="col-md-3 col-sm-3 col-xs-3">
									<label class="control-label" >
										<%
											dba = (DbInquiry) screen.getInquiry().getChild("mtrainercrs");
											if(dba.recCount()>0){
												do{
										%>
										<%=dba.getString("crsid")+" : "+dba.getString("mcourse","crsdesc")%><br>
										<%
												}while(dba.next());
											}
										%>
									</label>
									<input type="hidden" name="exp" id="exp" value="<%=screen.getString("mtrainer","experince")%>">
								</div>
								<div class="col-md-3 col-sm-3 col-xs-3">
									<label class="control-label label-right"><%=screen.getLabel("experince")%> </label>
								</div>
								<div class="col-md-3 col-sm-3 col-xs-3">
									<label class="control-label" ><script>replaceTexta('exp');</script></label>
								</div>
							</div>
						</div>
						
						<div class="center">
							<a href="javascript:close();" swlang code="SW012104" class="btn btn-primary">Close</a>
						</div>
						</br>
					</div>	
				</form>
			</div>
	</body>
</html>