<%@ 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>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="litManagerTop" runat="server" Text="<%$ Resources:EmailTemplets, IDS_PageTitle %>" ></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="litManagerDisciption" runat="server" Text="<%$ Resources:EmailTemplets, IDS_PageDesc %>" ></asp:Literal>
                </div>
            </div>
            <Hishop:EmailTemplets ID="EmailTemplets" runat="server">
            <SkinTemplate>
                <div class="grdGroupFormList">            		    
                            <div class="grdGroupList">
                                <div class="grdGroupListLi">
                                    <Hishop:CustomGridView ID="grdEmailTemplets" runat="server" AutoGenerateColumns="false" ShowHeader="true" CssClass="GridViewStyle" GridLines="None" 
                                     RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle">                                                        
                                        <Columns>
                                            <asp:TemplateField HeaderText = "<%$ Resources:EmailTemplets,IDS_Header_EmailType %>">
                                                <ItemStyle Width="200px" />
			                                    <ItemTemplate>
	                                                <Hishop:EmailTypeLabel id="lblEmailType" runat="server" EmailTypes='<%#Eval("EmailType")%>'></Hishop:EmailTypeLabel>
	                                                
	                                            </ItemTemplate>
	                                        </asp:TemplateField>                            
	                                        <asp:BoundField HeaderText="<%$Resources:EmailTemplets,IDS_Header_Description %>" DataField="EmailDescription"/>	
	                                        <asp:TemplateField HeaderText = "<%$ Resources:EmailTemplets,IDS_Header_EmailPriority %>">
			                                    <ItemTemplate>
	                                                <Hishop:MailPriorityLabel id="lblPriority" runat="server" MailPrioritys='<%#Eval("Priority")%>'></Hishop:MailPriorityLabel>
	                                            </ItemTemplate>
	                                        </asp:TemplateField>   
	                                        <asp:TemplateField HeaderText="<%$ Resources:EmailTemplets, IDS_Header_Options %>">
                                            <ItemStyle CssClass="handleRightSelect"/>                                                                                                             
                                                <ItemTemplate>                                   
                                                    <asp:LinkButton ID="lkbEdit" runat="server" CssClass="SmallCommonTextButton" Text="<%$ Resources:EmailTemplets, IDS_FormField_EditEmailTemplet %>" PostBackUrl='<%# Globals.GetSiteUrls().UrlData.FormatUrl("admin_EditEmailTemplet",Eval("EmailType"))%>'></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>                                                                                                                                                                                                                                     
                                        </Columns>
                                    </Hishop:CustomGridView>
                                 </div>
                             </div>           
                </div>
            </SkinTemplate>
            </Hishop:EmailTemplets>
            
        </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>
