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

📄 catalogeffectcreate.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.*"%>
<%
int parentId = StringUtils.getInt(request.getParameter("parentId"), -1);
boolean locked = StringUtils.getBoolean(request.getParameter("lock"), false);

String uploadPath = "";

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

%>
<!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, 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">
<!--
function listNodeType_onchange() {
	var element = event.srcElement;
	
	var actionUrl = "<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_CREATE)%>?parentId=" + <%=parentId%>;
	window.location.href = actionUrl;
	
	return true;
}
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 formCreate_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>节点属性: <select name="type" onchange="return listNodeType_onchange()" <%=locked ? "disabled" : "" %>>
			<option value="0">目录列表</option>
			<option value="1" selected>目录特效</option>
		</select></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="hidden" name="parentId" value="<%=parentId %>" />
						<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="formCreate" method="post" action="<%=SiteUrls.getInstance().getProperty(SiteUrls.CATALOG_EFFECT) %>?webAction=0" onsubmit="return formCreate_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" /></td>
				</tr>
				<tr>
					<td>状态</td>
					<td><select name="active">
						<option value="1">有效</option>
						<option 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"></textarea></td>
				</tr>
				<tr>
					<td colspan="2">
					<hr width="100%" size="1" />
					<input type="hidden" name="parentId" value="<%=parentId %>" />
					</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 + -