📄 intergralrequisition.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ 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"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="${pageContext.request.contextPath }/image/main.css"
rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath }/image/shh.css"
rel="stylesheet" type="text/css">
<script type="text/javascript">
function trim(s){
return rtrim(ltrim(s));
}
function ltrim(s){
return s.replace( /^\s*/, "");
}
function rtrim(s){
return s.replace( /\s*$/, "");
}
function isEmpty(s){
s = trim(s);
return s.length == 0;
}
function showUserInfo(){
var phone = document.getElementById("phone").value;
var task = document.getElementById("task");
if(isEmpty(phone)){
alert("请输入号码");
return false;
}else{
task.value="intergralRequisition";
form1.submit();
}
}
function acceptRequisition(){
var phone = document.getElementById("phone").value;
var task = document.getElementById("task");
task.value = "acceptRequisition";
form1.submit();
}
function resetPage(){
var task = document.getElementById("task");
task.value = "intergralRequisition";
}
</script>
</head>
<body>
<div id="title">积分申请</div>
<html:form action="/intergralRequisition" styleId="form1">
<html:hidden property="task" styleId="task" />
<table width="760px" border="1" align="center" cellpadding="0"
cellspacing="0" bordercolor="#D71920">
<tr>
<td>
<br />
<table width="740px" border="0" align="center" cellpadding="0"
cellspacing="0" id="ttc">
<tr height="20">
<td align="center">
</td>
</tr>
<tr height="27">
<td align="center">
输入积分申请号码:
<html:text property="phone" onfocus="resetPage();"></html:text>
<input type="button" value=" 查 询 "
onclick="return showUserInfo();" />
</td>
</tr>
<tr height="20">
<td align="center">
</td>
</tr>
</table>
<logic:equal name="intergralRequisitionForm" property="task"
value="requisitionSuccess">
<br />
<table width="740px" border="0" align="center" cellpadding="0"
cellspacing="0" id="ttc">
<tr height="20">
<td align="center">
</td>
</tr>
<tr height="27">
<td align="center">
<font color="red">已申请成功</font>
</td>
</tr>
<tr height="20">
<td align="center">
</td>
</tr>
</table>
</logic:equal>
<logic:equal name="intergralRequisitionForm" property="task" value="result">
<logic:empty name="userInfo">
<br />
<table width="740px" border="0" align="center" cellpadding="0"
cellspacing="0" id="ttc">
<tr height="20">
<td align="center">
</td>
</tr>
<tr height="27">
<td align="center">
<font color="red">所输入的号码信息不存在</font>
</td>
</tr>
<tr height="20">
<td align="center">
</td>
</tr>
</table>
</logic:empty>
<logic:notEmpty name="userInfo">
<br />
<logic:equal name="userInfo" property="integralsign" value="1">
<table width="740px" border="0" align="center" cellpadding="0"
cellspacing="0" id="ttc">
<tr height="20">
<td align="center">
</td>
</tr>
<tr height="27">
<td align="center">
<font color="red">所输入的号码已通过积分申请</font>
</td>
</tr>
<tr height="20">
<td align="center">
</td>
</tr>
</table>
</logic:equal>
<logic:equal name="userInfo" property="integralsign" value="0">
<table width="740px" border="0" align="center" cellpadding="0"
cellspacing="0" id="ttc">
<tr height="20">
<td colspan="2" align="center">
</td>
</tr>
<tr height="27">
<td align="right">
用户名:
</td>
<td align="left">
${requestScope.userInfo.username }
</td>
</tr>
<tr height="27">
<td align="right">
证件类型:
</td>
<td align="left">
${requestScope.userInfo.papertype }
</td>
</tr>
<tr height="27">
<td align="right">
证件号码:
</td>
<td align="left">
${requestScope.userInfo.paperid }
</td>
</tr>
<tr height="27">
<td align="right">
套餐类型:
</td>
<td align="left">
${requestScope.userInfo.mainoption }
</td>
</tr>
<logic:equal name="userInfo" value=""></logic:equal>
<tr height="27">
<td align="center" colspan="2">
<input type="button" value=" 通过积分审核 "
onclick="return acceptRequisition();">
</td>
</tr>
<tr height="20">
<td colspan="2" align="center">
</td>
</tr>
</table>
</logic:equal>
</logic:notEmpty>
</logic:equal>
<br />
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -