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

📄 adverlist.jsp

📁 电信的网厅的整站代码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
		
		var oldLinka = null;
		function switchPage(that, idx){
			if ( that.tagName == "A" ) {
				document.getElementById("BBSList").currentPage=idx;
				
				if ( oldLinka == null ) {
					oldLinka = pageSet.children(0);
				}
				
				oldLinka.style.fontWeight = "normal";
				oldLinka.style.fontSize = "9pt";
				that.style.fontWeight = "bold";
				that.style.fontSize = "10pt";
				oldLinka = that;
			}
		}
		
		function iBtnEnabled(eBtns) {
			try{ 
				var iBtns = ibtnPanel.rows(0).cells;
				for (var i=0; i<iBtns.length; i++) {
					if ( i >= eBtns.length ) continue;
					var idx = parseInt( eBtns.substr(i,1) );
					if ( idx == NaN ) idx = 0;
	
					if (idx < 1 ) {
						//iBtns[i].Enabled = false;
					}
					else {
						//iBtns[i].Enabled = true;
					}
				} <% 
				// 要添加权限方面的控制,能够屏蔽某些人的添加、修改、删除权限。
				try {
					BBSAuth bbsAuth = BBSAuth.getInstance(auth, sPurvICode);
					if ( ! bbsAuth.hasManagerPurview() ) {
						// 如果没有管理权,则分别检查各个权限。
						if ( ! bbsAuth.hasAddPurview() ) {
							out.print("\nibtnAddContent.Enabled = false;");
						}						
					}
				}
				catch(Exception ex) {
					FileLogger.getLogger().warn(ex.getMessage(),ex);
				}
				%>
			}
			catch(exception){}
		}

		function fnToolAddContent() {
			var sURL = "newAdver.jsp?pid=<%= parentId%>";
			windowOpen(sURL,800,600,"BBS014");			
		}

		function fnToolUpdateContent() {
			var sURL = "updateAdver.jsp";
			
			var BBSList = document.all.BBSList;
			if ( BBSList != null && BBSList.selectedIndex >= 0 ) {
				fnToolViewContent();
				//sURL += "?id=" + BBSList.key;				
				//windowOpen(sURL,800,600,"BBS014")
			}
			else
			{
				alert("对不起,您没有选择具体的帐号,请选择一个帐号之后进入!");				
			}
		}		
		function fnToolViewContent() {
			if ( BBSList != undefined && BBSList.selectedIndex >= 0 ) {
				if ( BBSList.selectedAllIndexs.length > 1 ) {
					alert("系统不支持同时显示多条话题的内容,请放开CTRL键,选择一条您想要回复的话题后再点回复。");
				}
				else {
					var sURL = "../ViewContent.jsp?id=" + BBSList.key;
					windowOpen(sURL,800,600,"BBS");
				}
			}
		}		
			 
		
		function fn_setReject(sContentId) {
			document.getElementById("ACTION").value = "SETREJECT";
			document.getElementById("CONTENT_ID").value = sContentId;
			document.getElementById("Form1").submit();
		}
		function fn_setAccept(sContentId) {
			document.getElementById("ACTION").value = "SETACCEPT";
			document.getElementById("CONTENT_ID").value = sContentId;
			document.getElementById("Form1").submit();
		}
		
		function fnShowSimple() {
			QueryTable.tBodies[1].style.display='none';
			
			window.setTimeout("cltScript_Toolbar();",30);
		}
		
		function fnShowAll() {
			QueryTable.tBodies[1].style.display='block';
			
			window.setTimeout("cltScript_Toolbar();",30);
		}
	-->
	</script>
</head>
<body onload="fn_onload();">
	<form id="Default" method="post" action="adverlist.jsp" onsubmit="return fn_OnSubmit(this);">
		<div onresize="cltScript_Toolbar();" style="width: 100%">
			<div id="divTop" style="overflow: hidden">
				<table id="ibtnPanel" style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
					cellpadding="0" width="100%" border="0">
					<tr bgcolor="#efefef" height="33">
						<td valign="middle" align="center" width="71" 
							onclick="return fnToolAddContent();" 
							id="ibtnAddContent" 
							style="behavior:url(../../../common/button.htc)" 
							DefaultClass="btnDefault" 
							OverClass="btnOver" 
							DownClass="btnDown" 
							title="在该栏目下添加一新广告。">配置新广告</td>
						<td valign="middle" align="center" width="71" 
							onclick="return fnToolUpdateContent();" 
							id="ibtnUpdateContent" 
							style="behavior:url(../../../common/button.htc)" 
							DefaultClass="btnDefault" 
							OverClass="btnOver" 
							DownClass="btnDown" 
							title="在该栏目下修改广告图片内容。">修改广告</td>										
						<!--<td valign="middle" align="center" width="71" 
							onclick="return fnToolViewContent();" 
							id="ibtnViewContent" 
							style="behavior:url(../../../common/button.htc)" 
							DefaultClass="btnDefault" 
							OverClass="btnOver" 
							DownClass="btnDown" 
							Enabled="false" 														 
							title="查看选中的帖子。">预览广告</td> -->
						<td valign="middle" align="center" width="51" 
							onclick="javascript: help();" 
							id="help" 
							style="behavior:url(../../../common/button.htc)" 
							DefaultClass="btnDefault" 
							OverClass="btnOver" 
							DownClass="btnDown" 
							Enabled="false" 
							title="帮助。">帮助</td>
						<td>&nbsp;</td>
					</tr>
				</table>
				<jsp:include page="../../../common/inc_top.jsp" >
					<jsp:param name="purvCode" value="<%=sPurvICode%>"/>
					<jsp:param name="hasImage" value="1"/>
				</jsp:include>
				<table width="100%" border="0" cellpadding="0" cellspacing="0" class="OuterTable">
				  <tr> 
				    <td width="100%" colspan="2" class="OuterHead" align="left">
				    	<span id="ItemTitle"><font face="webdings">8</font>查询内容:</span>
				    	<input type="radio" id="SIMPLEQUERY" name="querymode" checked="checked" value="simple" onclick="fnShowSimple();"><label for="SIMPLEQUERY" id="ItemTitle">简单查询</label>&nbsp;
				    	<input type="radio" id="QUERYALL" name="querymode" value="all" onclick="fnShowAll();"><label for="QUERYALL" id="ItemTitle">复杂查询</label>
				    </td>
				  </tr>
				  <tr> 
				  	<td width="100%" colspan="2" class="InnerMain" align="left">
				  		<table id="QueryTable" border="0" cellspacing="0" cellpadding="0" width="100%">
				  			<caption style="display:none;">
				  			 
				  			</caption>
				  			<tbody>
				  				<!--常用简单的查询条件-->
					  			<tr>				  				
					  				<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">内容标题:</td>
					  				<td width="15%" class="body_td" nowrap="nowrap">
					  				<input type="text" id="TITLE" name="TITLE" style="width: 100%;">
					  				<input type="hidden" id="CONTENTTYPE" name="CONTENTTYPE" value="03"/>										
					  			    <input type="hidden" id="boardId" name="boardId" value="<%= parentId%>"/>					  				
					  				</td>				  				
					  				<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">作者:</td>
					  				<td width="15%" class="body_td" nowrap="nowrap"><input type="text" id="USERNAME" name="USERNAME" style="width: 100%;"></td>
					  				<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">内容状态:</td>
					  				<td width="10%" class="body_td" nowrap="nowrap">
					  				    <!--<input type="text" id="STATE" name="STATE" style="width: 100%;">-->
					  				    <select name="DELETE_SIGN" style="width: 100%">					  				    	
					  				    	<option value="">全部</option>
					  				    	<option value="E">审核通过</option>
					  				    	<option value="N">审核未通过</option>
					  				    	<option value="D">逻辑删除</option>					  				    				  				    	
					  				    </select>
					  				</td>
					  				<td width="8%" class="Caption_Td" align="right" nowrap="nowrap">发贴时间:</td>
					  				<td width="15%" class="body_td"    align="left" nowrap="nowrap">
					  					<input type="text" name="CREATETIME" id="CREATETIME" title="双击清空。" ondblclick="this.value='';" size="15" /><span style="cursor:hand" 
					  						   onclick="return showCalendar('CREATETIME', '%Y-%m-%d', null, true);">
										<img border="0" src="../../calendar/date_botton.gif" width="20" height="14">
									</td>					  				
					  			</tr>
				  			</tbody>
				  			<tbody style="display:none;">
				  				<!--其它查询条件-->
					  			<tr>					  				
					  				<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">结束(内容有效时间)</td>
					  				<td width="15%" class="body_td"    align="left" nowrap="nowrap">
					  					<input type="text" name="ENDTIME" id="ENDTIME" title="双击清空。" ondblclick="this.value='';" size="15" /><span style="cursor:hand" 
					  						   onclick="return showCalendar('ENDTIME', '%Y-%m-%d', null, true);">
										<img border="0" src="../../calendar/date_botton.gif" width="20" height="14"></td>
					  				<td class="Caption_Td" align="right" nowrap="nowrap">排序方式:</td>
					  			    <td class="body_td" align="left" nowrap="nowrap" colspan="5">
					  			        <select name="SORT" style="width: 50%;">
					  			        	<option value="">默认</option>
					  			        	<option value="asc">发贴时间顺序排列</option>
					  			        	<option value="desc">发贴时间倒序排列</option>
					  			        </select>
					  			    </td>
					  				<td width="10%" class="Caption_Td" align="right" nowrap="nowrap"></td>					  									  			    
					  			</tr>					  			
				  			</tbody>
				  		</table>
				    </td>
				  </tr>
				  <tr class="OuterFoot"> 
					<td width="15%" align="left" class="Caption_Td">
						<input type="submit" class="button" value="查询">
						<input type="reset" class="button" value="重填">
					</td>
					<!--
					<td width="85%" align="left" class="Caption_td">
						<table id="QueryResult" border="0" width="100%" cellspacing="0" 
							   cellpadding="1" 
							   style="behavior:url(../../common/table.htc)" 
							   ontableload="return onQueryResultLoad();"
							   serviceURL="<%= request.getContextPath() + "/XmlHttpService"%>"
							   service="BBSClientService"
							   dataService="getConditionResult"
							   rcService="getConditionCount"
							   autoLoad="False"
							   locked="true">
							   <caption style="display:none;"></caption>
							   <tr>
							     <td></td>
							   </tr>
		      			</table>
					</td>
					-->				  	
				  </tr>
				  <tr height="5"><td colspan="2"><img src="../../../common/images/spacer.gif"></td></tr>
				</table>
			</div>

			<div id="divMain" style="overflow: auto">
				<input type="hidden" id="parentID" name="parentID" value="<%= parentId%>"/>
				<input id="txtSearchText" type="hidden" name="txtSearchText">
				<table style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
					cellpadding="0" width="100%" border="0" class="OuterTable">
					<tr class="OuterHead">
						<TD class="title_td" align="center" width="5%" nowrap><b>状态</b></TD>
						<TD class="title_td" align="center" width="25%"><b>主题</b></TD>
						<TD class="title_td" align="center" width="20%"><b>作者</b></TD>
						<TD class="title_td" align="center" width="20%"><b>创建时间</b></TD>	
						<TD class="title_td" align="center" width="15%"><b>内容编码</b></TD>					
						<TD class="title_td" align="center" width="15%"><b>审核</b></TD>
					</tr>
				</table>
				<table id="BBSList" border="0" width="100%" cellspacing="0" 
					   cellpadding="1" 
					   style="behavior:url(../../../common/table.htc)" 
					   DefaultClass="DefaltRow" 
					   keyName="key" 
					   SelectedClass="SelectedRow" 
					   multiple="true" 
					   onselected="return onChoosed();" 
					   onunselected="return onUnChoosed();"
					   ontableload="return onContentLoad();"
					   ondblclick="return fn_dblClick();"
					   serviceURL="<%= request.getContextPath() + "/XmlHttpService"%>"
					   <%
						String message = "没有任何记录信息。";
	if ( hasPurv ) {  %>
					   service="BBSClientService"
					   dataService="getSimpleContentList"
					   rcService="getContentCount" <%
	}
	else {
		message = "您没有权限访问该模块。";
	} %>
					   class="InnerTable">
					   <!--
					   <caption>
					   <input type="hidden" id="CONTENT_ID" name="CONTENT_ID" value=""/>
					   <input type="hidden" id="ACTION" name="ACTION" value="RETURN"/></caption>
						-->
					   <tr><td class="InnerHead"><%= message%></td></tr>
      			</table>
      			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="OuterTable">
      				<tr class="OuterFoot">
						<td align="left" class="foot_td" nowrap width="20%" style="display:none;">&nbsp;
							<input type="checkbox" name="chkall_text" id="chkall_text" onclick="return CheckAll(this.form);"
								title='选中/取消选中 本页所有人员' /><span id="ItemTitle">全选</span>
						</td>
      					<td align="right" class="foot_td" nowrap width="80%">分页:<span id="pageSet"></span>&nbsp;&nbsp;</td>
      				</tr>
      			</table>
			</div>
		</div>
	</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -