<%@ 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="Kindeditor" Namespace="kindeditor.Net" Assembly="kindeditor.Net" %>
<%@ 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>
</head>
<body>
    <form id="form1" runat="server">
        <div>           
            <div class="PageTitleArea">
                <div class="PageTitle">
                     <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:AdvPositions,IDS_EditPageTitle %>"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:AdvPositions,IDS_EditPageDesc %>"></asp:Literal>
                </div>
            </div>
            <Hishop:EditAdvPositions ID="EditAdvPositions" runat="server">
                <SkinTemplate> 
<Hishop:StatusMessage id="Status" runat="server" Visible="False" /> 
<!--修改广告位-->   
<div>
    <div class="grdHeaderStyle" style="cursor:pointer;" onclick="expItemsTable('addItemsTable');">
        <ul>
            <li class="addProductTmpt">
                <asp:Literal ID="litAddAdvPositions" Text='<%$Resources:AdvPositions,IDS_Literal_UpdateAdvPositions %>' runat="server"></asp:Literal>
            </li>
        </ul>
    </div>
    <table style="width: 100%;" cellspacing="0" cellpadding="0" class="formTableList" id="addItemsTable" runat="server">
        <tr>
            <td class="leftTD"><asp:Label ID="Label2" runat="server" Visible="false"></asp:Label>
                <nobr><asp:Label id="lblShowType" runat="server"  Text="<%$ Resources:AdvPositions,IDS_Label_ShowType%>"></asp:Label></nobr>
            </td>
            <td class="rightTD"><Hishop:AdvPositionTypeDropDownList ID="dropShopType" runat="server" AutoPostBack="true" /></td>
            <td class="rightTD">
                <div class="msgNormal">
                    <asp:Literal ID="lblShowTypeDis" runat="server" Text="<%$Resources:AdvPositions,IDS_help_ShowType %>" />
                </div>	            
            </td>
        </tr>
        <tr id="trRepeatColumns" runat="server">
            <td class="leftTD">
                <nobr><asp:Label id="Label3" runat="server"  Text="<%$ Resources:AdvPositions,IDS_Label_RepeatColumns%>"></asp:Label></nobr>
            </td>
            <td class="rightTD"><asp:TextBox ID="txtRepeatColumns" runat="server"></asp:TextBox></td>
            <td class="rightTD">
                <div id="txtRepeatColumnsTip" runat="server"></div>
                <Hishop:ValidateTarget ID="ValidateRepeatColumns"  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtRepeatColumns"
                            Description="<%$ Resources:AdvPositions, IDS_help_RepeatColumns%>" Nullable="false">
                    <Validators>
                            <Hishop:InputNumberClientValidator ErrorMessage="<%$ Resources:AdvPositions, IDS_help_RepeatColumns%>" />
                            <Hishop:NumberRangeClientValidator ErrorMessage="<%$ Resources:AdvPositions, IDS_help_RepeatColumns%>" MinValue="1"/>
                   </Validators>
                </Hishop:ValidateTarget>
            </td>
        </tr>
        <tr>
            <td class="leftTD"><asp:Label ID="lblAdvPositionId" runat="server" Visible="false"></asp:Label>
                <nobr><asp:Label id="lblAddAdvPositionName" runat="server"  Text="<%$ Resources:AdvPositions,IDS_Label_AdvPositionName%>"></asp:Label></nobr>
            </td>
            <td class="rightTD">
                <Hishop:DefaultButtonTextBox ID="txtUpdateAdvPositionName" runat="server" Button="btnAddAdvPositionName"></Hishop:DefaultButtonTextBox>
            </td>
            <td class="rightTD">
                <div id="txtUpdateAdvPositionNameTip" runat="server"></div>
                <Hishop:ValidateTarget ID="ValidateAddNameItem" ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtUpdateAdvPositionName" Description="<%$ Resources:AdvPositions,IDS_Help_Name %>" Nullable="false">
                    <Validators>
                        <Hishop:InputStringClientValidator ErrorMessage="<%$ Resources:AdvPositions, IDS_ErrorMessage_Name_StringLength %>" LowerBound="1" UpperBound="100" />
                    </Validators>
                </Hishop:ValidateTarget>		            
            </td>
        </tr>
        <tr id="trHightOrWidth" runat="server">
            <td class="leftTD">
                <nobr><asp:Label id="Label1" runat="server"  Text="<%$ Resources:AdvPositions,IDS_Label_AdvPositionSize%>"></asp:Label>：</nobr>
            </td>
            <td class="rightTD">
                <asp:TextBox ID="txtWidth" Width="50" runat="server"></asp:TextBox> x <asp:TextBox ID="txtHeight" Width="50" runat="server"></asp:TextBox>
            </td>
            <td class="rightTD">
                <div id="txtWidthTip" runat="server"></div>
                <Hishop:ValidateTarget ID="ValidateTarget1"  ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtWidth"
                    Description="<%$ Resources:AdvPositions, IDS_help_width%>" Nullable="false">
                    <Validators>
                            <Hishop:InputNumberClientValidator ErrorMessage="<%$ Resources:AdvPositions, IDS_help_width%>" />
                            <Hishop:NumberRangeClientValidator ErrorMessage="<%$ Resources:AdvPositions, IDS_help_width%>" MinValue="0"/>
                    </Validators>
                </Hishop:ValidateTarget> 
                <div id="txtHeightTip" runat="server"></div>
                <Hishop:ValidateTarget ID="ValidateTarget2" ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtHeight"
                            Description="<%$ Resources:AdvPositions, IDS_help_height%>" Nullable="false">
                    <Validators>
                            <Hishop:InputNumberClientValidator ErrorMessage="<%$ Resources:AdvPositions, IDS_help_height%>" />
                            <Hishop:NumberRangeClientValidator ErrorMessage="<%$ Resources:AdvPositions, IDS_help_height%>" MinValue="0"/>
                    </Validators>
                </Hishop:ValidateTarget> 
            </td>
        </tr>
        <tr id="trAdvHtml" runat="server">
           <td  class="leftTD">
              <asp:Literal ID="lblAfficheDesc" Text="<%$Resources:AdvPositions,IDS_Label_AdvHtml %>" runat="server"></asp:Literal>：
           </td>
           <td colspan="2">
                      <Kindeditor:KindeditorControl ID="fcContent" runat="server" Height="300px" Width="99%" />
           </td>
       </tr>
        <tr>
            <td class="bottonLeftTD">&nbsp;</td>
            <td class="rightTD">
                <table>
                    <tr>
                        <td valign="top" style="padding-top: 5px;"> <asp:Button ID="btnUpdateAdvPosition" runat="server" Text="<%$ Resources:AdvPositions, IDS_Button_UpdateAdvPosition %>"  OnClientClick="return PageIsValid()"  CssClass="inp_L1"/> </td>
                        <td>
                            <div class="return_inp">
                                <a href='<%= SiteUrls.Instance().UrlData.FormatUrl("admin_AdvPositions")%>'>
                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:EditUserControl, IDS_FromField_lblReturn %>"></asp:Literal></a>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
            <td class="rightTD">&nbsp;</td>
        </tr>
    </table>
</div>
                </SkinTemplate>
            </Hishop:EditAdvPositions>
        </div>
        <br />
        <div class="botCopyInfo">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
