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

📄 catalogeffectupdate.jsp

📁 一个免费wap站
💻 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.catalog.model.*"%>
<%@ page import="com.eline.wap.catalog.client.*"%>
<%
int catalogId = StringUtils.getInt(request.getParameter("catalogId"), -1);
String uploadPath = "";

if (catalogId == -1) {
	Object obj1 = (Object) request.getAttribute("catalogId");
	if (obj1 != null && obj1 instanceof Integer) {
		catalogId = ((Integer) obj1).intValue();
		uploadPath = (String) request.getAttribute("uploadPath");
	}
}
System.out.println("catalogEffectUpdate.jsp.catalogId=" + catalogId);

CatalogHelper helper = new CatalogHelper();
Item baseItem = helper.getItem(catalogId);
System.out.println("baseItem=" + baseItem);
if (baseItem == null || !(baseItem instanceof EffectItem)) {	// 如果该对象不符合,则跳转到出错页面
	response.sendRedirect(SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_FAILURE));
	return;
}
EffectItem item = (EffectItem) baseItem;

%>
<!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" />
<style type="text/css">
body, table, td, select, input, textarea { font-size: 9pt; font-family: SimSun; }
.button2w { width: 50px; }
.menuBar td { color: #000000; }
.menuBar a { color: #000000; text-decoration: none }
.menuBar a:hover { color: #f08000; text-decoration: underline }
</style>
<script language="javascript" src="../common/common.js"></script>
<script language="javascript">
<!--
function buttonCancel_onclick() {
	var dlgWnd = window;

	if (window.parent != null)
		dlgWnd = window.parent;
	dlgWnd.close();

	return true;
}
function formUpload_onsubmit() {
	if (document.all["fileUpload"].value.length < 1) {
		window.alert("请先选择要上传的文件");
		return false;
	}
	return true;
}
function formUpdate_onsubmit() {
	if (document.all["name"].value.length < 1) {
		window.alert("名字还没指定");
		return false;
	}
	return true;
}
-->
</script>
</head><body bottommargin="0" bgcolor="#d4d0c8" leftmargin="0" topmargin="0" rightmargin="0">
<table cellspacing="1" cellpadding="0" width="490" border="0">
	<tr>
		<td><b>修改目录特效</b></td>
	</tr>
	<tr>
		<td>
		<hr width="100%" size="1" />
		</td>
	</tr>
	<tr>
		<td><b>文件上传</b></td>
	</tr>
	<tr>
		<td>
		<form style="MARGIN: 0px 0px 0px 0px" name="formUpload" method="post" action="<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_EFFECT) %>?webAction=3" onsubmit="return formUpload_onsubmit()" enctype="multipart/form-data">
			<table cellspacing="1" cellpadding="0" width="500" border="0">
				<tr>
					<td valign="top" width="25%"><span style="font-size: 3px">&nbsp;<br />
					</span>上传图片</td>
					<td>
						<input name="fileUpload" type="file" size="46" /><br />
						<input name="filePath" value="<%=uploadPath %>" type="text" size="57" readonly="readonly" /><br />
						<input type="submit" name="ButtonUpload" value="上传" class="button2w" />
					</td>
				</tr>
			</table>
		</form>
		</td>
	</tr>
	<tr>
		<td>
		<hr width="100%" size="1" />
		</td>
	</tr>
	<tr>
		<td><b>添加特效</b></td>
	</tr>
	<tr>
		<td>
		<form style="MARGIN: 0px 0px 0px 0px" name="formUpdate" method="post" action="<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_EFFECT) %>?webAction=1" onsubmit="return formUpdate_onsubmit()">
			<table cellspacing="1" cellpadding="0" width="500" border="0">
				<tr>
					<td width="25%">名称</td>
					<td><input name="name" type="text" size="25" maxlength="50" value="<%=item.getName() %>" /></td>
				</tr>
				<tr>
					<td>状态</td>
					<td><select name="active">
						<option <%=item.isActive() ? "selected" : "" %> value="1">有效</option>
						<option <%=item.isActive() ? "" : "selected" %> value="0">无效</option>
					</select></td>
				</tr>
				<tr>
					<td colspan="2"><span style="font-size: 3px">&nbsp;<br />
					</span><b>代码:</b><br />
					<textarea name="content" rows="10" cols="78"><%=item.getContent() %></textarea></td>
				</tr>
				<tr>
					<td colspan="2">
					<hr width="100%" size="1" />
					<input type="hidden" name="catalogId" value="<%=catalogId %>" />
					</td>
				</tr>
				<tr>
					<td  colspan="2" valign="top" height="40" align="center"><input type="submit"
						name="buttonSubmit" value="提交" class="button2w" /><input type="button" name="buttonCancel" value="返回" class="button2w" onclick="return buttonCancel_onclick()" /></td>
				</tr>
			</table>
		</form>
		</td>
	</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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