📄 add.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/admin.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
String strId = (String)request.getAttribute("NextId");
java.util.ArrayList lists = (java.util.ArrayList)request.getAttribute("lists");
if(lists==null){
showError("获取页面数据失败!",request,response);
return;
}
%>
<html>
<head>
<title>广告位添加</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="<%=strCssPath%>">
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
<script language="javascript">
<!--
function PageCheck(loForm){
if(!Check(loForm)) return false;
//UploadFiles.send();
return true;
}
function addUploadFile(strPicUrl,strPicExt){
var strShow = "";
if("SWF"==strPicExt || "FLA"==strPicExt || "swf"==strPicExt || "fla"==strPicExt){
strShow = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="150" height="50">';
strShow += '<param name="movie" value="<%=site.bean.SitePara.strVirtualName%>' + strPicUrl + '" />';
strShow += '<param name="quality" value="high" />';
strShow += '<embed src="<%=site.bean.SitePara.strVirtualName%>' + strPicUrl + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="50"></embed>';
strShow += '</object>';
}else{
strShow = '<img src="<%=site.bean.SitePara.strVirtualName%>'+ strPicUrl + '" width="150" height="50" border="0" title="默认显示的广告图片" id="defaultPicShow" name="defaultPicShow">';
}
getObject("picShowSpan").innerHTML = strShow;
getObject("defaultPic").value = strPicUrl;
}
//-->
</script>
</script>
</head>
<body class="bodycolor" topmargin="5" onload="resizeWin('objBody');">
<div name="objBody" id="objBody">
<table border="0" width="450" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="<%=strSkinBase%>/images/edit.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3">广告位添加</span>
</td>
</tr>
</table>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center" >
<form action="?action=save&iid=<%=strMenuId%>" method="post" name="form1" onsubmit="return PageCheck(this);">
<tr>
<td nowrap class="TableData">ID:</td>
<td nowrap class="TableData">
<input type="text" name="id" class="BigInput" size="20" maxlength="50" value="<%=strId%>" EmptyDisable label="名称"> 建议使用默认值 <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td nowrap class="TableData">类别:</td>
<td nowrap class="TableData">
<select name="posType" id="posType" label="广告位类别" EmptyDisable>
<option value="">请选择广告位类别</option>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/file/static/js/adpostype.js"></script> <font color="#FF0000">*</font>
</option>
</select> <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td nowrap class="TableData">名称:</td>
<td nowrap class="TableData">
<input type="text" name="title" class="BigInput" size="25" maxlength="50" value="" EmptyDisable label="名称"> <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td nowrap class="TableData">参数:</td>
<td nowrap class="TableData">
宽:<input type="text" name="width" class="BigInput" size="5" maxlength="6" value="" EmptyDisable label="宽"> 高:<input type="text" name="height" class="BigInput" size="5" maxlength="6" value="" EmptyDisable label="高"> 单位为象素 <font color="#FF0000">*</font>
</td>
</tr>
<tr style="display:">
<td nowrap class="TableData">费用:</td>
<td nowrap class="TableData">
<input type="text" name="cost" class="BigInput" size="8" maxlength="8" value="" EmptyDisable label="费用"> 单位:元/天 <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td nowrap class="TableData">说明:</td>
<td nowrap class="TableData">
<textarea name="intro" id="intro" cols="50" rows="5" label="说明" onchange="javascript:CheckLength(this,120);"></textarea>
<BR>不能超过120个汉字
</td>
</tr>
<tr>
<td nowrap class="TableData">默认图片:</td>
<td nowrap class="TableData">
<iframe class="TBGen" style="top:2px" ID="UploadFiles" src="<%=site.bean.SitePara.strVirtualName%>/inc/upload/?wt=<%=request.getParameter("wt")%>&ft=picfla&recf=addUploadFile&empty=1" frameborder=0 scrolling=no width="350" height="25"></iframe>
<span name="picShowSpan" id="picShowSpan">
</span>
<input type="hidden" name="defaultPic" id="defaultPic" value="">
</td>
</tr>
<%
if(lists!=null){
%>
<tr <%if(lists.size()<2) out.print("style=\"display:none\"");%>>
<td nowrap class="TableData">允许数量:</td>
<td nowrap class="TableData">
<input type="text" name="AdNum" class="BigInput" size="3" maxlength="2" value="1" EmptyDisable label="允许数量" ValueFormat="int"> 允许同时放置的广告数量
</td>
</tr>
<tr <%if(lists.size()<2) out.print("style=\"display:none\"");%>>
<td nowrap class="TableData">显示效果:</td>
<td nowrap class="TableData">
<select name="ShowType" id="ShowType" label="显示效果" EmptyDisable>
<%
for(int i=0;i<lists.size();i++){
igec.site.base.bean.SysObj so = (igec.site.base.bean.SysObj)lists.get(i);
out.println("<option value=\"" + so.getStrValue1() + "\">" + so.getStrValue2() + "</option>");
}
%>
</select>
</td>
</tr>
<%}%>
<tr>
<td nowrap class="TableData">是否起用:</td>
<td nowrap class="TableData">
<input type="radio" name="UseFlag" id="UseFlag3" value="1" checked> <label for="UseFlag3">起用</label>
<input type="radio" name="UseFlag" id="UseFlag2" value="0" > <label for="UseFlag2">不起用</label>
</td>
</tr>
<td nowrap class="TableControl" colspan="2" align="center">
<input type="submit" value="确定" class="BigButton">
<input type="button" value="返回" class="BigButton" onclick="window.close();">
</td>
</form>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -