⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 grouplistmovies.jsp

📁 一个用struts tiles的在线影院web系统
💻 JSP
字号:
<?xml version="1.0" encoding="gb2312" ?>
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="gb2312"%>
<%@ page import="com.eline.vod.utils.*"%>
<%@ page import="com.blue.web.common.util.*"%>
<%@ taglib uri="/WEB-INF/tlds/eline-common.tld" prefix="common" %>
<%@ taglib uri="/WEB-INF/tlds/eline-resource.tld" prefix="resource" %>
<%int indexId = StringUtils.getInt(request.getParameter("indexId"), -1);
String actionUrl = SiteUrls.getInstance().getProperty(SiteUrls.GROUP_LIST_MOVIES) + "?indexId=" + indexId;
            %>
<!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>groupListMovies</title>
		<link href="../style/default.css" type="text/css" rel="stylesheet" />
		<script language="javascript" src="../common/common.js"></script>
		<script id="clientEventHandlersJS" language="javascript">
		<!--
function buttonCreate_onclick() {
	var url = "<%=SiteUrls.getInstance().getProperty(SiteUrls.GROUP_CREATE) %>";
	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("当前选中了" + checkedCount + "项,您只能选中一个项来进行修改...");
		return false;
	}
	var url = "<%=SiteUrls.getInstance().getProperty(SiteUrls.GROUP_UPDATE)%>?indexId=" + itemId;
	var returnValue = showDialog(url, 500, 500);
	if (returnValue == "reload")
		window.location.reload();
}

function buttonMove_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.GROUP_MOVE_MOVIE_FROM_GROUP)%>?movieId=" + escape(itemId);
	window.location.href= url;
	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.GROUP_REMOVE_MOVIE_FROM_GROUP)%>?movieId=" + escape(itemId) + "&groupId=" + escape(<%=indexId %>);
	var returnValue = showDialog(url, 500, 500);
	if (returnValue == "reload")
		window.location.reload();
	return true;
}

function buttonSort_onclick() {
	var url = "<%=SiteUrls.getInstance().getProperty(SiteUrls.GROUP_LIST_MOVIES_SORT)%>?groupId="+<%=indexId%>;
	var returnValue = showDialog(url, 400, 370);
	if (returnValue == "reload")
		window.location.reload();
}
function buttonBack_onclick() {
	var url = "<%=SiteUrls.getInstance().getProperty(SiteUrls.GROUP_LIST)%>";
	window.location.href= url;
	return true;
}
-->
</script>
</head>
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
<table align="center" cellspacing="0" cellpadding="0" width="800" border="0">
	<tr>
		<td colspan="3">
			<jsp:include page="../common/top.jsp" flush="true"/>
		</td>
	</tr>
</table>
<resource:movieGroupList pageItems="15" indexId="<%=indexId%>">
						<table align="center" width="800" 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" nowrap>译名</td>
								<td class="tableHeader" nowrap>导演</td>
								<td class="tableHeader" nowrap>编剧</td>
								<td class="tableHeader" nowrap>主演</td>
								<td class="tableHeader" nowrap>推荐度</td>
								<td class="tableHeader" nowrap>点击量</td>
								<td class="tableHeader" nowrap>更新用户</td>
								<td class="tableHeader" nowrap>创建时间</td>
								<td class="tableHeader" nowrap>更新时间</td>
								<td class="tableHeader" nowrap>集数</td>
								<td class="tableHeader" nowrap>是否允许发布</td>
							</tr>
							<common:items>
							<tr>
								<td class="tableRow"><input type="checkbox" name="CheckGroup" value="<resource:movieGroupAttribute name="id" />" /></td>
								<td class="tableRow"><a href="<resource:movieGroupAttribute name="movieUrl" />"><resource:movieGroupAttribute name="Title" /></a></td>
								<td class="tableRow"><resource:movieAttribute name="translated" /></td>
								<td class="tableRow"><resource:movieAttribute name="director" /></td>
								<td class="tableRow"><resource:movieAttribute name="playwright" /></td>
								<td class="tableRow"><resource:movieAttribute name="player" /></td>
								<td class="tableRow"><resource:movieAttribute name="commend" /></td>
								<td class="tableRow"><resource:movieGroupAttribute name="AccessCount" /></td>
								<td class="tableRow"><resource:movieGroupAttribute name="UserUpdate" /></td>
								<td class="tableRow"><resource:movieGroupAttribute name="dateCreated" /></td>
								<td class="tableRow"><resource:movieGroupAttribute name="lastUpdate" /></td>
								<td class="tableRow"><resource:movieGroupAttribute name="Num" /></td>
								<td class="tableRow"><resource:movieGroupAttribute name="statusStr" /></td>
							</tr>
							</common:items>
						</table>
						<span style="font-size: 1px">&nbsp;<br />
						</span>
						<table align="center" width="800" class="tableBorder" cellpadding="0" cellspacing="2">
						   	<tr>
					           <td align="right">
					               <table cellspacing="0" cellpadding="0">
					                   <tr>
					                       <td noWrap align="right">
											<span class="columnText"><common:summaryForm /></span></td>
					                       <td><common:firstForm action="<%=actionUrl%>">
					                       	<input class="clsMenuItem" style="width: 50px;" type="submit" value="最前" />
					                           </common:firstForm></td>
					                       <td><common:prevForm action="<%=actionUrl%>">
											<input class="clsMenuItem" style="width: 50px;" type="submit" value="前页" />
					                           </common:prevForm></td>
					                       <td><common:nextForm action="<%=actionUrl%>">
											<input class="clsMenuItem" style="width: 50px;" type="submit" value="下页" />
					                           </common:nextForm></td>
					                       <td><common:lastForm action="<%=actionUrl%>">
											<input class="clsMenuItem" style="width: 50px;" type="submit" value="最后" />
					                           </common:lastForm></td>
					                   </tr>
					               </table>
					           </td>
					       </tr>
					   </table>
						</resource:movieGroupList>
		<table align="center"width="800" cellpadding="0" cellspacing="0">
			<tr>
				<td align="center">
					<!-- input class="clsMenuItem" type="button" name="ButtonUpdate" value="移动至" onclick="return buttonMove_onclick()" /-->
					<input class="clsMenuItem" type="button" name="ButtonDelete" value="删除" onclick="return buttonDelete_onclick()" />
					<input type="button" name="ButtonSort" value="排序" class="clsMenuItem" onclick="return buttonSort_onclick()" />
					<input type="button" name="ButtonCreate" value="返回组目录" class="clsMenuItem" onclick="return buttonBack_onclick()" />
				</td>
			</tr>
		</table>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -