📄 upworks.asp
字号:
<!--#include file="sub/config.asp"-->
<!--#include file="sub/conn.asp"-->
<!--#include file="sub/inc.asp"-->
<% if session("userlogin")<>session.sessionid then
Response.Write "<script language=javascript>{window.alert('对不起,你还没登录会员管理系统请返回!');window.location.href='user.asp';}</script>"
else
dim userid,rs,sql
userid = Session("id")
set rs=server.createobject("adodb.recordset") '创建纪录集
sql="select * from ax_user where id="&userid&" " '查找用户信息
rs.open sql,cn,1,2
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=Sitename%>-设计会员上传作品</title>
<link href="index.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--#include file="top.asp"-->
<table width="780" height="4" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td background="images/index_11.gif"></td>
</tr>
</table><table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" rowspan="2" class="menuD"><img src="images/Lv2/lv2usermge.gif" width="200" height="30" /></td>
<td height="29" colspan="3" align="center">
<marquee behavior=alternate onmouseover=stop() onmouseout=start() scrollamount="1" scrolldelay="10">
<font class="top"><%=ad1%></font>
</marquee></td>
</tr>
<tr>
<td height="1" colspan="3" align="center" bgcolor="#FF9900"></td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#EEFFFF">
<table width="175" cellspacing="0" cellpadding="0" >
<tr >
<td height="20" colspan="2" >您的用户名是: <%=rs("name")%></td>
</tr>
<tr >
<td width="80" height="25"><a href="userinfo.asp">信息修改</a></td>
<td ><a href="userunion.asp">登记工作室</a></td>
</tr>
<tr >
<td width="80" height="25" class="xuxian"><a href="gbook.asp">在线留言</a></td>
<td class="xuxian"><a href="link.asp">友情链接</a></td>
</tr>
<tr >
<td width="80" height="25">上传作品</td>
<td>添加文章</td>
</tr>
<tr >
<td width="80" height="25" >添加下载</td>
<td ><a href="userout.asp">安全退出</a></td>
</tr>
</table></td>
<td width="20" valign="top"> </td>
<td width="540" valign="top">
<form action="cngupworks.asp" method="post" name="form1" id="form1" >
<p>上传作品展示您的风采:</p>
<table border="0" cellpadding="0" cellspacing="0" class="xuxian1">
<tr>
<td height="25" class="xuxian">工作室名称:</td>
<td class="xuxian"><label><% if rs("dname")<>"" then%>
<input name="user" type="text" class="wubian" id="user" value="<%=rs("dname")%>" size="20" maxlength="40" readonly/>
<% else Response.Write "<script language=javascript>{window.alert('对不起,没登记您的工作室是不能上传作品的!');window.location.href='user.asp';}</script>" end if%>
</label></td>
<td colspan="2" class="xuxian">* 没有登记工作室的不能上传</td>
</tr>
<tr>
<td height="25" class="xuxian">作品分类:</td>
<td class="xuxian">
<%call newclass("webclass")%>
</td>
<td class="xuxian">作品名称: </td>
<td class="xuxian"><input name="title" type="text" class="wubian" id="title" size="16" maxlength="50" />
*</td>
</tr>
<tr>
<td height="25" valign="top" class="xuxian">简要介绍:</td>
<td colspan="3" class="xuxian"><label>
<textarea name="content" cols="42" rows="4" class="wubian" id="content">
</textarea>
*必填</label></td>
</tr>
<tr>
<td height="25" colspan="4" class="xuxian">
<table align=center border="0" cellpadding="0" cellspacing="0" rules=none id=upworks style="position:absolute;left:270;top:40;display:none">
<tr onMouseDown="MDown(upnews)" style="cursor:move" height=22><td colspan="2" class=uptitle><b> <img src=images/ie.gif border=0 width=15 height=15 align=absMiddle> 上传图片作品</b>
<img onClick="document.all.upworks.style.display=(document.all.upworks.style.display=='none')?'':'none'" style="position:absolute;right:2;top:5;cursor:hand" border="0" src="images/close.gif" align=absMiddle></td></tr>
<tr>
<td align=center height=30 bgcolor="#E8E6DD"><iframe frameborder=1 width=290 height=35 scrolling=no src="userup.asp?action=userworks"></iframe></td>
</tr>
</table>
<script language="javascript">
function chk(){
document.all("content").value=IframeID.document.body.innerHTML;
return true;}
</Script>
URL地址:
<input name="pic" type="text" class="wubian" id="pic" size="36" maxlength="100" />
<button onClick="document.all.upworks.style.display=(document.all.upworks.style.display=='none')?'':'none'" class="wubian">上传图片作品</button>
<br />
(规定小于600px*800px,大小不超过256Kb)<br />
支持JPG,GIF,BMP格式</td>
</tr>
<tr>
<td height="25" class="xuxian"> </td>
<td align="right" class="xuxian"><label>
<input name="Submit" type="submit" class="Input" value="确认提交" />
</label></td>
<td class="xuxian"> </td>
<td class="xuxian"> </td>
</tr>
</table>
<p> </p>
</form> </td>
<td width="20" valign="top"> </td>
</tr>
</table>
<% set rs=nothing '关闭纪录集,释放所占资源
end if %>
<!--#include file="bottom.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -