<%@ 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" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ 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_PageTitle %>"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:AdvPositions,IDS_PageDesc %>"></asp:Literal>
                </div>
            </div>
            <Hishop:AdvPositions ID="AdvPositions" runat="server">
                <SkinTemplate> 
<Hishop:StatusMessage id="Status" runat="server" Visible="False" />
<!--广告位列表-->
           <fieldset class="AdminSearchform">       
                <legend>
                    <asp:Literal ID="lblSearchTitle" Text="<%$Resources:HelpList,IDS_Label_SearChTitle %>" runat="server"></asp:Literal>
                </legend>                
                <table width="50%" border="0" cellspacing="0" cellpadding="0" style="margin-left:10px">
                    <tr>
                        <td class="searchTableLeftTD"><nobr>广告位名称：</nobr></td>
                        <td class="searchTableControlTD"><asp:TextBox ID="txtAdvPositionName" runat="server"></asp:TextBox></td>
                        <td class="searchTableLeftTD"><nobr>显示方式：</nobr></td>
                        
                        <td class="searchTableControlTD">
                        <asp:DropDownList ID="dropAdvPositionType" runat="server">
                            <asp:ListItem Selected="True" Text="全部" Value="0"></asp:ListItem>
                            <asp:ListItem Text="纵向平铺" Value="1"></asp:ListItem>
                            <asp:ListItem Text="横向平铺" Value="2"></asp:ListItem>
                            <asp:ListItem Text="层叠显示" Value="3"></asp:ListItem>
                            <asp:ListItem Text="交替更新" Value="4"></asp:ListItem>
                            <asp:ListItem Text="自定义广告" Value="5"></asp:ListItem>
                        </asp:DropDownList></td>
                        <td class="searchTableLeftTD"><nobr>页面大小：</nobr></td>
                        <td class="searchTableControlTD"><Hishop:PageSizeDropDownList ID="dropPageSize" runat="server"></Hishop:PageSizeDropDownList></td>
                        <td><asp:Button ID="btnSearch" runat="server" Text="<%$Resources:HelpList,IDS_Button_SearCh %>" CssClass="inp_L1"/></td>
                    </tr>
                </table>
            </fieldset>
<div class="grdGroupFormList"> 
            <div class="grdHeaderStyle">
               <ul>
                 <li class="addHelpCategories"><a href="AddAdvPositions.aspx">添加广告位</a></li>
                 <li class="spirtLines">|</li>                                                    
                 <li class="userGroupCheckAll"><a href="#" onclick="CheckClickAll()"><asp:Label ID="CheckAll" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckAll %>" ></asp:Label></a></li>
                 <li class="spirtLines">|</li>
                 <li class="userGroupReverseCheck"><a  href="#" onclick="CheckReverse()"><asp:Label ID="lblCheckRecerse" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckReverse %>"></asp:Label></a></li>
                 <li class="spirtLines">|</li>
                 <li class="userGroupDelCheck"><Hishop:DeleteImageLinkButton ID="lkbDeleteCheck" runat="server" Text="<%$Resources:Resources, IDS_Button_DeleteCheck %>" /></li>			                 
               </ul>
            </div>
            <div class="grdGroupList">
                <asp:GridView ID="grdAdvPosition" runat="server" AutoGenerateColumns="false" ShowHeader="true" DataKeyNames="AdvPositionId" CssClass="GridViewStyle" GridLines="None" RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle" >                                                        
                        <Columns> 
                            <asp:TemplateField HeaderText="操作"> 
                                <ItemTemplate>
		                            <asp:CheckBox ID="checkboxCol" runat="server"></asp:CheckBox>
                                </ItemTemplate>                                                         
                            </asp:TemplateField>                      
                            <asp:TemplateField HeaderText="<%$ Resources:AdvPositions,IDS_grdAdvPositionName %>"> 
                                <ItemTemplate>
		                            <asp:Label ID="lblAdvPositionName" runat="server" Text='<%#Bind("AdvPositionName") %>'></asp:Label>
                                </ItemTemplate>                                                         
                            </asp:TemplateField> 
                            <asp:TemplateField HeaderText="<%$ Resources:AdvPositions,IDS_grdAdRotator %>">
                                <ItemTemplate>
                                    <asp:Label ID="lblAdv" runat="server" Text='<%# Eval("ShowType") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="<%$ Resources:AdvPositions,IDS_Label_AdvPositionSize%>">
                                <ItemTemplate>
                                    <asp:Label ID="lblAdvSize" runat="server" Text='<%# Eval("Width").ToString() + "x" + Eval("Height").ToString()  %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:AdvPositions,IDS_grdShopType %>" ItemStyle-Width="20%">
                                <ItemTemplate>
                                    <asp:Literal ID="litShopType" runat="server" Text='<%# Eval("ShowType") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="<%$ Resources:Resources, IDS_Header_Options %>" ItemStyle-Width="20%">
                                 <ItemStyle CssClass="handleRightSelect"/>
                                 <ItemTemplate>
	                                <asp:HyperLink ID="lkbAdvPositionName" CssClass="SmallCommonTextButton" runat="server" Text="<%$ Resources:AdvPositions, IDS_FormField_AdvPosition %>" NavigateUrl='<%# Globals.GetSiteUrls().UrlData.FormatUrl("admin_Advertisements",Eval("AdvPositionId"))%>'></asp:HyperLink>
	                                <asp:HyperLink ID="lkbEdit" CssClass="SmallCommonTextButton" runat="server" Text="<%$ Resources:AdvPositions, IDS_FormField_EditAdvPosition%>" NavigateUrl='<%# Globals.GetSiteUrls().UrlData.FormatUrl("admin_EditAdvPositions",Eval("AdvPositionId"))%>'></asp:HyperLink>
	                                <Hishop:DeleteImageLinkButton ID="lkbDelete" CssClass="SmallCommonTextButton" runat="server"  CommandName="Delete" Text="<%$ Resources:Votes, IDS_FormField_DeleteVote %>" />
                                 </ItemTemplate>
                             </asp:TemplateField>
                        </Columns>
                </asp:GridView>
                <div class="grdGroupTabhead"><UI:Pager runat="server" ID="pager" /></div>	
            </div>
</div> 
                </SkinTemplate>
            </Hishop:AdvPositions>
        </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>


 
