<%
'程序名称：千纸鹤网站管理系统
'程序作者：千纸鹤
'作者邮箱：qzhxxw@sina.com
'作者 Q Q：138999501
'作者电话：0000000000
'官方主页：http://www.qqzzhh.com/
'官方论坛：http://www.qqzzhh.com/bbs
%>
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/set.asp"-->
<!--#include file="inc/dll.asp"-->
<%
if userlogin<>sys then
response.write"<SCRIPT>alert('请登陆后操作,请返回！');this.location='index.asp';</SCRIPT>"
response.end
end if
call yecaosql()%>
<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>

<%
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>谢谢合作，让我们建立和平美好的网上平台！如有疑问请联系站长QQ138999501</font></b><br><br>
</TD></TR> 
<tr><td class="hr"></td></tr><TR>
<TD height=22 ALIGN=center>Copyright (C) 2005 www.qqzzhh.com All Right Reserved</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=yecao style="width:120px"><%call yecaocolor()%></td></tr>
<tr height="25" class=bg><td>&nbsp;图&nbsp;片：<input name="pic" type="text" id="pic" size="20" class=yecao 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=yecao style="width:120px"><%call yecaocolor()%></td></tr>
<tr height="25" class=bg><td>&nbsp;文章作者：<input name="writer" type="text" id="writer" size="20" class=yecao 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=yecao 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("娱乐标题不能为空");
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=djok" 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=yecao style="width:120px"><%call yecaocolor()%></td></tr>
<tr class=bg height="25"><td>&nbsp;娱乐作者：<input name="singer" type="text" id="singer" size="20" class=yecao style="width:120px">&nbsp;<button onClick="singer.value='未知'" class=button>未知</button>&nbsp;<button onClick="singer.value='网络'" class=button>网络</button>&nbsp;<button onClick="singer.value='<%=webceo%>'" class=button><%=webceo%></button></td></tr>
<tr class=bg height="25"><td>&nbsp;娱乐大小：<input name="size" type="text" id="size" size="20" class=yecao style="width:120px"></td></tr>
<tr height="25" class=bg><td>&nbsp;娱乐地址：<input name="url" type="text" id="url"  size="20" class=yecao style="width:300px"><%if userup="yes" then%>&nbsp;<button onclick="document.all.updj.style.display=(document.all.updj.style.display=='none')?'':'none'" class=button>上传娱乐文件</button>
<table  align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d  id=updj style="position:absolute;left:270;top:40;display:none">
<tr onmousedown="MDown(updj)" 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.updj.style.display=(document.all.updj.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=dj"></iframe>
</td>
</tr>
</table><%end if%></td></tr>
<tr class=bg height="25"><td>&nbsp;娱乐分类：<%call newclass("YC_djclass")%></td></tr>
<tr class=bg height="25"><td>&nbsp;播放选择：<select name=player class=yecao style="width:120px">
<option value="media">media视听</option><option value="mediamtv">media视频</option>
<option value="real">real视听</option><option value="realmtv">real视频</option><option value="flash">FLASH</option>
</select></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="dj" 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")="pic" then%><br>
<%if userpic="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=picok"  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=yecao style="width:120px"><%call yecaocolor()%></td></tr>
<tr class=bg height="25"><td height="25">&nbsp;原&nbsp;图：<input name="pic" type="text" id="pic"  size="20" class=yecao style="width:300px"><%if userup="yes" then%>&nbsp;<button onclick="document.all.uppic.style.display=(document.all.uppic.style.display=='none')?'':'none'" class=button>上传原始图片</button>
<table  align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d  id=uppic style="position:absolute;left:270;top:40;display:none">
<tr onmousedown="MDown(uppic)" 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.uppic.style.display=(document.all.uppic.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=pic"></iframe></td></tr></table>
<%end if%>
</td></tr>
<tr class=bg height="25"><td>&nbsp;分&nbsp;类：<%call newclass("YC_picclass")%></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="pic2" 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")="down" then%><br>
<%if userdown="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(document.form.url1.value==""){
alert("本地下载不能为空");
document.form.url1.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=downok" 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=yecao style="width:120px"><%call yecaocolor()%></td></tr>
<tr class=bg height="25"><td>&nbsp;软件分类：<%call newclass("YC_downclass")%></td></tr>
<tr class=bg height="25"><td>&nbsp;软件大小：<input name="size" type="text" id="size" size="20" class=yecao style="width:120px"></td></tr>
<tr class=bg height="25"><td>&nbsp;软件演示：<input name="show" type="text" id="show" size="20" class=yecao style="width:300px" value="http://www.qqzzhh.com"></td></tr>
<tr class=bg height="25"><td>&nbsp;官方主页：<input name="web" type="text" id="web" size="20" class=yecao style="width:300px" value="http://www.qqzzhh.com"></td></tr>
<tr height="25" class=bg><td>&nbsp;软件缩图：<input name="pic" type="text" id="pic" size="20" class=yecao style="width:300px"><%if userup="yes" then%>&nbsp;<button onclick="document.all.updownpic.style.display=(document.all.updownpic.style.display=='none')?'':'none'" class=button>上传缩图</button>
<table  align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d  id=updownpic style="position:absolute;left:100;top:100;display:none">
<tr onmousedown="MDown(updownpic)" 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.updownpic.style.display=(document.all.updownpic.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="up.asp?action=downpic"></iframe>
</td>
</tr>
</table><%end if%></td></tr>
<tr class=bg height="25"><td>&nbsp;本地下载：<input name="url1" type="text" id="url1" size="20" class=yecao style="width:300px"><%if userup="yes" then%>&nbsp;<button onclick="document.all.updown.style.display=(document.all.updown.style.display=='none')?'':'none'" class=button>上传软件 </button>
<table  align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d  id=updown style="position:absolute;left:100;top:208;display:none">
<tr onmousedown="MDown(updown)" 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.updown.style.display=(document.all.updown.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=down"></iframe>
</td>
</tr>
</table><%end if%></td></tr>
<tr class=bg height="25"><td>&nbsp;镜像下载：<input name="url2" type="text" id="url2" size="20" class=yecao style="width:300px"></td></tr>
<tr class=bg height="25"><td>&nbsp;友情下载：<input name="url3" type="text" id="url3" size="20" class=yecao style="width:300px"></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="down" 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")="newsok" then
set rs=server.CreateObject("adodb.recordset")
rs.open "YC_news",conn,1,3
rs.addnew
rs("title")=request.Form("title")
rs("color")=request.Form("color")
rs("class")=request.Form("class")
rs("pic")=request.Form("pic")
rs("user")=request.Form("user")
rs("content")=request.Form("content")
rs.update
rs.close
set rs=nothing
conn.execute("update YC_user set user_money = user_money + 5 where id="&session("userid")&"")
conn.execute("update YC_user set user_all = user_all + 1 where id="&session("userid")&"")
response.write"<script>alert('新闻发布成功！\n请您等待管理员审核！');location.href='user_center.asp?action=welcome';</script>"
elseif request("action")="artok" then
set rs=server.CreateObject("adodb.recordset")
rs.open "YC_art",conn,1,3
rs.addnew
rs("title")=request.Form("title")
rs("color")=request.Form("color")
rs("class")=request.Form("class")
rs("pic")=request.Form("pic")
rs("content")=request.Form("content")
rs("writer")=request.Form("writer")
rs("copyright")=request.Form("copyright")
rs("showContent")=request.Form("showContent")
rs("user")=request.Form("user")
rs.update
rs.close
set rs=nothing
conn.execute("update YC_user set user_money = user_money + 5 where id="&session("userid")&"")
conn.execute("update YC_user set user_all = user_all + 1 where id="&session("userid")&"")
response.write"<script>alert('文章发布成功！\n请您等待管理员审核！');location.href='user_center.asp?action=welcome';</script>"
elseif  request("action")="djok" then
set rs=server.CreateObject("adodb.recordset")
rs.open "YC_dj",conn,1,3
rs.addnew
rs("title")=request.Form("title")
rs("color")=request.Form("color")
rs("class")=request.Form("class")
rs("url")=request.Form("url")
rs("size")=request.Form("size")
rs("singer")=request.Form("singer")
rs("user")=request.Form("user")
rs("player")=request.Form("player")
rs("content")=request.Form("content")
rs.update
rs.close
set rs=nothing
conn.execute("update YC_user set user_money = user_money + 5 where id="&session("userid")&"")
conn.execute("update YC_user set user_all = user_all + 1 where id="&session("userid")&"")
response.write"<script>alert('娱乐发布成功！\n请您等待管理员审核！');location.href='user_center.asp?action=welcome';</script>"
elseif request("action")="picok" then
set rs=server.CreateObject("adodb.recordset")
rs.open "YC_pic",conn,1,3
rs.addnew
rs("title")=request.Form("title")
rs("color")=request.Form("color")
rs("class")=request.Form("class")
rs("pic")=request.Form("pic")
rs("content")=request.Form("content")
rs("user")=request.Form("user")
rs.update
rs.close
set rs=nothing
conn.execute("update YC_user set user_money = user_money + 5 where id="&session("userid")&"")
conn.execute("update YC_user set user_all = user_all + 1 where id="&session("userid")&"")
response.write"<script>alert('图片发布成功！\n请您等待管理员审核！');location.href='user_center.asp?action=welcome';</script>"
elseif  request("action")="downok" then
set rs=server.CreateObject("adodb.recordset")
rs.open "YC_down",conn,1,3
rs.addnew
rs("title")=request.Form("title")
rs("color")=request.Form("color")
rs("class")=request.Form("class")
rs("pic")=request.Form("pic")
rs("content")=request.Form("content")
rs("size")=request.Form("size")
rs("show")=request.Form("show")
rs("web")=request.Form("web")
rs("url1")=request.Form("url1")
rs("url2")=request.Form("url2")
rs("url3")=request.Form("url3")
rs("user")=request.Form("user")
rs.update
rs.close
set rs=nothing
conn.execute("update YC_user set user_money = user_money + 5 where id="&session("userid")&"")
conn.execute("update YC_user set user_all = user_all + 1 where id="&session("userid")&"")
response.write"<script>alert('软件发布成功！\n请您等待管理员审核！');location.href='user_center.asp?action=welcome';</script>"
end if
call closedata()%>
