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

📄 user_center.asp

📁 全能学校管理网站源码,小草网络提供,下载试用下
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/set.asp"-->
<!--#include file="inc/dll.asp"-->
<!--#include file="sqlx.asp"-->
<%
if userlogin<>sys then
response.write"<SCRIPT>alert('请登陆后操作,请返回!');this.location='index.asp';</SCRIPT>"
response.end
end if
call web58818sql()%>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=webname%>→用户控制面板</title>
<link rel="STYLESHEET" type="text/css" href="img/admin.css"><script src=img/adminjs.js></script></head>
<%if request("action")="" then
sql="select * from [YC_user] where pass=true and id="&userid&""
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1%>
<body topmargin="0" leftmargin="0"  scroll=no>
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td width="150" align=center  valign="top" id="bar">
<table width="100%" align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d><tr class="titleleft"  height="22"><td><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;控制面板</b></td></tr>
<tr class=bg height="20"><td style="word-break:break-all;table-layout:fixed;text-align:left;line-height:150%;">
&nbsp;<a href="user_center.asp?action=welcome" target=user>用户首页</a>&nbsp;<a href="user.asp?action=loginout">安全退出 </a><br>
&nbsp;会&nbsp;员:<font color=red><b><%=rs("user_name")%></b></font><br>
&nbsp;权&nbsp;限:<%if rs("user_admin")="1" then 
response.write "普通会员" 
elseif rs("user_admin")="2" then
response.write "<font color=blue>VIP 会员</font>"
elseif rs("user_admin")="3" then
response.write "<font color=red>管理人员</font>"
else
response.write "非法用户"
end if%>
<br>
&nbsp;点&nbsp;数:<%=rs("user_money")%> 点<br>
&nbsp;登&nbsp;陆:<%=rs("user_login_time")%> 次<br>
</td></tr></table>
<table width="100%" align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d><tr class="titleleft"  height="22" onclick="document.all.home.style.display=(document.all.home.style.display =='none')?'':'none'"><td><b>&nbsp;<img src=img/admin.gif border=0 width=15 height=15 align=absMiddle>&nbsp;发布信息</b></td></tr>
<tr class=bg height="50" id="home"><td style="word-break:break-all;table-layout:fixed;line-height:150%;">
&nbsp;√&nbsp;<a href="user_center.asp?action=news" target=user>发布新闻信息</a>
<%if usernews="no" then response.write"<font color=red><b>[×]</b></font>" end if%><br>
&nbsp;√&nbsp;<a href="user_center.asp?action=art" target=user>发布文章作品</a>
<%if userart="no" then response.write"<font color=red><b>[×]</b></font>" end if%><br>
&nbsp;√&nbsp;<a href="user_center.asp?action=dj" target=user>发布视听频道</a>
<%if userdj="no" then response.write"<font color=red><b>[×]</b></font>" end if%><br>
&nbsp;√&nbsp;<a href="user_center.asp?action=down" target=user>发布下载软件</a>
<%if userdown="no" then response.write"<font color=red><b>[×]</b></font>" end if%><br>
&nbsp;√&nbsp;<a href="user_center.asp?action=pic" target=user>发布图片作品</a>
<%if userpic="no" then response.write"<font color=red><b>[×]</b></font>" end if%><br>
</td></tr></table>
<table width="100%" align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d><tr class="titleleft"  height="22" onclick="document.all.total.style.display=(document.all.total.style.display =='none')?'':'none'"><td><b>&nbsp;<img src=img/admin.gif border=0 width=15 height=15 align=absMiddle>&nbsp;发布统计</b></td></tr>
<tr class=bg height="50" id="total"><td style="word-break:break-all;table-layout:fixed;line-height:150%;">
<%
sql="select * from YC_news where user='"&username&"' order by id DESC"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
news=rs.recordcount
sql="select * from YC_art where user='"&username&"' order by id DESC"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
art=rs.recordcount
sql="select * from YC_dj where user='"&username&"' order by id DESC"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
dj=rs.recordcount
sql="select * from YC_pic where user='"&username&"' order by id DESC"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
pic=rs.recordcount
sql="select * from YC_down where user='"&username&"' order by id DESC"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
down=rs.recordcount%>
&nbsp;√&nbsp;新闻发布:<%=news%> 篇<br>
&nbsp;√&nbsp;文章发布:<%=art%> 篇<br>
&nbsp;√&nbsp;视听发布:<%=dj%> 个<br>
&nbsp;√&nbsp;图片发布:<%=pic%> 张<br>
&nbsp;√&nbsp;下载发布:<%=down%> 个<br>
</td></tr></table>
<table width="100%" align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d><tr class="titleleft"  height="22"><td><b>&nbsp;<img src=img/admin_copy.gif border=0 width=15 height=15 align=absMiddle>&nbsp;版权所有</b></td></tr>
<tr class=bg height="36"><td style="word-break:break-all;table-layout:fixed;text-align:left;line-height:150%;">
&nbsp;程序设计:<a href="mailto:info@58818.cn">58818</a><br>
&nbsp;官方网站:<a href=http://www.58818.cn target=_blank>58818.cn</a>	<br>
&nbsp;当前版本:2006 
</td></tr></table>
<%
rs.close
set rs=nothing
%>
</td>
<td width="2" align="center"  style="cursor:hand;"   onclick="document.all.bar.style.display=(document.all.bar.style.display =='none')?'':'none'" title="隐藏左栏" class=3d></td>
<td valign="top" bgcolor="#F7F7F7">
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
<tr><td valign="top">
<IFRAME name="user" scrolling=auto frameSpacing="0"  src="user_center.asp?action=welcome" frameBorder="0"  width="100%" height="100%">
</IFRAME></td></tr></table></td>
</tr></table></body></html>
<%elseif request("action")="welcome" then%>
<link rel="STYLESHEET" type="text/css" href="img/admin.css">
<script>
var Obj=''
document.onmouseup=MUp
document.onmousemove=MMove
function MDown(Object){
Obj=Object.id
document.all(Obj).setCapture()
pX=event.x-document.all(Obj).style.pixelLeft;
pY=event.y-document.all(Obj).style.pixelTop;}
function MMove(){
if(Obj!=''){
document.all(Obj).style.left=event.x-pX;
document.all(Obj).style.top=event.y-pY;}}
function MUp(){
if(Obj!=''){
document.all(Obj).releaseCapture();
Obj='';}}
</script><br><br>
<table width="500" align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d><tr class="title"  height="22"><td><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;欢迎您!〖<%=username%>〗来到<%=webname%>!</b></td></tr>
<tr class=bg height="100"><td align=center><img src=img/adminwelcome.gif border=0></td></tr>
<tr><td class="hr"></td></tr><TR>
<TD height=100 ><br><center>
★☆★☆★☆会 员 须 知★☆★☆★☆</center>
<ul style=list-style-type:square;line-height:180%>
<li>不允许发表“黄色”内容!</li>
<li>不允许随意诽谤任何一个人!</li>
<li>不允许乱添内容,内容要有意义!</li>
<li>本站有权擅自修改您所发表的内容!</li>
<li>您发表的信息所属权即将归本站所有!</li>
<li>发表用户要遵守中华人民共和国的法律法规。</li>
<li>如果会员没有做到以上几条,那么我们会将帐号删除!</li>
</ul>
<center><b><font color=red>谢谢合作,让我们建立和平美好的网上平台!</font></b><br><br>
</TD></TR> 
<tr><td class="hr"></td></tr><TR>
<TD height=22 ALIGN=center>&nbsp;&nbsp;Copyright&copy;2005-2006 程序支持 2006 &nbsp;</TD></TR>
</table>
<%elseif request("action")="news" then%><br>
<%if usernews="no" then
response.write"<script>alert('对不起!暂时不能发布新闻!');history.go(-1);</script>"
Response.End
end if%>
<script language="javascript">
function chk(){
document.all("content").value=IframeID.document.body.innerHTML;
if(document.form.title.value==""){
alert("新闻标题不能为空");
document.form.title.focus();
return false;}
if(IframeID.document.body.innerHTML==""){
alert("新闻内容不能为空");
IframeID.document.body.focus();
return false;}
return true;}
</Script>
<form method="post" name="form" id="form" action="?action=newsok" onsubmit="return chk();">
<table width="95%" align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d>
<tr class="title"  height="22"><td><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;发布新闻</b></td></tr>	
<tr class=bg height="25"><td>&nbsp;标&nbsp;题:<input name="title" type="text" id="title" size="20" class=web58818 style="width:120px"><%call web58818color()%></td></tr>
<tr height="25" class=bg><td>&nbsp;图&nbsp;片:<input name="pic" type="text" id="pic" size="20" class=web58818 style="width:300px">&nbsp;<%if userup="yes" then%><button onclick="document.all.upnews.style.display=(document.all.upnews.style.display=='none')?'':'none'" class=button>上传新闻图片</button>
<table  align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d  id=upnews style="position:absolute;left:270;top:40;display:none">
<tr onmousedown="MDown(upnews)" style="cursor:move" height=22><td colspan="2" class=uptitle><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;上传新闻图片</b>
<img onclick="document.all.upnews.style.display=(document.all.upnews.style.display=='none')?'':'none'" style="position:absolute;right:2;top:5;cursor:hand" border="0" src="img/adminclose.gif" align=absMiddle></td></tr>
<tr class=bg>
<td align=center height=30><iframe frameborder=0 width=290 height=35 scrolling=no src="userup.asp?action=news"></iframe>
</td>
</tr>
</table><%end if%></td></tr>
<tr class=bg height="25"><td>&nbsp;分&nbsp;类:<%call newclass("YC_newsclass")%>&nbsp;不能选择一级菜单做为新闻类型!</td></tr>
<tr><td><%call html()%></td></tr><tr><td class="hr"></td></tr>
<tr height="30" class=foot><td  align="center">
<input name="user" type="hidden"  value="<%=username%>">
<input name="news" type="submit" class="adminbutton" value="发 布">&nbsp;<input name="Submit2" type="reset" class="adminbutton" value="清 空" onclick="ClearReset()"></td></tr>
<textarea name="content" cols="50" rows="50" id="content" style="display:none"></textarea>
</table> 
</form>
<%elseif request("action")="art" then%><br>
<%if userart="no" then
response.write"<script>alert('对不起!管理员封闭了发布文章功能!');history.go(-1);</script>"
response.end
end if%>
<script language="javascript">
function chk(){
document.all("content").value=IframeID.document.body.innerHTML; 
if(document.form.title.value==""){
alert("文章标题不能为空");
document.form.title.focus();
return false;}
if(IframeID.document.body.innerHTML==""){
alert("文章内容不能为空");
IframeID.document.body.focus();
return false;}
if(document.form.writer.value==""){
alert("文章作者不能为空");
document.form.writer.focus();
return false;}
return true;}
</Script>
<form method="post" name="form" id="form" action="?action=artok" onsubmit="return chk();">
<table width="95%" align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d>
<tr class="title"  height="22"><td><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;发布文章</b></td></tr>	
<tr class=bg height="25"><td>&nbsp;文章标题:<input name="title" type="text" id="title" size="20" class=web58818 style="width:120px"><%call web58818color()%></td></tr>
<tr height="25" class=bg><td>&nbsp;文章作者:<input name="writer" type="text" id="writer" size="20" class=web58818 style="width:120px">&nbsp;<button onClick="writer.value='未知'" class=button>未知</button>&nbsp;<button onClick="writer.value='网络'" class=button>网络</button>&nbsp;<button onClick="writer.value='<%=webceo%>'" class=button><%=webceo%></button></td></tr>
<tr class=bg height="25"><td>&nbsp;文章分类:<%call newclass("YC_artclass")%></td></tr>
<tr height="25" class=bg><td>&nbsp;文章版权:<input name="copyright" type="radio" value="原创" checked>&nbsp;原创&nbsp;<input name="copyright" type="radio" value="转载">&nbsp;转载</td></tr>
<tr height="25" class=bg><td>&nbsp;文章图片:<input name="pic" type="text" id="pic" size="20" class=web58818 style="width:300px">&nbsp;;<%if userup="yes" then%><button onclick="document.all.upart.style.display=(document.all.upart.style.display=='none')?'':'none'" class=button>上传文章图片</button>
<table  align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d  id=upart style="position:absolute;left:270;top:40;display:none">
<tr onmousedown="MDown(upart)" style="cursor:move" height=22><td colspan="2" class="uptitle"><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;上传文章图片</b>
<img onclick="document.all.upart.style.display=(document.all.upart.style.display=='none')?'':'none'" style="position:absolute;right:2;top:5;cursor:hand" border="0" src="img/adminclose.gif" align=absMiddle></td></tr>
<tr class=bg>
<td align=center height=30><iframe frameborder=0 width=290 height=35 scrolling=no src="userup.asp?action=art"></iframe>
</td></tr></table>
<%end if%></td></tr>
<tr height="25" class=bg><td>&nbsp;分页方式:<input name="showContent" type="radio" value="0" checked>&nbsp;不分页&nbsp;<input name="showContent" type="radio" value="1" >&nbsp;自动&nbsp;<input name="showContent" type="radio" value="2">&nbsp;手动  注意:手动方式要输入“  [NextPage]  ”</td></tr>
<tr><td><%call html()%></td></tr><tr><td class="hr"></td></tr>
<tr height="30" class=foot><td  align="center"> 
<input name="user" type="hidden"  value="<%=username%>">
<input name="art" type="submit" class="adminbutton" value="发 布">&nbsp;<input name="Submit2" type="reset" class="adminbutton" value="清 空" onclick="ClearReset()"></td></tr>
<textarea name="content" cols="50" rows="50" id="content" style="display:none"></textarea>
</table> 
</form>
<%elseif request("action")="dj" then%><br>
<%if userdj="no" then
response.write"<script>alert('对不起!管理员封闭了发布视听功能!');history.go(-1);</script>"
response.end
end if%>
<body onload=IframeID.document.body.innerHTML='暂时没有歌词或者视听介绍!'>
<script language="javascript">
function chk(){
document.all("content").value=IframeID.document.body.innerHTML;
if(document.form.title.value==""){
alert("视听标题不能为空");

⌨️ 快捷键说明

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