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

📄 setting.jsp

📁 tomcat最新安装程序
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.MailTypeRecordSet" %>
<%@ page import="cn.com.aheadsoft.util.StringFormat" %>
<jsp:useBean id="userinfo" scope="session" class="cn.com.aheadsoft.util.UserInfo"/>
<jsp:useBean id="upm" scope="session" class="cn.com.aheadsoft.manage.UserPurviewManage"/>
<%
 	int i24 = upm.getUserPopInt(userinfo,"2","4","i");
 	int u24 = upm.getUserPopInt(userinfo,"2","4","u");
	int d24 = upm.getUserPopInt(userinfo,"2","4","d");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
<title>预设内容设置</title>
<script>
<!--
    function update(id,key,val) {
        document.mailtype.MT_ID.value = id;
        document.mailtype.MT_Title.value = key;
        document.mailtype.MT_Owner.value = val;
        document.mailtype.status.value = "u";
        document.mailtype.MT_Title.focus();
    }
    
    function atSubmit(obj){
        isOK=false;
        lab="";
	    for(i=0;i<obj.length;i++){
		    if(obj.elements[i].value!=null && obj.elements[i].value!=""){
			    isOK=true;
		    }else{
			    isOK=false;
			    lab=obj.elements[i].alt;
			    obj.elements[i].focus();
			    break;
		    }
	    }
        if(!isOK){
            alert("您没有填写"+lab+"!请填写后提交。");
            return false;
        }else{
	        //obj.submit(); 
        }
    }
	
	function atDelete() {
		return confirm("您确定要删除吗?");
	}
-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr class="trA">
    <td >&nbsp;您的位置:通讯管理 >> 留言薄 >> <font class="fontcolor">预设内容</font></td>
  </tr>
  <tr height="8">   
	<td>
	</td>
  </tr>
  <tr>
    <td align="center">
        <table border="0" width="98%" align="center"  class="collapse">
  <tr>             
          <td class="tdA"  colspan="9" align="center"><div align="left">预设内容</div></td>
  </tr>
	  <form action="/krm/servlet/MailTypeServlet" method="post" name="mailtype" onsubmit="return atSubmit(this)">
		<%if(i24>0) { %>
       <tr>
		    <td width="15%" class="common bgcolor" align="center" >预设内容名称</td>
		<td class="common">&nbsp;<input type="text" class="long" name="MT_Title" alt="预设内容名称"></td>
		</tr>
		<input type="Hidden" name="MT_Owner" alt="所有者" value="<%= StringFormat.Source2GB(userinfo.GetUserID()) %>">
		<input type="Hidden" name="status" value="i">
	  	<input type="Hidden" name="MT_ID" value="0">
		<tr>
		<td colspan="2" align="center" class="tdC">
		<input name="submit" type="submit"  value="提 交" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1"></td></tr>
		<%}%>
		</form>
      </table>
	   <br>
        <table border="0" width="98%" align="center" height="30%" bordercolor="A1B7DB" class="collapse">
        <tr>
		<td width="20%"  class="tdB" align="center">序号</td>
		 <td width="30%" class="tdB" align="center">预设内容名称</td>
	<!--<td width="40%"  class="tdB" align="center">所有者</td>-->
		<td width="25%"  class="tdB" align="center">修改</td>
		<td width="25%"  class="tdB" align="center">删除</td>
		</tr>
		<%
			MailTypeRecordSet recordset = (MailTypeRecordSet)request.getAttribute("type");
			//session.removeAttribute("type");
            if(recordset != null && recordset.size() > 0) {
                int num = 1;
                while(recordset.next()) {
		%>
		<tr	<%
		if(num%2==0){
		%> class="bgcolor"<%}%>>
			<td width="20%" class="common" align="center" ><%= num %></td>
			<td width="30%" class="common" align="center" ><%= StringFormat.Source2GB(recordset.getMT_Title()) %></td>
			<!--<td width="30%" class="common" align="center" ><%= StringFormat.Source2GB(recordset.getMT_Owner()) %></td>-->
			<td width="25%" class="common" align="center">
				<a <%if(u24 > 0){%> href="javascript:update(&quot;<%= StringFormat.Source2GB(recordset.getMT_ID()) %>&quot;,&quot;<%= StringFormat.Source2GB(recordset.getMT_Title()) %>&quot;,&quot;<%= StringFormat.Source2GB(recordset.getMT_Owner()) %>&quot;);" <%}%> >修改</a></td>
			<td width="25%" class="common" align="center" >
			<a <%if(d24 > 0){%> href="/krm/servlet/MailTypeServlet?status=d&MT_ID=<%= recordset.getMT_ID() %>" onclick="return atDelete()" <%}%> >删除</a></td>
        </tr>
		<%
					num++;
				}
			}
		%>
		<tr><td colspan="8" class="tdC">&nbsp;</td>	 </tr>	   
        </table>
   </td>
</tr>	
</table>
</body>
</html>

⌨️ 快捷键说明

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