<%
if action_type <> "add" then
sql = "select * from prod_images where pi_prod_id = " & productid & " order by pi_position"
set rs_img = conn.execute(sql)
end if
for i=1 to numImage %>
<TR VALIGN="top">
<TD CLASS="bgcolor1"><B>产品图片 <%=i%> <%if theType="main" then%>*<%end if%></B> </TD>
<TD><%
theImage = ""
if action_type <> "add" then
if not rs_img.eof then
if rs_img("pi_image")<>"" then
theImage = rs_img("pi_image") %>
<B>已上载文件: </B><BR>
<IMG SRC="/product/<%=rs_img("pi_image")%>" ALT="Uploaded Image <%=i%>" BORDER="1"><P>
<b>用...替换该文件</b><BR><%
end if
rs_img.movenext
else
response.write "<B>No File Uploaded yet</B><P>"
end if
end if %> <INPUT TYPE="hidden" NAME="ex_image" VALUE="<%=theImage%>">
<INPUT TYPE="file" NAME="product_image<%=i%>" SIZE="40"><BR><B>扩展名: .gif or .jpg
文件最大长度1M</B><%
if theImage <> "" and theType = "" then 'non-main product %>
<BR>
<b>删除此文件</b> <INPUT TYPE="checkbox" NAME="check_delete" VALUE="1"<%=isChecked%>><%
end if %>
</TD>
</TR><%
next
if action_type <> "add" then
set rs_img = nothing
end if %>