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

📄 aphm101.jsp

📁 HW-中国移动企业信息机,请查看
💻 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>日期: 2005-03-22</p>
 * @版本: 1.0
 * @修改:
**/
%>

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

if(tphmmodelist!=null){
  pageNo=tphmmodelist.getPageNo();
  pageSize=tphmmodelist.getPageSize();
  recCount=tphmmodelist.getRecCount();
  recList=tphmmodelist.getRecList();
  recSearch=tphmmodelist.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="../aphm/aphm102";
  document.form1.submit();
  return true;
}
function getDelete(){
   if(noChecked()){
       alert("请选择,批量删除需要选择!");
       return false;
   }
   if(!confirm("确定要删除?")){
       return false;
   }
   document.form1.action="../aphm/aphm105";
   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;
}
//-->
</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="../aphm/aphm101" method="post">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table3">
          <tr>
            <td>
&nbsp;
            
            <input type="hidden" name="pageNo">
            </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>
            <td>编辑</td>
            <td>删除</td>
          </tr>
<%i=0;
  while(i<recList.size()){
  com.sxit.phonemanager.Tphmmode tphmmode=(com.sxit.phonemanager.Tphmmode)recList.get(i);
%>
          <tr align="center" class="tr52"> 
            <td><input type="checkbox" name="check" value="<%=tphmmode.getModeid()%>" class="checkbox1"></td>
            <td><%=tphmmode.getModename()%> </td>
            <td><%=tphmmode.getScreenlength()%> </td>
            <td><%=tphmmode.getScreenwidth()%> </td>
            <td><%=tphmmode.getRingmode()==null?"":tphmmode.getRingmode()%> </td>
            <td><%=tphmmode.getColormode()==null?"":tphmmode.getColormode()%> </td>
            <td><a href="../aphm/aphm103?modeid=<%=tphmmode.getModeid()%>">编辑</a></td>
            <td><a href="../aphm/aphm104?modeid=<%=tphmmode.getModeid()%>" onclick="return getDeleteOne()">删除</a></td>
          </tr>
<%
 i++;
}
%>
          <tr>
            <td colspan="8">&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"> 
            </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 + -