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

📄 setting.jsp

📁 tomcat最新安装程序
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.InformTypeRecordSet" %>
<%@ 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"/>
<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>
<%
	int q24 = upm.getUserPopInt(userinfo,"2","4","q");
	int i24 = upm.getUserPopInt(userinfo,"2","4","i");
	int u24 = upm.getUserPopInt(userinfo,"2","4","u");
	int d24 = upm.getUserPopInt(userinfo,"2","4","d");
%>
<script>
<!--
    function update(id,key,val) {
        document.informtype.IT_ID.value = id;
        document.informtype.IT_Title.value = key;
		if(val=="") {
			val = " ";
		}
        document.informtype.IT_Memo.value = val;
        document.informtype.status.value = "u";
        document.informtype.IT_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 width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
   <tr >             
          <td class="tdA" colspan="9" align="center"><div align="left">公告类别设置</div></td>
          </tr>		  
	  <form action="/krm/servlet/InformTypeServlet" method="post" name="informtype" 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="IT_Title" alt="类别名称"></td>
		</tr>		
		<tr>
			<td width="10%" class="common bgcolor" align="center"  >备注</td>
			<td class="common">&nbsp;<input type="text" class="long" name="IT_Memo" alt="备注" value=" "></td>
        </tr>
		
		<input type="Hidden" name="status" value="i">
	  	<input type="Hidden" name="IT_ID" value="0">
		<tr>
		    <td colspan="2" align="center" class="tdC"> 
              <input type="submit" value="提 交" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1">		
		    </td></tr>
			<%}%>
		</form>      		
      </table>
	  <br>
   <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
        <td width="10%" class="tdB" align="center"  >序号</td>
		<td width="20%" class="tdB" align="center" >名称</td>
		<td width="40%" class="tdB" align="center" >备注</td>
		<td width="15%" class="tdB" align="center" >修改</td>
		<td width="15%" class="tdB" align="center" >删除</td>
		</tr>
		<%
			InformTypeRecordSet recordset = (InformTypeRecordSet)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="10%" class="common" align="center" ><%= num %></td>
	<td width="20%" class="common" align="center" ><%= StringFormat.Source2GB(recordset.getIT_Title()) %></td>
	<td width="40%" class="common" align="center" >&nbsp;<%= StringFormat.Source2GB(recordset.getIT_Memo()) %></td>
	<td width="15%" class="common" align="center" >
	<%
		if(u24 > 0) {
	%>
		<a href="javascript:update(&quot;<%= StringFormat.Source2GB(recordset.getIT_ID()) %>&quot;,&quot;<%= StringFormat.Source2GB(recordset.getIT_Title()) %>&quot;,&quot;<%= StringFormat.Source2GB(recordset.getIT_Memo()) %>&quot;);">修改</a>
	<%
		}else {
			out.print("修改");
		}
	%>
	</td>
	<td width="15%" class="common" align="center" >
	<%
		if(d24 > 0) {
	%>
	<a href="/krm/servlet/InformTypeServlet?status=d&IT_ID=<%= recordset.getIT_ID() %>" onclick="return atDelete()">删除
	</a>
	<%
		}else {
			out.print("删除");
		}
	%>
	</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 + -