📄 show.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/admin.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
/*****
*
* 功能介绍:根据当前的MenuId,对应的action名和当前用户,判断是否有进入此页面的权限
*
*/
if(checkPv(strMenuId,"show",user)<0){
noPv(out);
return;
}
%>
<%
String strId = igec.util.Tool.getStr(request.getParameter("id"));
if(igec.util.Tool.IsEmpty(strId)){
showError("请将需要查看的申请ID传入!",request,response);
return;
}
String strCurMenuName = igec.site.base.business.DataUtilBusiness.getFieldValue("TITLE","TAB_IGECMENU","WHERE ID='" + strMenuId + "'");
igec.site.extend.bean.AdRegInfo regInfo = new igec.site.extend.bean.AdRegInfo();
regInfo.setStrId(strId);
int iFlag = igec.site.extend.business.AdBusiness.getAdRegInfo(regInfo);
if(iFlag<0){
showError("获取会员的广告申请信息失败,请稍后重试!",request,response);
return;
}
String strMebUserName="",strMebNickName="";
//获取会员的相应信息
String strMebInfo[] = igec.site.base.business.DataUtilBusiness.getValue("SELECT MEBNAME FROM TAB_MEBINFO WHERE ID='" + regInfo.getStrMebId() + "'");
if(strMebInfo==null){
showError("获取会员的相应信息失败!",request,response);
return;
}else if(strMebInfo.length>0){
strMebUserName = strMebInfo[0];
}
String strMebAdvInfo[] = igec.site.base.business.DataUtilBusiness.getValue("SELECT NICKNAME FROM TAB_IGECMEBADV WHERE MEBID='" + regInfo.getStrMebId() + "'");
if(strMebAdvInfo==null){
showError("获取会员的相应信息失败!",request,response);
return;
}else if(strMebAdvInfo.length>0){
strMebNickName = strMebAdvInfo[0];
}else{
strMebNickName = "已删除";
}
String strPosTime = igec.site.extend.business.AdBusiness.getAdPosOrderTime(regInfo.getStrPosId());
if("".equals(strPosTime)){
strPosTime = "未被占用任何时间段";
}
%>
<html>
<head>
<title><%=strCurMenuName%></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/CalendarDlg.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
<script language="javascript">
<!--
function setPassValue(strValue){
document.getElementById("pass").value = strValue;
}
//-->
</script>
</head>
<body class="bodycolor" topmargin="5" onload="resizeWin('objBody');">
<table border="0" name="objBody" id="objBody" width="600" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form action="<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/ad.do?action=pass&id=<%=strId%>&iid=<%=strMenuId%>" method="post" name="form1" onsubmit="return Check(this);" target="_Igec_Ad_RunForm">
<input type="hidden" name="pass" id="pass" value="1">
<tr>
<td colspan=2 class="TableHeader"><img src="<%=strSkinBase%>/images/menu/sys/menu.gif" align="absmiddle"> 基本信息</td>
</td>
</tr>
<tr height="30">
<td nowrap class="TableData" width="20%"> 会员名称:</td>
<td class="TableData">
<a href="javascript:" onclick="javascript:openWindow('../../member/show.jsp?id=<%=regInfo.getStrMebId()%>','450','500');"><span class="big3"><%=strMebUserName%>(<%=strMebNickName%>)</span></a>
</td>
</tr>
<tr>
<td nowrap class="TableData"> 申请的广告位:</td>
<td class="TableData"><span class="big3"><%=igec.site.extend.business.AdBusiness.getAdPosTypeTitle(regInfo.getStrPosId())%><a href="javascript:" onclick="javascript:openWindow('../pos/show.jsp?id=<%=regInfo.getStrPosId()%>','250','300');"><%=igec.site.base.business.DataUtilBusiness.getFieldValue("TITLE","TAB_SYSADPOS","WHERE ID='"+regInfo.getStrPosId()+"'")%></a></span>
</td>
</tr>
<tr>
<td nowrap class="TableData"> 申请的时间段:</td>
<td class="TableData">
<input type="text" label="开始管理日期" EmptyDisable size="10" ValueFormat="date" name="startDate" id="startDate" value="<%=igec.util.Tool.getStrTime(regInfo.getStrStartDate(),1)%>"> <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="<%=igec.util.Tool.getStrTime(regInfo.getStrEndDate(),1)%>"> <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 class="TableData">
<span class="big3"><%=strPosTime%></span>
</td>
</tr>
<tr height="60" valign="top">
<td nowrap class="TableData"> 说明:</td>
<td class="TableData"><%=regInfo.getStrIntro()%></td>
</tr>
<tr>
<td colspan=2 class="TableHeader"><img src="<%=strSkinBase%>/images/menu/sys/menu.gif" align="absmiddle"> 状态</td>
</td>
</tr>
<tr height="30">
<td nowrap class="TableData" width="20%">是否审批:</td>
<td class="TableData">
<span class="big3"><%if("0".equals(regInfo.getStrPassFlag())) out.print("未处理");else if("1".equals(regInfo.getStrPassFlag())) out.print("已审批"); else if("2".equals(regInfo.getStrPassFlag())) out.print("无效");%></span>
</td>
</tr>
<%
if(!"0".equals(regInfo.getStrPassFlag())){
%>
<tr height="30" style="display:">
<td nowrap class="TableData" width="20%">审批人:</td>
<td class="TableData">
<span class="big3"><%=regInfo.getStrPassName()%></span>
</td>
</tr>
<tr height="30" style="display:">
<td nowrap class="TableData" width="20%">审批时间:</td>
<td class="TableData">
<span class="big3"><%=igec.util.Tool.getStrTime(regInfo.getStrPassTime(),0)%></span>
</td>
</tr>
<tr align="center" class="TableControl">
<td colspan="2" nowrap>
<input type="button" value="关闭" class="BigButton" onClick="javascript:window.close();">
</td>
</tr>
<%}else{%>
<tr align="center" class="TableControl">
<td colspan="2" nowrap>
<input type="submit" value="审批通过" class="BigButton" title="将会员升级为试用VIP会员" onclick="javascript:setPassValue('1');">
<input type="submit" value="设置申请无效" class="BigButton" title="此申请无效,默认将不再显示" onclick="javascript:setPassValue('2');">
<input type="button" value="关闭" class="BigButton" onClick="javascript:window.close();">
</td>
</tr>
<%}%>
</form>
</table>
<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 + -