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

📄 newslist.asp

📁 asp源码 图片ASP整站
💻 ASP
📖 第 1 页 / 共 4 页
字号:
					if (SelectedNews=='') SelectedNews=ListObjArray[i].Obj.ContentID;
					else  SelectedNews=SelectedNews+'***'+ListObjArray[i].Obj.ContentID;
				} 
			}
		}
	}
	if ((SelectedNews!='')||(SelectedDownLoad!=''))
	{
		if (Flag) OpenWindow('Frame.asp?FileName=CheckContent.asp&OperateType=Check&PageTitle=审核新闻&NewsID='+SelectedNews+'&DownLoadID='+SelectedDownLoad,220,105,window);
		else  OpenWindow('Frame.asp?FileName=CheckContent.asp&OperateType=UnCheck&PageTitle=审核新闻&NewsID='+SelectedNews+'&DownLoadID='+SelectedDownLoad,220,105,window);
		location.href=location.href;
	}
	else
	{
		alert('请选择审核内容');
	}
}
function RefreshNews()
{
	var SelectedNews='',SelectedDownLoad='',SelectContentObj=null;
	for (i=0;i<ListObjArray.length;i++)
	{
		if (ListObjArray[i].Selected==true)
		{
			if (ListObjArray[i].Obj.ContentID!=null)
			{
				switch (ListObjArray[i].Obj.ContentTypeStr)
				{
					case '1':
						if (SelectedNews=='') SelectedNews=ListObjArray[i].Obj.ContentID;
						else  SelectedNews=SelectedNews+'***'+ListObjArray[i].Obj.ContentID;
						break;
					case '3':
						if (SelectedNews=='') SelectedNews=ListObjArray[i].Obj.ContentID;
						else  SelectedNews=SelectedNews+'***'+ListObjArray[i].Obj.ContentID;
						break;
					case '4':
						if (SelectedDownLoad=='') SelectedDownLoad=ListObjArray[i].Obj.ContentID;
						else  SelectedDownLoad=SelectedDownLoad+'***'+ListObjArray[i].Obj.ContentID;
						break;
				}
			}
		}
	}
	if ((SelectedDownLoad!='')||(SelectedNews!='')) OpenWindow('Frame.asp?FileName=NewsRefresh.asp&PageTitle=生成&NewsID='+SelectedNews+'&DownLoadID='+SelectedDownLoad,220,105,window);
	else alert('请选择要生成的内容');
}
function DelContent()
{
	var SelectedNews='',SelectedDownLoad='';
	for (i=0;i<ListObjArray.length;i++)
	{
		if (ListObjArray[i].Selected==true)
		{
			if ((ListObjArray[i].Obj.ContentID!=null)&&(ListObjArray[i].Obj.ContentTypeStr!=null))
			{
				if (ListObjArray[i].Obj.ContentTypeStr=='4')
				{
					if (SelectedDownLoad=='') SelectedDownLoad=ListObjArray[i].Obj.ContentID;
					else  SelectedDownLoad=SelectedDownLoad+'***'+ListObjArray[i].Obj.ContentID;
				}
				else
				{
					if (SelectedNews=='') SelectedNews=ListObjArray[i].Obj.ContentID;
					else  SelectedNews=SelectedNews+'***'+ListObjArray[i].Obj.ContentID;
				} 
			}
		}
	}
	if ((SelectedNews!='')||(SelectedDownLoad!=''))
	{
		OpenWindow('Frame.asp?FileName=DelContent.asp&Operation=DelContent&PageTitle=删除新闻&NewsID='+SelectedNews+'&DownLoadID='+SelectedDownLoad,220,105,window);
		location.href=location.href;
	}
	else
	{
		alert('请选择删除内容');
	}
}
function CutContent()
{
	var SelectedNews='',SelectedDownLoad='';
	for (i=0;i<ListObjArray.length;i++)
	{
		if (ListObjArray[i].Selected==true)
		{
			if ((ListObjArray[i].Obj.ContentID!=null)&&(ListObjArray[i].Obj.ContentTypeStr!=null))
			{
				if (ListObjArray[i].Obj.ContentTypeStr=='4')
				{
					if (SelectedDownLoad=='') SelectedDownLoad=ListObjArray[i].Obj.ContentID;
					else  SelectedDownLoad=SelectedDownLoad+'***'+ListObjArray[i].Obj.ContentID;
				}
				else
				{
					if (SelectedNews=='') SelectedNews=ListObjArray[i].Obj.ContentID;
					else  SelectedNews=SelectedNews+'***'+ListObjArray[i].Obj.ContentID;
				} 
			}
		}
	}
	if ((SelectedNews!='')||(SelectedDownLoad!=''))
	{
		top.MainInfo.SourceClass='';
		top.MainInfo.SourceNews=SelectedNews;
		top.MainInfo.SourceDownLoad=SelectedDownLoad;
		top.MainInfo.ObjectClass='';
		top.MainInfo.MoveTF=true;
		top.MainInfo.OperationType='Content';
	}
	else
	{
		alert('请选择要剪切的内容');
	}
}
function CopyContent()
{
	var SelectedNews='',SelectedDownLoad='';
	for (i=0;i<ListObjArray.length;i++)
	{
		if (ListObjArray[i].Selected==true)
		{
			if ((ListObjArray[i].Obj.ContentID!=null)&&(ListObjArray[i].Obj.ContentTypeStr!=null))
			{
				if (ListObjArray[i].Obj.ContentTypeStr=='4')
				{
					if (SelectedDownLoad=='') SelectedDownLoad=ListObjArray[i].Obj.ContentID;
					else  SelectedDownLoad=SelectedDownLoad+'***'+ListObjArray[i].Obj.ContentID;
				}
				else
				{
					if (SelectedNews=='') SelectedNews=ListObjArray[i].Obj.ContentID;
					else  SelectedNews=SelectedNews+'***'+ListObjArray[i].Obj.ContentID;
				} 
			}
		}
	}
	if ((SelectedNews!='')||(SelectedDownLoad!=''))
	{
		top.MainInfo.SourceClass='';
		top.MainInfo.SourceNews=SelectedNews;
		top.MainInfo.SourceDownLoad=SelectedDownLoad;
		top.MainInfo.ObjectClass='';
		top.MainInfo.MoveTF=false;
		top.MainInfo.OperationType='Content';
	}
	else
	{
		alert('请选择要复制的内容');
	}
}
function PasteContent()
{
	if (ClassID=='')
	{
		alert('目标栏目不存在');
		return;
	}
	if ((top.MainInfo.SourceNews=='')&&(top.MainInfo.SourceDownLoad=='')) {alert('请选择先剪切或者复制内容');return;}
	top.MainInfo.ObjectClass=ClassID;
	var MoveOrCopyClassPara='OperationType:'+top.MainInfo.OperationType+',MoveTF:'+top.MainInfo.MoveTF+',SourceNews:'+top.MainInfo.SourceNews+',SourceDownLoad:'+top.MainInfo.SourceDownLoad+',ObjectClass:'+top.MainInfo.ObjectClass+',';
	OpenWindow('Frame.asp?FileName=MoveOrCopyNewsClass.asp&PageTitle=粘贴内容&MoveOrCopyClassPara='+MoveOrCopyClassPara,260,100,window);
	location.href=location.href;
}
function AddToSpecial()
{
	var SelectedNews='';
	for (i=0;i<ListObjArray.length;i++)
	{
		if (ListObjArray[i].Selected==true)
		{
			if ((ListObjArray[i].Obj.ContentID!=null)&&(ListObjArray[i].Obj.ContentTypeStr!=null))
			{
				if ((ListObjArray[i].Obj.ContentTypeStr=='1')||(ListObjArray[i].Obj.ContentTypeStr=='3'))
				{
					if (SelectedNews=='') SelectedNews=ListObjArray[i].Obj.ContentID;
					else  SelectedNews=SelectedNews+'***'+ListObjArray[i].Obj.ContentID;
				}
			}
		}
	}
	if (SelectedNews!='') OpenWindow('Frame.asp?FileName=NewsToSpecial.asp&PageTitle=添加到新闻专题&NewsID='+SelectedNews,350,120,window);
	else alert('请选择新闻');
}
function AddToJS()
{
	var SelectedNews='';
	for (i=0;i<ListObjArray.length;i++)
	{
		if (ListObjArray[i].Selected==true)
		{
			if ((ListObjArray[i].Obj.ContentID!=null)&&(ListObjArray[i].Obj.ContentTypeStr!=null))
			{
				if ((ListObjArray[i].Obj.ContentTypeStr=='1')||(ListObjArray[i].Obj.ContentTypeStr=='3'))
				{
					if (SelectedNews=='') SelectedNews=ListObjArray[i].Obj.ContentID;
					else  SelectedNews=SelectedNews+'***'+ListObjArray[i].Obj.ContentID;
				}
			}
		}
	}
	if (SelectedNews!='') OpenWindow('Frame.asp?FileName=NewsToJs.asp&Types=PicJs&PageTitle=添加到JS&NewsID='+SelectedNews,350,135,window);
	else alert('请选择新闻');
}
function ShowAddMenu()
{
	var MenuObj=document.all.AddContentMenu;
	var el=event.srcElement;
	MenuObj.style.display='';
	MenuObj.style.posLeft=el.offsetLeft;
	MenuObj.style.posTop=el.offsetHeight;
	MenuObj.className="menushow";
	MenuObj.setCapture();
}
function MouseOverRightMenu() 
{   
	var el=event.srcElement;
	if (el.tagName!='TD') return;
	if (el.ExeFunction==null) return;
	if (el.style.backgroundColor=="highlight") {el.style.backgroundColor='';el.style.color='black';}
	else {el.style.backgroundColor="highlight";el.style.color='white';}
}
function ClickMenu(MenuObj)
{
	var CurrObj=null;
	var IMGObj=document.body.getElementsByTagName('IMG');
	for (var i=0;i<IMGObj.length;i++)
	{
		CurrObj=IMGObj(i);
		if (CurrObj.className=='BtnMouseOver') CurrObj.className='';
	}
	var el=event.srcElement;
	MenuObj.releaseCapture();
	MenuObj.className="menu";
	for (var i=0;i<MenuObj.children.length;i++)
	{
		var CurrObj=MenuObj.children(i);
		for (var j=0;j<CurrObj.children.length;j++)
		{
			if (CurrObj.children(j).className=='MenuShow') {CurrObj.children(j).className='Menu';}	
		}
	}
	if (el.ExeFunction!=null) eval(el.ExeFunction);
}
function AuditOneContent(NewsID,DownloadID)
{
	OpenWindow('Frame.asp?FileName=CheckContent.asp&OperateType=Check&PageTitle=审核新闻&NewsID='+NewsID+'&DownloadID='+DownloadID,220,105,window);
	location.href=location.href;
}
function UnAuditOneContent(NewsID,DownloadID)
{
	OpenWindow('Frame.asp?FileName=CheckContent.asp&OperateType=UnCheck&PageTitle=q取消审核&NewsID='+NewsID+'&DownloadID='+DownloadID,220,105,window);
	location.href=location.href;
}
<!--
//跳转菜单
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//跳转菜单结束
//-->
</script>
<body topmargin="2" leftmargin="2" onclick="ClickNewsOrDownLoad(event);" onselectstart="return false;">
<%
Dim SearchScope,SearchType,SearchContent,SearchBeginTime,SearchEndTime
Dim News_Search_Sql,DownLoad_Search_Sql
Dim SearchDisplayStr,AdvanceSearchDisplayStr,BtnOpenAdvanceSearchDisplayStr
SearchScope = Request("SearchScope")
SearchType = Request("SearchType")
SearchContent = Request("SearchContent")
SearchBeginTime = Request("SearchBeginTime")
SearchEndTime = Request("SearchEndTime")
if SearchContent <> "" then
	SearchDisplayStr = ""
	if SearchBeginTime <> "" and SearchBeginTime <> "" then
		AdvanceSearchDisplayStr = ""
		BtnOpenAdvanceSearchDisplayStr = "none"
	else
		AdvanceSearchDisplayStr = "none"
		BtnOpenAdvanceSearchDisplayStr = ""
	end if
else
	if SearchBeginTime <> "" and SearchBeginTime <> "" then
		SearchDisplayStr = ""
		AdvanceSearchDisplayStr = ""
		BtnOpenAdvanceSearchDisplayStr = "none"
	else
		SearchDisplayStr = "none"
		AdvanceSearchDisplayStr = "none"
		BtnOpenAdvanceSearchDisplayStr = ""
	end if
end if
Select Case SearchScope
	Case "All"
		if SearchType <> "" then
			if SearchType <> "" and SearchContent <> "" then
				News_Search_Sql = " and " & SearchType & " like '%" & SearchContent & "%'"
				DownLoad_Search_Sql = ""
			end if

⌨️ 快捷键说明

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