lt_touxiang.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:5k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" EnableEventValidation="false"  AutoEventWireup="true" CodeFile="lt_touxiang.aspx.cs" Inherits="linminchao_bbs_lt_touxiang" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3.   
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <title></title>
  7. <style type="text/css"> 
  8. div.RoundedCorner{background: #5AAE18} 
  9. b.rtop, b.rbottom{display:block;background: #FFF} 
  10. b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5AAE18} 
  11. b.r1{margin: 0 4px} 
  12. b.r2{margin: 0 3px} 
  13. b.r3{margin: 0 2px} 
  14. b.rtop b.r4, {margin: 0 1px;height: 1px}
  15. .style1 {
  16. font-size: 13px;
  17. color: #FFFFFF;
  18. font-weight: bold;
  19. </style>
  20. <script type="text/javascript" language="JavaScript">
  21. <!--
  22. function dis(){
  23. document.form.submit.value='正在上传'
  24. document.form.submit.disabled=true;
  25. return true;
  26. }
  27. function check() {
  28. if (document.getElementById("FileUpload1").value=="") {
  29. window.alert ("请您选择上传的图片 !")
  30. document.getElementById("FileUpload1").focus()
  31. return false
  32. }
  33. return true
  34. }
  35. function ddd() {
  36. var img = document.getElementById("preview");
  37. var sender = event.srcElement;
  38. img.src = sender.value;
  39. return true
  40. }
  41. //-->
  42. </script>
  43. <script type="text/javascript" language="JavaScript">
  44. <!--
  45. function dis1(){
  46. document.form2.submit1.value='正在提交'
  47. document.form2.submit1.disabled=true;
  48. return true;
  49. }
  50. //-->
  51. </script>
  52. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
  53. <link href="../../css/textarea.css" rel="stylesheet" type="text/css"/>
  54. </head>
  55. <body><br/>
  56. <form action="" runat="server">
  57. <div align="center">
  58. <div class="RoundedCorner"> 
  59. <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> <span class="style1">头 像 管 理</span>
  60. </div>
  61.   <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
  62.     <tr>
  63.       <td bgcolor="#FFFFFF" style="height: 450px"><table width="99%" border="0" cellpadding="6" cellspacing="0">
  64.         <tr>
  65.           <td width="170" height="219" align="left" valign="top"><div align="right">本地上传头像:</div></td>
  66.           <td width="766" align="left" valign="top"><div align="left"></div>            
  67.           <form action="" method="post" enctype="multipart/form-data" name="form" id="form" onsubmit="return dis()">
  68.             <table width="531" border="0">
  69.                 <tr>
  70.                   <td><div align="left">
  71.                       <table bordercolor="#111111" height="163" cellcpacing="0" cellpadding="2" width="520" align="center" border="0">
  72.                         <tbody>
  73.                           <tr bgcolor="#ecffff">
  74.                             <td width="21%" align="center" bgcolor="#CCCCCC" class="style2" style="height: 29px">选择图片</td>
  75.                             <td class="p3" width="41%" bgcolor="#ffffff" style="height: 29px">&nbsp;</td>
  76.                             <td align="center" bgcolor="#ffffff" style="height: 29px">
  77.                             <div align="center"><span class="style2">预览图  </span></div></td>
  78.                           </tr>
  79.                         </tbody>
  80.                           <tr bgcolor="DFE4FF">
  81.                             <td height="42" colspan="2" align="center" valign="middle" class="p3">
  82.                                 <asp:FileUpload ID="FileUpload1" name="FileUpload1" onchange="ddd()"  runat="server" />
  83.                                 </td>
  84.                                 <td width="19%" rowspan="2" align="center">
  85.                             <span class="p3">
  86.                             <img alt="" id="preview" height="120" src="../touxiang/noimg.gif"width="100" border="1"  name="preview"/></span></td>
  87.                           </tr>
  88.                           <tr bgcolor="DFE4FF">
  89.                             <td height="32" colspan="2" class="p3">
  90.                             <font 
  91.                             color="#ff3300"> </font></td>
  92.                           </tr>
  93.                           <tr bgcolor="#FFFFFF">
  94.                             <td height="6" colspan="3" class="p3"></td>
  95.                             </tr>
  96.                           <tr bgcolor="#FFFFFF">
  97.                             <td height="32" colspan="2" class="p3">                            
  98.                               <input name="submit" runat="server" type="submit" id="submit" style="FONT-SIZE: 12px; HEIGHT: 27px" onclick="return check()"  value= " 上 传 " onserverclick="submit_ServerClick"/>  
  99.                               <input name="按钮" type="button" style="FONT-SIZE: 12px; HEIGHT: 27px"   onclick="javascript:history.go(-1)" value= " 取 消 " />
  100.                             </td>
  101.                             <td>&nbsp;</td>
  102.                           </tr>
  103.                       </table>
  104.                   </div></td>
  105.                 </tr>
  106.               </table>
  107.               </form></td>
  108.         </tr>
  109.       </table></td>
  110.     </tr>
  111.   </table>
  112.   <br /><img alt='' src='../img/up.gif' width='17' height='12'/><a href='javascript:history.go(-1)' >返 回 </a>
  113. </div>
  114. </form>
  115. </body>
  116. </html>