<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>

<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
    <script type="text/javascript" src="../../utility/Calendar/WdatePicker.js" ></script>
</head>
<body>
    <form id="form1" runat="server">

        <div>
           
            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:ProductSettings, IDS_PageTitle %>"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:ProductSettings,IDS_PageDesc %>"></asp:Literal>
                </div>
            </div>
            
            <Hishop:ProductSettings ID="ProductSettings" runat="server">
            <SkinTemplate>
<div id="updateMsg"><Hishop:StatusMessage id="Status" runat="server" Visible="False"></Hishop:StatusMessage></div>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="formTableList">
<!--商品缩略图高度-->
    <tr>
        <td class="leftTD" ><asp:Label ID="lblProductThumbnailPictureHeight" runat="server" Text="<%$ Resources:ProductSettings,IDM_lblProductThumbnailPictureHeight %>"></asp:Label></td>
        <td class="rightTD" style="width:200px;"><asp:TextBox ID="txtProductThumbnailPictureHeight" runat="server"></asp:TextBox></td>
        <td class="rightTD">
            <div id="txtProductThumbnailPictureHeightTip" runat="server"></div>
            <Hishop:ValidateTarget ID="validateProductThumbnailPictureHeight"  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtProductThumbnailPictureHeight" 
                  Description="<%$ Resources:ProductSettings, IDM_help05%>" Nullable="false">
               <Validators>
                  <Hishop:InputNumberClientValidator ErrorMessage="<%$ Resources:ProductSettings, IDM_help05%>" />
                  <Hishop:NumberRangeClientValidator ErrorMessage="<%$ Resources:ProductSettings, IDS_Invalid_ProductThumbnailPictureHeight_FormatError%>" MinValue="10" />
               </Validators>
            </Hishop:ValidateTarget> 
        </td>
    </tr>
    <!--商品缩略图宽度-->
    <tr>
        <td class="leftTD" ><asp:Label ID="lblProductThumbnailPictureWidth" runat="server" Text="<%$ Resources:ProductSettings,IDM_lblProductThumbnailPictureWidth %>"></asp:Label></td>
        <td class="rightTD">
            <asp:TextBox ID="txtProductThumbnailPictureWidth" runat="server"></asp:TextBox>
        </td>
        <td class="rightTD">
            <div id="txtProductThumbnailPictureWidthTip" runat="server"></div>
            <Hishop:ValidateTarget ID="validateProductThumbnailPictureWidth"  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtProductThumbnailPictureWidth" 
                  Description="<%$ Resources:ProductSettings, IDM_help06%>" Nullable="false">
               <Validators>
                  <Hishop:InputNumberClientValidator ErrorMessage="<%$ Resources:ProductSettings, IDM_help06%>" />
                  <Hishop:NumberRangeClientValidator ErrorMessage="<%$ Resources:ProductSettings, IDS_Invalid_ProductThumbnailPictureWidth_FormatError%>" MinValue="10" />
               </Validators>
            </Hishop:ValidateTarget> 
        </td>
    </tr>  
    <!--商品清析图高度-->         
    <tr>
        <td class="leftTD" style="width:120px;"><asp:Label ID="lblProductOriginalPictureHeight" runat="server" Text="<%$ Resources:ProductSettings,IDM_lblProductOriginalPictureHeight %>"></asp:Label></td>
        <td class="rightTD"><asp:TextBox ID="txtProductOriginalPictureHeight" runat="server"></asp:TextBox></td>
        <td class="rightTD">
            <div id="txtProductOriginalPictureHeightTip" runat="server"></div>
            <Hishop:ValidateTarget ID="validateProductOriginalPictureHeight"  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtProductOriginalPictureHeight" 
                  Description="<%$ Resources:ProductSettings, IDM_help03%>" Nullable="false">
               <Validators>
                  <Hishop:InputNumberClientValidator ErrorMessage="<%$ Resources:ProductSettings, IDM_help03%>" />
                  <Hishop:NumberRangeClientValidator ErrorMessage="<%$ Resources:ProductSettings, IDS_Invalid_ProductOriginalPictureHeight_FormatError%>" MinValue="10"/>
               </Validators>
            </Hishop:ValidateTarget> 
        </td>
    </tr>
    <!--商品析图宽度-->
    <tr>
        <td class="leftTD" style="width:120px;"><asp:Label ID="lblProductOriginalPictureWidth" runat="server" Text="<%$ Resources:ProductSettings,IDM_lblProductOriginalPictureWidth %>"></asp:Label></td>
        <td class="rightTD"><asp:TextBox ID="txtProductOriginalPictureWidth" runat="server"></asp:TextBox></td>
        <td class="rightTD">
            <div id="txtProductOriginalPictureWidthTip" runat="server"></div>
            <Hishop:ValidateTarget ID="validateProductOriginalPictureWidth"  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtProductOriginalPictureWidth" 
                  Description="<%$ Resources:ProductSettings, IDM_help04%>" Nullable="false">
               <Validators>
                  <Hishop:InputNumberClientValidator ErrorMessage="<%$ Resources:ProductSettings, IDM_help04%>" />
                  <Hishop:NumberRangeClientValidator ErrorMessage="<%$ Resources:ProductSettings, IDS_Invalid_ProductOriginalPictureWidth_FormatError%>" MinValue="10" />
               </Validators>
            </Hishop:ValidateTarget> 
        </td>
    </tr>
    
    <!--设置暂无商品图片-->
    <tr>
        <td class="leftTD" style="width:120px;"><asp:Label ID="lblNoPicture" runat="server" Text="<%$ Resources:ProductSettings,IDM_NoPicture %>"></asp:Label>：</td>
        <td class="rightTD"> 
             <asp:FileUpload ID="fileUpload" CssClass="SingleText" runat="server" Width="220px" />
             <Hishop:Common_ProductImage Width="50" Height="50"  ID="imgDdefaultImage" runat="server" style="border:solid 1px Gray"/>
             <asp:ImageButton runat="server" ID="btnDelete" Text="<%$ Resources:Resources, IDS_Button_Delete %>" style="vertical-align:bottom" ImageUrl="~/Admin/images/delicon.gif"></asp:ImageButton>
        </td>
        <td class="rightTD">
            <div class="msgNormal">
                <asp:Label ID="Label3" runat="server" Text="<%$ Resources:ProductSettings,IDM_help12 %>"></asp:Label>
            </div>
        </td>
    </tr>
    
    
<!--搜索允许的关键字数量-->
    <tr>
        <td class="leftTD"><asp:Label ID="Label11" runat="server" Text="<%$ Resources:ProductSettings,IDM_lblSearchKeywordQuantity %>"></asp:Label></td>
        <td class="rightTD"><asp:TextBox ID="txtSearchKeywordQuantity" runat="server"></asp:TextBox></td>
        <td class="rightTD">
            <div id="txtSearchKeywordQuantityTip" runat="server"></div>
            <Hishop:ValidateTarget ID="ValidateSearchKeywordQuantity"  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtSearchKeywordQuantity" 
                  Description="<%$ Resources:ProductSettings, IDM_help10%>" Nullable="false">
               <Validators>
                  <Hishop:InputNumberClientValidator ErrorMessage="<%$ Resources:ProductSettings, IDM_help10%>" />
                  <Hishop:NumberRangeClientValidator ErrorMessage="<%$ Resources:ProductSettings, IDS_Message_SearchKeywordQuantity_FormateError%>" MinValue="1" MaxValue="100" />
               </Validators>
            </Hishop:ValidateTarget> 
        </td>
    </tr>
<!--搜索关键字允许的长度-->
    <tr>
        <td class="leftTD"><asp:Label ID="Label10" runat="server" Text="<%$ Resources:ProductSettings,IDM_lblSearchKeywordLength %>"></asp:Label></td>
        <td class="rightTD"><asp:TextBox ID="txtSearchKeywordLength" runat="server"></asp:TextBox></td>
        <td class="rightTD">
            <div id="txtSearchKeywordLengthTip" runat="server"></div>
            <Hishop:ValidateTarget ID="ValidateSearchKeywordLength"  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtSearchKeywordLength" 
                  Description="<%$ Resources:ProductSettings, IDM_help09%>" Nullable="false">
               <Validators>
                  <Hishop:InputNumberClientValidator ErrorMessage="<%$ Resources:ProductSettings, IDM_help09%>" />
                  <Hishop:NumberRangeClientValidator ErrorMessage="<%$ Resources:ProductSettings, IDS_Message_SearchKeywordLength_FormateError%>" MinValue="1" MaxValue="100" />
               </Validators>
            </Hishop:ValidateTarget> 
        </td>
    </tr>
    <!--商品设置几远一积分--> 
    <tr>
        <td class="leftTD"><asp:Label ID="Label101" runat="server" Text="<%$Resources:RegistrationSettings,IDS_FromField_ProductPointSet %>"></asp:Label>：</td>
        <td class="rightTD"><asp:TextBox Id="txtProductPointSet" runat="server"></asp:TextBox> </td>
        <td class="rightTD">
            <div id="txtProductPointSetTip" runat="server"></div>
            <Hishop:ValidateTarget ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtProductPointSet" 
                  Description="<%$Resources:RegistrationSettings,IDS_Message_ProductPointSet %>" Nullable="true">
               <Validators>
                  <Hishop:InputMoneyClientValidator ErrorMessage="<%$Resources:RegistrationSettings,IDS_Message_ProductPointSet %>" />
               </Validators>
            </Hishop:ValidateTarget> 
        </td>
    </tr>
    <!--商品设置正式销售价的名称--> 
    <tr>
        <td class="leftTD"><asp:Label ID="Label2" runat="server" Text="<%$Resources:ProductSettings,IDS_FromField_NamePrice %>"></asp:Label>：</td>
        <td class="rightTD"><asp:TextBox Id="txtNamePrice" runat="server"></asp:TextBox> </td>
        <td class="rightTD">
            <div id="txtNamePriceTip" runat="server"></div>
            <Hishop:ValidateTarget  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtNamePrice" 
                  Description="<%$Resources:ProductSettings,IDS_Message_NamePrice %>" Nullable="true">
               <Validators>
                  <Hishop:InputStringClientValidator ErrorMessage="<%$Resources:ProductSettings,IDS_Message_NamePrice_Error %>" LowerBound="1" UpperBound="20"/>
               </Validators>
            </Hishop:ValidateTarget> 
        </td>
    </tr>   
<!--按钮-->
    <tr>
        <td class="leftTD">&nbsp;</td>
        <td colspan="2" style="border-top:1px #e1e1e1 solid;">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" width="100%">
              <tr>
                <td>
                    <asp:Button ID="btnChangeProductSettings" OnClientClick="return PageIsValid();" runat="server" Text="<%$ Resources:ProductSettings, IDM_btnChangeProductSettings %>"  CssClass="inp_L1"></asp:Button >
                    <asp:Button ID="btnRebuild" runat="server" Text="<%$ Resources:ProductSettings, IDM_btnRebuild %>"  CssClass="inp_L1"></asp:Button >
                    <div style="margin-top:6px;"><span style="color:#b90000;font-weight:bold;">*</span> <span style="color:#737373;"> <asp:Label ID="Label1" runat="server" Text="<%$ Resources:ProductSettings, IDM_help11%>" /></span></div>
                </td>
              </tr>
            </table>

        </td>
    </tr> 
</table>

<table style="display:none;">
 
</table>
            </SkinTemplate>
            </Hishop:ProductSettings>
            
        </div>
        <br />
        <div style="text-align:center">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>