📄 edit.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/user.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
/*****
*
* 功能介绍:根据当前的MenuId,对应的action名和当前用户,判断是否有进入此页面的权限
*
*/
if(checkPv(strMenuId,"edit",user)<0){
noPv(out);
return;
}
%>
<%
String strOfficeStyle = site.bean.SitePara.strVirtualName + "/member/" + igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieUserTheme,"stand");
String strId = igec.util.Tool.getStr(request.getParameter("id"));
if(igec.util.Tool.IsEmpty(strId)){
showError("请输入要编辑的广告ID!",request,response);
return;
}
igec.site.extend.bean.AdInfo ad = new igec.site.extend.bean.AdInfo();
ad.setStrId(strId);
int iFlag = igec.site.extend.business.AdBusiness.getAdInfo(ad);
if(iFlag==-2){
showError("无法获取您要编辑的广告信息!",request,response);
return;
}else if(iFlag<0){
showError(request,response);
return;
}
%>
<html>
<head>
<title>广告信息编辑</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/content.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/tree.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/mainframe.css" type="text/css" />
<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 setShowPicFromFile(strPicUrl,strFileType){
var strShow = "";
if(strFileType=="1"){
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>';
getObject("showFlashBox").innerHTML = strShow;
getObject("showFlashBox").style.display = "";
getObject("showPicBox").style.display = "none";
}else if(strFileType=="0"){
strShow = '<img src="<%=site.bean.SitePara.strVirtualName%>'+ strPicUrl + '" width="150" height="50" border="0" title="广告图片" id="showPicImg" name="showPicImg">';
getObject("showPicBox").innerHTML = strShow;
getObject("showPicBox").style.display = "";
getObject("showFlashBox").style.display = "none";
}
getObject("defaultPic").value = strPicUrl;
}
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>';
getObject("showFlashBox").innerHTML = strShow;
getObject("showFlashBox").style.display = "";
getObject("showPicBox").style.display = "none";
}else{
strShow = '<img src="<%=site.bean.SitePara.strVirtualName%>'+ strPicUrl + '" width="150" height="50" border="0" title="广告图片" id="showPicImg" name="showPicImg">';
getObject("showPicBox").innerHTML = strShow;
getObject("showPicBox").style.display = "";
getObject("showFlashBox").style.display = "none";
}
getObject("defaultPic").value = strPicUrl;
}
//-->
</script>
</script>
</head>
<body class="PopBody" topmargin="5" onload="addUploadFile('<%=ad.getStrFUrl()%>','<%=igec.util.FileUtil.getFileExt(ad.getStrFUrl())%>');resizeWin('objBody');">
<div name="objBody" id="objBody" align="center" width="500">
<table border="0" width="450" cellspacing="0" cellpadding="0" class="PopTable">
<tr>
<td class="PopTableHeader"> 广告信息编辑 <font style="font-size:12px">(带 <font color="#FF0000">*</font> 号为必填项)</font>
</td>
</tr>
</table>
<table border="0" cellspacing="0" width="450" class="PopTable" cellpadding="0">
<form action="<%=site.bean.SitePara.strVirtualName%>/member/ad.do?action=update&id=<%=strId%>&posId=<%=ad.getStrPosId()%>&iid=<%=strMenuId%>" method="post" name="form1" onsubmit="return PageCheck(this);" target="_Igec_Ad_RunForm">
<tr>
<td nowrap class="PopTableLabel"> 广告位:</td>
<td class="PopTableData">
<%=igec.site.base.business.DataUtilBusiness.getFieldValue("TITLE","TAB_SYSADPOS","WHERE ID='" + ad.getStrPosId() + "'")%>
</td>
</tr>
<tr>
<td nowrap class="PopTableLabel"> 日期范围:</td>
<td class="PopTableData">
<%=igec.util.Tool.getStrTime(ad.getStrStartDate(),1)%> 至 <%=igec.util.Tool.getStrTime(ad.getStrEndDate(),1)%>
</td>
</tr>
<tr>
<td nowrap class="PopTableLabel">显示图片:</td>
<td nowrap class="PopTableData">
<input type="radio" onclick="javascript:showBox('upBox','selBox');" name="PicType">本地上传 <input type="radio" onclick="javascript:showBox('selBox','upBox');" name="PicType" checked>图片库
<br><br>
<span name="showPicBox" id="showPicBox" style="display:none">
<img src="" name="showPicImg" id="showPicImg" width="100" height="60" border="0">
</span>
<span name="showFlashBox" id="showFlashBox" style="display:none">
</span>
<span name="upBox" id="upBox" style="display:none">
<br><br>
<iframe class="TBGen" style="top:2px" ID="UploadFiles" src="/bxg/inc/upload/pageUp.jsp?color=f8f8f8&wt=null&ft=picfla&recf=addUploadFile" frameborder=0 scrolling=no width="250" height="25"></iframe>
</span>
<span name="selBox" id="selBox" style="display:">
<br><br> <input type="button" value="点击选择" onclick="javascript:openWindow('/bxg/member/stand/person/mypic.jsp?type=fp&fun=setShowPicFromFile','500','400');" >
</span>
<input type="hidden" name="defaultPic" id="defaultPic" value="" style="display:none">
</td>
</tr>
<tr>
<td nowrap class="PopTableLabel">连接路径:</td>
<td nowrap class="PopTableData">
<input type="text" name="FLink" class="BigInput" size="50" maxlength="120" value="<%=ad.getStrFLink()%>" label="连接路径">
</td>
</tr>
<td nowrap class="PopTableControl" colspan="2" align="center">
<input type="submit" value="确定">
<input type="button" value="返回" 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 + -