userslist.jsp.svn-base
来自「一个实用的CMS管理」· SVN-BASE 代码 · 共 114 行
SVN-BASE
114 行
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://www.extremecomponents.org" prefix="ec" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="true">
<head>
<title><s:text name="suncms.article.view.article.org_manage" /></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<link rel="stylesheet" type="text/css" href="css/extremecomponents.css">
<s:head />
<script language="javascript">
function getSize() {
var xScroll, yScroll;
if (window.innerHeight && window.scrollMaxY) {
xScroll = document.body.scrollWidth;
yScroll = window.innerHeight + window.scrollMaxY;
} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
xScroll = document.body.scrollWidth;
yScroll = document.body.scrollHeight;
} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
xScroll = document.body.offsetWidth;
yScroll = document.body.offsetHeight;
}
var windowWidth, windowHeight;
if (self.innerHeight) { // all except Explorer
windowWidth = self.innerWidth;
windowHeight = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
windowWidth = document.documentElement.clientWidth;
windowHeight = document.documentElement.clientHeight;
} else if (document.body) { // other Explorers
windowWidth = document.body.clientWidth;
windowHeight = document.body.clientHeight;
}
// for small pages with total height less then height of the viewport
if(yScroll < windowHeight){
pageHeight = windowHeight;
y = pageHeight;
} else {
pageHeight = yScroll;
y = pageHeight;
}
if(xScroll < windowWidth){
pageWidth = windowWidth;
} else {
pageWidth = xScroll;
}
arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
return arrayPageSize;
}
function autoHeight(pid) {
var x = new getSize();
parent.document.getElementById(pid).height=x[1];
}
</script>
<script language="javascript">
function openclass(id)
{
var parmat;
var urls;
urls='Users_getUsersById.action?row_id='+id;
parent.buttom.location.href=urls;
}
</script>
</head>
<body>
<s:set name="userlist" value='getText("suncms.article.view.article.userlist")' scope="page"/>
<ec:table
items="UsersList"
imagePath="images/table/*.gif"
title="${userlist}"
width="100%"
rowsDisplayed="15"
showStatusBar= "true"
locale="${i18n_locale}"
filterable="true"
sortable="true"
action="Users_UsersList.action"
showPagination="true"
var="us"
>
<ec:row onclick="openclass(\'${pageScope.us.row_id}\')" styleClass="row" highlightRow="true">
<ec:column property="user_name" title="suncms.article.view.article.user_name"></ec:column>
<ec:column property="user_login" title="suncms.article.view.article.login_id"></ec:column>
<ec:column property="user_status" title="suncms.article.view.article.user_status"></ec:column>
<ec:column property="user_role" title="suncms.article.view.article.user_role"></ec:column>
<ec:column property="user_group" title="suncms.article.view.article.user_group"></ec:column>
<ec:column property="user_org" title="suncms.article.view.article.org_name"></ec:column>
</ec:row>
</ec:table>
<script language="javascript">
var x = new getSize();
if(x[1]>500){
top.document.all.item("main").height = x[1]+20;
}else{
top.document.all.item("main").height = 500;
}
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?