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

📄 user_photo.asp

📁 淘客网上商店网站程序 淘客网上商店网站程序 淘客网上商店网站程序
💻 ASP
📖 第 1 页 / 共 5 页
字号:
			WhereStr = WhereStr & " and ClassID=0"
		Else
			arrIDStr = Left(arrIDStr,Len(arrIDStr)-1)
			WhereStr = WhereStr & " and ClassID in (" & arrIDStr & ")"
		end If
	end if
	if Action="Special" then
		if SpecialID>0 then
			WhereStr=WhereStr & " and SpecialID Like '%," & SpecialID & ",%'"
		else
			WhereStr=WhereStr & " and SpecialID<>'0'"
		end if
	end if
	if ManageType="MyInfo" then
		WhereStr=WhereStr & " and Editor='" & Cl.MemberName & "' "
	else
		if keyword<>"" and keyword<>"关键字" then
			keyword = Cl.ReplaceBadChar(keyword&"")
			select case Field
			case "ID"
				WhereStr=WhereStr & " and InfoID = "&Cl.GetClng(keyword)&" "
			case "Title"
				WhereStr=WhereStr & " and PhotoName like '%" & keyword & "%' "
			case "Keyword"
				WhereStr=WhereStr & " and Keyword like '%" & keyword & "%' "
			case "Intro"
				WhereStr=WhereStr & " and Intro like '%" & keyword & "%' "
			case "Author"
				WhereStr=WhereStr & " and Author like '%" & keyword & "%' "
			case "Editor"
				WhereStr=WhereStr & " and Editor='" & keyword & "' "
			case "Censor"
				WhereStr=WhereStr & " and Censor='" & keyword & "' "
			case "Point"
				WhereStr=WhereStr & " and InfoPoint <= "&Cl.GetClng(keyword)&" "
			case else
				WhereStr=WhereStr & " and PhotoName like '%" & keyword & "%' "
			end select
		end if
	end if
	'==================
	If OnTop then WhereStr=WhereStr & " and OnTop="&TrueType&" "
	If Elite then WhereStr=WhereStr & " and Elite="&TrueType&" "
	If Hot then WhereStr=WhereStr & " and Hot="&TrueType&" "
	'===================
	SQL=SQL & WhereStr & " order by UpDateTime desc,InfoID desc"

	Dim JumpClassStr,ShowPageStr
	JumpClassStr = InfoManegeJumpClass
	Set rsList=Cl.Execute(SQL)
	'Set rsList= Server.CreateObject("ADODB.Recordset")
	'OpenConn : rsList.open sql,Conn,1,1
	if rsList.eof and rsList.bof then
		TotalPut=0
		response.write "<p align='center'><br />当前没有任何记录!</p>"
		rsList.close:set rsList=Nothing
		JumpClassStr = Replace(JumpClassStr,"{$showpage}","")
	else
		Dim rsTotalPut
		Set rsTotalPut= Cl.Execute("Select count(InfoID) from Cl_Photo " & WhereStr)
		TotalPut = rsTotalPut(0)
		rsTotalPut.Close : Set rsTotalPut=Nothing
		'TotalPut = rsList.recordcount
		if (TotalPut mod PageSize)=0 then
			TotalPages = TotalPut \ PageSize
		else
			TotalPages = TotalPut \ PageSize + 1
		end if
		if CurrentPage > TotalPages then CurrentPage=TotalPages
		if CurrentPage < 1 then
			CurrentPage=1
		else
			rsList.move (CurrentPage-1)*PageSize
		end if
		SQL=rsList.GetRows(PageSize)
		rsList.close:set rsList=Nothing  
		Rem Page
		ShowPageStr = Cl.ShowPage(strFileName & "&OnTop="&OnTop&"&Hot="&Hot&"&Elite="&Elite&"&Status="&Status,TotalPut,PageSize,Cl.ChannelItemUnit,Cl.ChannelItemName)
		JumpClassStr = Replace(JumpClassStr,"{$showpage}",ShowPageStr)
		Rem Page END
		Response.write JumpClassStr
		Call InfoManegeListContent()
	end If
	Response.write JumpClassStr
	SQL=Empty
	Call InfoManegeExplain()
End Sub

Sub InfoManegeListContent()
	Dim TitleStr,Attribute,tStatus
%>
<table class="border" border="0" cellspacing="1" cellpadding="0" align="center">
	<form name="myform" method="Get" action="User_InfoDel.asp">
	<tr class="title" height="22"> 
		<td height="22" width="30" align="center"><strong>选</strong></td>
		<td width="40" align="center"  height="22"><strong>ID</strong></td>
		<td align="center" ><strong>名称</strong></td>
		<td width="80" align="center"><strong>添加人</strong></td>
		<td width="80" align="center"><strong>审核人</strong></td>
		<td width="50" align="center"><strong>下载数</strong></td>
		<td width="80" align="center"><strong>属性</strong></td>
		<td width="50" align="center"><strong>状态</strong></td>
		<td width="100" align="center"><strong>操作</strong></td>
	</tr>
	<%for i=0 to Ubound(SQL,2)
	InfoID = SQL(0,i)
	if SQL(16,i)=True then
		Attribute = "<font color='#0000ff'>顶</font>"
	else
		Attribute = "<font color='#C5C5C5'>顶</font>"
	end if
	if SQL(17,i)=True then
		Attribute = Attribute & "&nbsp;<font color='#ff0033'>热</font>"
	else
		Attribute = Attribute & "&nbsp;<font color='#C5C5C5'>热</font>"
	end if
	if SQL(18,i)=True then
		Attribute = Attribute & "&nbsp;<font color='#006600'>荐</font>"
	else
		Attribute = Attribute & "&nbsp;<font color='#C5C5C5'>荐</font>"
	end If
	if SQL(31,i)=True then
		Attribute = Attribute & "&nbsp;<font color='#0000ff'>H</font>"
	Else
		Attribute = Attribute & "&nbsp;<font color='#C5C5C5'>H</font>"
	End If
	%>
	<tr class="tdbg" onMouseOut="this.className='tdbg'" onMouseOver="this.className='tdbg2'"> 
		<td align="center" onMouseOut="showlayer('showinfo_<%=SQL(0,i)%>',0)" onMouseOver="showlayer('showinfo_<%=SQL(0,i)%>',1)"><input name="InfoID" type="checkbox" onclick="unselectall()" id="InfoID" value="<%=SQL(0,i)%>"></td>
		<td align="center" onMouseOut="showlayer('showinfo_<%=SQL(0,i)%>',0)" onMouseOver="showlayer('showinfo_<%=SQL(0,i)%>',1)"><%=SQL(0,i)%>
		<span id="showinfo_<%=SQL(0,i)%>" class="hidden">
			<table border="0" cellspacing="1" align="center" cellpadding="0" style="width:500px;">
			<tr class="title">
				<td colspan="3" align="left"><%
				Response.write "&nbsp;&nbsp;[<a href='"&FileName&"&ClassID=" & SQL(3,i) & "' class='red'>" & Cl.GetClassName(SQL(3,i)) & "</a>]&nbsp;" & SQL(5,i)
				%></td>
			</tr>
			<tr class="tdbg2">
				<td width="15%" align="right" nowrap><strong>可用操作:</strong></td>
				<td colspan="2" width="85%">
				<%
	Rem BEGIN
	response.write "<a href='User_Photo.asp?Action=Modify&ChannelID="& SQL(1,i) &"&InfoID=" & InfoID &"' class='blue'>修改</a>"
	response.write "&nbsp;&nbsp;<a href='User_InfoDel.asp?ChannelID="& SQL(1,i) &"&InfoID=" & InfoID & "&Action=Del' onclick='return ConfirmDel();'>删除</a>"
	response.write "&nbsp;&nbsp;<a href='User_InfoMove.asp?ChannelID="& SQL(1,i) &"&InfoID=" & InfoID & "'>移动</a>"
	if SQL(16,i)=False then	
		response.write "&nbsp;&nbsp;<a href='User_Property.asp?ChannelID="& SQL(1,i) &"&InfoID=" & InfoID & "&Action=SetOnTop'>固顶</a>"
	else
		response.write "&nbsp;&nbsp;<a href='User_Property.asp?ChannelID="& SQL(1,i) &"&InfoID=" & InfoID & "&Action=CancelOnTop'>解固</a>"
	end if
	if SQL(18,i)=False then	
		response.write "&nbsp;&nbsp;<a href='User_Property.asp?ChannelID="& SQL(1,i) &"&InfoID=" & InfoID & "&Action=SetElite'>设为推荐</a>"
	else
		response.write "&nbsp;&nbsp;<a href='User_Property.asp?ChannelID="& SQL(1,i) &"&InfoID=" & InfoID & "&Action=CancelElite'>取消推荐</a>"
	end if
	If SQL(37,i)=1 Then
		response.write "&nbsp;&nbsp;<a href='User_Property.asp?ChannelID="& SQL(1,i) &"&Action=CancelPassed&InfoID=" & InfoID & "'>取消通过</a>"
		response.write "&nbsp;&nbsp;<font color='blue'>HTML</font>(<a href='User_Create_Photo.asp?ChannelID="& SQL(1,i) &"&Action=CreateInfo&InfoID=" & InfoID & "'>生成</a>"
		if SQL(31,i)=True then	
			response.write "&nbsp;<a href='User_Create_Photo.asp?ChannelID="& SQL(1,i) &"&Action=DelInfoHTML&InfoID=" & InfoID & "'>删除</a>"
			response.write "&nbsp;<a href='" & Cl.WebDir & SQL(32,i) & "' target='_blank'>浏览</a>"
		end If
		response.write ")"
	Else
		response.write "&nbsp;&nbsp;<a href='User_Property.asp?ChannelID="& SQL(1,i) &"&Action=SetPassed&InfoID=" & InfoID & "' class='red'>通过审核</a>"
		response.write "&nbsp;&nbsp;<a href='User_NoPass.asp?ChannelID="& SQL(1,i) &"&InfoID=" & InfoID & "'>退回</a>"
	End If
	REM END
				%></td>
			</tr>
			<tr class="tdbg">
				<td align="right" nowrap><strong>关 键 字:</strong></td>
				<td colspan="2"><%=SQL(8,i)%></td>
			</tr>
			<tr class="tdbg">
				<td align="right"><strong>录入用户:</strong></td>
				<td><a href="<%=FileName%>&Field=Editor&Keyword=<%=SQL(11,i)%>"><%=SQL(11,i)%></a>(<font color='#0000ff'><%=SQL(12,i)%></font>)[<a href="User_User.asp?Action=Modify&UserName=<%=SQL(11,i)%>" class="blue">信息</a>] [<a href="../User/User_Message.Asp?Action=new&touser=<%=SQL(11,i)%>" class="blue">短消息</a>]</td>
				<td width="25%" align="center" rowspan="5"><%
				If SQL(27,i)<>"" Then
					Response.write "<img src='"&Cl.ReplaceDir(SQL(27,i))&"' border='0' width='110' height='90' style='border:1px solid #C5C5C5;' />"
				End If
				%></td>
			</tr>
			<tr class="tdbg">
				<td align="right"><strong>等  级:</strong></td>
				<td><%=Cl.GetStar(SQL(15,i))%></td>
			</tr>
			<tr class="tdbg">
				<td align="right"><strong>属  性:</strong></td>
				<td><%=Attribute%></td>
			</tr>
			<tr class="tdbg">
				<td align="right"><strong>查看<%=Cl.Web_Setting(28)%>:</strong></td>
				<td><b class="red"><%=SQL(24,i)%></b><%=Cl.Web_Setting(29)%> &nbsp;&nbsp;&nbsp;&nbsp;<%=Cl.Web_Setting(26)%>:<b class="red"><%=SQL(25,i)%></b><%=Cl.Web_Setting(27)%></td>
			</tr>
			<tr class="tdbg">
				<td align="right"><strong>查看次数:</strong></td>
				<td>本日:<strong><%=SQL(20,i)%></strong>&nbsp;&nbsp;本周:<strong><%=SQL(21,i)%></strong>&nbsp;&nbsp;本月:<strong><%=SQL(22,i)%></strong>&nbsp;&nbsp;累计:<strong><%=SQL(19,i)%></strong></td>
			</tr>
			<tr class="tdbg">
				<td align="right"><strong>查看用户:</strong></td>
				<td colspan="2"><%=Cl.GetUserGroupName(SQL(23,i))%></td>
			</tr>

			<tr class="tdbg">
				<td align="right" nowrap><strong>简  介:</strong></td>
				<td colspan="2" style="word-wrap:break-word;"><%=Server.HTMLEnCode(Left(Cl.NoHTML(SQL(26,i)&""),500))%></strong></td>
			</tr>
			</table>
		</span>
		</td>
		<td><%
		TitleStr=Cl.GetTitleFont(SQL(5,i),SQL(7,i))
		TitleStr=Cl.FormatColor(TitleStr,SQL(6,i))
		if Clng(SQL(3,i))<>ClassID then
			response.write "[<a href='"&FileName&"&ClassID=" & SQL(3,i) & "' class='blue'>" & Cl.GetClassName(SQL(3,i)) & "</a>]&nbsp;"
		end if
		if Not (IsNull(SQL(4,i)) or SQL(4,i)="") then
			response.write "<font color='blue'>"&SQL(4,i)&"</font>"
		end if
		response.write "<a href='User_Photo.asp?Action=Show&ChannelID="&SQL(1,i)&"&InfoID=" & InfoID & "'>" & TitleStr & "</a>"
	'InfoID, ChannelID, ChannelDir, ClassID, Prefixion, PhotoName, FontColor, FontType, Keyword=8, Author, AuthorEmail, Editor, UpdateTime, Censor=13, CensorTime, Stars, OnTop=16, Hot, Elite, Hits, DayHits=20, WeekHits, MonthHits, InfoGroup=23, InfoPoint, InfoMoney, Intro, PicUrl=27, PhotoSize, IsDownLoad, DownLoadNum=30, IsHtml, HtmlFileUrl, NoPassNum, NoPasstxt, LastHitTime, CommentCount=36, Status, Deleted=38
		%></td>
		<td align="center"><a href="<%=FileName%>&Field=Editor&Keyword=<%=SQL(11,i)%>"><%=SQL(11,i)%></a><br />(<font color='#0000ff' title='<%=SQL(12,i)%>'><%=FormatDateTime(SQL(12,i),2)%></font>)</td>
		<td align="center"><%
		Select Case CLng(SQL(37,i))
		Case 1
			response.write "<a href='"&FileName&"&Field=Censor&Keyword="&SQL(13,i)&"'>" & SQL(13,i) & "</a><br />(<font color='#0000ff' title='" & SQL(14,i) & "'>" & Cl.Format_Time(SQL(14,i),3) & "</font>)"
			tStatus = "<font color='#0000ff'>已审</font>"
		Case 0
			response.write "<font color='#888888'>等待审核</font>"
			tStatus = "<font color='#888888'>待审</font>"
		Case Else
			response.write "<a href='"&FileName&"&Field=Censor&Keyword="&SQL(13,i)&"'>" & SQL(13,i) & "</a><br />(<font color='#0000ff' title='" & SQL(14,i) & "'>" & Cl.Format_Time(SQL(14,i),3) & "</font>)"
			tStatus = "<font color='#ff0033'>退回</font>"
		End Select%></td>
		<td align="center"><%=SQL(19,i)%></td>
		<td align="center"><%=Attribute%></td>
		<td align="center"><%=tStatus%></td>
		<td align="center"><%
		If Action="RecycleBin" then
			response.write "<a href=""User_InfoDel.asp?Action=DelRecyclebin&ChannelID="&SQL(1,i)&"&InfoID="&InfoID&""" onclick=""return confirm('确定要彻底删除此记录吗?本操作将不可恢复!');"">彻底删除</a>&nbsp;&nbsp;<a href=""User_InfoDel.asp?Action=Restore&ChannelID="&SQL(1,i)&"&InfoID="&InfoID&""">还原</a>"
		Else
			response.write "<a href='User_Photo.asp?Action=Modify&ChannelID="&SQL(1,i)&"&InfoID=" & InfoID &"' class='blue'>修改</a>"
			Select Case SQL(37,i)
			Case 1
				response.write "&nbsp;&nbsp;<a href='User_Property.asp?ChannelID="&SQL(1,i)&"&Action=CancelPassed&InfoID=" & InfoID & "'>取消通过</a>"
			Case 0
				response.write "&nbsp;&nbsp;<a href='User_Property.asp?ChannelID="&SQL(1,i)&"&Action=SetPassed&InfoID=" & InfoID & "' class='red'>通过</a>"
				response.write "&nbsp;&nbsp;<a href='User_NoPass.asp?ChannelID="&SQL(1,i)&"&InfoID=" & InfoID & "'>退回</a>"
			Case Else
				response.write "&nbsp;&nbsp;<a href='User_Property.asp?ChannelID="&SQL(1,i)&"&Action=SetPassed&InfoID=" & InfoID & "' class='red'>通过</a>"
				response.write "&nbsp;&nbsp;<a href=""User_InfoDel.asp?Action=DelRecyclebin&ChannelID="&SQL(1,i)&"&InfoID="&InfoID&""" onclick=""return confirm('确定要彻底删除此记录吗?本操作将不可恢复!');"">删除</a>"
			End Select
		End If
	%></td>
	</tr>
	<%Next%>
	<tr class="tdbg">
		<td colspan="2" height="30"><input name="chkAll" type="checkbox" id="chkAll" onclick="CheckAll(this.form)" value="checkbox">选中所有</td>
		<td colspan="7"><% Call InfoManegeOptionBottom("photo") %></td>
	</tr>
</form>
</table>
<%
end sub

Sub EditMain()
	Dim rsInfo,strCusTom,ShortcutMenu
	Dim sKeyword,sAuthor,sKeywordV,sAuthorV
	strCusTom	= Split(Cl.Channel.selectSingleNode("@custom").text,"@@@")
	sKeyword	= Split(strCusTom(0),"$")
	sAuthor		= Split(strCusTom(1),"$")
	sKeywordV	= Split(Cl.GotTopic(strCusTom(0),60),"$")
	sAuthorV	= Split(Cl.GotTopic(strCusTom(1),60),"$")
	if Action="Modify" then
		InfoID	= Cl.GetClng(request("InfoID"))
		if InfoID=0 then Cl.ShowErr("<li>请指定要修改的ID</li>")
		sql="select * from Cl_Photo where InfoID=" & InfoID & ""
		Set rsInfo= Cl.Execute(sql)
		if rsInfo.bof and rsInfo.eof then
			Cl.ShowErr("<li>找不到"&Cl.ChannelItemName&"</li>")
		else
			ClassID	= rsInfo("ClassID")

⌨️ 快捷键说明

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