code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
@charset "utf-8";
/* CSS Document */ /*首页CSS*/
body {
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 0px;
padding:0;
}
.btn {
BORDER-RIGHT: #7b9ebd 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7b9ebd 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#cecfde); BORDER-LEFT: #7b9ebd 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #7b9ebd 1px solid
}
.btn1_mouseout {
BORDER-RIGHT: #7EBF4F 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7EBF4F 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#B3D997); BORDER-LEFT: #7EBF4F 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #7EBF4F 1px solid
}
.btn1_mouseover {
BORDER-RIGHT: #7EBF4F 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7EBF4F 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#CAE4B6); BORDER-LEFT: #7EBF4F 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #7EBF4F 1px solid
}
.btn2 {padding: 2 4 0 4;font-size:12px;height:23;background-color:#ece9d8;border-width:1;}
.btn3_mouseout {
BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid
}
.btn3_mouseover {
BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#D7E7FA); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid
}
.btn3_mousedown
{
BORDER-RIGHT: #FFE400 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #FFE400 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #FFE400 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #FFE400 1px solid
}
.btn3_mouseup {
BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid
}
.btn_2k3 {
BORDER-RIGHT: #002D96 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #002D96 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#FFFFFF, EndColorStr=#9DBCEA); BORDER-LEFT: #002D96 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #002D96 1px solid
} | zzbasepro | trunk/basepro/WebRoot/css/main.css | CSS | oos | 3,160 |
/* divbtn divtab divchildtab pagetab */
.imgdisabled img {
opacity: 0.5;
filter: gray Alpha(Opacity = 50);
}
.divbtn,.divbtnHover,.divbtnDisabled {
text-decoration: none;
height: 24px;
margin: 0 5px 0 0;
cursor: pointer;
background: url(../Framework/Images/btnout_bg_left.gif) no-repeat left
center;
display: block;
float: left;
}
.divbtn img,.divbtnHover img,.divbtnDisabled img {
width: 20px;
height: 20px;
margin: 2px 0px 4px 6px;
display: inline;
float: left;
}
.divbtn b,.divbtnHover b,.divbtnDisabled b {
white-space: nowrap;
color: #666;
font-weight: normal;
height: 24px;
line-height: 24px;
padding: 0 7px 0 5px;
/*padding: 0px 11px 0 0;*/
background: url(../Framework/Images/btnout_bg_right.gif) no-repeat right
center;
display:inline-block;
+zoom: 1;
+display: inline;
}
.divbtnHover {
background: url(../Framework/Images/btnover_bg_left.gif) no-repeat left
center;
}
.divbtnHover b {
color: #147;
background: url(../Framework/Images/btnover_bg_right.gif) no-repeat
right center;
}
.divbtnDisabled {
cursor: not-allowed;
background: url(../Framework/Images/btnDsb_bg_left.gif) no-repeat left
center;
}
.divbtnDisabled img {
opacity: 0.5;
filter: gray Alpha(Opacity = 50);
}
.divbtnDisabled b {
color: #999;
background: url(../Framework/Images/btnDsb_bg_right.gif) no-repeat right
center;
}
/*新页面divbtn不再使用,为了对以前的页面兼容而保留*/
a.zPushBtn {
text-decoration: none;
height: 24px;
margin: 0 0 0 0;
background: url(../image/baseImage/btnout_bg_left.gif) no-repeat left center;
display:inline-block;
-moz-user-select:none;
}
a.zPushBtn img {
margin: 2px 0px 4px 6px;
_display: inline;
float: left;
}
a.zPushBtn b {
cursor:pointer;
white-space: nowrap;
color: #666;
font-weight: normal;
height: 24px;
line-height: 24px;
padding: 0 7px 0 5px;
background: url(../image/baseImage/btnout_bg_right.gif) no-repeat right center;
display:inline-block;
+zoom: 1;
+display: inline;
}
a.zPushBtn:hover {
text-decoration: none;
background: url(../image/baseImage/btnover_bg_left.gif) no-repeat left center;
}
a.zPushBtn:hover b {
color: #147;
background: url(../image/baseImage/btnover_bg_right.gif) no-repeat right center;
}
a.zPushBtnDisabled,
a.zPushBtnDisabled:hover{
cursor: not-allowed;
background: url(../image/baseImage/btnDsb_bg_left.gif) no-repeat left center;
}
a.zPushBtnDisabled img,
a.zPushBtnDisabled:hover img{
opacity: 0.5;
filter: gray Alpha(Opacity = 50);
}
a.zPushBtnDisabled b,
a.zPushBtnDisabled:hover b {
cursor: not-allowed;
color: #999;
background: url(../image/baseImage/btnDsb_bg_right.gif) no-repeat right center;
}
.tabpageBar {
background: url(../Platform/Images/tabpageBar_bg.gif) repeat-x left
bottom;
padding-left: 30px;
}
.tabpageBar .divtab,.tabpageBar .divtabHover,.tabpageBar .divtabCurrent
{
position: relative;
z-index: 33;
text-decoration: none;
height: 30px;
margin: 1px 0 0 -10px;
cursor: pointer;
display: block;
float: left;
background: url(../Platform/Images/tabOutBg_left.gif) no-repeat left top
;
}
.tabpageBar .divtab img,.tabpageBar .divtabHover img,.tabpageBar .divtabCurrent img,.tabpageBar .divtabdisabled img
{
width: 20px;
height: 20px;
margin: 7px 5px 2px 8px;
display: inline;
float: left;
}
.tabpageBar .divtab b,.tabpageBar .divtabHover b,.tabpageBar .divtabCurrent b,.tabpageBar .divtabdisabled b
{
white-space: nowrap;
font-weight: normal;
height: 30px;
line-height: 24px;
/*line-height: 22px;*/
padding: 6px 25px 0 0;
/*padding: 8px 25px 0 0;*/
display: block;
float: left;
}
.tabpageBar .divtab span {
display: block;
overflow: hidden;
white-space: nowrap;
}
.tabpageBar .divtab img {
opacity: 0.7;
filter: Alpha(Opacity = 70);
}
.tabpageBar .divtab b {
color: #666;
background: url(../Platform/Images/tabOutBg_right.gif) no-repeat right
top;
}
.tabpageBar .divtabCurrent {
background: url(../Platform/Images/tabActiveBg_left.gif) no-repeat left
top;
}
.tabpageBar .divtabHover b,.tabpageBar .divtabCurrent b {
color: #147;
background: url(../Platform/Images/tabActiveBg_right.gif) no-repeat
right top;
}
.tabpageBar .divtabHover {
background: url(../Platform/Images/tabOverBg_left.gif) no-repeat left
top;
}
.tabpageBar .divtabHover b {
background: url(../Platform/Images/tabOverBg_right.gif) no-repeat right
top;
}
.tabpageBar .divtabCurrent b {
color: #000000;
}
.tabpageBar .divtabdisabled {
position: relative;
text-decoration: none;
height: 30px;
margin: 3px 0 0 -10px;
cursor: not-allowed;
background: url(../Platform/Images/tabDsb_bg_left.gif) no-repeat left
top;
display: block;
float: left;
}
.tabpageBar .divtabdisabled img {
opacity: 0.3;
filter: gray Alpha(Opacity = 50);
}
.tabpageBar .divtabdisabled b {
color: #999;
background: url(../Platform/Images/tabDsb_bg_right.gif) no-repeat right
top;
}
.verticalTabpageBar {
background: url(../Platform/Images/v_tabpageBar_bg.gif) repeat-y right
top;
padding-top: 20px;
}
.verticalTabpageBar * {
vertical-align: middle;
}
.verticalTabpageBar .divtab,.verticalTabpageBar .divtabHover,.verticalTabpageBar .divtabCurrent
{
text-align: left;
text-decoration: none;
margin: 0;
cursor: pointer;
background: url(../Platform/Images/v_tabOutBg.gif) no-repeat right
center;
display: block;
height: 32px;
width: 110px;
}
.verticalTabpageBar .divtab img,.verticalTabpageBar .divtabHover img,.verticalTabpageBar .divtabCurrent img,.verticalTabpageBar .divtabdisabled img
{
width: 20px;
height: 20px;
margin: 5px 4px 2px 9px;
float: left;
}
.verticalTabpageBar .divtabCurrent img {
margin: 9px 4px 2px 9px;
}
.verticalTabpageBar .divtab b,.verticalTabpageBar .divtabHover b,.verticalTabpageBar .divtabCurrent b,.verticalTabpageBar .divtabdisabled b
{
font-family: Tahoma, SimSun;
white-space: nowrap;
font-weight: normal;
line-height: 26px;
padding: 2px 4px 0 0;
/*padding: 2px 4px 0 0;*/
float: left;
display: block;
width: 72px;
/*width:77px;*/
overflow: hidden;
}
.verticalTabpageBar .divtabCurrent b {
padding: 6px 4px 0 0;
/*padding: 6px 4px 0 0;*/
overflow: visible;
position: static !important;
/* position: absolute;
z-index:333;
*/
}
.verticalTabpageBar .divtab img {
opacity: 0.8;
filter: Alpha(Opacity = 80);
}
.verticalTabpageBar .divtab b {
color: #555;
}
.verticalTabpageBar .divtabCurrent {
height: 40px;
background: url(../Platform/Images/v_tabActiveBg.gif) no-repeat right
center;
}
.verticalTabpageBar .divtabHover b {
color: #147;
}
.verticalTabpageBar .divtabHover {
height: 32px;
background: url(../Platform/Images/v_tabOverBg.gif) no-repeat right
center;
}
.verticalTabpageBar .divtabCurrent b {
color: #000000;
}
.verticalTabpageBar .divtabdisabled {
text-decoration: none;
height: 32px;
margin: 0;
cursor: not-allowed;
background: url(../Platform/Images/tabDsb_bg_left.gif) no-repeat left
top;
display: block;
float: left;
}
.verticalTabpageBar .divtabdisabled img {
opacity: 0.5;
filter: gray Alpha(Opacity = 50);
}
.verticalTabpageBar .divtabdisabled b {
color: #999;
background: url(../Platform/Images/tabDsb_bg_right.gif) no-repeat right
top;
}
.divchildtab,.divchildtabHover,.divchildtabCurrent,.divchildtabDisabled
{
position: relative;
text-decoration: none;
height: 26px;
_height: 25px;
margin: 3px 0 0 4px;
cursor: pointer;
background: url(../Platform/Images/s_tabout_bg_left.gif) no-repeat left
top;
display: block;
float: left;
border-bottom: #99a7b1 1px solid;
}
.divchildtabHover,.divchildtabCurrent {
background: url(../Platform/Images/s_tabover_bg_left.gif) no-repeat left
top;
border-bottom: #fff 1px solid;
}
.divchildtabDisabled {
cursor: not-allowed;
background: url(../Platform/Images/s_tabDsb_bg_left.gif) no-repeat left
top;
}
.divchildtab img,.divchildtabHover img,.divchildtabCurrent img,.divchildtabDisabled img
{
width: 20px;
height: 20px;
margin: 3px 5px 0px 8px;
display: inline;
float: left;
}
.divchildtab img {
opacity: 0.7;
filter: Alpha(Opacity = 70);
}
.divchildtabDisabled img {
opacity: 0.5;
filter: gray Alpha(Opacity = 50);
}
.divchildtab b,.divchildtabHover b,.divchildtabCurrent b,.divchildtabDisabled b
{
color: #666;
font-weight: normal;
height: 25px;
line-height: 24px;
padding: 1px 20px 0 0;
background: url(../Platform/Images/s_tabout_bg_right.gif) no-repeat
right top;
display: block;
float: left;
border-bottom: #99a7b1 1px solid;
_border-bottom: none;
}
.divchildtabHover b,.divchildtabCurrent b {
color: #147;
background: url(../Platform/Images/s_tabover_bg_right.gif) no-repeat
right top;
border-bottom: #fff 1px solid;
_border-bottom: none;
}
.divchildtabDisabled b {
color: #999;
background: url(../Platform/Images/s_tabDsb_bg_right.gif) no-repeat
right top;
}
.divchildtabHover {
border-bottom: #99a7b1 1px solid;
}
.divchildtabHover b {
border-bottom: #99a7b1 1px solid;
_border-bottom: none;
}
.divchildtabCurrent b {
color: #000000;
}
.pagetab {
vertical-align: top;
background: #F7F8FD url(../image/baseImage/pagetab_bg.gif) repeat-x
left top;
padding-top: 0;
}
.pagetab li,.pagetab li.pagetabCurrent {
position: relative;
float: left;
margin-left: -10px;
background: url(../image/baseImage/pagetab_left.gif) no-repeat left top
;
padding: 0 0 0 20px;
height: 20px;
-moz-user-select: none;
}
.pagetab b,.pagetab li.pagetabCurrent b {
cursor: pointer;
font-weight: normal;
white-space: nowrap;
color: #555;
display: block;
float: left;
background: url(../image/baseImage/pagetab_right.gif) no-repeat right
top;
padding: 0px 20px 0 0;
line-height: 17px;
height: 20px;
}
.pagetab li.pagetabCurrent {
background: url(../image/baseImage/pagetab_left_active.gif) no-repeat
left top;
z-index: 777;
}
.pagetab li.pagetabCurrent b {
background: url(../image/baseImage/pagetab_right_active.gif) no-repeat
right top;
font-weight: bold;
color: #123;
line-height: 16px;
}
.pagetab .add img {
margin: 2px 8px 0 8px;
border: #EDEDF3 1px solid;
}
.pagetab .add a:hover img {
border-bottom: #999 1px solid;
border-left: #fff 1px solid;
border-right: #999 1px solid;
border-top: #fff 1px solid;
}
.pagetab li.pagetabOver b {
color: #000000;
} | zzbasepro | trunk/basepro/WebRoot/css/tabstrip.css | CSS | oos | 10,725 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//CN">
<html>
<head>
<title>......</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/tree/dhtmlxtree.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree_json.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
</head>
<body >
<table cellspacing="0" cellpadding="6" border="0" width="180" height="100%" class="blockTable">
<tr>
<td class="blockTd" style="padding: 6px;" valign="top">
<div id="treeboxbox_tree" class="treeItem" style="width:180px; height:100%; border:1px solid Silver; overflow:auto;"></div>
</td>
</tr>
</table>
<script>
var urlHead ="<s:url value='/' encode='false' includeParams='none' ></s:url>"
function atonclick(id) {
var url = tree.getUserData(id,"url");
if(url == null || $.trim(url) == ""){
return;
}
var title = tree.getItemText(id);
//parent.frames.rightframe.location.href = urlHead + url;
parent.frames.rightframe.openTabbar(id, title, -1, urlHead + url, "150px") ;
}
function tonclick(id) {
var isOk = tree.getUserData(id,"url");
var url = "<s:url action='getModulePageList' namespace='/go' encode='false' includeParams='none' ></s:url>?param.module_id=" + id;
if(isOk == null || $.trim(isOk) == ""){
return;
}
var title = tree.getItemText(id);
parent.frames.rightframe.openTabbar(id, title, -1, url, "150px") ;
}
tree = new dhtmlXTreeObject("treeboxbox_tree", "100%", "100%", "1");
tree.setSkin('dhx_skyblue');
tree.setImagePath("<s:url value='/image/dhtmlx/tree/csh_bluebooks/' encode='false' includeParams='none' ></s:url>");
tree.enableSmartXMLParsing(true);
tree.loadXML("<s:url action='goSystem!getModuleTree' namespace='/ajax' encode='false' includeParams='none'></s:url>");
tree.setOnClickHandler(tonclick);
</script>
</body>
</html>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/left.jsp | Java Server Pages | oos | 2,899 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>......</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/tabbar/dhtmlxtabbar_self.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tabbar/dhtmlxtabbar.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tabbar/dhtmlxtabbar_start.js' encode='false' includeParams='none' ></s:url>"></script>
<script>
dhtmlx.skin = "dhx_skyblue";
</script>
</head>
<body style = "overflow:hidden;">
<div id="mTabbar" style="width:100%; height:100%;"></div>
<script>
var urlHead = "<s:url value='/' encode='false' includeParams='none' ></s:url>";
<s:if test="rParam.pageList!= null && rParam.pageList.size() > 1">
function openTabbar(id, title, pos, url, w){
var wi = "*";
if(w != undefined || w != null || w != ""){
wi = w;
}
if (pos == -1){
bodyTabbar.addTab(id, title, wi);
}else{
bodyTabbar.addTab(id, title, wi, pos);
}
bodyTabbar.setTabActive(id);
bodyTabbar.setContentHref(id, url);
}
var tabbarArr = new Array();
bodyTabbar = new dhtmlXTabBar("mTabbar", "bottom");
bodyTabbar.setSkin('dhx_skyblue');
bodyTabbar.setImagePath("<s:url value='/image/dhtmlx/tabbar/' encode='false' includeParams='none' ></s:url>");
bodyTabbar.enableAutoReSize(true);
bodyTabbar.setHrefMode("iframes");
var selectId = "";
<s:iterator value="rParam.pageList" id="mp" status="li">
//openTabbar('<s:property value="id" />', '<s:property value="page_name" />', -1, '<s:url action='%{url}' namespace="/" encode='false' includeParams='none' ></s:url>', '*') ;
openTabbar('<s:property value="id" />', '<s:property value="page_name" />', -1, urlHead+'<s:property value="url" />', '150px') ;
<s:if test='#mp.isdefault == "1"'>
selectId = "<s:property value="id" />";
</s:if>
</s:iterator>
bodyTabbar.setTabActive(selectId);
</s:if>
<s:if test="rParam.pageList!= null && rParam.pageList.size() == 1">
window.location.href = urlHead+'<s:property value="%{rParam.pageList.get(0).url}" />';
//window.location.href = '<s:url action='%{rParam.pageList.get(0).url}' namespace="/" encode='false' includeParams='none' ></s:url>';
</s:if>
</script>
</body>
</html>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/tabbarMain.jsp | Java Server Pages | oos | 3,012 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//CN">
<html>
<head>
<title>......</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
</head>
<frameset rows="70,*" cols="*" framespacing="0" frameborder="no" border="0" id='initFrameset' name='initFrameset'>
<frame name="headframe" scrolling="no" src='' />
<frameset rows="*" cols="192,*" framespacing="0" frameborder="no" border="0" id='bodyFrameset' name='bodyFrameset'>
<frame name="leftframe" src="<s:url action='goSystem' namespace='/go' encode='false' includeParams='none' ><s:param name='rekey' >left</s:param></s:url>"/>
<frame name="rightframe" src="<s:url action='goSystem' namespace='/go' encode='false' includeParams='none' ><s:param name='rekey' >right</s:param></s:url>" scrolling="no" />
<noframes>
<body>Your browser does not handle frames!!</body>
</noframes>
</frameset>
<noframes>
<body>Your browser does not handle frames!</body>
</noframes>
</frameset>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/main.jsp | Java Server Pages | oos | 1,183 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>新增任务</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script>
function sub(){
saveForm.submit();
}
function cClick(obj){
var isChecked = obj.checked;
var valDiv = obj.toDiv;
var toCB = obj.toCB;
var arrValDiv = valDiv.split(",");
for(var i = 0; i < arrValDiv.length; i++){
var arrDiv = arrValDiv[i].split("\|\$\|");
var dis = "none";
if(arrDiv[1] == "true"){
if(isChecked != false){
dis = "";
}
document.getElementById(arrDiv[0]).style.display=dis;
}else{
if(arrDiv[2]){
if(arrDiv[2] == "0"){
if(isChecked != false){
document.getElementById(arrDiv[0]).style.display="none";
}
}else if(arrDiv[2] == "1"){
if(isChecked == false){
document.getElementById(arrDiv[0]).style.display="";
}
}
}else{
dis = "";
if(isChecked != false){
dis = "none";
}
document.getElementById(arrDiv[0]).style.display=dis;
}
}
}
if(toCB){
var arrCB = toCB.split(",");
if(isChecked != false){
for(var i = 0; i < arrCB.length; i++){
document.getElementById(arrCB[i]).checked = !isChecked;
}
}
}
}
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<div id="div_list" class = "div_info_content">
<s:form name="saveForm" action="addJob" namespace="/sys" method="post">
<input type="hidden" name="param.pro_id" value="<s:property value="param.pro_id" />"></input>
<input type="text" name="param.job_detail_name"></input>
<br/>
<input type="checkbox" toDiv="yearDiv|$|true" onclick="cClick(this)" name="param.is_year" value="1"></input>使用年份
<div id="yearDiv" style="display: none">
<div>
<input type="checkbox" toDiv="joinYearDiv|$|false,otherYearDiv|$|false" onclick="cClick(this)" name="param.is_every_year" value="1"></input>每年
</div>
<div id="joinYearDiv">
<input type="checkbox" toDiv="joinYearBEDiv|$|true" onclick="cClick(this)" name="param.is_join_year" value="1"></input>使用连续年
<div id="joinYearBEDiv" style="display: none">
年份:<input type="text" name="param.b_year" value=""></input>至
<input type="text" name="param.e_year" value=""></input>年
</div>
</div>
<div id="otherYearDiv">
<input type="checkbox" toDiv="otherYearSDiv|$|true" onclick="cClick(this)" name="param.is_other_year" value="1"></input>使用个别年
<div id="otherYearSDiv" style="display: none">
<input type="text" name="param.years" value=""></input>年
</div>
</div>
</div>
<br/>
<input type="checkbox" id="is_month" toCB="is_week" toDiv="monthDiv|$|true" onclick="cClick(this)" name="param.is_month" value="1"></input>使用月份
<div id="monthDiv" style="display: none">
<div>
<input type="checkbox" toDiv="monthsDiv|$|false" onclick="cClick(this)" name="param.is_every_month" value="1"></input>每月
</div>
<div id="monthsDiv">
<input type="checkbox" name="param.months" value="1"></input>一月
<input type="checkbox" name="param.months" value="2"></input>二月
<input type="checkbox" name="param.months" value="3"></input>三月
<input type="checkbox" name="param.months" value="4"></input>四月
<input type="checkbox" name="param.months" value="5"></input>五月
<input type="checkbox" name="param.months" value="6"></input>六月
<input type="checkbox" name="param.months" value="7"></input>七月
<input type="checkbox" name="param.months" value="8"></input>八月
<input type="checkbox" name="param.months" value="9"></input>九月
<input type="checkbox" name="param.months" value="10"></input>十月
<input type="checkbox" name="param.months" value="11"></input>十一月
<input type="checkbox" name="param.months" value="12"></input>十二月
</div>
</div>
<br/>
<input type="checkbox" id="is_week" toCB="is_day" toDiv="weekDiv|$|true,dayDiv|$|false|$|0" onclick="cClick(this)" name="param.is_week" value="1"></input>使用星期
<div id="weekDiv" style="display: none">
<div>
<input type="checkbox" toDiv="weeksDiv|$|false" onclick="cClick(this)" name="param.is_every_week" value="1"></input>每星期
</div>
<div id="weeksDiv">
<input type="checkbox" name="param.weeks" value="2"></input>星期一
<input type="checkbox" name="param.weeks" value="3"></input>星期二
<input type="checkbox" name="param.weeks" value="4"></input>星期三
<input type="checkbox" name="param.weeks" value="5"></input>星期四
<input type="checkbox" name="param.weeks" value="6"></input>星期五
<input type="checkbox" name="param.weeks" value="7"></input>星期六
<input type="checkbox" name="param.weeks" value="1"></input>星期日
</div>
</div>
<br/>
<input type="checkbox" id="is_day" toCB="is_week" toDiv="dayDiv|$|true,weekDiv|$|false|$|0" onclick="cClick(this)" name="param.is_day" value="1"></input>使用天
<div id="dayDiv" style="display: none">
<div id="everyDayDiv">
<input type="checkbox" toDiv="noEveryDayDiv|$|false" onclick="cClick(this)" name="param.is_every_day" value="1"></input>每天
</div>
<div id="noEveryDayDiv">
<div id="endDayDiv">
<input type="checkbox" toDiv="joinDayDiv|$|false,otherDayDiv|$|false" onclick="cClick(this)" name="param.is_end_day" value="1"></input>使用月底
</div>
<div id="joinDayDiv">
<input type="checkbox" toDiv="joinDayBDDiv|$|true" onclick="cClick(this)" name="param.is_join_day" value="1"></input>使用连续天
<div id="joinDayBDDiv" style="display: none">
天:<input type="text" name="param.b_day" value=""></input>至
<input type="text" name="param.e_day" value=""></input>日
</div>
</div>
<div id="otherDayDiv">
<input type="checkbox" toDiv="otherDaysDiv|$|true" onclick="cClick(this)" name="param.is_other_day" value="1"></input>使用个别天
<div id="otherDaysDiv" style="display: none">
<input type="text" name="param.days" value=""></input>日
</div>
</div>
</div>
</div>
<br/>
<input type="checkbox" toDiv="hourDiv|$|true" onclick="cClick(this)" name="param.is_hour" value="1"></input>使用小时
<div id="hourDiv" style="display: none">
<div>
<input type="checkbox" id="other_hour" toDiv="hoursDiv|$|true" onclick="cClick(this)" name="param.is_other_hour" value="1"></input>使用定点小时
<div id="hoursDiv" style="display: none">
<input type="text" name="param.hours" value=""></input>时
</div>
</div>
<div>
<input type="checkbox" id="every_hour" toDiv="mHourDiv|$|true" onclick="cClick(this)" name="param.is_every_hour" value="1"></input>使用每小时
<div id="mHourDiv" style="display: none">
每<input type="text" name="param.hour" value=""></input>小时
</div>
</div>
</div>
<br/>
<input type="checkbox" toDiv="minDiv|$|true" onclick="cClick(this)" name="param.is_min" value="1"></input>使用分钟
<div id="minDiv" style="display: none">
<div>
<input type="checkbox" id="other_min" toDiv="minsDiv|$|true" onclick="cClick(this)" name="param.is_other_min" value="1"></input>使用定点分钟
<div id="minsDiv" style="display: none">
<input type="text" name="param.mins" value=""></input>分
</div>
</div>
<div>
<input type="checkbox" id="every_min" toDiv="mMinDiv|$|true" onclick="cClick(this)" name="param.is_every_min" value="1"></input>使用每分钟
<div id="mMinDiv" style="display: none">
每<input type="text" name="param.min" value=""></input>分钟
</div>
</div>
</div>
<br/>
<input type="checkbox" toDiv="secDiv|$|true" onclick="cClick(this)" name="param.is_sec" value="1"></input>使用秒钟
<div id="secDiv" style="display: none">
<div>
<input type="checkbox" id="other_sec" toDiv="secsDiv|$|true" onclick="cClick(this)" name="param.is_other_sec" value="1"></input>使用定点秒
<div id="secsDiv" style="display: none">
<input type="text" name="param.secs" value=""></input>秒
</div>
</div>
<div>
<input type="checkbox" id="every_sec" toDiv="mSecDiv|$|true" onclick="cClick(this)" name="param.is_every_sec" value="1"></input>使用每秒钟
<div id="mSecDiv" style="display: none">
每<input type="text" name="param.sec" value=""></input>秒钟
</div>
</div>
</div>
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button title="确定" txt="确定" cssClass="zPushBtn" onClick="sub();">
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/job/add_job.jsp | Java Server Pages | oos | 9,605 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>新增任务列表</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_%{#session.style}.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/window/dhtmlxwindows.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcontainer.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/tools.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
function goAddJob() {
var objDiv = document.getElementById("winDiv");
openWinUrl('winDiv','新增任务',"<s:url action="goJob" namespace="/sys" encode='false' includeParams='none'><s:param name='rekey'>add_job</s:param></s:url>¶m.pro_id=<s:property value="param.pro_id" />",true,true,true,true, 0, 0, objDiv.offsetWidth , objDiv.offsetHeight, "<s:property value="#session.style"/>");
//var objDiv = document.getElementById("winDiv");
//w1 = dhxWins.createWindow("w1", 0, 0,objDiv.style.width , objDiv.style.height);
//w1.setModal(true);
//w1.hideHeader();
//w1.setText("新增任务");
//w1.button("minmax1").hide();
//w1.button("park").hide();
//w1.denyMove();
//w1.attachURL("<s:url action="goJob" namespace="/sys" encode='false' includeParams='none'><s:param name='rekey'>add_job</s:param></s:url>¶m.pro_id=<s:property value="param.pro_id" />", false, true);
}
function goUpdateJob(id) {
var objDiv = document.getElementById("winDiv");
openWinUrl('winDiv','新增任务',"<s:url action="getJobInfo" namespace="/sys" encode='false' includeParams='none'></s:url>?param.id="+id,true,true,true,true, 0, 0, objDiv.offsetWidth , objDiv.offsetHeight, "<s:property value="#session.style"/>");
//var objDiv = document.getElementById("winDiv");
//w1 = dhxWins.createWindow("w1", 0, 0,objDiv.style.width , objDiv.style.height);
//w1.setModal(true);
//w1.hideHeader();
//w1.setText("任务详情");
//w1.button("minmax1").hide();
//w1.button("park").hide();
//w1.denyMove();
//w1.attachURL("<s:url action="getJobInfo" namespace="/sys" encode='false' includeParams='none'></s:url>?param.id="+id, false, true);
}
function stopJob(id,val){
var obj = document.getElementById("delForm");
obj.action = "<s:url action="stopJob" namespace="/sys" encode='false' includeParams='none'></s:url>?param.id="+id+"¶m.is_stop="+val;
obj.submit();
}
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<s:form id="delForm" name="delForm" action="delJob" namespace="/sys" method="post">
<div id="div_btn" class = "div_list_btn">
<z:button title="新增任务" txt="新增任务" cssClass="zPushBtn" onClick="goAddJob();">
</z:button>
<z:button title="删除任务" txt="删除任务" cssClass="zPushBtn" onClick="delForm.submit();">
</z:button>
<s:hidden id="param.pro_id" name="param.pro_id"></s:hidden>
</div>
<div id="div_list" class = "div_list_content">
<table width="100%" cellpadding="2" cellspacing="0" class="dataTable">
<tr class="dataTableHead">
<td align="center">选择</td>
<td align="center">序号</td>
<td align="center">采集名称</td>
<td align="center">创建时间</td>
<td align="center">是否停用</td>
<td align="center">操作</td>
</tr>
<s:iterator value="rParam.jobList" id="mp" status="li">
<tr>
<td align="center">
<input type="checkbox" name="param.jids" value="<s:property value="id" />"></input>
</td>
<td align="center">
<s:property value="#li.count" />
</td>
<td align="center">
<s:property value="job_detail_name" />
</td>
<td align="center">
<s:property value="create_time" />
</td>
<td align="center">
<s:if test="is_stop == 1">
启用中
</s:if>
<s:else>
停用中
</s:else>
</td>
<td align="center">
<z:button title="修改" txt="修改" cssClass="zPushBtn" onClick="goUpdateJob('${id}');">
</z:button>
<s:if test="is_stop == 1">
<z:button title="停用任务" txt="停用任务" cssClass="zPushBtn" onClick="stopJob('${id}','0');">
</z:button>
</s:if>
<s:else>
<z:button title="启用任务" txt="启用任务" cssClass="zPushBtn" onClick="stopJob('${id}','1');">
</z:button>
</s:else>
</td>
</tr>
</s:iterator>
</table>
</div>
</s:form>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/job/job_list.jsp | Java Server Pages | oos | 5,775 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>任务详情</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script>
function sub(){
saveForm.submit();
}
function cClick(obj){
var isChecked = obj.checked;
var valDiv = obj.toDiv;
var toCB = obj.toCB;
var arrValDiv = valDiv.split(",");
for(var i = 0; i < arrValDiv.length; i++){
var arrDiv = arrValDiv[i].split("\|\$\|");
var dis = "none";
if(arrDiv[1] == "true"){
if(isChecked != false){
dis = "";
}
document.getElementById(arrDiv[0]).style.display=dis;
}else{
if(arrDiv[2]){
if(arrDiv[2] == "0"){
if(isChecked != false){
document.getElementById(arrDiv[0]).style.display="none";
}
}else if(arrDiv[2] == "1"){
if(isChecked == false){
document.getElementById(arrDiv[0]).style.display="";
}
}
}else{
dis = "";
if(isChecked != false){
dis = "none";
}
document.getElementById(arrDiv[0]).style.display=dis;
}
}
}
if(toCB){
var arrCB = toCB.split(",");
if(isChecked != false){
for(var i = 0; i < arrCB.length; i++){
document.getElementById(arrCB[i]).checked = !isChecked;
}
}
}
}
function init(){
var arr = new Array("param.is_year","param.is_every_year","param.is_join_year",
"param.is_other_year","param.is_month","param.is_every_month","param.is_week",
"param.is_every_week","param.is_day","param.is_every_day","param.is_end_day",
"param.is_join_day","param.is_other_day","param.is_hour","param.is_other_hour",
"param.is_every_hour","param.is_min","param.is_other_min","param.is_every_min",
"param.is_sec","param.is_other_sec","param.is_every_sec");
for(var i = 0; i < arr.length; i++){
var obj = document.getElementById(arr[i]);
if(obj == null || obj == undefined){
var arrObj = document.getElementsByName(arr[i]);
for(var j = 0; j < arrObj.length; j++){
displayMain(arrObj[j]);
}
}else{
displayMain(obj);
}
}
}
function displayMain(obj){
var valDiv = obj.toDiv;
if(valDiv != null && valDiv != undefined && valDiv != ""){
cClick(obj);
}
}
window.onload=init;
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<div id="div_list" class = "div_info_content">
<s:form name="saveForm" action="updateJob" namespace="/sys" method="post">
<input type="hidden" name="param.pro_id" value="<s:property value="param.pro_id" />"></input>
<input type="hidden" name="param.id" value="<s:property value="param.id" />"></input>
<input type="text" name="param.job_detail_name" value="<s:property value="rParam.jobInfo.job_detail_name" />"></input>
<br/>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_year == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" toDiv="yearDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_year" value="1"></input>使用年份
<div id="yearDiv" style="display: none">
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_every_year == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<div>
<input type="checkbox" toDiv="joinYearDiv|$|false,otherYearDiv|$|false" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_every_year" value="1"></input>每年
</div>
<div id="joinYearDiv">
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_join_year == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" toDiv="joinYearBEDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_join_year" value="1"></input>使用连续年
<div id="joinYearBEDiv" style="display: none">
年份:<input type="text" name="param.b_year" value="<s:property value="rParam.jobInfo.b_year" />"></input>至
<input type="text" name="param.e_year" value="<s:property value="rParam.jobInfo.e_year" />"></input>年
</div>
</div>
<div id="otherYearDiv">
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_other_year == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" toDiv="otherYearSDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_other_year" value="1"></input>使用个别年
<div id="otherYearSDiv" style="display: none">
<input type="text" name="param.years" value="<s:property value="rParam.jobInfo.years" />"></input>年
</div>
</div>
</div>
<br/>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_month == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" id="is_month" toCB="is_week" toDiv="monthDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_month" value="1"></input>使用月份
<div id="monthDiv" style="display: none">
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_every_month == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<div>
<input type="checkbox" toDiv="monthsDiv|$|false" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_every_month" value="1"></input>每月
</div>
<div id="monthsDiv">
<input type="checkbox" name="param.months" value="1"></input>一月
<input type="checkbox" name="param.months" value="2"></input>二月
<input type="checkbox" name="param.months" value="3"></input>三月
<input type="checkbox" name="param.months" value="4"></input>四月
<input type="checkbox" name="param.months" value="5"></input>五月
<input type="checkbox" name="param.months" value="6"></input>六月
<input type="checkbox" name="param.months" value="7"></input>七月
<input type="checkbox" name="param.months" value="8"></input>八月
<input type="checkbox" name="param.months" value="9"></input>九月
<input type="checkbox" name="param.months" value="10"></input>十月
<input type="checkbox" name="param.months" value="11"></input>十一月
<input type="checkbox" name="param.months" value="12"></input>十二月
</div>
</div>
<br/>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_week == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" id="is_week" toCB="is_day" toDiv="weekDiv|$|true,dayDiv|$|false|$|0" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_week" value="1"></input>使用星期
<div id="weekDiv" style="display: none">
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_every_week == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<div>
<input type="checkbox" toDiv="weeksDiv|$|false" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_every_week" value="1"></input>每星期
</div>
<div id="weeksDiv">
<input type="checkbox" name="param.weeks" value="2"></input>星期一
<input type="checkbox" name="param.weeks" value="3"></input>星期二
<input type="checkbox" name="param.weeks" value="4"></input>星期三
<input type="checkbox" name="param.weeks" value="5"></input>星期四
<input type="checkbox" name="param.weeks" value="6"></input>星期五
<input type="checkbox" name="param.weeks" value="7"></input>星期六
<input type="checkbox" name="param.weeks" value="1"></input>星期日
</div>
</div>
<br/>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_day == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" id="is_day" toCB="is_week" toDiv="dayDiv|$|true,weekDiv|$|false|$|0" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_day" value="1"></input>使用天
<div id="dayDiv" style="display: none">
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_every_day == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<div id="everyDayDiv">
<input type="checkbox" toDiv="noEveryDayDiv|$|false" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_every_day" value="1"></input>每天
</div>
<div id="noEveryDayDiv">
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_end_day == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<div id="endDayDiv">
<input type="checkbox" toDiv="joinDayDiv|$|false,otherDayDiv|$|false" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_end_day" value="1"></input>使用月底
</div>
<div id="joinDayDiv">
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_join_day == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" toDiv="joinDayBDDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_join_day" value="1"></input>使用连续天
<div id="joinDayBDDiv" style="display: none">
天:<input type="text" name="param.b_day" value="<s:property value="rParam.jobInfo.b_day" />"></input>至
<input type="text" name="param.e_day" value="<s:property value="rParam.jobInfo.e_day" />"></input>日
</div>
</div>
<div id="otherDayDiv">
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_other_day == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" toDiv="otherDaysDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_other_day" value="1"></input>使用个别天
<div id="otherDaysDiv" style="display: none">
<input type="text" name="param.days" value="<s:property value="rParam.jobInfo.days" />"></input>日
</div>
</div>
</div>
</div>
<br/>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_hour == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" toDiv="hourDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_hour" value="1"></input>使用小时
<div id="hourDiv" style="display: none">
<div>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_other_hour == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" id="other_hour" toDiv="hoursDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_other_hour" value="1"></input>使用定点小时
<div id="hoursDiv" style="display: none">
<input type="text" name="param.hours" value="<s:property value="rParam.jobInfo.hours" />"></input>时
</div>
</div>
<div>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_every_hour == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" id="every_hour" toDiv="mHourDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_every_hour" value="1"></input>使用每小时
<div id="mHourDiv" style="display: none">
每<input type="text" name="param.hour" value="<s:property value="rParam.jobInfo.hour" />"></input>小时
</div>
</div>
</div>
<br/>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_min == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" toDiv="minDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_min" value="1"></input>使用分钟
<div id="minDiv" style="display: none">
<div>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_other_min == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" id="other_min" toDiv="minsDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_other_min" value="1"></input>使用定点分钟
<div id="minsDiv" style="display: none">
<input type="text" name="param.mins" value="<s:property value="rParam.jobInfo.mins" />"></input>分
</div>
</div>
<div>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_every_min == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" id="every_min" toDiv="mMinDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_every_min" value="1"></input>使用每分钟
<div id="mMinDiv" style="display: none">
每<input type="text" name="param.min" value="<s:property value="rParam.jobInfo.min" />"></input>分钟
</div>
</div>
</div>
<br/>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_sec == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" toDiv="secDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_sec" value="1"></input>使用秒钟
<div id="secDiv" style="display: none">
<div>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_other_sec == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" id="other_sec" toDiv="secsDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_other_sec" value="1"></input>使用定点秒
<div id="secsDiv" style="display: none">
<input type="text" name="param.secs" value="<s:property value="rParam.jobInfo.secs" />"></input>秒
</div>
</div>
<div>
<s:set name='cv' value="''"/>
<s:if test='%{rParam.jobInfo.is_every_sec == "1"}'>
<s:set name='cv' value="'checked=true'"/>
</s:if>
<input type="checkbox" id="every_sec" toDiv="mSecDiv|$|true" onclick="cClick(this)" <s:property value="#cv" /> name="param.is_every_sec" value="1"></input>使用每秒钟
<div id="mSecDiv" style="display: none">
每<input type="text" name="param.sec" value="<s:property value="rParam.jobInfo.sec" />"></input>秒钟
</div>
</div>
</div>
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button title="确定" txt="确定" cssClass="zPushBtn" onClick="sub();">
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/job/job_info.jsp | Java Server Pages | oos | 15,407 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>新增权限</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/validate/validationEngine.jquery.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate_message.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#submit").bind("click",function(){
var flag = new ValidateFactory().validate("_v_addRight");
if(flag){
$("#_v_addRight").submit();
}
});
});
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<div id="div_list" class = "div_info_content">
<s:form id="_v_addRight" name="addRight" namespace="/sys" action="addRight" method="post">
<s:label value="权限名称"></s:label>
<input validate="NotEmpty" m0="请填写权限名称" type="text" name="param.right_name" />
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button id="submit" title="添加" txt="添加" cssClass="zPushBtn" >
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/right/add_right.jsp | Java Server Pages | oos | 1,917 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>权限管理</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/tree/dhtmlxtree.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree_json.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree_start.js' encode='false' includeParams='none' ></s:url>"></script>
</head>
<body style = "overflow:hidden;">
<div id="rightTree" setImagePath="<s:url value='/image/dhtmlx/tree/csh_books/' encode='false' includeParams='none' ></s:url>" class="treeItem" style="width:180px; height:100%; border-right:1px solid Silver; overflow:auto;">
<ul>
<li id="-1">权限列表
<ul>
<s:iterator value="rParam.rightList" id="mp" status="li">
<li id='<s:property value="id" />'><s:property value="right_name" /></li>
</s:iterator>
</ul>
</li>
</ul>
</div>
<script type="text/javascript">
function tonclick(right_id){
parent.frames.module_frame.location.href = "<s:url action='getRightModuleList' namespace='/sys' encode='false' includeParams='none' ></s:url>?param.right_id="+right_id;
}
function onLoad(){
var rightTree = dhtmlXTreeFromHTML('rightTree');
rightTree.enableTreeLines(true);
rightTree.openItem("-1");
rightTree.setOnClickHandler(tonclick);
}
onLoad();
</script>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/right/right_left_list.jsp | Java Server Pages | oos | 2,448 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//CN">
<html>
<head>
<title>......</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
</head>
<frameset rows="*" cols="180,*" framespacing="0" frameborder="no" border="0" id='frameset' name='frameset'>
<body>
<frame id="right_frame" name="right_frame" src="<s:url action='getRightAllList' namespace='/sys' encode='false' includeParams='none' ></s:url>"/>
<frame id="module_frame" name="module_frame" src="" scrolling="no"/>
</body>
</frameset>
</html>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/right/main_right_module.jsp | Java Server Pages | oos | 721 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>权限详情</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/validate/validationEngine.jquery.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate_message.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#submit").bind("click",function(){
var flag = new ValidateFactory().validate("_v_updateRight");
if(flag){
$("#_v_updateRight").submit();
}
});
});
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<div id="div_list" class = "div_info_content">
<s:form id="_v_updateRight" name="updateRight" namespace="/sys" action="updateRight" method="post">
<s:label value="权限名称"></s:label>
<input validate="NotEmpty" m0="请填写权限名称" type="text" name="param.right_name" value="<s:property value="rParam.rightInfo.right_name"/>" />
<s:hidden name="param.id" value="%{rParam.rightInfo.id}"></s:hidden>
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button id="submit" title="修改" txt="修改" cssClass="zPushBtn" >
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/right/right_info.jsp | Java Server Pages | oos | 2,070 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>权限管理</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/tools.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_treegrid.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
window.onload = function (){
var t1 = new GridTree("moduleList");
t1.setImgPath("<s:url value='/image/nx_img/' encode='false' includeParams='none' ></s:url>");
t1.setColIndex(2);
t1.setSelfId("selfId");
t1.setUpId("upId");
t1.createGridTreeTable();
}
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<s:form id="updateRightModule" name="updateRightModule" action="updateRightModule" namespace="/sys" method="post">
<div id="div_btn" class = "div_list_btn">
<z:button id="save" name="save" title="保存" txt="保存" cssClass="zPushBtn" onClick="document.getElementById('updateRightModule').submit();">
</z:button>
<s:hidden name="param.right_id"></s:hidden>
</div>
<div id="div_list" class = "div_list_content">
<table id="moduleList" width="100%" cellpadding="2" cellspacing="0" class="dataTable">
<tr class="dataTableHead">
<td align="center" width="40">序号</td>
<td align="center" width="40">选择</td>
<td align="center" width="200">模块名称</td>
</tr>
<s:iterator value="rParam.moduleList" id="mp" status="li">
<tr selfId = "<s:property value="id" />" upId = "<s:property value="up_module_id" />">
<td align="center">
<s:if test='%{isselect == "-1"}'>
<input type="checkbox" name="param.mids" value="<s:property value="id" />"></input>
</s:if>
<s:if test='%{isselect != "-1"}'>
<input type="checkbox" name="param.mids" checked="true" value="<s:property value="id" />"></input>
</s:if>
</td>
<td align="center">
<s:property value="#li.count" />
</td>
<td align="left">
<font style="cursor:pointer"><s:property value="module_name" /></font>
</td>
</tr>
</s:iterator>
</table>
</div>
</s:form>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/right/module_list.jsp | Java Server Pages | oos | 3,150 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>权限管理</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_%{#session.style}.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/window/dhtmlxwindows.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcontainer.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/tools.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
function delSubmitRight(){
if(checkboxNum('param.rids',1,true)){
$("#delRight").submit();
}
}
function addRight(){
openWinUrl('addRight','添加权限','<s:url action="goRight" namespace="/sys" escapeAmp="false" encode="false" includeParams="none"><s:param name="rekey">add_right</s:param></s:url>',true,true,true,true, 30, 40, 320, 240,"<s:property value="#session.style"/>");
}
function getRightInfo(rightId){
openWinUrl('updateRight','权限详情','<s:url action="getRightInfo" namespace="/sys" escapeAmp="false" encode="false" includeParams="none"></s:url>?param.id=' + rightId,true,true,true,true, 30, 40, 320, 240,"<s:property value="#session.style"/>");
}
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<s:form id="delRight" name="delRight" namespace="/sys" action="delRight" method="post" >
<div id="div_btn" class = "div_list_btn">
<z:button title="添加权限" txt="添加权限" cssClass="zPushBtn" onClick="addRight();">
</z:button>
<z:button title="删除权限" txt="删除权限" cssClass="zPushBtn" onClick="delSubmitRight();">
</z:button>
</div>
<div id="div_list" class = "div_list_content">
<table id="roleList" width="100%" cellpadding="2" cellspacing="0" class="dataTable">
<tr class="dataTableHead">
<td align="center" width="40">选择</td>
<td align="center" width="40">序号</td>
<td align="center" width="200">权限名称</td>
<td align="center">创建时间</td>
<td align="center" width="130">操作</td>
</tr>
<s:iterator value="rParam.rightList" id="mp" status="li">
<tr>
<td align="center" >
<input type="checkbox" name="param.rids" value="<s:property value="id" />"></input>
</td>
<td align="center" >
<s:property value="#li.count" />
</td>
<td align="center" >
<s:property value="right_name" />
</td>
<td align="center" >
<s:property value="create_time" />
</td>
<td>
<z:button title="修改信息" txt="修改信息" cssClass="zPushBtn" onClick="getRightInfo('${id}');">
</z:button>
</td>
</tr>
</s:iterator>
</table>
<z:page></z:page>
</div>
</s:form>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/right/right_list.jsp | Java Server Pages | oos | 4,196 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>添加用户</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/validate/validationEngine.jquery.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate_message.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#submit").bind("click",function(){
var flag = new ValidateFactory().validate("saveForm");
if(flag){
$("#saveForm").submit();
}
});
});
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<div id="div_list" class = "div_info_content">
<s:form name="saveForm" id="saveForm" action="addUser" namespace="/sys" method="post">
账户:
<br />
<input type="text" validate="NotEmpty" m0="请填写账户" name="param.user_code">
<br />
姓名
<br />
<input type="text" validate="NotEmpty" m0="请填写姓名" name="param.user_name">
<br />
密码
<br />
<input type="text" validate="NotEmpty" m0="请填写密码" name="param.password">
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button id="submit" title="新增用户" txt="新增用户" cssClass="zPushBtn" >
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/user/add_user.jsp | Java Server Pages | oos | 2,151 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>角色列表</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/tree/dhtmlxtree.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree_json.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree_start.js' encode='false' includeParams='none' ></s:url>"></script>
</head>
<body>
<div id="winDiv" class="div_win">
<s:form name="saveUserRole" id="saveUserRole" action="saveUserRole" namespace="/sys" method="post">
<div id="div_btn" class = "div_list_btn">
<z:button title="保存" txt="保存" cssClass="zPushBtn" onClick="document.getElementById('saveUserRole').submit();">
</z:button>
<z:button title="放弃" txt="放弃" cssClass="zPushBtn" onClick="window.location.reload();">
</z:button>
<s:hidden name="param.user_id"></s:hidden>
</div>
<div id="div_list" class = "div_list_content">
<table width="100%" cellpadding="2" cellspacing="0" class="dataTable">
<tr class="dataTableHead">
<td align="center">选择</td>
<td align="center">序号</td>
<td align="center">角色名称</td>
<td align="center">创建时间</td>
</tr>
<s:iterator value="rParam.roleList" id="mp" status="li">
<tr>
<td align="center">
<s:if test='%{isselect == "-1"}'>
<input type="checkbox" name="param.rids" value="<s:property value="id" />"></input>
</s:if>
<s:if test='%{isselect != "-1"}'>
<input type="checkbox" name="param.rids" value="<s:property value="id" />" checked="checked"></input>
</s:if>
</td>
<td align="center">
<s:property value="#li.count" />
</td>
<td align="center">
<s:property value="role_name" />
</td>
<td align="center">
<s:property value="create_time" />
</td>
</tr>
</s:iterator>
</table>
</div>
</s:form>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/user/role_list.jsp | Java Server Pages | oos | 3,161 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>修改用户</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/validate/validationEngine.jquery.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate_message.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#submit").bind("click",function(){
var flag = new ValidateFactory().validate("updateUser");
if(flag){
$("#updateUser").submit();
}
});
});
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<div id="div_list" class = "div_info_content">
<s:form name="updateUser" id="updateUser" action="updateUser" namespace="/sys" method="post">
<input type="hidden" name="param.id" value="<s:property value="rParam.userMap.id" />"></input>
账户:
<br />
<input type="text" validate="NotEmpty" m0="请填写账户" name="param.user_code" value="<s:property value="rParam.userMap.user_code" />">
<br />
姓名
<br />
<input type="text" validate="NotEmpty" m0="请填写姓名" name="param.user_name" value="<s:property value="rParam.userMap.user_name" />">
<br />
密码
<br />
<input type="text" validate="NotEmpty" m0="请填写密码" name="param.password" value="<s:property value="rParam.userMap.password" />">
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button id="submit" title="修改用户" txt="修改用户" cssClass="zPushBtn" >
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/user/user_info.jsp | Java Server Pages | oos | 2,423 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>用户管理</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_%{#session.style}.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/window/dhtmlxwindows.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcontainer.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/tools.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
function goAddUser() {
openWinUrl('addUser','新增用户','<s:url action="goUser" namespace="/sys" encode='false' includeParams='none'><s:param name='rekey'>add_user</s:param></s:url>',true,true,true,true, 30, 40, 320, 240, "<s:property value="#session.style"/>");
}
function goUpdateUser(id) {
openWinUrl('updateUser','修改用户','<s:url action="getUserInfo" namespace="/sys" encode='false' includeParams='none'></s:url>?param.id='+id,true,true,true,true, 30, 40, 320, 240, "<s:property value="#session.style"/>");
}
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<s:form name="delForm" action="delUser" namespace="/sys" method="post">
<div id="div_btn" class = "div_list_btn">
<z:button title="新增用户" txt="新增用户" cssClass="zPushBtn" onClick="goAddUser();">
</z:button>
<z:button title="删除用户" txt="删除用户" cssClass="zPushBtn" onClick="delForm.submit();">
</z:button>
</div>
<div id="div_list" class = "div_list_content">
<table width="100%" cellpadding="2" cellspacing="0" class="dataTable">
<tr class="dataTableHead">
<td align="center">选择</td>
<td align="center">序号</td>
<td align="center">账户</td>
<td align="center">姓名</td>
<td align="center">创建时间</td>
<td align="center">操作</td>
</tr>
<s:iterator value="rParam.userList" id="mp" status="li">
<tr>
<td align="center">
<input type="checkbox" name="param.uids" value="<s:property value="id" />"></input>
</td>
<td align="center">
<s:property value="#li.count" />
</td>
<td align="center">
<s:property value="user_code" />
</td>
<td align="center">
<s:property value="user_name" />
</td>
<td align="center">
<s:property value="create_time" />
</td>
<td align="center">
<z:button title="修改" txt="修改" cssClass="zPushBtn" onClick="goUpdateUser('${id}');">
</z:button>
</td>
</tr>
</s:iterator>
</table>
<z:page>
</z:page>
</div>
</s:form>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/user/user_list.jsp | Java Server Pages | oos | 4,090 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//CN">
<html>
<head>
<title>......</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
</head>
<frameset rows="*" cols="180,*" framespacing="0" frameborder="no" border="0" id='frameset' name='frameset'>
<body>
<frame id="user_frame" name="user_frame" src="<s:url action='getUserTree' namespace='/ajax' encode='false' includeParams='none' ></s:url>"/>
<frame id="role_frame" name="role_frame" src="" scrolling="no"/>
</body>
</frameset>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/user/main_user_role.jsp | Java Server Pages | oos | 710 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>用户列表</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/tree/dhtmlxtree.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree_json.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree_start.js' encode='false' includeParams='none' ></s:url>"></script>
</head>
<body style = "overflow:hidden;">
<div id="userTree" setImagePath="<s:url value='/image/dhtmlx/tree/csh_books/' encode='false' includeParams='none' ></s:url>" class="treeItem" style="width:180px; height:100%; border-right:1px solid Silver; overflow:auto;">
<ul>
<li id="-1">用户列表
<ul>
<s:iterator value="rParam.userList" id="mp" status="li">
<li id='<s:property value="id" />'><s:property value="user_name" /></li>
</s:iterator>
</ul>
</li>
</ul>
</div>
<script type="text/javascript">
function link(user_id){
parent.frames.role_frame.location.href = "<s:url action='getUserRoleList' namespace='/sys' encode='false' includeParams='none' ></s:url>?param.user_id="+user_id;
}
function tonclick(id){
link(id);
}
function onLoad(){
var rightTree = dhtmlXTreeFromHTML('userTree');
rightTree.enableTreeLines(true);
rightTree.openItem("-1");
rightTree.setOnClickHandler(tonclick);
}
onLoad();
</script>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/user/user_tree.jsp | Java Server Pages | oos | 2,480 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//CN">
<html>
<head>
<title>......</title>
</head>
<body>
aaa
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/module/right_module.jsp | Java Server Pages | oos | 247 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>页面列表</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_%{#session.style}.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/window/dhtmlxwindows.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcontainer.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/tools.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
function delSubmitPage(){
if(checkboxNum('param.pids',1,true)){
$("#delPage").submit();
}
}
function addPage(){
openWinUrl('addPage','添加页面','<s:url action="goModule" namespace="/sys" escapeAmp="false" encode="false" includeParams="none"><s:param name="rekey">add_page</s:param><s:param name="param.module_id"><s:property value="param.module_id" /></s:param></s:url>' ,true,true,true,true, 30, 40, 320, 240, "<s:property value="#session.style"/>");
}
function getPageInfo(pageId){
openWinUrl('getPageInfo','修改页面','<s:url action="getPageInfo" namespace="/sys" escapeAmp="false" encode="false" includeParams="none"></s:url>?param.id='+ pageId,true,true,true,true, 30, 40, 320, 240, "<s:property value="#session.style"/>");
}
</script>
</head>
<body>
<s:form id="delPage" name="delPage" namespace="/sys" action="delPage" method="post">
<s:hidden name="param.module_id"></s:hidden>
<z:button title="添加页面" txt="添加页面" cssClass="zPushBtn" onClick="addPage();">
</z:button>
<z:button title="删除页面" txt="删除页面" cssClass="zPushBtn" onClick="delSubmitPage();">
</z:button>
<div style="overFlow-y:auto;height: 198">
<table id="roleList" width="100%" cellpadding="2" cellspacing="0" class="dataTable">
<tr class="dataTableHead">
<td align="center" width="40">选择</td>
<td align="center" width="40">序号</td>
<td align="center" width="200">页面名称</td>
<td align="center" width="200">页面链接地址</td>
<td align="center">是否默认</td>
<td align="center">操作</td>
</tr>
<s:iterator value="rParam.pageList" id="mp" status="li">
<tr>
<td align="center">
<input type="checkbox" name="param.pids" value="<s:property value="id" />"></input>
</td>
<td align="center"><s:property value="#li.count" /></td>
<td align="center">
<s:property value="page_name" />
</td>
<td align="center">
<s:property value="url" />
</td>
<td align="center" >
<s:if test='#mp.isdefault == "1"'>
是
</s:if>
<s:if test='#mp.isdefault != "1"'>
否
</s:if>
</td>
<td align="center" >
<z:button title="修改页面" txt="修改页面" cssClass="zPushBtn" onClick="getPageInfo('${id}');">
</z:button>
<a href="<s:url action='updateDefaultPage' namespace='/sys' encode='false' includeParams='none'>
<s:param name='param.id'><s:property value="id" /></s:param>
<s:param name='param.module_id'><s:property value="param.module_id" /></s:param>
</s:url>" class="zPushBtn" tabindex="-1"><b> 设置为默认 </b></a>
</td>
</tr>
</s:iterator>
</table>
</div>
<z:page></z:page>
</s:form>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/module/page_list.jsp | Java Server Pages | oos | 4,740 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>模块详情</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
</head>
<body>
<iframe framespacing="0" frameborder="no" border="0" width="100%" height="50%" src="<s:url action='getChildModuleList' namespace='/sys' encode='false' includeParams='none' ><s:param name='param.id'><s:property value='param.id'/></s:param><s:param name='param.module_code'><s:property value='rParam.moduleInfo.module_code'/></s:param></s:url>"></iframe>
<hr/>
<iframe framespacing="0" frameborder="no" border="0" width="100%" height="50%" src="<s:url action='getModulePageList' namespace='/sys' encode='false' includeParams='none' ><s:param name='param.module_id'><s:property value='param.id'/></s:param></s:url>"></iframe>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/module/module_page_main.jsp | Java Server Pages | oos | 1,120 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>模块详情</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
</head>
<body>
<s:form id="_v_updateModule" name="updateModule" namespace="/sys" action="updateModule" method="post">
<table>
<tr>
<td>
<label>模块名称</label>
</td>
<td>
<input validate="NotEmpty" type="text" name="param.module_name" value="<s:property value='rParam.moduleInfo.module_name'/>" />
</td>
<td>
<z:button title="添加" txt="添加" cssClass="zPushBtn" onClick="updateModule.submit();">
</z:button>
</td>
</tr>
</table>
<s:hidden name="param.id"></s:hidden>
</s:form>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/module/module_info.jsp | Java Server Pages | oos | 1,214 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//CN">
<html>
<head>
<title>......</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
</head>
<frameset rows="*" cols="180,*" framespacing="0" frameborder="no" border="0" id='frameset' name='frameset'>
<body>
<frame id="left_module_frame" name="left_module_frame" src="<s:url action='goModule' namespace='/go' encode='false' includeParams='none' ><s:param name='rekey' >initLeftTree</s:param></s:url>"/>
<frame id="right_module_frame" name="right_module_frame" src="" scrolling="no"/>
</body>
</frameset>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/module/main_module.jsp | Java Server Pages | oos | 780 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>添加模块</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
</head>
<body>
<s:form id="_v_addModule" name="addModule" namespace="/sys" action="addModule" method="post">
<s:label value="子模块名称"></s:label>
<input validate="NotEmpty" type="text" name="param.module_name" />
<s:hidden name="param.up_module_id" value="%{param.id}"></s:hidden>
<s:hidden name="param.module_code"></s:hidden>
<z:button title="修改" txt="修改" cssClass="zPushBtn" onClick="addModule.submit();">
</z:button>
</s:form>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/module/add_module.jsp | Java Server Pages | oos | 1,110 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>页面详情</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
</head>
<body>
<s:form id="_v_updatePage" name="updatePage" namespace="/sys" action="updatePage" method="post">
<s:label value="页面名称"></s:label>
<input validate="NotEmpty" type="text" name="param.page_name" value="<s:property value='rParam.pageInfo.page_name'/>" />
<br/>
<s:label value="页面地址"></s:label>
<input validate="NotEmpty" type="text" name="param.url" value="<s:property value='rParam.pageInfo.url'/>" />
<s:hidden name="param.id" value="%{param.id}"></s:hidden>
<br/>
<z:button title="修改" txt="修改" cssClass="zPushBtn" onClick="updatePage.submit();">
</z:button>
</s:form>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/module/page_info.jsp | Java Server Pages | oos | 1,290 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>模块列表</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_%{#session.style}.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/window/dhtmlxwindows.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcontainer.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/tools.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
function delSubmitModule(){
if(checkboxNum('param.mids',1,true)){
$("#delModule").submit();
}
}
function addModule(){
openWinUrl('addModule','添加模块','<s:url action="goModule" namespace="/sys" escapeAmp="false" encode="false" includeParams="none"><s:param name="rekey">add_module</s:param><s:param name="param.id"><s:property value="param.id" /></s:param><s:param name="param.module_code"><s:property value="param.module_code" /></s:param></s:url>' ,true,true,true,true, 30, 40, 320, 240, "<s:property value="#session.style"/>");
}
function getModuleInfo(moduleId){
openWinUrl('ModuleInfo','模块详情','<s:url action="getModuleInfo" namespace="/sys" escapeAmp="false" encode="false" includeParams="none"></s:url>?param.id=' + moduleId,true,true,true,true, 30, 40, 320, 240, "<s:property value="#session.style"/>");
}
</script>
</head>
<body>
<s:form id="delModule" name="delModule" namespace="/sys" action="delModule" method="post">
<s:hidden name="param.id"></s:hidden>
<z:button title="添加模块" txt="添加模块" cssClass="zPushBtn" onClick="addModule();">
</z:button>
<z:button title="删除模块" txt="删除模块" cssClass="zPushBtn" onClick="delSubmitModule();">
</z:button>
<div style="overFlow-y:auto;height: 198">
<table id="roleList" width="100%" cellpadding="2" cellspacing="0" class="dataTable">
<tr class="dataTableHead">
<td align="center" width="10%">选择</td>
<td align="center" width="10%">序号</td>
<td align="center" width="30%">模块名称</td>
<td align="center" width="30%">创建时间</td>
<td align="center" width="20%">操作</td>
</tr>
<s:iterator value="rParam.moduleList" id="mp" status="li">
<tr>
<td align="center">
<input type="checkbox" name="param.mids" value="<s:property value="id" />"></input>
</td>
<td align="center">
<s:property value="#li.count" />
</td>
<td align="center">
<s:property value="module_name" />
</td>
<td align="center">
<s:property value="create_time" />
</td>
<td align="center">
<z:button title="修改模块" txt="修改模块" cssClass="zPushBtn" onClick="getModuleInfo('${id}');">
</z:button>
</td>
</tr>
</s:iterator>
</table>
</div>
<z:page></z:page>
<br/>
</s:form>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/module/module_list.jsp | Java Server Pages | oos | 4,283 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//CN">
<html>
<head>
<title>......</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/tree/dhtmlxtree.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree_json.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
</head>
<body>
<div id="treeboxbox_tree" class="treeItem" style="width:180px; height:100%; border-right:1px solid Silver; overflow:auto;"></div>
</body>
</html>
<script>
//var treeXML = ajaxTreeXml();
function getOpen(nodeId){
var arrStr = tree.getAllUnchecked(nodeId);
var arr = arrStr.split(",");
var rIds = "";
for(var i = 0; i < arr.length; i ++){
var itemId = arr[i];
//alert(itemId+" |-----| "+tree.getOpenState(itemId));
if(tree.getOpenState(itemId) == 1){
if(rIds == ""){
rIds = itemId + "$" + tree.getOpenState(itemId)
}else{
rIds += "," + itemId + "$" + tree.getOpenState(itemId)
}
}
}
return rIds;
}
function ajaxTreeXml(){
$.ajax({
type: "POST",
url: "<s:url action='getAllModule' namespace='/sys' encode='false' includeParams='none'/>",
success: function(msg){
alert(msg);
//var options = eval(msg);
return msg;
}
});
}
function tonclick(id) {
parent.frames.right_module_frame.location.href = "<s:url action='getModuleInfo' namespace='/sys' encode='false' includeParams='none' ><s:param name='rekey'>module_page_main</s:param></s:url>¶m.id="+id;
}
tree = new dhtmlXTreeObject("treeboxbox_tree", "100%", "100%", 0);
tree.setSkin('dhx_skyblue');
tree.setImagePath("<s:url value='/image/dhtmlx/tree/csh_bluebooks/' encode='false' includeParams='none' ></s:url>");
tree.enableSmartXMLParsing(true);
var openStr = "<s:property value='param.openStr'/>";
tree.loadXML("<s:url action='goModule!getAllModule' namespace="/go" encode='false' includeParams='none'></s:url>?param.openStr="+openStr);
tree.setOnClickHandler(tonclick);
</script>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/module/left_module.jsp | Java Server Pages | oos | 3,001 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>添加页面</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
</head>
<body>
<s:form id="_v_addPage" name="addPage" namespace="/sys" action="addPage" method="post">
<s:label value="页面名称"></s:label>
<input validate="NotEmpty" type="text" name="param.page_name" />
<br/>
<s:label value="页面地址"></s:label>
<input validate="NotEmpty" type="text" name="param.url" />
<s:hidden name="param.module_id" value="%{param.module_id}"></s:hidden>
<br/>
<z:button title="添加" txt="添加" cssClass="zPushBtn" onClick="addPage.submit();">
</z:button>
</s:form>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/module/add_page.jsp | Java Server Pages | oos | 1,186 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>新增栏目</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/validate/validationEngine.jquery.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate_message.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#submit").bind("click",function(){
var flag = new ValidateFactory().validate("_v_addType");
if(flag){
$("#_v_addType").submit();
}
});
var win = document.getElementById("winDiv");
var btn = document.getElementById("div_btn");
var list = document.getElementById("div_list");
//list.style.height = (parseInt(win.offsetHeight) - parseInt(btn.offsetHeight)) + "px";
});
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<div id="div_list" class = "div_info_content">
<s:form id="_v_addType" name="addType" namespace="/sys" action="addType" method="post">
<s:hidden name="param.up_type_id" value="%{param.up_type_id}"></s:hidden>
<s:hidden name="param.upcode" value="%{param.upcode}"></s:hidden>
<table>
<tr>
<td>
<s:label value="栏目名称"></s:label>
</td>
<td>
<input validate="NotEmpty" m0="请填写栏目名称" type="text" name="param.type_name" />
</td>
</tr>
<tr>
<td>
<s:label value="备注"></s:label>
</td>
<td>
<textarea id="param.remark" name="param.remark" rows="8" cols="44"></textarea>
</td>
</tr>
</table>
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button id="submit" title="添加" txt="添加" cssClass="zPushBtn">
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/type/add_type.jsp | Java Server Pages | oos | 2,649 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>栏目详情</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/validate/validationEngine.jquery.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate_message.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#submit").bind("click",function(){
var flag = new ValidateFactory().validate("_v_updateType");
if(flag){
$("#_v_updateType").submit();
}
});
});
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<div id="div_list" class = "div_info_content">
<s:form id="_v_updateType" name="updateType" namespace="/sys" action="updateType" method="post">
<s:hidden name="param.id" value="%{rParam.typeInfo.id}"></s:hidden>
<table>
<tr>
<td>
<s:label value="栏目名称"></s:label>
</td>
<td>
<input validate="NotEmpty" m0="请填写栏目名称" type="text" name="param.type_name" value='<s:property value="rParam.typeInfo.type_name"/>'/>
</td>
</tr>
<tr>
<td>
<s:label value="备注"></s:label>
</td>
<td>
<textarea id="param.remark" name="param.remark" rows="8" cols="44"><s:property value="rParam.typeInfo.remark"/></textarea>
</td>
</tr>
</table>
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button title="修改" txt="修改" id="submit" cssClass="zPushBtn">
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/type/type_info.jsp | Java Server Pages | oos | 2,419 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>栏目列表</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_%{#session.style}.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/window/dhtmlxwindows.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcontainer.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/tools.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_treegrid.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
window.onload = function (){
var t1 = new GridTree("typeList");
t1.setImgPath("<s:url value='/image/nx_img/' encode='false' includeParams='none' ></s:url>");
t1.setColIndex(2);
t1.setSelfId("selfId");
t1.setUpId("upId");
t1.createGridTreeTable();
var win = document.getElementById("winDiv");
var btn = document.getElementById("div_btn");
var list = document.getElementById("div_list");
list.style.height = (parseInt(win.offsetHeight) - parseInt(btn.offsetHeight)) + "px";
}
function addTopType(){
openWinUrl('winDiv','添加顶级栏目','<s:url action="goType" namespace="/sys" escapeAmp="false" encode="false" includeParams="none"><s:param name="rekey">add_type</s:param><s:param name="param.up_type_id" value="0"/></s:url>',true,true,true,true, 30, 40, 320, 240, "<s:property value="#session.style"/>");
}
function addChildType(upId, upcode){
openWinUrl('winDiv','添加栏目','<s:url action="goType" namespace="/sys" escapeAmp="false" encode="false" includeParams="none"><s:param name="rekey">add_type</s:param></s:url>¶m.up_type_id='+upId+'¶m.upcode='+upcode,true,true,true,true, 30, 40, 320, 240, "<s:property value="#session.style"/>");
}
function delTypes(){
if(checkboxNum("param.tcodes",1,true)){
$("#delType").submit();
}
}
function getTypeInfo(id){
openWinUrl('winDiv','栏目详情','<s:url action="getTypeInfo" namespace="/sys" escapeAmp="false" encode="false" includeParams="none"></s:url>?param.id='+id,true,true,true,true, 30, 40, 320, 240, "<s:property value="#session.style"/>");
}
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<s:form name="delType" id="delType" action="delType" namespace="/sys" method="post">
<div id="div_btn" class = "div_list_btn">
<z:button title="添加顶级栏目" txt="添加顶级栏目" cssClass="zPushBtn" onClick="addTopType();">
</z:button>
<z:button title="删除栏目" txt="删除栏目" cssClass="zPushBtn" onClick="delTypes();">
</z:button>
<s:hidden name="param.user_id"></s:hidden>
</div>
<div id="div_list" class = "div_list_content">
<table id="typeList" cellpadding="2" cellspacing="0" class="dataTable" width="100%">
<tr class="dataTableHead">
<td align="center" width="5%">选择</td>
<td align="center" width="5%">序号</td>
<td align="center" width="20%">栏目名称</td>
<td align="center" width="20%">创建时间</td>
<td align="center" width="34%">备注</td>
<td align="center" width="16%">操作</td>
</tr>
<s:iterator value="rParam.typeList" id="mp" status="li">
<tr selfId = "<s:property value="id" />" upId = "<s:property value="up_type_id" />">
<td align="center">
<input type="checkbox" name="param.tcodes" value="<s:property value="type_code" />"></input>
</td>
<td align="center">
<s:property value="#li.count" />
</td>
<td align="left">
<font style="cursor:pointer"><s:property value="type_name" /></font>
</td>
<td align="center">
<s:property value="create_time" />
</td>
<td align="center">
<s:property value="remark" />
</td>
<td>
<z:button title="添加子栏目" txt="添加子栏目" cssClass="zPushBtn" onClick="addChildType('${id}','${type_code}');">
</z:button>
<z:button title="修改信息" txt="修改信息" cssClass="zPushBtn" onClick="getTypeInfo('${id}');">
</z:button>
</td>
</tr>
</s:iterator>
</table>
</div>
</s:form>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/type/type_list.jsp | Java Server Pages | oos | 5,741 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>角色管理</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_%{#session.style}.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/window/dhtmlxwindows.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcontainer.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/tools.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
function delSubmitRole(){
if(checkboxNum('param.rids',1,true)){
$("#delRole").submit();
}
}
function addRole(){
openWinUrl('addRole','添加角色','<s:url action="goRole" namespace="/sys" escapeAmp="false" encode="false" includeParams="none"><s:param name="rekey">add_role</s:param></s:url>',true,true,true,true, 30, 40, 320, 240, "<s:property value="#session.style"/>");
}
function getRoleInfo(roleId){
openWinUrl('updateRole','角色详情','<s:url action="getRoleInfo" namespace="/sys" escapeAmp="false" encode="false" includeParams="none"></s:url>?param.id=' + roleId,true,true,true,true, 30, 40, 320, 240, "<s:property value="#session.style"/>");
}
function delRoles(){
if(checkboxNum("param.rids",1,true)){
$("#delRole").submit();
}
}
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<s:form id="delRole" name="delRole" namespace="/sys" action="delRole" method="post" >
<div id="div_btn" class = "div_list_btn">
<z:button title="添加角色" txt="添加角色" cssClass="zPushBtn" onClick="addRole();">
</z:button>
<z:button title="删除角色" txt="删除角色" cssClass="zPushBtn" onClick="delRoles();">
</z:button>
</div>
<div id="div_list" class = "div_list_content">
<table id="roleList" width="100%" cellpadding="2" cellspacing="0" class="dataTable">
<tr class="dataTableHead">
<td align="center" width="40">选择</td>
<td align="center" width="40">序号</td>
<td align="center" width="200">角色名称</td>
<td align="center" width="100">创建时间</td>
<td align="center" width="130">操作</td>
</tr>
<s:iterator value="rParam.roleList" id="mp" status="li">
<tr>
<td align="center">
<input type="checkbox" name="param.rids" value="<s:property value="id" />"></input>
</td>
<td align="center">
<s:property value="#li.count" />
</td>
<td align="left">
<font style="cursor:pointer"><s:property value="role_name" /></font>
</td>
<td align="center">
<s:property value="create_time" />
</td>
<td>
<z:button title="修改信息" txt="修改信息" cssClass="zPushBtn" onClick="getRoleInfo('${id}');">
</z:button>
</td>
</tr>
</s:iterator>
</table>
<z:page></z:page>
</div>
</s:form>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/role/role_list.jsp | Java Server Pages | oos | 4,351 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>角色管理</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/tree/dhtmlxtree.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree_json.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree_start.js' encode='false' includeParams='none' ></s:url>"></script>
</head>
<body style = "overflow:hidden;">
<div id="roleTree" setImagePath="<s:url value='/image/dhtmlx/tree/csh_books/' encode='false' includeParams='none' ></s:url>" class="treeItem" style="width:180px; height:100%; border-right:1px solid Silver; overflow:auto;">
<ul>
<li id="-1">角色列表
<ul>
<s:iterator value="rParam.roleList" id="mp" status="li">
<li id='<s:property value="id" />'><s:property value="role_name" /></li>
</s:iterator>
</ul>
</li>
</ul>
</div>
<script type="text/javascript">
function tonclick(role_id){
parent.frames.right_frame.location.href = "<s:url action='getRoleRightList' namespace='/sys' encode='false' includeParams='none' ></s:url>?param.role_id="+role_id;
}
function onLoad(){
var rightTree = dhtmlXTreeFromHTML('roleTree');
rightTree.enableTreeLines(true);
rightTree.openItem("-1");
rightTree.setOnClickHandler(tonclick);
}
onLoad();
</script>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/role/role_left_list.jsp | Java Server Pages | oos | 2,445 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>角色详情</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/validate/validationEngine.jquery.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate_message.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#submit").bind("click",function(){
var flag = new ValidateFactory().validate("_v_updateRole");
if(flag){
$("#_v_updateRole").submit();
}
});
});
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<div id="div_list" class = "div_info_content">
<s:form id="_v_updateRole" name="updateRole" namespace="/sys" action="updateRole" method="post">
<s:label value="栏目名称"></s:label>
<input validate="NotEmpty" m0="请填写角色名称" type="text" name="param.role_name" value='<s:property value="rParam.roleInfo.role_name"/>'/>
<s:hidden name="param.id" value="%{rParam.roleInfo.id}"></s:hidden>
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button title="修改" txt="修改" cssClass="zPushBtn" id="submit">
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/role/role_info.jsp | Java Server Pages | oos | 2,062 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//CN">
<html>
<head>
<title>......</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
</head>
<frameset rows="*" cols="180,*" framespacing="0" frameborder="no" border="0" id='frameset' name='frameset'>
<body>
<frame id="role_frame" name="role_frame" src="<s:url action='getRoleList' namespace='/ajax' encode='false' includeParams='none' ></s:url>"/>
<frame id="right_frame" name="right_frame" src="" scrolling="no"/>
</body>
</frameset>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/role/main_role_right.jsp | Java Server Pages | oos | 712 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>新增角色</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/validate/validationEngine.jquery.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate_message.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#submit").bind("click",function(){
var flag = new ValidateFactory().validate("_v_addRole");
if(flag){
$("#_v_addRole").submit();
}
});
});
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<div id="div_list" class = "div_info_content">
<s:form id="_v_addRole" name="addRole" namespace="/sys" action="addRole" method="post">
<s:label value="角色名称"></s:label>
<input validate="NotEmpty" m0="请填写角色名称" type="text" name="param.role_name" />
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button title="添加" txt="添加" cssClass="zPushBtn" id="submit">
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/role/add_role.jsp | Java Server Pages | oos | 1,910 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>权限管理</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_%{#session.style}.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/window/dhtmlxwindows.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcontainer.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/tools.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
function update(){
if(checkboxNum("param.rids",1,true)){
$("#updateRoleRight").submit();
}
}
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<s:form id="updateRoleRight" name="updateRoleRight" action="updateRoleRight" namespace="/sys" method="post">
<div id="div_btn" class = "div_list_btn">
<z:button title="保存" txt="保存" cssClass="zPushBtn" onClick="update();">
</z:button>
<s:hidden name="param.role_id"></s:hidden>
</div>
<div id="div_list" class = "div_list_content">
<table id="roleRightList" width="100%" cellpadding="2" cellspacing="0" class="dataTable">
<tr class="dataTableHead">
<td align="center" width="30">序号</td>
<td align="center" width="30">选择</td>
<td align="center" width="200">权限名称</td>
</tr>
<s:iterator value="rParam.roleRightList" id="mp" status="li">
<tr>
<td align="center">
<s:property value="#li.count" />
</td>
<td align="center">
<s:if test='%{rids == "0"}'>
<input type="checkbox" name="param.rids" value="<s:property value="id" />"></input>
</s:if>
<s:if test='%{rids != "0"}'>
<input type="checkbox" name="param.rids" checked="true" value="<s:property value="id" />"></input>
</s:if>
</td>
<td align="left">
<font style="cursor:pointer"><s:property value="right_name" /></font>
</td>
</tr>
</s:iterator>
</table>
</div>
</s:form>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/role/right_list.jsp | Java Server Pages | oos | 3,467 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>修改采集</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
function updateA(){
var obj = document.getElementById("updateAcquisition");
obj.submit();
}
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<div id="div_list" class = "div_info_content">
<s:form name="updateAcquisition" id="updateAcquisition" action="updateAcquisition" namespace="/sys" method="post">
<input type="hidden" name="param.id" value="<s:property value="rParam.acquisitionMap.id" />"></input>
栏目类型
<z:pagecode col="TYPE_NAME" table="nx_data_type" where="is_show = '1' and is_del = '0'" order="type_code"></z:pagecode>
<br />
采集名称
<br />
<input type="text" size="88" name="param.acquisition_name" value="<s:property value="rParam.acquisitionMap.acquisition_name" />">
<br />
网站前缀(用于防盗链采集)
<br />
<input type="text" size="88" name="param.referer" value="<s:property value="rParam.acquisitionMap.referer" />">
<br />
类别
<br />
<input type="text" size="88" name="param.data_type_id" value="<s:property value="rParam.acquisitionMap.data_type_id" />">
<br />
编码格式
<br />
<input type="text" size="88" name="param.encoding" value="<s:property value="rParam.acquisitionMap.encoding" />">
<br />
列表页起始页
<br />
<input type="text" size="88" name="param.fristlistpage" value="<s:property value="rParam.acquisitionMap.fristlistpage" />">
<br />
列表页
<br />
<input type="text" size="88" name="param.listpage" value="<s:property value="rParam.acquisitionMap.listpage" />">
<br />
列表页开始内容
<br />
<textarea name="param.listb" rows=5 cols=88><s:property value="rParam.acquisitionMap.listb" /></textarea>
<br />
列表页结束内容
<br />
<textarea name="param.liste" rows=5 cols=88><s:property value="rParam.acquisitionMap.liste" /></textarea>
<br />
列表页标题
<br />
<textarea name="param.listtitle" rows=5 cols=88><s:property value="rParam.acquisitionMap.listtitle" /></textarea>
<br />
列表页内容链接
<br />
<textarea name="param.listlink" rows=5 cols=88><s:property value="rParam.acquisitionMap.listlink" /></textarea>
<br />
列表页内容链接前缀域名
<br />
<input type="text" size="88" name="param.listblink" value="<s:property value="rParam.acquisitionMap.listblink" />">
<br />
列表页开始页数
<br />
<input type="text" name="param.listpagebnum" size="88" value="<s:property value="rParam.acquisitionMap.listpagebnum" />">
</textarea>
<br />
列表页结束页数
<br />
<input type="text" name="param.listpageenum" size="88" value="<s:property value="rParam.acquisitionMap.listpageenum" />">
</textarea>
<br />
内容页开始内容
<br />
<textarea name="param.pageb" rows=5 cols=88><s:property value="rParam.acquisitionMap.pageb" /></textarea>
<br />
内容页结束内容
<br />
<textarea name="param.pagee" rows=5 cols=88><s:property value="rParam.acquisitionMap.pagee" /></textarea>
<br />
内容页标题
<br />
<textarea name="param.title" rows=5 cols=88><s:property value="rParam.acquisitionMap.title" /></textarea>
<br />
内容页时间
<br />
<textarea name="param.time" rows=5 cols=88><s:property value="rParam.acquisitionMap.time" /></textarea>
<br />
内容页作者
<br />
<textarea name="param.author" rows=5 cols=88><s:property value="rParam.acquisitionMap.author" /></textarea>
<br />
内容页图片链接
<br />
<textarea name="param.pageimglink" rows=5 cols=88><s:property value="rParam.acquisitionMap.pageimglink" /></textarea>
<br />
内容页内容
<br />
<textarea name="param.content" rows=5 cols=88><s:property value="rParam.acquisitionMap.content" /></textarea>
<br />
内容页分页
<br />
<textarea name="param.pagesplit" rows=5 cols=88><s:property value="rParam.acquisitionMap.pagesplit" /></textarea>
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button title="确定" txt="确定" cssClass="zPushBtn" onClick="updateA();">
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/acquisition/acquisition_info.jsp | Java Server Pages | oos | 4,929 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>采集列表</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_%{#session.style}.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/validate/validationEngine.jquery.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/window/dhtmlxwindows.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcontainer.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/tools.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate_message.js' encode='false' includeParams='none' ></s:url>"></script>
<script type="text/javascript">
function sub(){
alert(11);
var flag = new ValidateFactory().validate("copyForm");
alert(flag);
if(flag){
$("#copyForm").submit();
}
}
function goAddAcquisition() {
var objDiv = document.getElementById("winDiv");
openWinUrl('winDiv','新增采集','<s:url action="goAcquisition" namespace="/sys" encode='false' includeParams='none'><s:param name='rekey'>add_acquisition</s:param></s:url>',true,true,true,true, 0, 0, objDiv.offsetWidth , objDiv.offsetHeight, "<s:property value="#session.style"/>");
}
function goUpdateAcquisition(id) {
var objDiv = document.getElementById("winDiv");
openWinUrl('winDiv','修改采集','<s:url action="getAcquisitionInfo" namespace="/sys" encode="false" includeParams="none"></s:url>?param.id='+id,true,true,true,true, 0, 0, objDiv.offsetWidth , objDiv.offsetHeight, "<s:property value="#session.style"/>");
}
function getAcquisitionJobList(id){
var objDiv = document.getElementById("winDiv");
openWinUrl('winDiv','采集任务',"<s:url action="getJobListByProId" namespace="/sys" encode='false' includeParams='none'></s:url>?param.pro_id="+id,true,true,true,true, 0, 0, objDiv.offsetWidth , objDiv.offsetHeight, "<s:property value="#session.style"/>");
}
function copyAcquisition(id){
document.getElementById("param.id").value = id;
openWin('winDiv','采集名称',"copyDiv",true,true,true,true, 0, 0, 320, 240, "<s:property value="#session.style"/>");
}
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<s:form name="delForm" action="delAcquisition" namespace="/sys" method="post">
<div id="div_btn" class = "div_list_btn">
<z:button title="新增采集" txt="新增采集" cssClass="zPushBtn" onClick="goAddAcquisition();">
</z:button>
<z:button title="删除采集" txt="删除采集" cssClass="zPushBtn" onClick="delForm.submit();">
</z:button>
</div>
<div id="div_list" class = "div_list_content">
<table width="100%" cellpadding="2" cellspacing="0" class="dataTable">
<tr class="dataTableHead">
<td align="center" width="5%">选择</td>
<td align="center" width="5%">序号</td>
<td align="center" width="20%">采集名称</td>
<td align="center" width="10%">类型</td>
<td align="center" width="10%">编码格式</td>
<td align="center" width="20%">创建时间</td>
<td align="center" width="30%">操作</td>
</tr>
<s:iterator value="rParam.acquisitionList" id="mp" status="li">
<tr>
<td align="center">
<input type="checkbox" name="param.aids" value="<s:property value="id" />"></input>
</td>
<td align="center">
<s:property value="#li.count" />
</td>
<td align="center">
<s:property value="acquisition_name" />
</td>
<td align="center">
<s:property value="data_type_id" />
</td>
<td align="center">
<s:property value="encoding" />
</td>
<td align="center">
<s:property value="createtime" />
</td>
<td align="center">
<z:button title="修改" txt="修改" cssClass="zPushBtn" onClick="goUpdateAcquisition('${id}');">
</z:button>
<z:button title="维护定时任务" txt="维护定时任务" cssClass="zPushBtn" onClick="getAcquisitionJobList('${id}');">
</z:button>
<z:button title="复制" txt="复制" cssClass="zPushBtn" onClick="copyAcquisition('${id}');">
</z:button>
</td>
</tr>
</s:iterator>
</table>
<z:page >
</z:page>
</div>
</s:form>
</div>
<div id="copyDiv" style="display: none;">
<div id="winDiv" class="div_win">
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<div id="div_list" class = "div_info_content">
<s:form id="copyForm" name="copyForm" namespace="/sys" action="copyAcquisition" method="post">
<s:label value="采集名称"></s:label>
<input class="dhxlist_txt_textarea" validate="NotEmpty" m0="请填写采集名称" type="text" name="param.acquisition_name" />
<s:hidden id="param.id" name="param.id"></s:hidden>
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button title="复制" txt="复制" cssClass="zPushBtn" onClick="sub();">
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/acquisition/acquisition_list.jsp | Java Server Pages | oos | 6,652 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<title>新增采集</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/validate/validationEngine.jquery.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate_message.js' encode='false' includeParams='none' ></s:url>"></script>
<script>
$(document).ready(function(){
$("#submit").bind("click",function(){
var flag = new ValidateFactory().validate("_v_saveForm");
if(flag){
$("#_v_saveForm").submit();
}
});
});
</script>
</head>
<body>
<div id="winDiv" class="div_win">
<div id="div_list" class = "div_info_content">
<s:form id="_v_saveForm" action="saveAcquisition" namespace="/sys" method="post">
栏目类型
<z:pagecode col="TYPE_NAME" table="nx_data_type" where="is_show = '1' and is_del = '0'" order="type_code"></z:pagecode>
<br />
采集名称
<br />
<input type="text" size="88" name="param.acquisition_name" >
<br />
网站前缀(用于防盗链采集)
<br />
<input type="text" size="88" name="param.referer">
<br />
类别
<br />
<input type="text" size="88" name="param.data_type_id">
<br />
编码格式
<br />
<input type="text" size="88" name="param.encoding">
<br />
列表页起始页
<br />
<input type="text" size="88" name="param.fristlistpage">
<br />
列表页
<br />
<input type="text" size="88" name="param.listpage">
<br />
列表页开始内容
<br />
<textarea name="param.listb" rows=5 cols=88></textarea>
<br />
列表页结束内容
<br />
<textarea name="param.liste" rows=5 cols=88></textarea>
<br />
列表页标题
<br />
<textarea name="param.listtitle" rows=5 cols=88></textarea>
<br />
列表页内容链接
<br />
<textarea name="param.listlink" rows=5 cols=88></textarea>
<br />
列表页内容链接前缀域名
<br />
<input type="text" size="88" name="param.listblink">
<br />
列表页开始页数
<br />
<input type="text" name="param.listpagebnum" size="88">
</textarea>
<br />
列表页结束页数
<br />
<input type="text" name="param.listpageenum" size="88">
</textarea>
<br />
内容页开始内容
<br />
<textarea name="param.pageb" rows=5 cols=88></textarea>
<br />
内容页结束内容
<br />
<textarea name="param.pagee" rows=5 cols=88></textarea>
<br />
内容页标题
<br />
<textarea name="param.title" rows=5 cols=88></textarea>
<br />
内容页时间
<br />
<textarea name="param.time" rows=5 cols=88></textarea>
<br />
内容页作者
<br />
<textarea name="param.author" rows=5 cols=88></textarea>
<br />
内容页图片链接
<br />
<textarea name="param.pageimglink" rows=5 cols=88></textarea>
<br />
内容页内容
<br />
<textarea type="text" validate="NotEmpty" m0="请填写内容页内容" name="param.content" rows=5 cols=88></textarea>
<br />
内容页分页
<br />
<textarea name="param.pagesplit" rows=5 cols=88></textarea>
</s:form>
</div>
<div id="div_btn" class="div_info_btn">
<z:button title="添加" txt="添加" id="submit" cssClass="zPushBtn">
</z:button>
</div>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/sys/acquisition/add_acquisition.jsp | Java Server Pages | oos | 4,374 |
<%@ page contentType="text/html; charset=utf-8" %>
<html>
<head>
<title>New Page 3</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
var flag='max';
function setmax(){
if(flag=='max'){
//alert(parent.initFrameset);
parent.initFrameset.cols="0px,15px,*";
flag='min';
//td1.style.display='none';
//td2.style.display='';
}else{
parent.initFrameset.cols="170px,15px,*";
flag='max';
//td1.style.display='';
//td2.style.display='none';
}
}
</script>
</head>
<body onclick='setmax()'>
<div background-color: blue"></div>
</body>
</html>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/middle.jsp | Java Server Pages | oos | 766 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>......</title>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/tabbar/dhtmlxtabbar.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tabbar/dhtmlxtabbar.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tabbar/dhtmlxtabbar_start.js' encode='false' includeParams='none' ></s:url>"></script>
</head>
<body style = "overflow:hidden;">
<table cellspacing="0" cellpadding="6" border="0" width="100%" height="100%" class="blockTable">
<tr>
<td class="blockTd" style="padding: 6px;">
<div id="bTabbar" style="width:100%; height:100%;">
</td>
</tr>
</table>
</body>
<script>
var tabbarArr = new Array();
bodyTabbar = new dhtmlXTabBar("bTabbar", "top");
bodyTabbar.setSkin('<s:property value="#session.style"/>');
bodyTabbar.setImagePath("<s:url value='/image/dhtmlx/tabbar/' encode='false' includeParams='none' ></s:url>");
bodyTabbar.enableAutoReSize(true);
bodyTabbar.enableTabCloseButton(true);
bodyTabbar.setHrefMode("iframes");
bodyTabbar.attachEvent("onTabClose", function() {
for(var i = 0; i < tabbarArr.length; i++){
if(tabbarArr[i] == arguments[0]){
tabbarArr.splice(i,1);
return true;
}
}
});
function openTabbar(id, title, pos, url, w){
for(var i = 0; i < tabbarArr.length; i++){
if(tabbarArr[i] == id){
bodyTabbar.setTabActive(id);
return true;
}
}
tabbarArr.push(id);
var wi = "*";
if(w != undefined || w != null || w != ""){
wi = w;
}
if (pos == -1){
bodyTabbar.addTab(id, title, wi);
}else{
bodyTabbar.addTab(id, title, wi, pos);
}
bodyTabbar.setTabActive(id);
bodyTabbar.setContentHref(id, url);
}
</script>
</html>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/right.jsp | Java Server Pages | oos | 2,641 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%>
<html>
<head>
<link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/Default.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_dhx_skyblue.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_%{#session.style}.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/window/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/window/dhtmlxwindows.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/dhtmlxcontainer.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/script/tools.js' encode='false' includeParams='none' ></s:url>"></script>
<script>
//var ref_dhxWins, ref_w;
function doOnLoad() {
var objDiv = document.getElementById("winDiv");
openWin('winDiv','采集名称',"_message_",true,true,true,true, 20, 30, 300, 200, "<s:property value="#session.style"/>");
//ref_dhxWins = new dhtmlXWindows();
//ref_dhxWins.enableAutoViewport(false);
//ref_dhxWins.attachViewportTo("winDiv");
//ref_dhxWins.setImagePath("<s:url value='/image/dhtmlx/window/' encode='false' includeParams='none' ></s:url>");
//var objDiv = document.getElementById("winDiv");
//ref_w = ref_dhxWins.createWindow("ref_w", 20, 30, 300, 200);
//ref_w.center();
//ref_w.setModal(true);
//ref_w.hideHeader();
//ref_w.button("minmax1").hide();
//ref_w.button("park").hide();
//ref_w.denyMove();
//var _message_ = document.getElementById("_message_").innerHTML;
//ref_w.attachHTMLString(_message_);
}
window.onload = doOnLoad;
</script>
</head>
<body>
<div id="winDiv" style="position: relative; width:100%; height:100%;">
</div>
<div id="_message_" style="overflow:hidden;">
<s:property value="rParam._message"/>
<z:button title="确定" txt="确定" cssClass="zPushBtn" onClick="window.parent.location.reload();">
</z:button>
</div>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/jsp/refresh.jsp | Java Server Pages | oos | 3,072 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@ taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<html>
<decorator:head>
<link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_%{#session.style}.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
</decorator:head>
<body style = "overflow:hidden;">
<decorator:body></decorator:body>
<iframe name="submitframe" id="submitframe" src="" width="0" height="0" style="display:none"></iframe>
</body>
</html>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/sys.jsp | Java Server Pages | oos | 667 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div id="banner">
<h1><img src="<s:url value='/images/store/index_05.jpg' encode='false' includeParams='none' ></s:url>"/></h1>
<div class="banner-bg">
<div class="search">
<h2>求购</h2>
<p class="search-input">
<input name="" type="text" />
</p>
<input name="" type="button" class="search-btn"/>
</div>
<p class="call">服务热线:010-59543959</p>
</div>
</div> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/store_logo.jsp | Java Server Pages | oos | 472 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div class="header">
<p class="logo"><strong><img src="<s:url value='/images/admin/logo_03.jpg' encode='false' includeParams='none' ></s:url>" height="42" width="270" /></strong><span><b style=" color:#FF7E00">welcome!</b> <b style="color:#4F8302;">Ygjang</b><bR />您目前是 <font color="#FF7E00">超级管理员</font> [<a href="#">登出</a>][<a href="#">管理首页</a>] </span></p>
</div>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/admin_logo.jsp | Java Server Pages | oos | 506 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div id="footer" style="width:1010px">
<div class="foot-Nav">公司简介 联系方法 招聘信息 客户服务 相关法律 网络营销</div>
<div class="siteInfo">
Copyright © 1996-2010 Steelc Corporation, All Rights Reserved
公司简介<br />公司公司简公司简简介<br />公司简公司简简介<br />公司简公司简简介公司简公司简简介
</div>
</div>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/home_foot.jsp | Java Server Pages | oos | 495 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div><decorator:title></decorator:title></div>
<div><decorator:body></decorator:body></div>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/home_push_prolist_style.jsp | Java Server Pages | oos | 347 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div id="topNav">
<ul class="topNav-ul">
<li><a href="#">设为首页</a></li>
<li>| </li>
<li><a href="#">添加收藏</a></li>
<li>| </li>
<li><a href="#">网站导航</a></li>
</ul>
<ul class="topNav-ul2">
<li><a href="<s:url value='/' encode='false' includeParams='none'/>">首页</a></li>
<li>| </li>
<li><a href="<s:url action='getStoreHome' namespace='/store' encode='false' includeParams='none'><s:param name="storeLeftLink" value="0"/></s:url>">公司首页</a></li>
<li>| </li>
<li><a href="#">出口服务</a></li>
<li>| </li>
<li><a href="#">我要采购</a></li>
<li>| </li>
<li><a href="#">我要销售</a></li>
<li>| </li>
<li><a href="#">咨询</a></li>
<li>| </li>
<li><a href="#">帮助</a></li>
</ul>
</div>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/store_top.jsp | Java Server Pages | oos | 845 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div><decorator:title></decorator:title></div>
<div><decorator:body></decorator:body></div>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/home_offers_prolist_style.jsp | Java Server Pages | oos | 347 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<head>
</head>
<body>
<div id="box">
<div id="fullBg"></div>
<div id="msg">
<div id="close"><img src="<s:url value='/images/close.gif' encode='false' includeParams='none' ></s:url>" width="45" height="20" id="cPic" /></div>
<div id="ctt"></div>
</div>
<div>
<div >
<s:include value="/WEB-INF/decorators/admin_titlelinklist.jsp" />
<div class="content">
<page:applyDecorator page="/WEB-INF/jsp/admin/admin_left_link.jsp" name="admin_left_link_style">
</page:applyDecorator>
<decorator:body></decorator:body>
</div>
</div>
</div>
</div>
<s:include value="/WEB-INF/decorators/admin_foot.jsp" />
<iframe name="steelcclframe" id="steelcclframe" src="" width="0" height="0" style="display:none"></iframe>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/admin_index.jsp | Java Server Pages | oos | 1,139 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div id="header">
<div class="logo"><img src="<s:url value='/images/home/pic_list_34.gif' encode='false' includeParams='none' ></s:url>" width="195" height="75" /></div>
<div class="searchBar">
<ul><li class=" select">求购</li><li>供应</li><li>公司</li><li>资讯</li><li>人才</li><div class="clear"></div></ul>
<span><input type="text" class="searchBox" /> <input type="image" src="<s:url value='/images/home/pic_list_56.gif' encode='false' includeParams='none' ></s:url>" /></span>
</div>
<div class="ad"><img src="<s:url value='/images/home/pic_list_53.gif' encode='false' includeParams='none' ></s:url>" width="277" height="60" /></div>
<div class="clear"></div>
</div> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/home_logo.jsp | Java Server Pages | oos | 793 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>钢铁在线用户后台</title>
<script language="javascript" type="text/javascript" src="<s:url value='/js/js.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/js/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/js/validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/js/My97DatePicker/WdatePicker.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/js/tool.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/js/alert.js' encode='false' includeParams='none' ></s:url>"></script>
<link href="<s:url value='/css/store/style.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/topDiv.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
</head>
<body class="bodys">
<div id="fullBg"></div>
<div id="msg">
<div id="close"><img src="<s:url value='/images/close.gif' encode='false' includeParams='none' ></s:url>" width="45" height="20" id="cPic" /></div>
<div id="ctt"></div>
</div>
<div id="box">
<s:include value="/WEB-INF/decorators/store_top.jsp" />
<s:include value="/WEB-INF/decorators/store_logo.jsp" />
<s:include value="/WEB-INF/decorators/store_titlelinklist.jsp" />
<div id="steelmain">
<div id="mainleft">
<page:applyDecorator page="/WEB-INF/jsp/store/store_left_link.jsp" name="store_left_link_style">
</page:applyDecorator>
</div>
<decorator:body></decorator:body>
</div>
<s:include value="/WEB-INF/decorators/store_foot.jsp" />
</div>
<iframe name="steelcclframe" id="steelcclframe" src="" width="0" height="0" style="display:none"></iframe>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/store_index.jsp | Java Server Pages | oos | 2,596 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div class="footer">
<font>copyright 2010 © 中国钢铁在线</font>
</div> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/admin_foot.jsp | Java Server Pages | oos | 178 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div id="topNav">
<ul class="topNav-ul">
<li><a href="#">设为首页</a></li>
<li>| </li>
<li><a href="#">添加收藏</a></li>
<li>| </li>
<li><a href="#">网站导航</a></li>
</ul>
<ul class="topNav-ul2">
<li><a href="<s:url value='/' encode='false' includeParams='none'/>">首页</a></li>
<li>| </li>
<li><a href="#">出口服务</a></li>
<li>| </li>
<li><a href="#">我要采购</a></li>
<li>| </li>
<li><a href="#">我要销售</a></li>
<li>| </li>
<li><a href="#">咨询</a></li>
<li>| </li>
<li><a href="#">帮助</a></li>
</ul>
</div>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/admin_top.jsp | Java Server Pages | oos | 661 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<decorator:body></decorator:body>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/home_type_style.jsp | Java Server Pages | oos | 288 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<decorator:body></decorator:body>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/home_top_style.jsp | Java Server Pages | oos | 287 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<decorator:body></decorator:body>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/admin_left_link_style.jsp | Java Server Pages | oos | 289 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<p class="white">欢迎 普通会员 <s:property value="#session.user_name"/> 登陆会员中心, <a href="<s:url action="userLogout" namespace="/user"></s:url>">【退出】</a></p> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/store_titlelinklist.jsp | Java Server Pages | oos | 277 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div id="footer">
<ul>
<li><a href="#">公司简介</a></li>
<li>|</li>
<li><a href="#">联系我们</a></li>
<li>|</li>
<li><a href="#">客户服务</a></li>
<li>|</li>
<li><a href="#">招贤纳士</a></li>
<li>|</li>
<li><a href="#">意见反馈</a></li>
<li>|</li>
<li><a href="#">法律声明</a></li>
<li class="right-text"><a href="#">返回顶部</a></li>
</ul>
<p>Copyright © 2009 steelccl.com. All Rights Reserved<br/>
中国钢铁在线 版权所有 京ICP证090168号<br/>
本站所载信息及数据仅供参考,据此操作,风险自负
</p>
</div>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/store_foot.jsp | Java Server Pages | oos | 682 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>钢铁在线</title>
<s:head/>
<script language="javascript" type="text/javascript" src="<s:url value='/js/js.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/js/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/js/My97DatePicker/WdatePicker.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/js/tool.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/js/validate.js' encode='false' includeParams='none' ></s:url>"></script>
<script language="javascript" type="text/javascript" src="<s:url value='/js/alert.js' encode='false' includeParams='none' ></s:url>"></script>
<link href="<s:url value='/css/home/productlist.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/home/header.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
<link href="<s:url value='/css/topDiv.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="fullBg"></div>
<div id="msg">
<div id="close"><img src="<s:url value='/images/close.gif' encode='false' includeParams='none' ></s:url>" width="45" height="20" id="cPic" /></div>
<div id="ctt"></div>
</div>
<s:include value="/WEB-INF/decorators/home_top.jsp" />
<s:include value="/WEB-INF/decorators/home_logo.jsp" />
<s:include value="/WEB-INF/decorators/home_titlelinklist.jsp" />
<decorator:body></decorator:body>
<s:include value="/WEB-INF/decorators/home_foot.jsp" />
<iframe name="steelcclframe" id="steelcclframe" src="" width="0" height="0" style="display:none"></iframe>
</body>
</html> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/home_index.jsp | Java Server Pages | oos | 2,412 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<decorator:body></decorator:body>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/home_body.jsp | Java Server Pages | oos | 244 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<div style="background:url(<s:url value='/images/home/pic_list_57.gif' encode='false' includeParams='none' ></s:url>) repeat-x center top; height:38px; width:100%">
<table width="984" border="0" cellpadding="0" cellspacing="0" align="center" id="mainNav" >
<tr>
<td >
<div class="leftPart">首页 > 钢铁 > 管材 </div>
<div class="rightPart">共找到 11874 条查询结果</div></td>
</tr>
</table>
</div> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/home_titlelinklist.jsp | Java Server Pages | oos | 520 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<decorator:body></decorator:body>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/store_left_link_style.jsp | Java Server Pages | oos | 289 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<page:applyDecorator name="home_top_style">
<s:action name="isLogin" namespace="/userlogin" executeResult="true" flush="false"></s:action>
</page:applyDecorator>
| zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/home_top.jsp | Java Server Pages | oos | 421 |
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<ol>
<li class="css_ys">
<a href="#" onclick="c(1)">业务管理系统</a>
</li>
<li>
<a href="#" onclick="c(2)">资讯管理系统</a>
</li>
<li>
<a href="#" onclick="c(3)">电子商务管理系统</a>
</li>
</ol> | zzbasepro | trunk/basepro/WebRoot/WEB-INF/decorators/old/admin_titlelinklist.jsp | Java Server Pages | oos | 329 |
package com.znzx.bridge;
import com.znzx.bridge.car.Car;
import com.znzx.bridge.people.Man;
import com.znzx.bridge.road.SpeedWay;
public class Client2 {
public static void main(String[] args) {
AbstractPeople ap = new Man();
AbstractRoad ar = new SpeedWay();
AbstractCar ac = new Car();
ar.setCar(ac);
ap.setRoad(ar);
ap.run();
}
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/bridge/Client2.java | Java | oos | 400 |
package com.znzx.bridge;
import com.znzx.bridge.car.Bus;
import com.znzx.bridge.car.Car;
import com.znzx.bridge.road.SpeedWay;
public class Client1 {
public static void main(String[] args) {
AbstractRoad ar = new SpeedWay();
ar.setCar(new Car());
ar.run();
ar.setCar(new Bus());
ar.run();
}
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/bridge/Client1.java | Java | oos | 354 |
package com.znzx.factory.methodFactory;
import com.znzx.factory.methodFactory.factory.OracleFactory;
import com.znzx.factory.methodFactory.factory.SunFactory;
public class Client {
public static void main(String[] args) {
IFactory f1 = new SunFactory();
String serverName1 = f1.createServer().getServerName();
System.out.println(serverName1);
IFactory f2 = new OracleFactory();
String serverName2 = f2.createServer().getServerName();
System.out.println(serverName2);
}
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/factory/methodFactory/Client.java | Java | oos | 516 |
package com.znzx.factory.abstractFactory;
import com.znzx.factory.abstractFactory.factory.OracleFactory;
import com.znzx.factory.abstractFactory.factory.SunFactory;
public class Client {
public static void main(String[] args) {
IFactory f1 = new SunFactory();
f1.createHard();
f1.createSoft();
IFactory f2 = new OracleFactory();
f2.createHard();
f2.createSoft();
}
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/factory/abstractFactory/Client.java | Java | oos | 412 |
package com.znzx.adapter.classadapter;
import com.znzx.adapter.Adaptee;
import com.znzx.adapter.ITarget;
public class Adapter extends Adaptee implements ITarget {
@Override
public void usb2_0() {
this.usb3_0();
}
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/adapter/classadapter/Adapter.java | Java | oos | 241 |
package com.znzx.adapter.classadapter;
import com.znzx.adapter.ITarget;
public class Client {
public static void main(String[] args) {
ITarget target = new Adapter();
target.usb2_0();
}
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/adapter/classadapter/Client.java | Java | oos | 222 |
package com.znzx.adapter.objectadapter;
import com.znzx.adapter.Adaptee;
import com.znzx.adapter.ITarget;
public class Adapter implements ITarget {
private Adaptee adaptee = new Adaptee();
@Override
public void usb2_0() {
this.adaptee.usb3_0();
}
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/adapter/objectadapter/Adapter.java | Java | oos | 281 |
package com.znzx.adapter.objectadapter;
import com.znzx.adapter.ITarget;
public class Client {
public static void main(String[] args) {
ITarget target = new Adapter();
target.usb2_0();
}
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/adapter/objectadapter/Client.java | Java | oos | 223 |
package com.znzx.adapter;
public interface ITarget {
public void usb2_0();
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/adapter/ITarget.java | Java | oos | 87 |
package com.znzx.adapter;
public class Adaptee {
public void usb3_0(){
System.out.println("usb3.0");
}
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/adapter/Adaptee.java | Java | oos | 124 |
package com.znzx.builder;
public interface IBuilder {
void buildCpu();
void buildRam();
void buildVideoCard();
Computer getComputer();
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/builder/IBuilder.java | Java | oos | 162 |
package com.znzx.builder;
public class Computer {
private String cpu;
private String ram;
private String videoCard;
public String getCpu() {
return cpu;
}
public void setCpu(String cpu) {
this.cpu = cpu;
}
public String getRam() {
return ram;
}
public void setRam(String ram) {
this.ram = ram;
}
public String getVideoCard() {
return videoCard;
}
public void setVideoCard(String videoCard) {
this.videoCard = videoCard;
}
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/builder/Computer.java | Java | oos | 504 |
package com.znzx.builder;
public class Director {
public void construct(IBuilder builder){
builder.buildCpu();
builder.buildRam();
builder.buildVideoCard();
}
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/builder/Director.java | Java | oos | 194 |
package com.znzx.builder;
import com.znzx.builder.build.IbmBuilder;
import com.znzx.builder.build.SunBuilder;
public class Client {
public static void main(String[] args) {
IBuilder ibmBuild = new IbmBuilder();
IBuilder sunBuild = new SunBuilder();
Director director = new Director();
director.construct(ibmBuild);
director.construct(sunBuild);
Computer ibmComputer = ibmBuild.getComputer();
Computer sunComputer = sunBuild.getComputer();
System.out.println(ibmComputer.getCpu());
System.out.println(ibmComputer.getRam());
System.out.println(ibmComputer.getVideoCard());
System.out.println(sunComputer.getCpu());
System.out.println(sunComputer.getRam());
System.out.println(sunComputer.getVideoCard());
}
}
| zzbasepro | trunk/DesignPattern/src/com/znzx/builder/Client.java | Java | oos | 817 |
package com.zysoft.system.entity;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.validator.constraints.NotEmpty;
import com.zysoft.common.entity.AbstractEntity;
@Entity
@Table(name = "SYS_Login_Authentication")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class LoginAuthentication extends AbstractEntity{
@Id
@NotEmpty(message = "{loginName.illegal.notEmpty}")
private String loginName;
private String loginPasswd;
private boolean disenable = false;
private boolean outside = false;
@OneToOne(fetch=FetchType.LAZY)
@JoinColumn(name="personId")
private PersonInfo personInfo = new PersonInfo();
public PersonInfo getPersonInfo() {
return personInfo;
}
public void setPersonInfo(PersonInfo personInfo) {
this.personInfo = personInfo;
}
public String getLoginName() {
return loginName;
}
public void setLoginName(String loginName) {
this.loginName = loginName;
}
public String getLoginPasswd() {
return loginPasswd;
}
public void setLoginPasswd(String loginPasswd) {
this.loginPasswd = loginPasswd;
}
public boolean isDisenable() {
return disenable;
}
public void setDisenable(boolean disenable) {
this.disenable = disenable;
}
public boolean isOutside() {
return outside;
}
public void setOutside(boolean outside) {
this.outside = outside;
}
}
| zy-web-oa | src/System/com/zysoft/system/entity/LoginAuthentication.java | Java | asf20 | 1,655 |
package com.zysoft.system.entity;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
@Entity
@DiscriminatorValue("DataStr")
public class ArgumentsDataStr extends ArgumentsBase{
private String dataStr;
public String getDataStr() {
return dataStr;
}
public void setDataStr(String dataStr) {
this.dataStr = dataStr;
}
}
| zy-web-oa | src/System/com/zysoft/system/entity/ArgumentsDataStr.java | Java | asf20 | 375 |
package com.zysoft.system.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zysoft.common.entity.AbstractEntity;
@Entity
@Table(name = "SYS_Person_Info")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class PersonInfo extends AbstractEntity{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id", nullable = false)
private Integer id;
private String userCode;
private String name;
public String getUserCode() {
return userCode;
}
public void setUserCode(String userCode) {
this.userCode = userCode;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
| zy-web-oa | src/System/com/zysoft/system/entity/PersonInfo.java | Java | asf20 | 985 |
package com.zysoft.system.entity;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zysoft.common.entity.AbstractEntity;
@Entity
@Table(name = "SYS_Arguments")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(
name="datatype", length=255,
discriminatorType=DiscriminatorType.STRING)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ArgumentsBase extends AbstractEntity{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id", nullable = false)
private Integer id;
private String category;
private String dataLable;
@Column(length=4000)
private String remark;
private boolean disenable = false;
private Integer orderBy;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getDataLable() {
return dataLable;
}
public void setDataLable(String dataLable) {
this.dataLable = dataLable;
}
public Integer getOrderBy() {
return orderBy;
}
public void setOrderBy(Integer orderBy) {
this.orderBy = orderBy;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public boolean isDisenable() {
return disenable;
}
public void setDisenable(boolean disenable) {
this.disenable = disenable;
}
}
| zy-web-oa | src/System/com/zysoft/system/entity/ArgumentsBase.java | Java | asf20 | 1,951 |
package com.zysoft.system.entity;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
@Entity
@DiscriminatorValue("Tree")
public class ArgumentsTree extends ArgumentsBase {
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "parentId")
private ArgumentsTree parent;
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "parent")
@OrderBy("orderBy")
private Set<ArgumentsTree> childSet;
public ArgumentsTree getParent() {
return parent;
}
public void setParent(ArgumentsTree parent) {
this.parent = parent;
}
public synchronized Set<ArgumentsTree> getChildSet() {
if (childSet == null)
childSet = new HashSet<ArgumentsTree>();
return childSet;
}
public void setChildSet(Set<ArgumentsTree> childSet) {
this.childSet = childSet;
}
public void addChild(ArgumentsTree child) {
if(child != null){
child.setParent(this);
getChildSet().add(child);
}
}
public void removeChild(ArgumentsTree child) {
if (child!=null && getChildSet().contains(child)) {
child.setParent(null);
getChildSet().remove(child);
}
}
}
| zy-web-oa | src/System/com/zysoft/system/entity/ArgumentsTree.java | Java | asf20 | 1,431 |
package com.zysoft.system.entity;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zysoft.common.entity.AbstractEntity;
@Entity
@Table(name = "SYS_Department")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Department extends AbstractEntity{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id", nullable = false)
private Integer id;
private String name;
private String code;
@Column(length=4000)
private String function;
private boolean disenable = false;
//@ManyToMany(cascade = {CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY, mappedBy="departments")
//private Set<Company> companys;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getFunction() {
return function;
}
public void setFunction(String function) {
this.function = function;
}
public boolean isDisenable() {
return disenable;
}
public void setDisenable(boolean disenable) {
this.disenable = disenable;
}
}
| zy-web-oa | src/System/com/zysoft/system/entity/Department.java | Java | asf20 | 1,706 |
package com.zysoft.system.entity;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.zysoft.common.entity.AbstractEntity;
@Entity
@Table(name = "SYS_Company")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Company extends AbstractEntity{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id", nullable = false)
private Integer id;
private String name;
private String code;
private String address;
private boolean disenable = false;
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="cityId")
private ArgumentsTree city;
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
@JoinTable(name = "SYS_Company_Department", joinColumns = { @JoinColumn(name = "companyId") }, inverseJoinColumns = { @JoinColumn(name = "departmentId") })
private Set<Department> departments;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public boolean isDisenable() {
return disenable;
}
public void setDisenable(boolean disenable) {
this.disenable = disenable;
}
public ArgumentsTree getCity() {
return city;
}
public void setCity(ArgumentsTree city) {
this.city = city;
}
public synchronized Set<Department> getDepartments() {
if(departments == null)
departments = new HashSet<Department>();
return departments;
}
public void setDepartments(Set<Department> departments) {
this.departments = departments;
}
public void addChild(Department department) {
if(department != null)
getDepartments().add(department);
}
public void removeChild(Department department) {
if (department!=null && getDepartments().contains(department)) {
getDepartments().remove(department);
}
}
}
| zy-web-oa | src/System/com/zysoft/system/entity/Company.java | Java | asf20 | 2,694 |
package com.zysoft.system.act;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.zysoft.common.Constants;
import com.zysoft.system.entity.LoginAuthentication;
@Controller("indexController")
public class IndexController {
@RequestMapping(value = "/index", method = {RequestMethod.GET})
public String index(){
return "index";
}
@RequestMapping(value = "/login", method = {RequestMethod.GET})
public String login(Model model){
if(!model.containsAttribute(Constants.COMMAND)) {
model.addAttribute(Constants.COMMAND, new LoginAuthentication());
}
return "login";
}
@RequestMapping(value = "/login", method = {RequestMethod.POST})
public String login(Model model, @ModelAttribute("command") @Valid LoginAuthentication command, BindingResult result){
if(result.hasErrors()) {
model.addAttribute(Constants.COMMAND, new LoginAuthentication());
return login(model);
}
return "redirect:/index";
}
}
| zy-web-oa | src/System/com/zysoft/system/act/IndexController.java | Java | asf20 | 1,440 |
package com.zysoft.common.web.filter;
import org.apache.commons.lang.StringUtils;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* User: Zhang Kaitao
* Date: 12-1-2 下午5:06
* Version: 1.0
*/
public class BackURLFilter implements Filter{
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
HttpServletRequest request = (HttpServletRequest) servletRequest;
HttpServletResponse response = (HttpServletResponse) servletResponse;
String backURL = request.getParameter("BackURL");
if(StringUtils.isEmpty(backURL)) {
backURL = request.getHeader("Referer");
}
request.setAttribute("BackURL", backURL);
request.setAttribute("mBackURL", getMBackURL(request, response));
filterChain.doFilter(request, response);
}
public static String getMBackURL(HttpServletRequest request, HttpServletResponse response) {
String basePath = request.getScheme() + "://" + request.getServerName();
if (request.getServerPort() != 80) {
basePath += ":" + request.getServerPort();
}
String requestURI = request.getRequestURI();
String queryString = request.getQueryString();
String backURL = basePath + requestURI + (queryString == null || queryString.length() == 0 ? "" : "?" + queryString);
/*
try {
backURL = response.encodeURL(backURL);
backURL = URLEncoder.encode(backURL, "UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
*/
return backURL;
}
@Override
public void destroy() {
}
}
| zy-web-oa | src/Common/com/zysoft/common/web/filter/BackURLFilter.java | Java | asf20 | 2,030 |
package com.zysoft.common.web.pagination;
import org.apache.taglibs.standard.tag.common.core.UrlSupport;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;
import java.io.IOException;
/**
* 与分页相关的导航Tag. 用于显示上一页,下一页,跳转
*
*
* @since 1.0
*/
public class NavigationTag extends TagSupport {
static final long serialVersionUID = 2372405317744358833L;
// private static final Log LOGGER = LogFactory.getLog(NavigationTag.class);
/**
* request 中用于保存Page<E> 对象的变量名,默认为“page”
*/
private String bean = "page";
/**
* 分页跳转的url地址,此属性必须
*/
private String url = null;
/**
* 是否显示跳转
*/
private boolean showJump = true;
/**
* 是否优化分页
*/
private boolean optimize;
@Override
public int doStartTag() throws JspException {
JspWriter writer = pageContext.getOut();
Page<?> onePage = (Page<?>)pageContext.getRequest().getAttribute(bean);
if (onePage == null)
return SKIP_BODY;
url = resolveUrl(url, pageContext);
Object firstModel = null;
Object lastModel = null;
if(onePage.getItems() != null && onePage.getItems().size() > 0) {
firstModel = onePage.getItems().get(0);
lastModel = onePage.getItems().get(onePage.getItems().size() - 1);
}
try {
if (onePage.isHasPre()) {
String preUrl = append(url, "pn", onePage.getIndex() - 1);
if(optimize && firstModel != null) {
preUrl = append(preUrl, PageUtil.getIdName(firstModel), PageUtil.getIdValue(firstModel));
preUrl = append(preUrl, "pre", "true");
}
writer.print("<a href=\"" + preUrl + "\">上一页</a> ");
}
if (onePage.isHasNext()) {
String nextUrl = append(url, "pn", onePage.getIndex() + 1);
if(optimize && lastModel != null) {
nextUrl = append(nextUrl, PageUtil.getIdName(lastModel), PageUtil.getIdValue(lastModel));
}
writer.print("<a href=\"" + nextUrl + "\">下一页</a><br/>");
if(showJump) {
writer.print(makeNext(onePage, url));
}
}
} catch (IOException e) {
e.printStackTrace();
}
return SKIP_BODY;
}
/**
* 为url 添加上下文环境.如果是登陆用户则还要添加uid参数
*
* @param url
* @param pageContext
* @return
* @throws javax.servlet.jsp.JspException
*/
private String resolveUrl(String url, javax.servlet.jsp.PageContext pageContext) throws JspException{
url = UrlSupport.resolveUrl(url, null, pageContext);
url = url.replaceAll("&pn=\\d*", "").replaceAll("&pre=true", "").replaceAll("&id=\\d*", "");
return url;
}
private String append(String url, String key, int value) {
return append(url, key, String.valueOf(value));
}
/**
* 为url 参加参数对儿
*
* @param url
* @param key
* @param value
* @return
*/
private String append(String url, String key, String value) {
if (url == null || url.trim().length() == 0) {
return "";
}
if (url.indexOf("?") == -1) {
url = url + "?" + key + "=" + value;
} else {
url = url + "&" + key + "=" + value;
}
return url;
}
private String makeNext(Page<?> page, String url) {
StringBuffer sb = new StringBuffer("");
sb.append("<input type=\"text\" name=\"pn\" size=\"3\" value=\"1\" format=\"*N\"/>")
.append(page.getIndex()).append("/").append(page.getContext().getPageCount())
.append("页<anchor>跳转<go href=\"").append(url).append("\" method=\"get\" accept-charset=\"utf-8\">")
.append("<postfield name=\"pn\" value=\"$pn\"/></go></anchor><br/>");
return sb.toString();
}
/**
* @return the bean
*/
public String getBean() {
return bean;
}
/**
* @param bean the bean to set
*/
public void setBean(String bean) {
this.bean = bean;
}
/**
* @return the url
*/
public String getUrl() {
return url;
}
/**
* @param url the url to set
*/
public void setUrl(String url) {
this.url = url;
}
public void setShowJump(boolean showJump) {
this.showJump = showJump;
}
public void setOptimize(boolean optimize) {
this.optimize = optimize;
}
}
| zy-web-oa | src/Common/com/zysoft/common/web/pagination/NavigationTag.java | Java | asf20 | 5,072 |
package com.zysoft.common.web.pagination;
import org.apache.taglibs.standard.tag.common.core.UrlSupport;
import org.springframework.web.util.UriComponents;
import org.springframework.web.util.UriComponentsBuilder;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;
import java.io.IOException;
/**
* 显示格式 上一页 1 2 3 4 5 下一页
*/
public class NavigationTagV2 extends TagSupport {
static final long serialVersionUID = 2372405317744358833L;
/**
* request 中用于保存Page<E> 对象的变量名,默认为“page”
*/
private String bean = "page";
/**
* 分页跳转的url地址,此属性必须
*/
private String url = null;
/**
* 显示页码数量
*/
private int number = 5;
/**
* 是否优化分页,仅对主键为数值型的有效
*/
private boolean optimize;
@Override
public int doStartTag() throws JspException {
JspWriter writer = pageContext.getOut();
Page<?> onePage = (Page<?>)pageContext.getRequest().getAttribute(bean);
if (onePage == null)
return SKIP_BODY;
url = resolveUrl(url, pageContext);
Object firstModel = null;
Object lastModel = null;
if(onePage.getItems() != null && onePage.getItems().size() > 0) {
firstModel = onePage.getItems().get(0);
lastModel = onePage.getItems().get(onePage.getItems().size() - 1);
}
try {
if (onePage.isHasPre()) {
String preUrl = append(url, "pn", onePage.getIndex() - 1);
if(optimize && firstModel != null) {
preUrl = append(preUrl, PageUtil.getIdName(firstModel), PageUtil.getIdValue(firstModel));
preUrl = append(preUrl, "pre", "true");
}
writer.print("<a href=\"" + preUrl + "\">上一页</a> ");
if(onePage.getIndex() > 2 && onePage.isHasNext()) {
writer.print("<a href=\""+append(url, "pn", 1)+"\">1</a> ");
}
}
//显示当前页码的前2页码和后两页码
//若1 则 1 2 3 4 5, 若2 则 1 2 3 4 5, 若3 则1 2 3 4 5,
//若4 则 2 3 4 5 6 ,若10 则 8 9 10 11 12
int currIndex = onePage.getIndex();
int startIndex = (currIndex - 2 > 0)? currIndex - 2 : 1;
for(int i=1; i <= number && startIndex <= onePage.getContext().getPageCount(); startIndex++, i++) {
if(startIndex == currIndex) {
writer.print(startIndex + " ");
continue;
}
String pageUrl = append(url, "pn", startIndex);
int offset = 0;
long id = 0;
if(optimize && firstModel != null && lastModel != null) {
if(startIndex < currIndex) {
//pre
pageUrl = append(pageUrl, "pre", "true");
offset = (startIndex - currIndex + 1) * onePage.getContext().getPageSize();
id = Long.valueOf(PageUtil.getIdValue(firstModel)) + offset;
}
else {
//next
offset = (startIndex - currIndex - 1) * onePage.getContext().getPageSize();
id = (Long.valueOf(PageUtil.getIdValue(lastModel)) + offset);
}
pageUrl = append(pageUrl, PageUtil.getIdName(lastModel), "" + id);
}
writer.print("<a href=\"" + pageUrl + "\">"+ startIndex +"</a> ");
}
if (onePage.isHasNext()) {
String nextUrl = append(url, "pn", onePage.getIndex() + 1);
if(optimize && lastModel != null) {
nextUrl = append(nextUrl, PageUtil.getIdName(lastModel), PageUtil.getIdValue(lastModel));
}
if(onePage.getContext().getPageCount() - onePage.getIndex() > 2) {
writer.print("<a href=\""+append(url, "pn", onePage.getContext().getPageCount())+"\">"+onePage.getContext().getPageCount()+"</a> ");
}
writer.print("<a href=\"" + nextUrl + "\">下一页</a>");
}
writer.print(" (共"+onePage.getContext().getTotal()+"条记录)<br/>");
} catch (IOException e) {
e.printStackTrace();
}
return SKIP_BODY;
}
/**
* 为url 添加上下文环境.如果是登陆用户则还要添加uid参数
*
* @param url
* @param pageContext
* @return
* @throws javax.servlet.jsp.JspException
*/
private String resolveUrl(String url, javax.servlet.jsp.PageContext pageContext) throws JspException{
url = UrlSupport.resolveUrl(url, null, pageContext);
url = url.replaceAll("&pn=\\d*", "").replaceAll("pn=\\d*", "").replaceAll("&pre=true", "").replaceAll("&id=\\d*", "").replaceAll("id=\\d*", "");
return url;
}
private String append(String url, String key, int value) {
return append(url, key, String.valueOf(value));
}
/**
* 为url 参加参数对儿
*
* @param url
* @param key
* @param value
* @return
*/
private String append(String url, String key, String value) {
if (url == null || url.trim().length() == 0) {
return "";
}
if (url.indexOf("?") == -1) {
url = url + "?" + key + "=" + value;
} else {
if(url.endsWith("?")) {
url = url + key + "=" + value;
} else {
url = url + "&" + key + "=" + value;
}
}
return url;
}
/**
* @return the bean
*/
public String getBean() {
return bean;
}
/**
* @param bean the bean to set
*/
public void setBean(String bean) {
this.bean = bean;
}
/**
* @return the url
*/
public String getUrl() {
return url;
}
/**
* @param url the url to set
*/
public void setUrl(String url) {
this.url = url;
}
public void setNumber(int number) {
this.number = number;
}
public void setOptimize(boolean optimize) {
this.optimize = optimize;
}
}
| zy-web-oa | src/Common/com/zysoft/common/web/pagination/NavigationTagV2.java | Java | asf20 | 6,736 |
package com.zysoft.common.web.pagination;
import com.zysoft.common.Constants;
/**
* 分页上下文环境。用于计算Page。
*
*/
public interface IPageContext<E> {
/**
* 默认设定每页显示记录数为10
*/
public static final int DEFAULT_PAGE_SIZE = Constants.DEFAULT_PAGE_SIZE;
/**
* 计算总页数.
*
* @return
*/
public int getPageCount();
/**
* 返回 Page 对象.
*
* @param index
* @return
*/
public Page<E> getPage(int index);
/**
* 每页显示的记录数量
*
* @return
*/
public int getPageSize();
/**
* 计算总记录数
*
* @return
*/
public int getTotal();
}
| zy-web-oa | src/Common/com/zysoft/common/web/pagination/IPageContext.java | Java | asf20 | 808 |
package com.zysoft.common.web.pagination;
import java.util.List;
/**
* 动态分页实现.每次查询返回一页记录的情况下使用.
*
* @version 1.0, 2010-4-22
*/
public class QuickPageContext<E> implements IPageContext<E>{
private List<E> items;
private int totalCount;//总记录数
private int pageSize; //每页显示记录数
/**
*
* @param totalCount
* @param pageSize
* @param items
*/
public QuickPageContext(int totalCount, int pageSize, List<E> items) {
this.totalCount = totalCount;
this.pageSize = pageSize == 0 ? 10 : pageSize;
if (items != null) {
this.items = items;
}
}
public Page<E> getPage(int index) {
Page<E> page = new Page<E>();
page.setContext(this);
int index2 = index > getPageCount() ? 1 : index;
page.setHasNext(index2 < getPageCount());
page.setHasPre(index2 > 1);
page.setIndex(index2);
page.setItems(items);
return page;
}
/**
* 计算总页数.
*
* @return
*/
public int getPageCount() {
int div = totalCount / pageSize;
int result = (totalCount % pageSize == 0) ? div : div + 1;
return result;
}
public int getTotal() {
return this.totalCount;
}
public int getPageSize() {
return this.pageSize;
}
}
| zy-web-oa | src/Common/com/zysoft/common/web/pagination/QuickPageContext.java | Java | asf20 | 1,491 |
package com.zysoft.common.web.pagination;
import java.util.ArrayList;
import java.util.List;
/**
* 查询返回所有记录的分页实现.
*
* @version 1.0, 2010-4-3
*/
public class PageContext<E> implements IPageContext<E>{
private int pageSize;//每页包含的记录数
private List<E> items;
public PageContext(List<E> items) {
this(items, DEFAULT_PAGE_SIZE);
}
public PageContext(List<E> items, int pageSize) {
if (items == null) {
throw new IllegalArgumentException("Items should not be null!");
}
this.items = items;
this.pageSize = pageSize;
}
public Page<E> getPage(int index) {
Page<E> page = new Page<E>();
List<E> pageItems = new ArrayList<E>();
page.setContext(this);
page.setHasNext(index < getPageCount());
page.setHasPre(index > 1);
page.setIndex(index);
List<E> items = getItems();
int total = items.size();
int start = (index - 1) * getPageSize();
if (start > total - 1) {
start = 0;
page.setHasPre(false);
page.setIndex(1);
}
int toIndex = start + getPageSize();
if (toIndex > total) {
toIndex = total;
}
pageItems = items.subList(start, toIndex);
page.setItems(pageItems);
return page;
}
/**
* 计算总页数.
*
* @return
*/
public int getPageCount() {
int size = getItems().size();
int div = size / getPageSize();
int result = (size % getPageSize() == 0) ? div : div + 1;
return result;
}
public int getPageSize() {
if (this.pageSize <= 0) {
this.pageSize = DEFAULT_PAGE_SIZE;
}
return this.pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public List<E> getItems() {
return this.items;
}
public void setItems(List<E> items) {
this.items = items;
}
public int getTotal() {
return getItems().size();
}
}
| zy-web-oa | src/Common/com/zysoft/common/web/pagination/PageContext.java | Java | asf20 | 2,255 |
package com.zysoft.common.web.pagination;
import java.util.Collections;
import java.util.List;
/**
* 表示分页中的一页。
*
* @author Zhang Kaitao
*/
public class Page<E> {
private boolean hasPre;//是否首页
private boolean hasNext;//是否尾页
private List<E> items;//当前页包含的记录列表
private int index;//当前页页码(起始为1)
private IPageContext<E> context;
public IPageContext<E> getContext() {
return this.context;
}
public void setContext(IPageContext<E> context) {
this.context = context;
}
public int getIndex() {
return this.index;
}
public void setIndex(int index) {
this.index = index;
}
public boolean isHasPre() {
return this.hasPre;
}
public void setHasPre(boolean hasPre) {
this.hasPre = hasPre;
}
public boolean isHasNext() {
return this.hasNext;
}
public void setHasNext(boolean hasNext) {
this.hasNext = hasNext;
}
public List<E> getItems() {
return this.items == null ? Collections.<E>emptyList() : this.items;
}
public void setItems(List<E> items) {
this.items = items;
}
}
| zy-web-oa | src/Common/com/zysoft/common/web/pagination/Page.java | Java | asf20 | 1,293 |
package com.zysoft.common.web.pagination;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.zysoft.common.util.KeySynchronizer;
import javax.persistence.Id;
import java.lang.reflect.Field;
import java.util.List;
import java.util.Map;
import java.util.WeakHashMap;
/**
* @author Zhang Kaitao
* @version 1.0, Sep 17, 2010
* @since 1.0
*/
public class PageUtil {
private static final Logger LOGGER = LoggerFactory.getLogger(PageUtil.class);
/**
* 获取主键时缓存
*/
private static Map<Class<?>, Field> classPKMap = new WeakHashMap<Class<?>, Field>();
/**
* 不关心总记录数
* @param pageNumber
* @param pageSize
* @return
*/
public static int getPageStart(int pageNumber, int pageSize) {
return (pageNumber - 1) * pageSize;
}
/**
* 计算分页获取数据时游标的起始位置
*
* @param totalCount 所有记录总和
* @param pageNumber 页码,从1开始
* @return
*/
public static int getPageStart(int totalCount, int pageNumber, int pageSize) {
int start = (pageNumber - 1) * pageSize;
if (start >= totalCount) {
start = 0;
}
return start;
}
/**
* 构造分页对象
*
* @param totalCount 满足条件的所有记录总和
* @param pageNumber 本次分页的页码
* @param items
* @return
*/
public static <E> Page<E> getPage(int totalCount, int pageNumber, List<E> items, int pageSize) {
IPageContext<E> pageContext = new QuickPageContext<E>(totalCount, pageSize, items);
return pageContext.getPage(pageNumber);
}
public static Field getPkField(Class<?> cls) {
Field pkField = classPKMap.get(cls);
if(pkField == null) {
synchronized (KeySynchronizer.acquire(cls)) {
Field[] fields = cls.getDeclaredFields();
for(Field field : fields) {
if(field.isAnnotationPresent(Id.class)) {
pkField = field;
pkField.setAccessible(true);
classPKMap.put(cls, pkField);
}
}
}
}
if(pkField == null) {
LOGGER.error("page error,{} : pk null", cls);
}
return pkField;
}
public static <T> String getIdValue(T obj) {
if(obj == null) {
return "";
}
String retVal = "";
Field pkField = getPkField(obj.getClass());
try {
retVal = pkField.get(obj).toString();
} catch (Exception e) {
LOGGER.error("page error,{} : get id value", obj);
}
return retVal;
}
public static <T> String getIdName(T obj) {
if(obj == null) {
return "";
}
String retVal = "";
Field pkField = getPkField(obj.getClass());
try {
retVal = pkField.getName();
} catch (Exception e) {
LOGGER.error("page error,{} : get id name", obj);
}
return retVal;
}
}
| zy-web-oa | src/Common/com/zysoft/common/web/pagination/PageUtil.java | Java | asf20 | 3,269 |
package com.zysoft.common.service;
import java.util.List;
import com.zysoft.common.entity.AbstractEntity;
public interface IBaseService<M extends AbstractEntity, PK extends java.io.Serializable> {
public M save(M model);
public void saveOrUpdate(M model);
public void update(M model);
public void merge(M model);
public void delete(PK id);
public void deleteObject(M model);
public M get(PK id);
public long countAll();
public List<M> listAll();
// public Page<M> pageAll(int pn);
// public Page<M> pageAll(int pn, int pageSize);
public M unique();
public M unique(String where, Object... paramlist);
// public List<M> pre(PK pk, int pn, int pageSize);
// public List<M> pre(PK pk, int pn);
// public List<M> next(PK pk, int pn, int pageSize);
// public List<M> next(PK pk, int pn);
}
| zy-web-oa | src/Common/com/zysoft/common/service/IBaseService.java | Java | asf20 | 947 |
package com.zysoft.common.service;
import java.lang.reflect.ParameterizedType;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import com.zysoft.common.dao.ICommonDao;
import com.zysoft.common.entity.AbstractEntity;
public abstract class BaseServiceImpl<M extends AbstractEntity, PK extends java.io.Serializable> implements IBaseService<M, PK> {
protected static final Logger LOGGER = LoggerFactory.getLogger(BaseServiceImpl.class);
@Autowired
@Qualifier("CommonDao")
protected ICommonDao commonDao;
protected final Class<M> entityClass;
@SuppressWarnings("unchecked")
public BaseServiceImpl() {
this.entityClass = (Class<M>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
}
@Override
public M save(M model) {
// TODO Auto-generated method stub
return commonDao.save(model);
}
@Override
public void saveOrUpdate(M model) {
// TODO Auto-generated method stub
commonDao.saveOrUpdate(model);
}
@Override
public void update(M model) {
// TODO Auto-generated method stub
commonDao.update(model);
}
@Override
public void merge(M model) {
// TODO Auto-generated method stub
commonDao.merge(model);
}
@Override
public void delete(PK id) {
// TODO Auto-generated method stub
commonDao.delete(entityClass, id);
}
@Override
public void deleteObject(M model) {
// TODO Auto-generated method stub
commonDao.deleteObject(model);
}
@Override
public M get(PK id) {
// TODO Auto-generated method stub
return commonDao.get(entityClass, id);
}
@Override
public long countAll() {
// TODO Auto-generated method stub
return 0;
}
@Override
public List<M> listAll() {
// TODO Auto-generated method stub
return null;
}
@Override
public M unique() {
// TODO Auto-generated method stub
return null;
}
@Override
public M unique(String where, Object... paramlist) {
// TODO Auto-generated method stub
return null;
}
}
| zy-web-oa | src/Common/com/zysoft/common/service/BaseServiceImpl.java | Java | asf20 | 2,223 |