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

📄 aopm701.jsp

📁 WAP PUSH后台源码,WAP PUSH后台源码
💻 JSP
字号:
<html>
<head>
<title>管理软件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<%@ include file="../aadm/jspheader.jsp"%>
<%@ page contentType="text/html; charset=gb2312" %>
<%
/**
 * <p>功能: 参数列表</p>
 * <p>作者: sxit</p>
 * <p>公司: 深训信科</p>
 * <p>日期: 2004-11-11</p>
 * @版本: 1.0
 * @修改:
**/
%>

<%
com.sxit.operator.TopmparameterList topmparameterlist=null;
java.util.List recList=null;
java.util.Hashtable recSearch=null;;
if(request.getAttribute("topmparameterlist")!=null){
  topmparameterlist=(com.sxit.operator.TopmparameterList)request.getAttribute("topmparameterlist");
}
int pageNo=0;//页码
int pageSize=10;//页大小
int recCount=0;//总数

if(topmparameterlist!=null){
  pageNo=topmparameterlist.getPageNo();
  pageSize=topmparameterlist.getPageSize();
  recCount=topmparameterlist.getRecCount();
  recList=topmparameterlist.getRecList();
  recSearch=topmparameterlist.getRecSearch();
}
int selectID=0;
String selectMsg="";
if(recSearch!=null){
  selectID=Integer.parseInt(recSearch.get("selectID").toString());
  selectMsg=recSearch.get("selectMsg").toString();
}
int pageNum=(recCount+pageSize-1)/pageSize;//总共页数
int i=0;
int j=0;
%>
<script lanaguage="javascript">
<!--
function getStringLength(str){
  var num=0;
  if (str!=""){
    var i;
    var s;
    for(i=0;i<str.length;i++){
      s=str.charCodeAt(i);
      if(s-128<0) num=num+1;
      else num=num+2;
    }
  }
  return num;
}
function noChecked() {
  var i;
  if(document.form1.check!=null){
    if(document.form1.check.length!=null){
      for(i=0;i<document.form1.check.length;i++){
        if(document.form1.check[i].checked==true){
          return false;
//          break;
        }
      }
    }else{
      if(document.form1.check.checked==true) return false;
    }
     return true;
  }
}
function getCheckAll(){
  var i;
  var b=0;
  if(document.form1.check!=null){
    if(document.form1.check.length!=null){
      for(i=0;i<document.form1.check.length;i++){ 
        document.form1.check[i].checked=document.form1.selectAll.checked; 
      }
    }else{
      document.form1.check.checked=document.form1.selectAll.checked;
    }
  }
}
function getAdd(){
  document.form1.action="../aopm/aopm702";
  document.form1.submit();
  return true;
}
function getDelete(){
   if(noChecked()){
       alert("请选择,批量删除需要选择!");
       return false;
   }
   if(!confirm("确定要删除?")){
       return false;
   }
   document.form1.action="../aopm/aopm705";
   document.form1.submit();
   return true;
}
function getDeleteOne(){
   if(!confirm("确定要删除?")){
       return false;    
   }
   return true;
}
function submitOnClick()
{
  if(getStringLength(document.form1.selectMsg.value)>50){
    alert("请输入正确查询内容,长度不能超过50位!");
    document.form1.selectMsg.focus();
    return false;
  }
  return true;
}
function fanYe(str){
  document.form1.pageNo.value=str;
  return true;
}
function getRefresh(){
  document.form1.action="../aopm/aopm726";
  document.form1.submit();
  return true;
}
//-->
</script>  


</head>
<body leftmargin="0" marginwidth="0" marginheight="0" topmargin="0">
<%@ include file="../aadm/menu.jsp"%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table1">
    <tr class="tr1">
      <td>您目前正在系统管理-参数管理-参数列表页面</td>
    </tr>
  </table>

    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
  <tr>
    <td>
  <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="table2">
    <tr class="tr2">
      <td>
<form name="form1" action="../aopm/aopm701" method="post">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table3">
          <tr>
            <td>
<%
String str9="";
if(0==selectID) str9=str9+"<option selected value =0>全部</option>";
else str9=str9+"<option value =0>全部</option>";
if(1==selectID) str9=str9+"<option selected value =1>参数名</option>";
else str9=str9+"<option value =1>参数名</option>";
if(2==selectID) str9=str9+"<option selected value =2>模块</option>";
else str9=str9+"<option value =2>模块</option>";
%>
            类型:
            <select name="selectID" class="select1">
            <%=str9%>
            </select>
            信息:<input type="text" name="selectMsg" value="<%=selectMsg%>" maxlength="50" size="20" class="text1">
            <input type="hidden" name="pageNo"><input type="submit" value="查询" onclick = "return submitOnClick()" class="button1">
            </td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table4">
          <tr align="right"> 
            <td>
              <%if(pageNum>0){%>
              第<%=pageNo%>页/共<%=pageNum%>页
                <%if(pageNum==1){%>
                首页 前页 后页 末页
                <%}else{%>
                <%if(pageNo==1){%>
                首页 前页
                <%}else{%>
                <a href="javascript:document.form1.submit()" onclick="return fanYe(1)">首页</a> <a href="javascript:document.form1.submit()" onclick="return fanYe(<%=pageNo-1%>)">前页</a>
                <%}%>
                <%if(pageNo==pageNum){%>
                后页 末页
                <%}else{%>
                <a href="javascript:document.form1.submit()" onclick="return fanYe(<%=pageNo+1%>)">后页</a> <a href="javascript:document.form1.submit()" onclick="return fanYe(<%=pageNum%>)">末页</a>
                <%}%>
                <%}%>
                <%}%> 
              </td>
          </tr>
        </table> 
<%if(recList!=null && recList.size()>0){%>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table5">
          <tr align="center" class="tr51">
            <td>选择</td>
            <td>模块</td>
            <td>参数值</td>
            <td>参数标记</td>
            <td>编辑</td>
            <td>删除</td>
          </tr>
<%i=0;
  while(i<recList.size()){
  com.sxit.operator.Topmparameter topmparameter=(com.sxit.operator.Topmparameter)recList.get(i);
%>
          <tr align="center" class="tr52"> 
            <td><input type="checkbox" name="check" value="<%=topmparameter.getParameterid()%>" class="checkbox1"></td>
            <td><%=topmparameter.getModulename()%> </td>
            <td><%=topmparameter.getParametername()%> </td>
            <td><%=topmparameter.getImportanceflag()==2?"重要":"一般"%> </td>
            <td><a href="../aopm/aopm703?parameterid=<%=topmparameter.getParameterid()%>&moduleid=<%=topmparameter.getModuleid()%>">编辑</a></td>
            <td><a href="../aopm/aopm704?parameterid=<%=topmparameter.getParameterid()%>&moduleid=<%=topmparameter.getModuleid()%>" onclick="return getDeleteOne()">删除</a></td>
          </tr>
<%
 i++;
}
%>
          <tr>
            <td colspan="6">&nbsp;</td>
          </tr>
        </table> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table6">
          <tr> 
            <td><input type="checkbox" name="selectAll" onClick="getCheckAll()" value="checkbox" class="checkbox1">
              全选</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr align="center"> 
            <td><input type="button" value="新增" onclick="return getAdd()" class="button1">
              <input type="button" value="删除" onclick="return getDelete()" class="button1"> 
              <input type="button" value="刷新" onclick="return getRefresh()" class="button1"> 
            </td>
          </tr>
        </table> 
<%}else{%>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table7">
          <tr align="center"> 
            <td>暂时没有参数!</td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
          </tr>
          <tr align="center"> 
            <td><input type="button" value="新增" onclick="return getAdd()" class="button1"> 
            </td>
          </tr>
        </table>
<%}%>
</form>
      </td>
    </tr>
  </table>

    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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