PM_COMPOSE.jsp 5.99 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
<!DOCTYPE html>
<%@ 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.*"  %>
<% request.setCharacterEncoding("UTF-8"); %>
<jsp:useBean id="EMV" class="com.csc.library.system.Task" scope="page"/>
<jsp:setProperty name="EMV" property="appname" value="empview" />
<%
	EMV.setChannel(request,response);
	UIManager screen = (UIManager) EMV.process("SingleEntry","Compose");
	CheckNull chk =new CheckNull();
	if(chk.chkNullString(request.getParameter("__cmd")).equals("save")) {
		//response.sendRedirect("PM_INBOX.jsp");
	}
	CscCalendar CC=new CscCalendar();
	String lang = screen.getUProfile().get("lang");

%>
<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" />
		<!--<link rel="stylesheet" href="../JS/ckeditor/css/samples.css">-->
		<link rel="stylesheet" href="../JS/ckeditor/toolbarconfigurator/lib/codemirror/neo.css">

		<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="../JS/angular-1.3.15/angular.js"></script>
		<script type="text/javascript" src="../JS/ANGULAR/SCREEN_ANGULAR.js"></script>
		<script src="../JS/ckeditor/ckeditor.js"></script>
		<script src="../JS/ckeditor/js/sample.js"></script>


		<script type="text/javascript" src="../JS/EVENTS.js"></script>
		<script type="text/javascript" src="../JS/DDMENU.js"></script>
		<script type="text/javascript" src="../JS/UTILITIES.js"></script>
		<script type="text/javascript" src="../JS/ACTIVE_OBJECT.js"></script>
		<style>
			.sender{
				padding-left: 0px !important;
			}
		</style>
		<script type="text/javascript">
			setLang("<%=lang%>");

			ThaiCode[200]="ต้องการส่งข้อความหรือไม่ ?";
			EngCode[200]="Do you want sent message ?";

			function GoSave(){confirmSave();}
			function GoUpdate(){update();}
			function GoDelete(){edelete();}
			function GoSearch(){search();}

			function goHelp(page){
				window.open(page,"","resizable=0,scrollbars=1,height=600,width=800,status=yes");
			}

			function send(){
				//Trim b4 save
				with(document.cscform){
				for(i=0;i<elements.length;i++)
					if(elements[i].name=="__pmessage"||elements[i].name=="__topic"||elements[i].name=="__userid")
					elements[i].value=Trim(elements[i].value);
				}
				GoSave();
			}

			function confirmSave(){
				if(nullCheck()){
					with(document.cscform){
						aCon=confirm(MyCode[200]);// จะบันทึกหรือไม่
						if (aCon==true)	{
							save();
						}else{
							if((typeof __actioned)!="undefined"){
								__actioned.value = "";
							}
						}
					}
				}
			}

			$(document).ready(function(){
				initEng();
			});
		</script>
	</head>
	<body class="nooverflow">
		<div class='csc-content'>
			<div class='row'>
				<form class='form-horizontal' name='cscform' action='PM_COMPOSE.jsp'>
					<%=screen.getTagConfirm()%>
					<script language="javascript">checkConfirm();</script>
					<input type="hidden"name="__screen"  value="PM_COMPOSE">
					<input type="hidden" name="__flag" value="0">
					<input type="hidden" name="__help" value="">
					<input type="hidden" name="__fixCon" value="">
					<input type="hidden" name="__notNull" value="<%=screen.getRequire()%>">
					<input type="hidden" name="__cmd"  value="">
					<input type="hidden" name="__calendar" value="">
					<input type="hidden" name="__language" value="<%=screen.getUProfile().get("lang")%>">
					<input type="hidden" name="__user" value="<%=screen.getUProfile().getUserId()%>">
					<input type="hidden" name="__companyid"value="<%=screen.getUProfile().get("companyid")%>">
					<input type="hidden" name="__senderid"value="<%=screen.getUProfile().get("employeeid")%>">
					<input type="hidden" name="__messageid"value="0">
					<input type="hidden" name="__receivetime"value="<%=CC.getHHMMSS()%>">
					<input type="hidden" name="__receivedate" value="<%=CC.getYYYYMMDD()%>">
					<input type="hidden" name="__referPage" value="">
					<script language="javascript">getInputFormatDate();</script>
					<div class='message-block'>
						<div class='reply-header'>
							<div class="message-header-left">
								<h1 swlang code='SW012487'>New Message</h1>
							</div>
							<div class="message-header-right">
								<div class="message-tools">
									<a href='javascript:send()' class='send-new'><i class="fa fa-check"></i></a>
								</div>
							</div>
						</div><!-- end header -->
						<div class="reply-to">
							<div class="row">
								<span class="sender" swlang code='SW002095'>To</span> :
								<div class="input-group">
									<input type='text' class='form-reply form-control' name='__userid' value=''>
									<a class="input-group-addon  no-button" href="javascript:goHelp('USERLISTHELP.jsp');">
										<i class="fa fa-search"></i>
									</a>
								</div>
							</div>
						</div>
						<div class="reply-subject">
							<div class="row">
								<span class="subject" swlang code='SW000962'>Subject</span> :
								<input type='text'  class='form-reply form-control' name='__topic' value=''>
							</div>
						</div>
						<div class='reply-body'>
							<div class="adjoined-bottom">
								<div class="grid-container">
									<div class="grid-width-100">
										<textarea name="__pmessage" id="editoreng">
										</textarea>
									</div>
								</div>
							</div>
						</div><!-- end reply-body-->

					</div><!-- end message-block -->
				</form><!-- end form -->
			</div><!-- end row -->
		</div><!-- end csc-content -->
	</body>
</html>