?? catalogresourcesort.jsp
字號:
<?xml version="1.0" encoding="gb2312" ?><%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="gb2312"%>
<%@ page import="com.eline.wap.common.util.*"%>
<%@ taglib uri="/WEB-INF/tlds/eline-common.tld" prefix="common" %>
<%@ taglib uri="/WEB-INF/tlds/eline-catalog.tld" prefix="catalog" %>
<%
int catalogId = StringUtils.getInt(request.getParameter("catalogId"), -1);
%>
<!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>Insert title here</title>
<style type="text/css"> body, table, td, select, input { font-size: 9pt; font-family: SimSun; }
.button2w { width: 50px; }
</style>
<script language="javascript">
<!--
function buttonUp_onclick() {
var listSrc = document.all["ListSortables"];
var selectedIndex = listSrc.selectedIndex;
if (selectedIndex <= 0)
return false;
var text = listSrc.options[selectedIndex].text;
var value = listSrc.options[selectedIndex].value;
listSrc.options[selectedIndex].text = listSrc.options[selectedIndex - 1].text;
listSrc.options[selectedIndex].value = listSrc.options[selectedIndex - 1].value;
listSrc.options[selectedIndex - 1].text = text;
listSrc.options[selectedIndex - 1].value = value;
listSrc.options[selectedIndex - 1].selected = true;
return true;
}
function buttonDown_onclick() {
var listSrc = document.all["ListSortables"];
var selectedIndex = listSrc.selectedIndex;
if (selectedIndex == -1 || selectedIndex >= listSrc.options.length -1)
return false;
var text = listSrc.options[selectedIndex].text;
var value = listSrc.options[selectedIndex].value;
listSrc.options[selectedIndex].text = listSrc.options[selectedIndex + 1].text;
listSrc.options[selectedIndex].value = listSrc.options[selectedIndex + 1].value;
listSrc.options[selectedIndex + 1].text = text;
listSrc.options[selectedIndex + 1].value = value;
listSrc.options[selectedIndex + 1].selected = true;
return true;
}
function form1_onsubmit() {
var listSrc = document.all["ListSortables"];
if (listSrc.options.length < 1) {
window.alert("目錄為空");
return false;
}
var items = new Array();
for (var i = 0; i < listSrc.options.length; i++) {
items[i] = listSrc.options[i].value;
}
document.all["selectedItems"].value = items.join(";");
window.alert("document.all[\"selectedItems\"].value=" + document.all["selectedItems"].value);
return true;
}
function buttonCancel_onclick() {
var dlgWnd = window;
if (window.parent != null)
dlgWnd = window.parent;
dlgWnd.close();
return true;
}
-->
</script>
</head>
<body bottomMargin="0" bgcolor="#d4d0c8" leftMargin="0" topMargin="0" rightMargin="0">
<form method="post" action="<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_RESOURCE_DEPLOY)%>?webAction=1" onsubmit="return form1_onsubmit()">
<table cellspacing="1" cellpadding="0" width="400" border="0">
<tr>
<td align="center">
<table
style="border-right: darkgray 1px solid; border-top: darkgray 1px solid; border-left: darkgray 1px solid; border-bottom: darkgray 1px solid"
cellspacing="0" cellpadding="1" width="100%" border="0">
<tr>
<td style="border-bottom: darkgray 1px solid" colspan="2"><b>目錄排序</b></td>
</tr>
<tr>
<td width="252"><select style="width: 250px" size="20" name="ListSortables">
<catalog:catalogList pageItems="999" parentId="<%=catalogId%>" activeOnly="1">
<common:items>
<option value="<catalog:catalogAttribute name="id" />"><catalog:catalogAttribute name="displayTitle" /></option>
</common:items>
</catalog:catalogList>
</select></td>
<td style="border-left: darkgray 1px solid" align="center">
<input class="button2w" type="button" value="上移" name="buttonUp" onclick="return buttonUp_onclick()" /><br />
<input class="button2w" type="button" value="下移" name="buttonDown" onclick="return buttonDown_onclick()" /></td>
</tr>
</table>
<input type=hidden name="selectedItems" /><input type=hidden name="parentId" value="<%=catalogId %>" />
<div style="font-size: 5px"><br />
</div>
<input class="button2w" type="submit" value="確定"
name="buttonSubmit" /><input class="button2w" type="button" value="放棄" name="buttonCancel" onclick="return buttonCancel_onclick()" /></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -