📄 add.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ 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" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>jb-aptech毕业设计项目</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<%=request.getContextPath() %>/html/css/style.css" rel="stylesheet" type="text/css">
<script src="<%=request.getContextPath() %>/html/script/common.js"></script>
<script src="<%=request.getContextPath() %>/html/script/validate.js"></script>
<script>
function doSubmit(){
if (Validator.Validate(document.forms['create'],3)) {
document.forms['create'].action="<%=request.getContextPath() %>/service.do?method=doAddService";
document.forms['create'].submit();
}
}
</script>
</head>
<body>
<div class="page_title">客户服务管理 > 服务创建</div>
<div class="button_bar">
<button class="common_button" onclick="help('');">帮助</button>
<button class="common_button" onclick="doSubmit();">保存</button>
</div>
<table class="query_form_table"><html:form action="/service" method="post" styleId="create">
<tr>
<td colspan="4"><div style="color: red;">${msg }</div></td>
</tr>
<tr>
<th>编号</th>
<td><input disabled /></td>
<th>服务类型</th>
<td>
<html:select property="serviceCondition.type">
<html:option value="">请选择...</html:option>
<html:option value="2">咨询</html:option>
<html:option value="3">投诉</html:option>
<html:option value="4">建议</html:option>
</html:select>
<span class="red_star">*</span>
</td>
</tr>
<tr>
<th>概要</th>
<td colspan="3"><html:text property="serviceCondition.serviceSummary" size="53"/><span class="red_star">*</span></td>
</tr>
<tr>
<th>客户</th>
<td><html:text property="serviceCondition.customersName" size="20"/><span class="red_star">*</span></td>
<th>状态</th>
<td>新创建</td>
</tr>
<tr>
<th>服务请求</th>
<td colspan="3"><html:textarea property="serviceCondition.serviceRequest" rows="6" cols="50"></html:textarea><span class="red_star">*</span></td>
</tr>
<tr>
<th>创建人</th>
<td><input name="T19" value="${sessionScope.user.userName }" readonly size="20" /><span class="red_star">*</span></td>
<th>创建时间</th>
<td><html:text property="serviceCondition.createrDatetimeStr" styleId="t1" readonly="" size="20"/><span class="red_star">*</span></td>
</tr>
<script>
build_validate("serviceCondition.type","请选择服务类型","Limit","1","50");
build_validate("serviceCondition.serviceSummary","概要不能为空","Limit","1","50");
build_validate("serviceCondition.customersName","客户姓名不能为空","Limit","1","50");
build_validate("serviceCondition.createrDatetime","创建时间不能为空","Limit","1","300");
</script>
</html:form>
</table>
<br />
<table disabled class="query_form_table" id="table3">
<tr>
<th>分配给</th>
<td>
<select>
<option>请选择...</option>
<option>小明</option>
<option>旺财</option>
<option>球球</option>
<option>孙小美</option>
<option>周洁轮</option>
</select> <span class="red_star">*</span></td>
<th>分配时间</th>
<td><input id="t2" name="T18" readonly size="20" /><span class="red_star">*</span></td>
</tr>
</table>
<br />
<table disabled class="query_form_table" id="table1">
<tr>
<th>服务处理</th>
<td colspan="3"><textarea rows="6" cols="50"></textarea><span class="red_star">*</span></td>
</tr>
<tr>
<th>处理人</th>
<td><input name="T17" value="刘颖" readonly size="20" /><span class="red_star">*</span></td>
<th>处理时间</th>
<td><input id="t3" name="T16" readonly size="20" /><span class="red_star">*</span></td>
</tr>
</table>
<br />
<table disabled class="query_form_table" id="table2">
<tr>
<th>处理结果</th>
<td><input name="T10" size="20" /><span class="red_star">*</span></td>
<th>满意度</th>
<td>
<select name="D1">
<option>请选择...</option>
<option>☆☆☆☆☆</option>
<option>☆☆☆☆</option>
<option>☆☆☆</option>
<option>☆☆</option>
<option>☆</option>
</select><span class="red_star">*</span></td>
</tr>
</table>
<script>
setCurTime('t1');
setCurTime('t2');
setCurTime('t3');
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -