lt_touxiang.aspx
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:5k
源码类别:
OA系统
开发平台:
C#
- <%@ Page Language="C#" EnableEventValidation="false" AutoEventWireup="true" CodeFile="lt_touxiang.aspx.cs" Inherits="linminchao_bbs_lt_touxiang" %>
- <!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>
- <title></title>
- <style type="text/css">
- div.RoundedCorner{background: #5AAE18}
- b.rtop, b.rbottom{display:block;background: #FFF}
- b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5AAE18}
- b.r1{margin: 0 4px}
- b.r2{margin: 0 3px}
- b.r3{margin: 0 2px}
- b.rtop b.r4, {margin: 0 1px;height: 1px}
- .style1 {
- font-size: 13px;
- color: #FFFFFF;
- font-weight: bold;
- }
- </style>
- <script type="text/javascript" language="JavaScript">
- <!--
- function dis(){
- document.form.submit.value='正在上传'
- document.form.submit.disabled=true;
- return true;
- }
- function check() {
- if (document.getElementById("FileUpload1").value=="") {
- window.alert ("请您选择上传的图片 !")
- document.getElementById("FileUpload1").focus()
- return false
- }
- return true
- }
- function ddd() {
- var img = document.getElementById("preview");
- var sender = event.srcElement;
- img.src = sender.value;
- return true
- }
- //-->
- </script>
- <script type="text/javascript" language="JavaScript">
- <!--
- function dis1(){
- document.form2.submit1.value='正在提交'
- document.form2.submit1.disabled=true;
- return true;
- }
- //-->
- </script>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
- <link href="../../css/textarea.css" rel="stylesheet" type="text/css"/>
- </head>
- <body><br/>
- <form action="" runat="server">
- <div align="center">
- <div class="RoundedCorner">
- <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> <span class="style1">头 像 管 理</span>
- </div>
- <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
- <tr>
- <td bgcolor="#FFFFFF" style="height: 450px"><table width="99%" border="0" cellpadding="6" cellspacing="0">
- <tr>
- <td width="170" height="219" align="left" valign="top"><div align="right">本地上传头像:</div></td>
- <td width="766" align="left" valign="top"><div align="left"></div>
- <form action="" method="post" enctype="multipart/form-data" name="form" id="form" onsubmit="return dis()">
- <table width="531" border="0">
- <tr>
- <td><div align="left">
- <table bordercolor="#111111" height="163" cellcpacing="0" cellpadding="2" width="520" align="center" border="0">
- <tbody>
- <tr bgcolor="#ecffff">
- <td width="21%" align="center" bgcolor="#CCCCCC" class="style2" style="height: 29px">选择图片</td>
- <td class="p3" width="41%" bgcolor="#ffffff" style="height: 29px"> </td>
- <td align="center" bgcolor="#ffffff" style="height: 29px">
- <div align="center"><span class="style2">预览图 </span></div></td>
- </tr>
- </tbody>
- <tr bgcolor="DFE4FF">
- <td height="42" colspan="2" align="center" valign="middle" class="p3">
- <asp:FileUpload ID="FileUpload1" name="FileUpload1" onchange="ddd()" runat="server" />
- </td>
- <td width="19%" rowspan="2" align="center">
- <span class="p3">
- <img alt="" id="preview" height="120" src="../touxiang/noimg.gif"width="100" border="1" name="preview"/></span></td>
- </tr>
- <tr bgcolor="DFE4FF">
- <td height="32" colspan="2" class="p3">
- <font
- color="#ff3300"> </font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="6" colspan="3" class="p3"></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="32" colspan="2" class="p3">
- <input name="submit" runat="server" type="submit" id="submit" style="FONT-SIZE: 12px; HEIGHT: 27px" onclick="return check()" value= " 上 传 " onserverclick="submit_ServerClick"/>
- <input name="按钮" type="button" style="FONT-SIZE: 12px; HEIGHT: 27px" onclick="javascript:history.go(-1)" value= " 取 消 " />
- </td>
- <td> </td>
- </tr>
- </table>
- </div></td>
- </tr>
- </table>
- </form></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <br /><img alt='' src='../img/up.gif' width='17' height='12'/><a href='javascript:history.go(-1)' >返 回 </a>
- </div>
- </form>
- </body>
- </html>