sethint.jsp
来自「基于J2EE的办公自动化系统。实现流程定义流程办理等。运用了hibernate+」· JSP 代码 · 共 129 行
JSP
129 行
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<html>
<head>
<style type="text/css">
.tableHead{ /*表头*/
font-size:12px;
font-weight:bold;
height:20pt;
background:url(img/bg.bmp);
text-align:buttom;
}
.myTable{
border:#00A8FF 1px solid;
border-collapse:collapse;
/*padding:0px 0px 0px 0px;*/
}
.myTable TD{
border:#00A8FF 1px solid;
font-family:"宋体";
font-size:10pt;
/*height:22px;*/
padding:0px 0px 0px 0px;
}
.text{
font-family:"宋体";
font-size:10pt;
/*height:22px;*/
padding:0px 0px 0px 0px;
width:200px;
height:22px;
}
</style>
<script>
function setDisplay(state){
form1.hshowtime.style.display = state;
}
function check(){
var showtime = form1.hshowtime.value;
if(showtime!=null){
if (isNaN(showtime)){
alert("间隔时间只能输入数字!");
return false;
}
}
}
</script>
</head>
<logic:equal name="hint" property="hshowtype" value="0">
<body onload="setDisplay('none');">
</logic:equal>
<logic:equal name="hint" property="hshowtype" value="1">
<body onload="setDisplay('block');">
</logic:equal>
<html:form action="/hint.do?method=update" styleId="form1" onsubmit="return check()">
<table border="1" width="100%" class="myTable">
<html:hidden property="uno" value="${hint.uno}" />
<tr class="tableHead">
<td colspan="2" align="center">
个人小贴士设置
</td>
</tr>
<tr>
<td align="right" width="30%">
是否显示小贴士:
</td>
<td width="70%">
<html:radio property="hshowtype" value="1" onclick="setDisplay('block');">显示</html:radio>
<html:radio property="hshowtype" value="0" onclick="setDisplay('none');">不显示</html:radio>
</td>
</tr>
<tr>
<td align="right" width="30%">
显示间隔时间:
</td>
<td width="70%">
<html:text property="hshowtime" size="6" maxlength="10" value="${hint.hshowtime}"></html:text>
(单位:秒)
</td>
</tr>
<tr>
<td align="right" width="30%">
事务提醒:
</td>
<td width="70%">
<html:radio property="haffair" value="1">提醒</html:radio>
<html:radio property="haffair" value="0">不提醒</html:radio>
</td>
</tr>
<tr>
<td align="right" width="30%">
会议提醒:
</td>
<td width="70%">
<html:radio property="hmeeting" value="1">提醒</html:radio>
<html:radio property="hmeeting" value="0">不提醒</html:radio>
</td>
</tr>
<tr>
<td align="right" width="30%">
邮件提醒:
</td>
<td width="70%">
<html:radio property="hemail" value="1">提醒</html:radio>
<html:radio property="hemail" value="0">不提醒</html:radio>
</td>
</tr>
<tr>
<td width="30%">
</td>
<td width="70%">
<html:submit value="设置" />
<html:cancel value="取消" />
</td>
</tr>
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?