⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dispatch.jsp

📁 关于ssh的整合,希望对大家有帮助
💻 JSP
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
	prefix="logic"%>

<html:html locale="true">
<head>
	<html:base />
	<title>dispatch.jsp</title>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	<link href="../../css/style.css" rel="stylesheet" type="text/css">
</head>

<body>
	<html:form action="/service" method="post">
		<div class="page_title">
			客户服务管理 -> 服务分配
		</div>
		<div class="button_bar">
			<button class="common_button" onclick="help('');">
				帮助
			</button>
			<input type="hidden" name="flag" value="dofindby" />
			<input type="submit" value="查询" class="common_button" />
		</div>
		<table border="0" class="query_form_table">
			<tr>
				<th height="28">
					客户
				</th>
				<td>
					<html:text property="service.svrCustName"></html:text>
				</td>
				<th height="28">
					概要
				</th>
				<td>
					<html:text property="service.svrTitle"></html:text>
				</td>
				<th height="28">
					服务类型
				</th>
				<td>
				    <html:select property="service.svrType">
						<option>咨询</option>
						<option>建议</option>
						<option>投诉</option>
					</html:select>
				</td>
			</tr>
			<tr>
				<th height="22">
					创建日期
				</th>
				<td colspan="3">
					<input name="svrCreateDate2" size="10" />
					-
					<input name="svrCreateDate1" size="10" />
				</td>
				<th height="22">
					状态
				</th>
				<td>
					<html:select property="service.svrStatus">
						<option value="0">
							新创建
						</option>
					</html:select>
				</td>
			</tr>
		</table>
		<br />
		<table class="data_list_table">
			<tr>
				<th>编号</th>
				<th>客户</th>
				<th>概要</th>
				<th>服务类型</th>
				<th>创建人</th>
				<th>创建日期</th>
				<th>分配给</th>
				<th>操作</th>
			</tr>
			<logic:iterate id="services" name="list" scope="request">
				<tr>
					<td class="list_data_number"><bean:write name="services" property="svrId"/></td>
					<td class="list_data_text"><bean:write name="services" property="svrCustName"/></td>
					<td class="list_data_ltext"><bean:write name="services" property="svrTitle"/></td>
					<td class="list_data_text"><bean:write name="services" property="svrType"/></td>
					<td class="list_data_text"><bean:write name="services" property="svrCreateBy"/></td>
					<td class="list_data_text"><bean:write name="services" property="svrCreateDate"/></td>
					<td class="list_data_text">
			              <select name="usrName">
							<logic:iterate id="us" name="user" scope="request">
								<option  value="<bean:write name="us" property="usrId" />">
									<bean:write name="us" property="usrName" />
								</option>
							</logic:iterate>
						</select>
						<input type="hidden" id="t3" name="svrDueDate"/>
						<input type="button" value="分配" onclick="dispatch('doupd',<bean:write name="services" property="svrId"/>,'<%=path %>')" class="common_button"/>
					</td>
					<td class="list_data_op">
					      <img title="删除" onclick="del('确认删除该记录吗?','dodel',<bean:write name="services" property="svrId"/>,'<%=path %>')" src="../../images/bt_del.gif" class="op_button" />
				    </td>
				</tr>
		   </logic:iterate>
			<tr>
				<th colspan="8" class="pager">
					<div class="pager">
					    <bean:size id="count" name="list"/>
						共${count }条记录 每页
						<input value="10" size="2" />
						条 第
						<input value="1" size="2" />
						页/共5页
						<a href="#">第一页</a>
						<a href="#">上一页</a>
						<a href="#">下一页</a>
						<a href="#">最后一页</a> 转到
						<input value="1" size="2" />
						<button onclick="reload();">
							GO
						</button>
					</div>
				</th>
			</tr>
		</table>
	</html:form>
</body>
<script type="text/javascript">
   function help(msg){
	        alert('欢迎使用'+msg);
          }
   function dispatch(doupd,id,path)
    {
      document.forms[0].action="";
      document.forms[0].action=path+"/service.do?flag="+doupd+"&svrId="+id;
      document.forms[0].submit();
    }
    function del(msg,dodel,id,path){
        if( window.confirm(msg+"?")){
          document.forms[0].action="";
          document.forms[0].action=path+"/service.do?flag="+dodel+"&svrId="+id;
          document.forms[0].submit();
        }
    }
    function pageTo(pageId)
    	{
    		var form = document.forms[0];
    		form.action="<%=path%>/service.do?flag=dofindby&pageId="+pageId;
    		form.submit();
    	}
    function pageClick()
    	{
    		document.forms[0].submit();
    	}
    function setCurTime(oid){
	       var now=new Date();
	       var year=now.getYear();
	       var month=now.getMonth()+1;
	       var day=now.getDate();
	       var hours=now.getHours();
	       var minutes=now.getMinutes();
	       var seconds=now.getSeconds();
	       var timeString = year+"-"+month+"-"+day+" "+hours+":"+minutes+":"+seconds;
	       var oCtl = document.getElementById(oid);
	       oCtl.value = timeString;
          }
	  setCurTime('t3');
</script>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -