<!-- #include file="conn.asp" -->
<!--#include file="check2.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>修改品牌</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<script language="JavaScript">
<!--
function Juge()
{
  if (theForm.smallpicpath.value == "")
  {
    alert("请上传图片");
    return false;
  }
  if (theForm.url.value == "")
  {
    alert("请输入链接地址.");
    document.theForm.url.focus();
    return false;
  }
  if (isNaN(theForm.num.value))
  {
    alert("顺序要为数字!");
    theForm.num.focus();
    return (false);
  }

}
//-->
</script>
<style>
td { font-size: 9pt; color: #000000;font-family: "宋体"}

.border {
	BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid
}
input {
      	height=20px;BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #999999 1px solid; BORDER-BOTTOM: #999999 1px solid; FONT-FAMILY: "宋体"; BACKGROUND-COLOR: #ffffff
}
.style1 {
	font-weight: bold;
	color: #FF0000;
}
#tabcss{
	BORDER-COLLAPSE: collapse;
	border-top-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-left-style: solid;
	border-top-color: #dddddd;
	border-left-color: #dddddd;
}#tabcss td {
	line-height: 24px;
	padding-left: 10px;
	padding-top: 2px;
	padding-bottom: 2px;
	color: #333333;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-right-color: #dddddd;
	border-bottom-color: #dddddd;
}
</style>

</head>
<%
id=request("id")

sql="select  * from x_pinpai where id="&id

set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.bof or rs.eof then

else
	picpath=rs("picpath")
	url=rs("url")
	memo=rs("memo")
	num=rs("num")
end if
rs.close
conn.close

%>
<body bgcolor="#fcfcfc">
<form name="theForm" method="post" action="pinpaimodify.asp" onSubmit="return Juge()">

  <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" id="tabcss">
    <tr> 
      <td width="682" height="33" bgcolor="#E1EFFF"><div class="style1">品牌修改</div></td>
    </tr>
    <tr> 
      <td height="32"> <input name="smallpicpath" type="text" value="<%=picpath%>" size="35"> <input type="button" name="Button" value="上传LOGO图片" onClick="MM_openBrWindow('upload2.asp?size=small','','width=310,height=210,top=100,left=10')">
        (最佳规格：请看“基本设置”/“设置显示格式”中的显示品牌图标的尺寸。) </td>
    </tr>
    <tr> 
      <td height="33">品牌名称: 
        <input type="text" name="memo" size="50" value="<%=memo%>"></td>
    </tr>
    <tr> 
      <td height="33">链接地址: 
        <input name="url" type="text" size="50" value="<%=url%>"></td>
    </tr>
    <tr>
      <td height="33">顺序:
        <input type="text" name="num" size="5" value="<%=num%>">
        用于排列的先后。</td>
    </tr>
    <tr> 
      <td height="37"> 
	  <input type="hidden" name="id" value="<%=id%>" >
<input type="submit" name="Submit" value="  修 改  " >
          　　　　　　　　 <a href="javascript:history.back()">返　回</a></td>
    </tr>
  </table>
  <p>&nbsp;</p>
</form>
</body>
</html>

