<%@ Page Language="C#" ValidateRequest="false" EnableEventValidation="false" AutoEventWireup="true" CodeFile="Edit_Product.aspx.cs" Inherits="admin_Edit_Product" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script language="javascript" type="text/javascript" src="images/js/Common.js"></script>
    <script language="javascript" type="text/javascript" src="images/js/BLL.js"></script>
    <link href="images/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
   <table class="tableBorder" width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
          <tr>
              <td colspan="2" style="font-size:14px; color:#d6dff7; font-weight:bold;" class="tableHeaderText" height="25px">
                  &nbsp;&nbsp;&nbsp;&nbsp;修改产品</td>
            </tr>
          <tr > 
            <td width="15%" align="right" class="forumRow">选择分类：</td>
            <td width="85%" class="forumRow"> &nbsp;&nbsp; 一级类别：&nbsp;<asp:dropdownlist ID="ddl1" runat="server">
                </asp:dropdownlist>
                &nbsp;
                &nbsp;&nbsp;
                二级类别：<asp:dropdownlist ID="ddl2" runat="server">
                </asp:dropdownlist>&nbsp;
            </td>
          </tr>
          <tr > 
            <td align="right" class="forumRow">商品名称：</td>
            <td class="forumRow">
             &nbsp;&nbsp; <asp:TextBox ID="productnameTb" runat="server" Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="productnameTbRFv" runat="server" Display="dynamic" ControlToValidate="productnameTb" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr > 
            <td align="right" class="forumRow">
                商品价格：
            </td>
            <td class="forumRow"> &nbsp;&nbsp; 市场价：
                <asp:TextBox ID="priceTb" runat="server" Width="50px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="priceTbRFV" Display="dynamic" ControlToValidate="priceTb" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="priceTbREV" Display="dynamic" ControlToValidate="priceTb" ValidationExpression="^(0|[1-9]\d*)(\.\d{1,2})?$|^[0-9]*[1-9][0-9]*$" runat="server" ErrorMessage="格式错误"></asp:RegularExpressionValidator>
                &nbsp;&nbsp;
              会员价：
                <asp:TextBox ID="userpriceTb" runat="server" Width="50px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="userpriceTbRFV" Display="dynamic" ControlToValidate="userpriceTb" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="userpriceTbREV" Display="dynamic" ControlToValidate="userpriceTb" ValidationExpression="^(0|[1-9]\d*)(\.\d{1,2})?$|^[0-9]*[1-9][0-9]*$" runat="server" ErrorMessage="格式错误"></asp:RegularExpressionValidator>
                &nbsp;&nbsp;
              推荐价： 
                <asp:TextBox ID="specialspriceTb" runat="server" Width="50px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="specialspriceTbRFV" Display="dynamic" ControlToValidate="priceTb" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="specialspriceTbREV" Display="dynamic" ControlToValidate="specialspriceTb" ValidationExpression="^(0|[1-9]\d*)(\.\d{1,2})?$|^[0-9]*[1-9][0-9]*$" runat="server" ErrorMessage="格式错误"></asp:RegularExpressionValidator>
                &nbsp;&nbsp;
              </td>
          </tr>
          <tr > 
            <td class="forumRow" align="right" style="height: 35px">
                商品库存：
            </td>
            <td class="forumRow" style="height: 35px"> &nbsp;&nbsp;
              库存数：<asp:TextBox ID="countTb" runat="server" Width="50px"></asp:TextBox>
              <asp:RequiredFieldValidator ID="countTbRFV" Display="dynamic" ControlToValidate="countTb" runat="server" ErrorMessage="请输入库存数量"></asp:RequiredFieldValidator>
               <asp:RegularExpressionValidator ID="countTbREV" Display="dynamic" ControlToValidate="countTb" ValidationExpression="^[0-9]*[1-9][0-9]*$" runat="server" ErrorMessage="请输入数字"></asp:RegularExpressionValidator>
                &nbsp; &nbsp;
              已销售：
                <asp:TextBox ID="sellcountTb" runat="server" Text="0" Width="50px"></asp:TextBox>
            </td>
          </tr>
          <tr > 
            <td class="forumRow" align="right">
                商品图片：
            </td>
            <td class="forumRow"> 
                <asp:Image runat="server" ID="productpic" Width="200px" Height="180px" /><br />
                 <asp:HyperLink runat="server" ID="uppic" Text="编辑图片"></asp:HyperLink>   
            </td>
          </tr>
          <tr > 
            <td class="forumRow" align="right" valign="top"> 详细说明：</td>
            <td class="forumRow">    
            </td>
          </tr>
          <tr><td class="forumRow" colspan="2">
          <ftb:freetextbox ID="descriptionTb" runat="server" ButtonPath="../images/ftb/office2003/"
                  ImageGalleryPath="images/uploadfiles" Width="100%">
              </ftb:freetextbox>
          </td></tr>
          <tr > 
            <td colspan="2"><font color="ff0000">上传图片的 <strong>最大 </strong>宽度不能超过 550 像素，在不影响网速的情况下建议上传图片大小在 
              100KB 以内。 </font></td>
          </tr>
          <tr > 
            <td class="forumRow"></td>
            <td class="forumRow" height="30">
                &nbsp;&nbsp;
                 <asp:CheckBox ID="recommendedCB" runat="server" Text="是否推荐" />
                &nbsp; &nbsp;<asp:CheckBox ID="specialsCB" runat="server" Text="是否特价" />
           </td>
          </tr>
          <tr > 
            <td class="forumRow"></td>
            <td class="forumRow" height="30"> 
                <asp:Button ID="submitBt" runat="server" Text="提交保存" OnClick="submitBt_Click" />
                <input value="重新填写" type="button" />
                <asp:hiddenfield ID="HF1" runat="server" />
                <asp:HiddenField runat="server" ID="pointcount" />
                <asp:HiddenField runat="server" ID="imagepath" />
            </td>
          </tr>
          <tr>
              <td colspan="2"class="tableHeaderText" height="25px">
              </td>
            </tr>
        </table>
    </form>
</body>
</html>
