亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? voteshow.asp

?? 程序網絡論壇HigroupBBS v4.00 默認管理員帳號密碼都是Marcos
?? ASP
字號:
<!--#include file="MarcosCB.asp"-->
<%
	getConn()
	
	dim theAct,voteId,optionId,pageTitle,pageOther
	voteId=getPost("voteId")
	theAct=getPost("theAct")
	optionId=getPost("optionId")

	if not isNumeric(voteId) then
		echo "參數錯誤!"
		closeConn()
		response.end
	end if
	
	if theAct<>"" then
		isIn()
	end if

	select case theAct
		case "setLock"
			isAdmin()
			conn.execute("update Marcos_Vote set isLocked=true where voteId="&voteId)
			locate "voteShow.asp?voteId="&voteId
		case "unLock"
			isAdmin()
			conn.execute("update Marcos_Vote set isLocked=false where voteId="&voteId)
			locate "voteShow.asp?voteId="&voteId
		case "setTop"
			isAdmin()
			conn.execute("update Marcos_Vote set isTop=true where voteId="&voteId)
			locate "voteShow.asp?voteId="&voteId
		case "unTop"
			isAdmin()
			conn.execute("update Marcos_Vote set isTop=false where voteId="&voteId)
			locate "voteShow.asp?voteId="&voteId
		case "voteIt"
			voteIt(optionId)
			delPageIndex()
			locate "voteShow.asp?voteId="&voteId
		case "del"
			isAdmin()
			conn.execute("delete from Marcos_Vote where voteId="&voteId)
			delPageIndex()
			locate "voteList.asp"
	end select
	
	str=getMainCode(mySkinId)
		
	sql="select * from Marcos_Vote where voteId="&voteId
	rs.open sql,conn,1,1
	if rs.eof then
		echo "投票并不存在(可能已經被刪除)!"
		closeConn()
		response.end
	 else
		pageTitle="<a href=""voteList.asp"">投票列表</a> &raquo; <a href=""javascript:location.reload();"">"&encodeStr(rs("voteTitle"))&"</a>"
		pageOther="<script>document.title+=' - 查看投票:"&encodeStr(rs("voteTitle"))&"';</script>"
		nowWhere "查看投票:"&encodeStr(rs("voteTitle")),"voteShow.asp?voteId="&voteId
		conn.execute("update Marcos_Vote set visitCount=visitCount+1 where voteId="&voteId)
	end if
	
	showHead str,pageTitle,pageOther
	showBody()
	showFoot(str)
	
	sub showBody()
		dim str
		pageCode=getPageCode(mySkinId,"PageShow")
		PageShow=split(pageCode,"$$$")
		body=replace(PageShow(0),"{$pageList}","")
		
		str="<tr><td valign=top width=200><br>&nbsp;建立者:"&rs("userName")&"<br>&nbsp;建立時間:"&mid(rs("addTime"),3)&_
			"</td><td><br>&nbsp;總票數:{$voteCount}<br><table>{$voteTable}<tr><td>&nbsp;</td></tr></table></td></tr>"
		
		voteTable=getVoteResult(rs("voteContent"),rs("voteResult"),rs("voteCount"),rs("isMulti"))
		str=replace(str,"{$voteTable}",voteTable)
		str=replace(str,"{$voteCount}",rs("voteCount"))
		body=replace(body,"{$topicTitle}",encodeStr(rs("voteTitle")))
		body=body&str
		body=body&PageShow(2)
		if isVotedTrue() then
			str="<input type=button value=""您已經投過票了"" disabled=true>"
		 else
			str="<input type=submit value=""我投一票""><input type=hidden name=""theAct"" value=""voteIt"">"
		end if
		if getValue("userId")="" then
			str="<input type=button value=""請先登錄"" disabled=true>"
		end if
		if isAdminTrue() then
			str=str&"<input type=button value=""刪除投票"" onclick=""if(confirm('你確認要刪除這個投票嗎?'))location.href='voteShow.asp?theAct=del&voteId="&voteId&"';"">"
			if rs("isLocked")=false then
				str=str&"<input type=button value=""鎖定投票"" onclick=""if(confirm('你確認要鎖定這個投票嗎?'))location.href='voteShow.asp?theAct=setLock&voteId="&voteId&"';"">"
			 else
				str=str&"<input type=button value=""解鎖投票"" onclick=""if(confirm('你確認要解鎖這個投票嗎?'))location.href='voteShow.asp?theAct=unLock&voteId="&voteId&"';"">"
			end if
			if rs("isTop")=false then
				str=str&"<input type=button value=""置頂投票"" onclick=""if(confirm('你確認要置頂這個投票嗎?'))location.href='voteShow.asp?theAct=setTop&voteId="&voteId&"';"">"
			 else
				str=str&"<input type=button value=""解除置頂"" onclick=""if(confirm('你確認要解除置頂這個投票嗎?'))location.href='voteShow.asp?theAct=unTop&voteId="&voteId&"';"">"
			end if
		end if
		rs.close
		queryTimes=queryTimes+1
		body=replace(body,"{$pageList}",str)
		body=replace(body,"{$newReply}","")
		echo body
	end sub
	
	function getVoteResult(content,result,voteNum,isMulti)
		dim i,str,percentBar
		theOption=split(enCodeStr(content),"$$$")
		theResult=split(fixNull(result),"$$$")
		for i=0 to uBound(theOption)
			if not isMulti then
				str=str&"<tr height=""20""><td align=right>&nbsp;<input type=radio name=optionId value="""&i&_
					""" {$checked"&i&"}> {$theOption}</td><td><img src=""images/{$styleRoot}/percentBar.gif"">{$theResult}</td></tr>"
			 else
				str=str&"<tr height=""20""><td align=right>&nbsp;<input type=checkbox name=optionId value="""&i&_
					""" {$checked"&i&"}> {$theOption}</td><td><img src=""images/{$styleRoot}/percentBar.gif"">{$theResult}</td></tr>"
			end if
			str=replace(str,"{$theOption}",theOption(i))
			if voteNum<>0 then
				percentBar=fix(theResult(i)/voteNum*10000)/100
				percentBar="<img src=""images/{$styleRoot}/percentBar.gif"" height=10 width="""&percentBar*1.2&"""> "&theResult(i)&" 票 "&percentBar&"%"
			 else
				percentBar=" 0"
			end if
			str=replace(str,"{$theResult}",percentBar)
			if not isMulti then
				str=replace(str,"{$checked0}","checked")
			end if
		next
		getVoteResult=str
	end function
	
	function isVotedTrue()
		dim i,votedUser
		isVotedTrue=false
		sql="select votedUser from Marcos_Vote where voteId="&voteId
		set rs_sys=conn.execute(sql)
		votedUser=split(fixNull(rs_sys(0)),"$$$")
		for i=0 to uBound(votedUser)
			if lcase(votedUser(i))=lcase(getValue("userName")) then
				isVotedTrue=true
				exit for
			end if
		next
		queryTimes=queryTimes+1
	end function
	
	sub voteIt(id)
		dim i,votedUser,theResult
		if isVotedTrue() then
			exit sub
		end if
		sql="select voteResult,votedUser,isLocked,isMulti from Marcos_Vote where voteId="&voteId
		set rs_sys=conn.execute(sql)
		if rs_sys(2)=true then
			echo "<script>alert('對不起,該投票已經被鎖定!');history.back();</script>"
			closeConn()
			response.end
		end if
		voteResult=split(rs_sys(0),"$$$")
		if rs_sys(3) then
			for i=1 to request.form("optionId").count
				voteResult(request.form("optionId")(i))=voteResult(request.form("optionId")(i))+1
			next
			voteCount=request.form("optionId").count
		 else
			voteResult(id)=voteResult(id)+1
			voteCount=1
		end if
		for i=0 to uBound(voteResult)
			theResult=theResult&voteResult(i)&"$$$"
		next
		theResult=left(theResult,len(theResult)-3)
		votedUser=fixNull(rs_sys(1))
		if votedUser="" then
			votedUser=getValue("userName")
		 else
			votedUser=votedUser&"$$$"&getValue("userName")
		end if
		if rs_sys(0)=theResult then
			exit sub
		end if
		conn.execute("update Marcos_Vote set lastVoteTime='"&now()&"',voteCount=voteCount+"&voteCount&",voteResult='"&theResult&"',votedUser='"&votedUser&"' where voteId="&voteId)
	end sub
	
	closeConn()
%>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人黄色在线看| 欧美一区二区三区免费视频| 亚洲高清免费视频| 久久久久久免费网| 欧美日韩一区二区三区不卡| 成人午夜伦理影院| 激情文学综合网| 无码av免费一区二区三区试看| 国产欧美一区二区精品忘忧草| 欧美精品免费视频| 91麻豆文化传媒在线观看| 国产在线一区观看| 免费不卡在线观看| 亚洲成人av中文| 亚洲乱码国产乱码精品精可以看| 国产人妖乱国产精品人妖| 欧美一区二区三区电影| 色香蕉成人二区免费| 懂色av一区二区三区免费看| 经典三级在线一区| 美日韩一区二区| 天天av天天翘天天综合网| 一区二区三区久久久| 亚洲素人一区二区| 中文字幕日韩精品一区| 国产区在线观看成人精品| 日韩亚洲欧美成人一区| 在线不卡a资源高清| 欧美日韩一区二区三区免费看 | 黄网站免费久久| 日本中文字幕一区二区视频| 亚洲午夜精品17c| 亚洲国产精品综合小说图片区| 国产精品久久久久久久久免费樱桃| 精品国产123| 久久精品视频一区二区| 国产欧美日韩不卡免费| 国产精品高潮呻吟久久| 国产精品国产三级国产普通话三级 | 国产午夜精品福利| 国产拍欧美日韩视频二区 | 日韩电影在线一区二区| 日日欢夜夜爽一区| 热久久免费视频| 老汉av免费一区二区三区| 紧缚捆绑精品一区二区| 国产精品一区二区果冻传媒| 国产不卡一区视频| 成人国产精品免费观看视频| 91丝袜呻吟高潮美腿白嫩在线观看| 成人av电影免费观看| 99精品一区二区三区| 欧美亚洲一区二区在线| 欧美一二三区在线观看| 337p日本欧洲亚洲大胆精品| 欧美国产乱子伦| 亚洲精品乱码久久久久久久久| 亚洲一区二区三区四区五区黄 | 处破女av一区二区| 91丝袜美女网| 欧美精选一区二区| 久久久久久久久久久久久女国产乱| 国产精品嫩草影院com| 亚洲乱码国产乱码精品精小说| 亚洲电影中文字幕在线观看| 免费精品视频在线| 成人午夜视频福利| 欧美精品一卡二卡| 国产亚洲成av人在线观看导航| 亚洲免费观看高清完整版在线观看| 亚洲1区2区3区4区| 国产激情视频一区二区在线观看| 日本精品一区二区三区四区的功能| 7777精品伊人久久久大香线蕉经典版下载 | 自拍偷拍亚洲欧美日韩| 日韩激情一二三区| 从欧美一区二区三区| 欧美人xxxx| 国产精品久久久久久久久免费樱桃 | 久久久午夜电影| 亚洲自拍偷拍网站| 激情图片小说一区| 欧美在线制服丝袜| 国产午夜亚洲精品不卡| 亚洲成人精品在线观看| 国产精品911| 制服丝袜av成人在线看| 中文字幕一区在线| 激情欧美一区二区三区在线观看| 91丨九色丨尤物| 久久久久成人黄色影片| 日韩二区三区在线观看| 972aa.com艺术欧美| 久久免费偷拍视频| 日韩不卡一二三区| 99热国产精品| 久久久99久久| 免费高清不卡av| 欧美日韩一区成人| 亚洲日本在线看| 国产69精品一区二区亚洲孕妇| 欧美一区二区三区视频在线| 自拍偷在线精品自拍偷无码专区| 久久成人18免费观看| 欧美日韩视频在线一区二区| 中文字幕一区二区三区在线不卡| 国产综合色视频| 51精品国自产在线| 亚洲五月六月丁香激情| 92精品国产成人观看免费| 久久久www成人免费毛片麻豆| 午夜伊人狠狠久久| 在线看一区二区| 亚洲欧美日韩国产中文在线| 成人性生交大片免费看中文| 欧美精品一区二区三区久久久| 午夜精品久久久久久久蜜桃app| 波多野结衣中文字幕一区| 国产欧美精品一区二区色综合朱莉 | ww久久中文字幕| 首页国产欧美日韩丝袜| 欧美日韩精品欧美日韩精品一| 亚洲男帅同性gay1069| 成人免费视频caoporn| 久久精品在这里| 国产精品中文欧美| 久久麻豆一区二区| 国产一区二区91| 久久精品人人做人人综合| 激情久久五月天| 亚洲精品一区二区三区影院 | 国产午夜精品久久久久久久| 国产真实乱对白精彩久久| 欧美精品一区二区三区一线天视频 | 亚洲欧洲三级电影| 99久久婷婷国产综合精品电影| 国产精品亲子伦对白| 成人黄色在线网站| 一区视频在线播放| 91网站黄www| 亚洲国产精品久久久久婷婷884| 欧美中文字幕一区二区三区 | 午夜av电影一区| 欧美理论电影在线| 免费一级片91| 久久久久久久久久久久电影| 福利电影一区二区三区| 国产精品久久久久久久久久久免费看| 成人免费视频网站在线观看| 亚洲免费资源在线播放| 欧美精品免费视频| 激情综合一区二区三区| 国产精品麻豆视频| 色悠悠亚洲一区二区| 婷婷中文字幕综合| 精品国产免费人成电影在线观看四季 | 亚洲国产一区二区在线播放| 91麻豆精品国产自产在线| 麻豆成人在线观看| 欧美国产精品一区二区三区| 91视视频在线观看入口直接观看www| 一区二区三区中文字幕| 在线综合亚洲欧美在线视频| 国产精品主播直播| 亚洲综合久久久久| 欧美岛国在线观看| 成人免费观看视频| 亚洲成人动漫精品| 国产欧美一区二区三区在线看蜜臀| 色吧成人激情小说| 蜜臀精品久久久久久蜜臀| 欧美高清在线精品一区| 欧美性一二三区| 国产综合色产在线精品| 一区二区欧美视频| 久久亚洲一级片| 欧美日韩国产三级| 成人晚上爱看视频| 天天色图综合网| 综合久久一区二区三区| 欧美成人性战久久| 91国偷自产一区二区三区成为亚洲经典 | 成人黄色在线看| 日本成人在线看| 亚洲美女电影在线| 久久老女人爱爱| 欧美日韩国产另类一区| 成人自拍视频在线| 人人超碰91尤物精品国产| 亚洲欧洲制服丝袜| 久久久国产午夜精品| 777色狠狠一区二区三区| 91在线观看地址| 日本va欧美va精品发布| 亚洲精品日日夜夜| 日本一区二区动态图| 日韩精品一区二区三区四区视频| 在线亚洲一区二区| 国产91丝袜在线播放九色| 免费三级欧美电影|