📄 admin.asp
字号:
<%
sub nlogin()
%>
<table border="0" width="500" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="500" height="20"></td>
</tr>
</table>
<form method="post" action="?act=login">
<table border="0" width="500" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="500">
<fieldset align="center">
<legend>管理员登陆</legend>
<table border="0" width="500">
<tr>
<td width="500" height="10"></td>
</tr>
<tr>
<td width="500" height="25"> 管理密码:<input type="password" name="password" size="30"> <input type="submit" name="submit" value="登陆">
默认密码为:123456</td>
</tr>
<tr>
<td width="500" height="20"></td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
<table border="0" width="500" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="500" height="10"></td>
</tr>
</table>
<table border="0" width="500" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="500" height="20">通用网站在线咨询JQQonline插件 V3.0 <a href="http://www.glgk.com/" target="_blank">冠龙科技</a></td>
</tr>
</table>
</form>
<%
end sub
if request.querystring("action")="login" then '设置登陆方式,该模式为在文件名后输入?action=login进入登陆页面
call nlogin()
response.write "</body>"
response.write "</html>"
response.end
end if
sub slist()
%>
<table border="0" width="500" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="500">
<fieldset align="center">
<legend>通用网站在线咨询JQQonline插件</legend>
<%
Dim infostrSourceFile,infoobjXML
infostrSourceFile=Server.MapPath("xml/info.xml")
Set infoobjXML=Server.CreateObject("Microsoft.XMLDOM")
infoobjXML.load(infostrSourceFile)
Dim infoobjNodes
Set infoobjNodes=infoobjXML.selectSingleNode("xml/qqinfo/qqset[siteid ='1']")
If Not IsNull(infoobjNodes) then
%>
<form method="post" action="?type=manage&act=editsiteinfo">
<table border="0" width="500">
<tr>
<td width="500" height="25"> 参数设置</td>
</tr>
<tr>
<td width="500" height="25"> 网站名:<input type="text" name="sitename" size="15" value="<%=infoobjNodes.childNodes(0).text%>"> 使用皮肤:<input type="text" name="siteskin" size="5" value="<%=infoobjNodes.childNodes(1).text%>"></td>
</tr>
<tr>
<td width="500" height="25"> 显示界面X坐标:<input type="text" name="siteshowx" size="10" value="<%=infoobjNodes.childNodes(2).text%>"> Y坐标:<input type="text" name="siteshowy" size="10" value="<%=infoobjNodes.childNodes(3).text%>"> <input type="submit" name="submit" value="修改"></td>
</tr>
<tr>
<td width="500" height="10"></td>
</tr>
</table>
</form>
<%
Else
%>
<script language="javascript">
alert("Xml 未成功打开!")
history.back()
</script>
<%
response.end
End If
Set infoobjNodes=nothing
Set infoobjXML=nothing
%>
<table border="0" width="500">
<tr>
<td width="180" height="25"> QQ号</td>
<td width="180" height="25"> 描述</td>
<td width="80" height="25"> 头像</td>
<td width="30" align="center" height="25">编辑</td>
<td width="30" align="center" height="25">删除</td>
</tr>
<%
Dim strSourceFile,objXML,objRootsite,AllNodesNum
strSourceFile=Server.MapPath("xml/qq.xml")
Set objXML=Server.CreateObject("Microsoft.XMLDOM")
objXML.load(strSourceFile)
Set objRootsite=objXML.documentElement.selectSingleNode("qqlist")
AllNodesNum=objRootsite.childNodes.length-1
Dim iCount
For iCount=0 to AllNodesNum
%>
<tr>
<td width="180" height="25"> <%=objRootsite.childNodes.item(iCount).childNodes.item(0).text%></td>
<td width="180" height="25"> <%=objRootsite.childNodes.item(iCount).childNodes.item(1).text%></td>
<td width="80" height="25"> <img src="images/qqface/<%=objRootsite.childNodes.item(iCount).childNodes.item(2).text%>_m.gif" border="0"></td>
<td width="30" align="center" height="25"><a href="?type=manage&mtype=edit&id=<%=objRootsite.childNodes.item(iCount).childNodes.item(4).text%>">编辑</a></td>
<td width="30" align="center" height="25"><a href="?type=manage&act=delete&id=<%=objRootsite.childNodes.item(iCount).childNodes.item(4).text%>">删除</a></td>
</tr>
<%
Next
Set objRootsite=nothing
Set objXML=nothing
%>
</table>
<form method="post" action="?type=manage&act=add">
<table border="0" width="500">
<tr>
<td width="500" height="10"></td>
</tr>
<tr>
<td width="500" height="25"> 添加新的QQ号</td>
</tr>
<tr>
<td width="500" height="25"> QQ号:<input type="text" name="qq" size="20"></td>
</tr>
<tr>
<td width="500" height="25"> 描述:<input type="text" name="dis" size="25"></td>
</tr>
<tr>
<td width="500" height="25"> 颜色:<input type="text" name="color" size="25"> 输入颜色代码例如:#000000</td>
</tr>
<tr>
<td width="500" height="25"> 头像:<br>
<%dim fcount:for fcount=1 to 100%>
<input type="radio" name="face" value="<%=fcount%>"><img src="images/qqface/<%=fcount%>_m.gif" border="0">
<%next%>
</td>
</tr>
<tr>
<td width="500" height="10"></td>
</tr>
<tr>
<td width="500" height="25"> <input type="submit" name="submit" value="确定添加"> <input type="reset" name="reset" value="取消重置"></td>
</tr>
<tr>
<td width="500" height="10"></td>
</tr>
</table>
</form>
</fieldset>
</td>
</tr>
</table>
<%
end sub
sub neditinfo()
%>
<table border="0" width="500" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="500">
<fieldset align="center">
<legend>编辑QQ信息</legend>
<%
dim neditid:neditid=request.querystring("id")
if not IsNumeric(neditid) or neditid="" then
%>
<script language="javascript">
alert("非法操作!")
history.back()
</script>
<%
response.end
else
neditid=clng(neditid)
end if
Dim strSourceFile,objXML
strSourceFile=Server.MapPath("xml/qq.xml")
Set objXML=Server.CreateObject("Microsoft.XMLDOM")
objXML.load(strSourceFile)
Dim objNodes
Set objNodes=objXML.selectSingleNode("xml/qqlist/qq[id ='"&neditid&"']")
If Not IsNull(objNodes) then
%>
<form method="post" action="?type=manage&act=edit&id=<%=neditid%>">
<table border="0" width="500">
<tr>
<td width="500" height="10"></td>
</tr>
<tr>
<td width="500" height="25"> 修改指定的QQ信息</td>
</tr>
<tr>
<td width="500" height="25"> QQ号:<input type="text" name="qq" size="20" value="<%=objNodes.childNodes(0).text%>"></td>
</tr>
<tr>
<td width="500" height="25"> 描述:<input type="text" name="dis" size="25" value="<%=objNodes.childNodes(1).text%>"> </td>
</tr>
<tr>
<td width="500" height="25"> 颜色:<input type="text" name="color" size="25" value="<%=objNodes.childNodes(3).text%>"> 输入颜色代码例如:#000000</td>
</tr>
<tr>
<td width="500" height="25"> 头像:<br>
<%dim fcount:for fcount=1 to 100%>
<input type="radio" name="face" value="<%=fcount%>"<%if objNodes.childNodes(2).text=cstr(fcount) then response.write" checked"%>><img src="images/qqface/<%=fcount%>_m.gif" border="0">
<%next%>
</td>
</tr>
<tr>
<td width="500" height="10"></td>
</tr>
<tr>
<td width="500" height="25"> <input type="submit" name="submit" value="确定修改"> <input type="reset" name="reset" value="取消重置"></td>
</tr>
<tr>
<td width="500" height="10"></td>
</tr>
</table>
</form>
</fieldset>
</td>
</tr>
</table>
<%
else
%>
<script language="javascript">
alert("发生错误!")
history.back()
</script>
<%
end if
Set objNodes=nothing
Set objXML=nothing
end sub
if request.querystring("type")="manage" then
%>
<table border="0" width="500" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="500" height="20"></td>
</tr>
</table>
<%
call cklogin()
select case request.querystring("mtype")
case "edit" call neditinfo()
case else call slist()
end select
dim enddtime:enddtime=timer()
%>
<table border="0" width="500" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="500" height="10"></td>
</tr>
<tr>
<td width="500" height="20" align="center">通用网站在线咨询JQQonline插件 <a href="http://www.glgk.com" target="_blank">冠龙科技</a> 执行时间:<%=FormatNumber((enddtime-starttime)*1000,3)%>毫秒</td>
</tr>
</table>
<%
else
response.clear
response.redirect "/"
response.end
end if
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -