📄 add.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/admin.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<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="<%=site.bean.SitePara.strVirtualName%>/js/CalendarDlg.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){
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").style.display = "";
getObject("defaultPic").value = strPicUrl;
resizeWin('objBody');
}
function onChangeAdPosType(loObj){
if(loObj.value!=""){
__XmlHttpPool__.PostRemoteData("<%=site.bean.SitePara.strVirtualName%>/file/dynamic/js/adpostype.jsp?pt=" + loObj.value + "&mr="+Math.random(),function onGetData(strContent){onChangeAdPosList(strContent);},"");
}else{
getObject("adPosDiv").innerHTML = "";
}
}
function onChangeAdPosList(strContent){
getObject("adPosDiv").innerHTML = strContent;
resizeWin('objBody');
}
//-->
</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><font style="font-size:12px">(带 <font color="#FF0000">*</font> 号为必填项)</font>
</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);" target="_Igec_Ad_RunForm">
<tr>
<td nowrap class="TableData">广告位:</td>
<td nowrap class="TableData">
<select name="posType" id="posType" label="广告位类别" onchange="onChangeAdPosType(this);">
<option value="">请选择广告位类别</option>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/file/static/js/adpostype.js"></script>
</option>
</select>
<span name="adPosDiv" id="adPosDiv"></span> <font color="#FF0000">*</font>
</td>
</tr>
<%if('1'==igec.util.Tool.getSafeChar(igec.site.base.bean.SitePara.strSysFunctionOpenFlag,igec.site.base.bean.SitePara.iOpenAdInfoDate)){%>
<tr>
<td nowrap class="TableData"> 日期范围:</td>
<td class="TableData">
<input type="text" label="开始日期" EmptyDisable size="10" ValueFormat="date" name="startDate" id="startDate" value=""> <img src="<%=strSkinBase%>/images/menu/calendar.gif" border="0" align="absMiddle" style="cursor:hand" onclick="fPopUpCalendarDlg('<%=igec.site.base.bean.SitePara.strVirtualName%>',getObject('startDate'));"> 至 <input type="text" label="结束日期" EmptyDisable size="10" ValueFormat="date" name="endDate" id="endDate" value=""> <img src="<%=strSkinBase%>/images/menu/calendar.gif" border="0" align="absMiddle" style="cursor:hand" onclick="fPopUpCalendarDlg('<%=igec.site.base.bean.SitePara.strVirtualName%>',getObject('endDate'));">
<font color="#FF0000">*</font>
</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="300" height="25"></iframe> <font color="#FF0000">*</font>
<br>
<span name="picShowSpan" id="picShowSpan">
</span>
<input type="hidden" name="defaultPic" id="defaultPic" value="" style="display:none">
</td>
</tr>
<tr>
<td nowrap class="TableData">连接路径:</td>
<td nowrap class="TableData">
<input type="text" name="FLink" class="BigInput" size="50" maxlength="120" value="" label="连接路径">
</td>
</tr>
<tr style="display:none">
<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>
<iframe id="_Igec_Ad_RunForm" name="_Igec_Ad_RunForm" src="" width="0" height="0" style="display:none"></iframe>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -