⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shop_img.asp

📁 本源代码为大学生购物网的源代码,欢迎大家的下载,学习与交流
💻 ASP
字号:
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0 class=page>
  <TBODY>
    <TR> <td><!--#include file="top.asp"-->
<% 
if session("user_id")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('非法操作!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
else
set rs=server.createobject("adodb.recordset")
sql="select * from user_info where user_id="&session("user_id")&""
rs.open sql,conn,1,3
%>
<TABLE width=760 border=0 align=center cellSpacing=0 cellPadding=0 >
  <TBODY>
    <TR> 
      <td width=176 valign=top>
           
               <!--#include file="center.asp"--></td><td bgcolor="#dfdfdf" width="1"></td>
      <TD align="center" vAlign=top> 
        <TABLE cellSpacing=1 cellPadding=0 width="570" border=0 bgcolor="#C0C0C0">
          <TBODY>
            <TR> 
              <TD bgcolor="#FFFFFF"><form action="shop_img_save.asp" method="POST" enctype="multipart/form-data" name=form id="form">
                  <table width="100%" height="166" border="0">
                    <tr>
                      <td align="left" width="98%" colspan="2">
						<img border="0" src="images/news.gif" width="15" height="15"> 店铺
						标志管理</td>
                    </tr>
                    <tr>
                      <td align="center" width="21%"> </td>
                      <td width="77%"> </td>
                    </tr>
                    <tr> 
                      <td align="right" width="21%">上传店铺标志:</td>
                      <td width="77%">  
                        <input type="file" name="cimg" size="20" value="浏览"> 
                        &nbsp; <input type="submit" value="上传" name="B1"  isshowprocessbar="True" >
                        (gif或jpg格式,200K以下!)</td>
                    </tr>
                    <tr> 
                      <td align="right" colspan="2">
						<hr noshade color="#E4F4E1" size="0"></td>
                    </tr>
                    <tr> 
                      <td align="right" width="21%">店铺标志预览: 
                        <%
Randomize '初始代随机数种子
num1=rnd() '产生随机数num1
num1=int(26*num1)+65 '修改num1的范围以使其是A-Z范围的Ascii码,以防表单名出错
session("antry")="test"&chr(num1) '产生随机字符串
%> <input name="temp" type="hidden" id="temp3" value="<%=session("antry")%>"></td>
                      <td align="left" width="77%"> 
                        <%if rs("shop_img")<>"" then %>
                        <img src="<%=rs("shop_img")%>" width="50" height="50" border="1"> 
                        <%else
               response.write "您还没有上传店铺图片!"
              end if%> </td>
                    </tr>
                  </table>
                </form></TD>
            </TR>
          </TBODY>
        </TABLE>
        <br> </TD>
    </TR>
  </TBODY>
</TABLE>
<%end if%>
<!--#include file="bottom.asp"--></TD>
    </TR>
  </TBODY>
</TABLE>

⌨️ 快捷键说明

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