?? proxx1.asp
字號:
<!--#include file="cn.asp"-->
<%if session("company")="" then
response.Write "<script language='javascript'>alert('請先登錄!');window.location.replace('login.asp');</script>"
response.End
cn.close
set cn=nothing
end if
id=trim(request.QueryString("id"))
pmane=trim(request.QueryString("name"))
set rs=server.CreateObject("adodb.recordset")
sql="select * from product where id="&id
rs.open sql,cn,1,1
if not rs.eof then
%><style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
.STYLE1 {color: #FF0000}
-->
</style>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#B1C3D9">
<!--DWLayoutTable-->
<tr>
<td width="600" height="20" align="center" valign="top">商品<font color="#FF6600"><%=pmane%></font>的詳細信息</td>
</tr>
<tr>
<td height="32" valign="top">
<form name="form1" method="post" action="changepro.asp?id=<%=id%>&ch=1">
<table width="650" border="0" cellpadding="0" cellspacing="2" bgcolor="#C8D5E4">
<!--DWLayoutTable-->
<tr>
<td width="69" height="20">產品名:</td>
<td colspan="2"><input name="pname" type="text" id="pname" value="<%=rs("pname")%>" size="20"> </td>
<td width="60">類別:</td>
<td colspan="3"><input name="leibie" type="text" id="leibie" value="<%=rs("leibie")%>" size="20"></td>
<td width="63">價格:</td>
<td width="159"><input name="price" type="text" id="price" value="<%=rs("price")%>" size="20"></td>
</tr>
<tr>
<td height="20">單位:</td>
<td colspan="2"><input name="danwei" type="text" id="danwei" value="<%=rs("danwei")%>" size="20"></td>
<td>規格:</td>
<td colspan="3"><input name="guige" type="text" id="guige" value="<%=rs("guige")%>" size="20"></td>
<td>制造商:</td>
<td><input name="produce" type="text" id="produce" value="<%=rs("produce")%>" size="20"></td>
</tr>
<tr>
<td height="20">發布公司:</td>
<td colspan="2"><input name="company" type="text" id="company" readonly="true" value="<%=rs("company")%>" size="20"></td>
<td nowrap="nowrap">供應商:</td>
<td colspan="3"><input name="gongshang" type="text" id="gongshang" value="<%=rs("gongshang")%>" size="20"></td>
<td>公司地址:</td>
<td><input name="address" type="text" id="address" value="<%=rs("address")%>" size="20"></td>
</tr>
<tr>
<td height="20">聯系人:</td>
<td colspan="2"><input name="man" type="text" id="man" value="<%=rs("man")%>" size="20"></td>
<td>郵箱:</td>
<td colspan="3"><input name="email" type="text" id="email" value="<%=rs("email")%>" size="20"></td>
<td nowrap="nowrap">聯系電話:</td>
<td><input name="tel" type="text" id="tel" value="<%=rs("tel")%>" size="20"></td>
</tr>
<tr>
<td height="20">點擊次數:</td>
<td colspan="2"><input name="hit" type="text" id="hit" readonly="true" value="<%=rs("hit")%>" size="20"></td>
<td>郵編:</td>
<td colspan="3"><input name="post" type="text" id="post" value="<%=rs("post")%>" size="20"></td>
<td>傳真:</td>
<td><input name="fax" type="text" id="fax" value="<%=rs("fax")%>" size="20"></td>
</tr>
<tr>
<td height="25" valign="top">發布時間:</td>
<td colspan="2" valign="top"><input name="addtime" type="text" id="addtime" readonly="true"value="<%=left(rs("addtime"),10)%>" size="20"></td>
<td valign="top">圖片:</td>
<td colspan="5" valign="top"><input name="pic" type="text" id="pic" readonly="true" value="<%=rs("pic")%>" size="35">
<span class="tdSelect_da">
<input type="button" name="Submit22" value="上傳圖片" onClick="window.open('pro_pic/myupform.asp?formname=form1&editname=pic','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')" />
</span></td>
</tr>
<tr>
<td height="23" colspan="2" align="center" valign="middle" nowrap="nowrap">制造商網址:</td>
<td colspan="3" valign="top"><input name="zhttp" type="text" id="zhttp" value="<%=rs("zhttp")%>" size="32" /></td>
<td width="90" valign="middle" nowrap="nowrap">發布公司網址:</td>
<td colspan="3" valign="top"><input name="fhttp" type="text" id="fhttp" value="<%=rs("fhttp")%>" size="30" /></td>
</tr>
<tr>
<td height="80" colspan="9" valign="top" bgcolor="#CCD8E6"><span class="STYLE1">簡介</span>:<br>
<textarea name="inf" cols="70" rows="5" id="inf"><%=rs("inf")%></textarea></td>
</tr>
<tr>
<td height="21" colspan="9" align="center" valign="top" bgcolor="#CCD8E6"><label>
<input type="submit" name="Submit" value="確認修改">
</label>
<label>
<input type="button" name="Submit2" value="刪除此產品" onClick="window.location.replace('changepro.asp?id=<%=id%>&ch=2')">
</label>
<label>
<input type="button" name="Submit3" value="返回上頁" onClick="history.go(-1)" />
</label></td>
</tr>
<tr>
<td height="1"></td>
<td width="4"></td>
<td width="138"></td>
<td></td>
<td width="21"></td>
<td></td>
<td width="28"></td>
<td></td>
<td></td>
</tr>
</table>
</form></td>
</tr>
</table>
<!--#include file="bot.asp"-->
<%
else
response.Redirect("allpro.asp")
end if
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -