updatimgpath.asp

来自「绿叶oa系统办公自动化 2008.工作日志管理,文件管理」· ASP 代码 · 共 278 行 · 第 1/2 页

ASP
278
字号
</style>
</head>
<body>
<div align="center"><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"><%=(webtiles.Fields.Item("页面名称").Value)%></span>
</div>

  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="<%=secaiid%>">
    <tr>
      <td bgcolor="#FFFFFF"><table width="99%" border="0" cellpadding="6" cellspacing="0">
        <tr>
          <td width="107" height="56"><div align="right"><span class="style2">本地上传头像:</span></div></td>
          <td width="619" rowspan="2" align="left" valign="top"><div align="left"></div>            <form action="upimgpost.asp" 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 cellSpacing=0 cellPadding=2 width=520 
align=center border=0>
                        <TBODY>
                          <TR bgColor=#ecffff>
                            <TD width="21%" height=25 align=middle bgColor=#CCCCCC class=style2>选择图片</TD>
                            <TD class=p3 width="41%" bgColor=#ffffff>&nbsp;</TD>
                            <TD align=middle bgColor=#ffffff height=25><div align="center"><span class="style2">预览图  </span></div></TD>
                            <TD align=middle bgColor=#ffffff>&nbsp;</TD>
                          </TR>
                        <TBODY>
                          <TR bgColor=DFE4FF>
                            <TD height=42 colSpan=2 align=middle vAlign=center class=p3><INPUT 
      class=p1 
      onpropertychange="if(event.propertyName=='value') preview.src=image.value.replace(/\\/g,'/')" 
      type=file size=40 name=image>
                   
                    <input type="hidden" name="filepath" class="tx" style="width:350" value="img" size="20">
                    <input type="hidden" name="act" value="upload">
                            </TD>
                            <TD width="19%" rowSpan=2 align=middle><span class="p3"><img id=preview height=120 
      src="oabbsimg/noimg.gif" width=100 border=1 
  name=preview></span></TD>
                            <TD width="19%" rowSpan=2 align=middle><a href="<%=imgp%>" target="_blank"><img src="<%=imgp%>" width="100" height="120" border="0"></a></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=4 class=p3></TD>
                            </TR>
                          <TR bgColor=#FFFFFF>
                            <TD height=32 colSpan=2 class=p3>                              <span class="style2"><span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
                              <input name="submit" type=submit id="submit" style="FONT-SIZE: 12px; HEIGHT: 27px" onClick='return check();'  value= "我要上传">
  </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></span></span></span>                              <span class="style2"><span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
                              <input name="按钮" type=button style="FONT-SIZE: 12px; HEIGHT: 27px"   onClick="javascript:history.go(-1)" value= " 取 消 " >
                              </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></span></span></span> </TD>
                            <TD align=middle>&nbsp;</TD>
                            <TD align=middle>&nbsp;</TD>
                          </TR>
                        <INPUT 
  type=hidden value=upload name=action>
                      </TABLE>
                  </div></td>
                </tr>
              </table>
              </form></td>
        </tr>
        <tr>
          <td height="163">&nbsp;</td>
          </tr>
        <tr>
          <td valign="top"><div align="right"><span class="style2">            远程图片路径:</span></div></td>
          <td><form name="form2" method="post" action="pathpost.asp" onSubmit="return dis1()">
            <table width="565" border="0" cellpadding="3" cellspacing="0">
              <tr>
                <td width="475"><p>
                    <input name="p" type="text" id="p" size="48">
                </p></td>
                <td width="78">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="2">                    <span class="style2"><span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
                    <input name="submit1" type=submit id="submit1" style="FONT-SIZE: 12px; HEIGHT: 27px"  value= "提交地址" >
                </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></FONT></STRONG><FONT color=#ffffff><strong><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
                     <STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
                    <input name="重置" type=reset style="FONT-SIZE: 12px; HEIGHT: 27px"  value= " 重 写 " >  
                    </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG>                    </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG>
                    <input name="按钮" type=button style="FONT-SIZE: 12px; HEIGHT: 27px"   onClick="javascript:history.go(-1)" value= " 取 消 " >
</strong></FONT></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT><strong><strong><strong><strong><strong><strong><strong><STRONG><strong><STRONG>                    <span class="style4">提交空地址,可恢复系统初始头像.</span></STRONG></strong></STRONG></strong></strong></strong></strong></strong></strong></strong></STRONG></span></span></span></td>
                </tr>
            </table>
            </form></td>
        </tr>
        <tr>
          <td valign="top"><%on error resume next
		  if Recordset2("imgurl")="" then %>
          <div align="right" class="style2">暂无图片<span class="style1"><img src="oabbsimg/laugh.gif" width="19" height="19">:</span></div>
          <%else%><div align="right" class="style2">图片列表:</div><%end if%></td>
          <td><form name="form1" method="post" action="">
            <table width="555" border="0" cellpadding="0" cellspacing="0">
              <% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset2.EOF)) 
%>
              <tr>
                  <td width="336"><input name="imgp" type="text" id="imgp" size="48" value="<%=Recordset2("imgurl")%>" readonly="true"></td>
                <td width="17">&nbsp;                </td>
                  <td width="53"><div align="center"><a href="appliyimg.asp?imgurls=<%=recordset2("imgurl")%>">应用</a></div></td>
                  <td width="149"><a href="delfiels.asp?fid=<%=recordset2("id")%>&u=<%=recordset2("imgurl")%>" onClick="return confirm('您确定要删除吗?')">删除</a></td>
              </tr>
              <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Recordset2.MoveNext()
Wend
%>

                </table>
            <br>
            </form>            </td>
        </tr>
      </table></td>
    </tr>
  </table>
  <br>
</div>
</body>
</html>

<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
<%
webtiles.Close()
Set webtiles = Nothing
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?