user_board_imageupload.aspx
资源名称:论坛源码.rar [点击查看]
上传用户:scene123
上传日期:2010-02-19
资源大小:3311k
文件大小:6k
源码类别:
.net编程
开发平台:
C#
- <%@ Page language="c#" Codebehind="user_board_imageupload.aspx.cs" AutoEventWireup="false" Inherits="kuangren.user_board_imageupload" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>狂人论坛-用户头像上传</title>
- <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
- <meta name="CODE_LANGUAGE" Content="C#">
- <meta name="vs_defaultClientScript" content="JavaScript">
- <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <LINK href="skin/dvbbs/style.css" type="text/css" rel="stylesheet">
- </HEAD>
- <body leftmargin="0" topmargin="0">
- <!--#include file="sitehead.aspx" -->
- <div align="center">
- <table cellSpacing="1" cellPadding="3" width="97%" align="center" bgColor="#6595d6" border="0">
- <tr>
- <td bgColor="#f0f0f0" height="25"><IMG height="9" hspace="3" src="skin/dvbbs/images/nav_position.gif" width="9" align="absMiddle">
- <uc1:jianinclude2 id="Jianinclude21" runat="server"></uc1:jianinclude2></UC1:JIANINCLUDE2></UC1:JIANINCLUDE2>
- → <a href="user_board.aspx"> <%=usercookies%>的控制面板</a> → 用户收藏管理</td>
- </tr>
- </table>
- <br>
- <table width="97%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6595d6"
- style="BORDER-COLLAPSE: collapse">
- <tr class="title_link">
- <td class="title"><div align="center">
- <strong><a href="user_board.aspx">控制面板首页</a></strong>
- </div>
- </td>
- <td class="title"><div align="center">
- <strong><a href="user_board_inforup.aspx">基本资料修改</a></strong>
- </div>
- </td>
- <td class="title"><div align="center">
- <strong><a href="user_board_passup.aspx">用户密码修改</a></strong>
- </div>
- </td>
- <td class="title"><div align="center">
- <strong><a href="modifyadd.asp"></a><a href="user_board_message.aspx">用户短信服务</a></strong>
- </div>
- </td>
- <td class="title"><div align="center">
- <strong><a href="user_board_upload.aspx">我的附件箱</a></strong>
- </div>
- </td>
- <td class="title"><div align="center">
- <strong><a href="user_board_favord.aspx">用户收藏管理</a></strong>
- </div>
- </td>
- <td class="title">
- <div align="center"><a href="user_board_post.aspx"><strong>我所发表的文章</strong></a>
- </div>
- </td>
- </tr>
- </table>
- <br>
- <table cellSpacing="1" cellPadding="4" width="97%" align="center" bgColor="#6595d6" border="0">
- <tr bgColor="#ffffff">
- <td width="62%" height="13" class="title"><div align="center"><strong>>> 您的收藏夹
- <<</strong></div>
- </td>
- </tr>
- <tr bgColor="#ffffff">
- <td height="14"><form id="uploderform" method="post" action="upload.aspx" enctype="multipart/form-data"
- runat="server">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="396">请选择图片路径
- </td>
- <td width="396" rowspan="4">
- <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td><div align="center"><img src="webdesign/userupload/<%=passshow%>"></div></td>
- </tr>
- </table></td>
- </tr>
- <tr><%if(myFile.PostedFile==null){%>
- <td>
- <input type="file" id="myFile" onchange="imagePreview.innerHTML = '<img style='display: none' src='' + this.value + ''>'" runat="server" NAME="myFile">
- </td>
- </tr>
- <tr>
- <td>
- <input type="button" value="确认提交" runat="server" ID="Upload" NAME="Upload">
- </td><%}%>
- </tr>
- <tr>
- <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><asp:label ID="Label1" style="Z-INDEX: 101; LEFT: 46px; POSITION: absolute; TOP: 290px" runat="server"></asp:label>
- </td>
- </tr>
- </table>
- <br>
- <br>
- 1、使用日期作为上传文件名。<br>
- 2、为页面美观,您最好选择适当大小的图片上传。<br>
- 3、上传支持格式:GIF,JPG,JPEG
- <table width="50%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td id=imagePreview> <div align="left">
- <script>
- previewPic()
- function previewPic()
- {
- try
- {
- for (i = 0; i < document.images.length; i++)
- {
- if (document.images[i].style.display == "none")
- {
- document.images[i].style.display = ""
- width = document.images[i].width
- height = document.images[i].height
- if (width > 350)
- {
- n = width / 350
- document.images[i].width = 350
- document.images[i].height = height / n
- }
- document.images[i].insertAdjacentHTML("AfterEnd", "<table border=0 width=100% cellspacing=0 cellpadding=0><tr><td style='padding-top: 4'>" + width + " × " + height + "</td></tr></table>")
- }
- }
- window.setTimeout("previewPic()", 500)
- }
- catch(e)
- {
- window.setTimeout("previewPic()", 500)
- }
- }
- </script>
- </div></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <table width="50%" border="0" cellspacing="1" cellpadding="0">
- <tr>
- <td></td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </div>
- <!--#include file="sitefloor.aspx" -->
- </body>
- </HTML>