?? catalogkjavalist.jsp
字號:
<?xml version="1.0" encoding="gb2312" ?>
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="gb2312"%>
<%@ page import="com.eline.wap.common.util.*"%>
<%@ page import="com.eline.wap.resource.model.*"%>
<%@ taglib uri="/WEB-INF/tlds/eline-common.tld" prefix="common" %>
<%@ taglib uri="/WEB-INF/tlds/eline-catalog.tld" prefix="catalog" %>
<%
// Get page parameters
int catalogId = StringUtils.getInt(request.getParameter("catalogId"), 0);
boolean isActiveOnly = StringUtils.getBoolean(request.getParameter("active"), true);
// Init veriables required for current page.
String actionUrl = SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_PICTURE_LIST) + "?catalogId=" + catalogId;
if (!isActiveOnly)
actionUrl += "&active=0";
System.out.println("catalogPictureList.jsp.catalogId=" + catalogId + "&active=" + isActiveOnly);
%>
<!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=gb2312" />
<title>手機游戲目錄</title>
<link href="../../style/default.css" type="text/css" rel="stylesheet" />
<link href="../jsp_client/flyoutmenu/flyoutmenu.css" type="text/css" rel="stylesheet" />
<jsp:include page="../common/menuData_inc.jsp" flush="true"/>
<style type="text/css">
form { MARGIN: 0px 0px 0px 0px }
</style>
<script language="javascript" src="../common/common.js"></script>
<script language="javascript">
<!--
function buttonImport_onclick() {
var url = "<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_RESOURCE_IMPORT)%>?catalogId=<%=catalogId%>&type=<%=Category.TYPE_J2ME%>&lock=1";
var returnValue = showDialog(url, 610, 460);
if (returnValue == "reload")
window.location.reload();
}
function buttonCreate_onclick() {
var url = "<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_EFFECT_CREATE)%>?parentId=<%=catalogId%>&lock=1";
var returnValue = showDialog(url, 500, 500);
if (returnValue == "reload")
window.location.reload();
}
function buttonUpdate_onclick() {
var checkGroup = document.all["CheckGroup"];
if (checkGroup == null) {
window.alert("Required page element(s) missing.");
return false;
}
var count = checkGroup.length == null ? 1 : checkGroup.length;
var checkedCount = 0;
var itemId = -1;
if (count == 1) {
if (checkGroup.checked) {
itemId = checkGroup.value;
checkedCount ++;
}
} else {
for (var i = 0; i < count; i ++) {
if (checkGroup[i].checked) {
itemId = checkGroup[i].value;
checkedCount ++;
}
}
}
if (checkedCount != 1) {
window.alert("當(dāng)前選中了" + checkedCount + "項,您只能選中一個項來進行修改...");
return false;
}
var url = "<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_RESOURCE_UPDATE)%>?catalogId=" + itemId;
var returnValue = showDialog(url, 500, 500);
if (returnValue == "reload")
window.location.reload();
return true;
}
function buttonDelete_onclick() {
var checkGroup = document.all["CheckGroup"];
if (checkGroup == null) {
window.alert("Required page element(s) missing.");
return false;
}
var count = checkGroup.length == null ? 1 : checkGroup.length;
var checkedCount = 0;
var itemId = "";
if (count == 1) {
if (checkGroup.checked) {
itemId = checkGroup.value;
checkedCount ++;
}
} else {
for (var i = 0; i < count; i ++) {
if (checkGroup[i].checked) {
itemId += checkGroup[i].value + ";";
checkedCount ++;
}
}
}
if (checkedCount < 1) {
window.alert("您還沒選中要刪除的項");
return false;
}
var url = "<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_DELETE)%>?catalogId=" + escape(itemId);
var returnValue = showDialog(url, 350, 150);
if (returnValue == "reload")
window.location.reload();
return true;
}
function buttonSort_onclick() {
var url = "<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_RESOURCE_SORT)%>?catalogId=<%=catalogId%>";
var returnValue = showDialog(url, 406, 400);
if (returnValue == "reload")
window.location.reload();
}
function resourcePreview_onclick(id, type) {
var urls = new Array("<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_BOOK_PREVIEW)%>",
"<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_NEWS_PREVIEW)%>",
"<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_RING_PREVIEW)%>",
"<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_PICTURE_PREVIEW)%>",
"<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_J2ME_PREVIEW)%>",
"<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_ANIMATION_PREVIEW)%>");
showDialog(urls[type] + "?catalogId=" + id, 410, 440);
}
function checkActiveOnly_onclick() {
var element = event.srcElement;
var currentUrl = "<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_PICTURE_LIST) + "?catalogId=" + catalogId%>";
if (!element.checked)
currentUrl += "&active=0";
window.location.href = currentUrl;
}
-->
</script>
</head>
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td colspan="2"><jsp:include page="../common/banner_inc.jsp" flush="true"/></td>
<tr>
<td valign="top" style="width: 180px" bgcolor="#f0f0f0">
<jsp:include page="../common/menuBody_inc.jsp" flush="true"/>
</td>
<td valign="top">
<table cellspacing="1" width="100%" border="0">
<tr>
<td height="22">KJava目錄</td>
</tr>
<tr>
<td>目錄導(dǎo)航: <a href="<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_LIST)%>?catalogId=0" class="linkMenuSink">根目錄</a>
<catalog:catalogNavigateList catalogId="<%=StringUtils.toString(catalogId)%>">
<common:items>
>><a href="<catalog:catalogNavigateAttribute name="catalogUrl" />" class="linkMenuSink"><catalog:catalogNavigateAttribute name="displayTitle" /></a>
</common:items>
</catalog:catalogNavigateList>
</td>
</tr>
</table>
</td>
<td align="right">查找目錄: <input name="TextSearch" type="text" maxlength="50" style="width:180px;" />
<input type="submit" name="ButtonSearch" value="搜索" class="clsButton2w" />
</td>
</tr>
<tr>
<td colspan="2">
<catalog:catalogList pageItems="15" parentId="<%=catalogId%>" activeOnly="<%=isActiveOnly%>">
<table width="100%" class="tableBorder" cellpadding="1" cellspacing="1">
<tr>
<td class="tableHeader" width="25"><input type="checkbox" disabled checked /></td>
<td class="tableHeader" nowrap>名稱</td>
<td class="tableHeader" width="100">屬性</td>
<td class="tableHeader" width="50">狀態(tài)</td>
<td class="tableHeader" width="120">最近更新</td>
</tr>
<common:items>
<tr>
<td class="tableRow"><input type="checkbox" name="CheckGroup" value="<catalog:catalogAttribute name="id" />" /></td>
<td class="tableRow"><a title="打開" href="<catalog:catalogAttribute name="catalogUrl" />"><catalog:catalogAttribute name="displayTitle" /></a></td>
<td class="tableRow"><catalog:catalogAttribute name="listAttributeStr" /></td>
<td class="tableRow"><catalog:catalogAttribute name="statusStr" /></td>
<td class="tableRow"><catalog:catalogAttribute name="lastUpdate" /></td>
</tr>
</common:items>
<tr>
<td colspan="5">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="right">
<table cellspacing="0" cellpadding="3">
<tr>
<td noWrap align="right">
<span class="columnText"><common:summaryForm /></span></td>
<td noWrap align="right">
<table cellspacing="0" cellpadding="0"><tr>
<common:firstForm action="<%=actionUrl%>">
<td>
<input class="button2w" style="width: 50px;" type="submit" value="最前" />
</td>
</common:firstForm>
<common:prevForm action="<%=actionUrl%>">
<td>
<input class="button2w" style="width: 50px;" type="submit" value="前頁" />
</td>
</common:prevForm>
<common:nextForm action="<%=actionUrl%>">
<td>
<input class="button2w" style="width: 50px;" type="submit" value="下頁" />
</td>
</common:nextForm>
<common:lastForm action="<%=actionUrl%>">
<td>
<input class="button2w" style="width: 50px;" type="submit" value="最后" />
</td>
</common:lastForm>
</tr></table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</catalog:catalogList>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td><input type="button" name="ButtonCreate" value="新建" class="button2w" onclick="return buttonCreate_onclick()" /><input type="button" name="ButtonUpdate" value="編輯" class="button2w" onclick="return buttonUpdate_onclick()" /><input type="button" name="ButtonDelete" value="刪除" class="button2w" onclick="return buttonDelete_onclick()" /> <input type="button" name="ButtonImport" value="導(dǎo)入資源" class="button4w" onclick="return buttonImport_onclick()" /><input type="button" name="ButtonSort" value="排序" class="button2w" onclick="return buttonSort_onclick()" /></td>
<td align="right"><input type="checkbox" name="CheckActiveOnly" id="CheckActiveOnly" <%=isActiveOnly ? "checked" : ""%> onclick="return checkActiveOnly_onclick()" language="javascript" /><label for="CheckActiveOnly">僅顯示有效目錄</label></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" style="BORDER-TOP: #999999 1px solid">
<table align="center" style="height: 50px" width="100%">
<tr>
<td><jsp:include page="../common/copyright_inc.jsp" flush="true"/></td>
</tr>
</table></td>
<tr>
</table>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -