CSCLOG001.jsp 6.27 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
<%@page contentType="text/html; charset=UTF-8"%>
<%@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.*,com.csc.library.report.ReportUDF"  %>
<%@ include file="CHECKPROFILE.jsp" %>

<jsp:useBean id="CSCLOG001" class="com.csc.library.system.Task" scope="page"/>
<%
	response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
	response.setHeader("Pragma","no-cache"); //HTTP 1.0
	response.setDateHeader ("Expires", 0); //prevents caching at the proxy server

CSCLOG001.setChannel(request,response);
CSCLOG001.checkProfile();
UProfile u=CSCLOG001.getUProfile();
		CheckNull chk = new CheckNull();
		String cmd=chk.chkNullString(request.getParameter("__cmd"));
if(cmd.equals("save")){
	u.setLogDebug(chk.chkNullString(request.getParameter("__debug")));
	u.setLogInFo(chk.chkNullString(request.getParameter("__info")));
	u.setLogWarn(chk.chkNullString(request.getParameter("__warning")));
	u.setLogProduction(chk.chkNullString(request.getParameter("__production")));
	u.setLogDisplay(chk.chkNullString(request.getParameter("__display")));
}

%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="./CSS/TISCO.css" rel="stylesheet" type="text/css">
<link href="./CSS/bootstrap.css" rel="stylesheet"  type="text/css">
<link href="./CSS/bootstrap_csc_backend.css" rel="stylesheet"  type="text/css">
<script type="text/javascript" src="./JS/jquery-2.1.3.min.js"></script>
<script type='text/javascript' src="./JS/bootstrap.js"></script>
<script  language="JavaScript" src="./JS/SCREEN.js"></script>
<script language='javascript' src="./JS/HOTKEY.js"></script>
<script language='javascript'>setLang('<%=CSCLOG001.getUProfile().get("lang")%>');</script>
<script language="javascript">
<!--
function GoSave(){
		with(document.cscform){
				var bcon=confirm(MyCode[1]);
				if(bcon){
					__cmd.value="save";
					submit();	
				}
		}
}
//-->
</script>

</head>
<body>
<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
<script language="javascript">initToolTips();</script>
<form name="cscform" method="post" action="CSCLOG001.jsp">
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__language" value="<%=CSCLOG001.getUProfile().get("lang")%>">
<%
if(cmd.equals("save")){
%>
<script language="javascript">alert(MyCode[18]);</script>
<%
}
%>

 <script language="javascript">
	 var titlename=swap2String('Setting Log');
	 </script>
  <br>
  <div align="center">
    <table width="640"cellpadding="0" cellspacing="0" >
      <tr > 
        <td width="645" colspan="2" class="header" >CSCLOG001, 
          <script language="javascript">swapLang(titlename);</script>&nbsp;</td>
      </tr>
      <tr > 
        <td ><table width="100%" border="0" cellpadding="0" cellspacing="0" class="inframe">
            <tr> 
              <td width="645" class="blankspace"> </td>
            </tr>
            <tr> 
              <td> <table width="638" border="0" cellspacing="0" cellpadding="0" class="inframe">
                  <tr> 
                    <td width="150" class="columnlabel"><script language="javascript">swapLang('Display');</script> </td>
                    <td>
					<input type="radio" name="__display" value="true" <% if (u.getLogDisplay()) out.println("checked");%>><script language="javascript">swapLang('Visibled');</script> 
                    <input type="radio" name="__display" value="false" <% if (!u.getLogDisplay()) out.println("checked");%>><script language="javascript">swapLang('Invisibled');</script> 
					</td>
                  </tr>
                  <tr> 
                    <td class="columnlabel"><script language="javascript">swapLang('Production');</script> </td>
                    <td>
					<input type="radio" name="__production" value="true" <% if (u.getLogProduction()) out.println("checked");%>><script language="javascript">swapLang('Visibled');</script> 
                    <input type="radio" name="__production" value="false" <% if (!u.getLogProduction()) out.println("checked");%>><script language="javascript">swapLang('Invisibled');</script> 
					</td>
					
                  </tr>
                  <tr> 
                    <td class="columnlabel"><script language="javascript">swapLang('Warning');</script> </td>
                    <td>
					<input type="radio" name="__warning" value="true" <% if (u.getLogWarning()) out.println("checked");%>><script language="javascript">swapLang('Visibled');</script> 
                    <input type="radio" name="__warning" value="false" <% if (!u.getLogWarning()) out.println("checked");%>><script language="javascript">swapLang('Invisibled');</script> 
					</td>
                  </tr>
                  <tr> 
                    <td class="columnlabel"><script language="javascript">swapLang('Info');</script> </td>
                    <td>
					<input type="radio" name="__info" value="true" <% if (u.getLogInFo()) out.println("checked");%>><script language="javascript">swapLang('Visibled');</script> 
                    <input type="radio" name="__info" value="false" <% if (!u.getLogInFo()) out.println("checked");%>><script language="javascript">swapLang('Invisibled');</script> 
					</td>
                  </tr>
                  <tr> 
                    <td class="columnlabel"><script language="javascript">swapLang('Debug');</script> </td>
                      <td>
					<input type="radio" name="__debug" value="true" <% if (u.getLogDebug()) out.println("checked");%>><script language="javascript">swapLang('Visibled');</script> 
                    <input type="radio" name="__debug" value="false" <% if (!u.getLogDebug()) out.println("checked");%>><script language="javascript">swapLang('Invisibled');</script> 
					</td>
                </tr>		
                </table></td>
            </tr>
			<tr>
			  <td colspan="2" align="right">&nbsp;</td>
		   </tr>

          <tr>
            <td  class="buttonline" colspan="7"><div align="center">
              <button type="button" class="btn btn-primary width100" swlang code="SW013175" onClick="GoSave();">SAVE</button>
            </div>
            </td>
          </tr>
          </table></td>
      </tr>
      <tr> 
        <td class="bottom" > </td>
      </tr>
    </table>
  </div>


</form>
</body>
</html>