📄 aopm610.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.TopmusercorporationList topmusercorporationlist=null;
java.util.List recList=null;
java.util.Hashtable recSearch=null;;
if(request.getAttribute("topmusercorporationlist")!=null){
topmusercorporationlist=(com.sxit.operator.TopmusercorporationList)request.getAttribute("topmusercorporationlist");
}
String userid="";
if(request.getAttribute("userid")!=null){
userid=request.getAttribute("userid").toString();
}
int pageNo=0;//页码int pageSize=10;//页大小int recCount=0;//总数
if(topmusercorporationlist!=null){
pageNo=topmusercorporationlist.getPageNo();
pageSize=topmusercorporationlist.getPageSize();
recCount=topmusercorporationlist.getRecCount();
recList=topmusercorporationlist.getRecList();
recSearch=topmusercorporationlist.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;
%>
<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/aopm611";
document.form1.submit();
return true;
}
function getDelete(){
if(noChecked()){
alert("请选择,批量删除需要选择!");
return false;
}
if(!confirm("确定要删除?")){
return false;
}
document.form1.action="../aopm/aopm613";
document.form1.submit();
return true;
}
function getDeleteOne(){
if(!confirm("确定要删除?")){
return false;
}
return true;
}
function getBack(){
document.form1.action="../aopm/aopm601";
document.form1.submit();
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="../aopm/aopm610" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table3">
<tr>
<td>
<input type="hidden" name="pageNo"><input type="hidden" name="userid" value="<%=userid%>">
</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>
</tr>
<%i=0;
while(i<recList.size()){
com.sxit.operator.Topmusercorporation topmusercorporation=(com.sxit.operator.Topmusercorporation)recList.get(i);
%>
<tr align="center" class="tr52">
<td><input type="checkbox" name="check" value="<%=topmusercorporation.getCorporationid()%>" class="checkbox1"></td>
<td><%=topmusercorporation.getCorporationname()%> </td>
<td><%=topmusercorporation.getUsername()%> </td>
<td><a href="../aopm/aopm612?corporationid=<%=topmusercorporation.getCorporationid()%>&userid=<%=topmusercorporation.getUserid()%>" onclick="return getDeleteOne()">删除</a></td>
</tr>
<%
i++;
}
%>
<tr>
<td colspan="4"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table6">
<tr>
<td colspan="4"><input type="checkbox" name="selectAll" onClick="getCheckAll()" value="checkbox" class="checkbox1">
全选</td>
</tr>
<tr>
<td colspan="4"> </td>
</tr>
<tr align="center">
<td colspan="4"> <input type="button" value="新增" onclick="return getAdd()" class="button1">
<input type="button" value="删除" onclick="return getDelete()" class="button1">
<input type="button" value="返回" onclick="return getBack()" 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> </td>
</tr>
<tr align="center">
<td><input type="button" value="新增" onclick="return getAdd()" class="button1">
<input type="button" value="返回" onclick="return getBack()" class="button1">
</td>
</tr>
</table>
<%}%>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -