<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" CodeBehind="MessageTemplateList.aspx.cs" Inherits="PPFOR.Admin.Sys.WebConfig.Config.MessageTemplateList" Title="模板列表" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">
<script language="javascript" type="text/javascript">

</script>
<form id="form1" action="MessageTemplateList.aspx" method="post" runat="server">
<div class="table-ppfor">
		<i></i><u></u>
		<ul>		  
			<li class="right">
			操作对象：<asp:DropDownList ID="PPFOR_languageList" runat="server" OnSelectedIndexChanged="PPFOR_languageListChanged" AutoPostBack="true" Width="86px" AppendDataBoundItems="true" >
            <asp:ListItem Value="0" >默认模板</asp:ListItem>
            </asp:DropDownList>
			</li>
		</ul>
	</div>  
    <asp:GridView ID="PPFOR_showTemplateList" CssClass="forgridview" runat="server" OnRowDataBound="PPFOR_gridViewRowDataBound" DataKeyNames="when" AllowPaging="false" AutoGenerateColumns="False" Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" EmptyDataText="没有任何模板">
       <Columns>   
         <asp:BoundField HeaderText="发送项目" DataField="Name" HeaderStyle-Font-Bold="false"/>
         <asp:TemplateField HeaderText="发送电子邮件">
            <ItemTemplate>
                <asp:CheckBox ID="PPFOR_emailStatus" runat="server"/>
                <a href='MessageTemplateSet.aspx?lan=<%# Eval("language") %>&when=<%# Eval("when") %>&for=Email'>编辑模板</a>
            </ItemTemplate>
         </asp:TemplateField>    
         <asp:TemplateField HeaderText="发送站内消息">
            <ItemTemplate>
                <asp:CheckBox ID="PPFOR_messageStatus" runat="server"/>
                <a href='MessageTemplateSet.aspx?lan=<%# Eval("language") %>&when=<%# Eval("when") %>&for=Message'>编辑模板</a>
            </ItemTemplate>
         </asp:TemplateField>  
         <asp:TemplateField HeaderText="发送系统通知邮件">
            <ItemTemplate>
                <asp:CheckBox ID="PPFOR_systemStatus" runat="server"/>
                <a href='MessageTemplateSet.aspx?lan=<%# Eval("language") %>&when=<%# Eval("when") %>&for=System'>编辑模板</a>
            </ItemTemplate>
         </asp:TemplateField> 
        </Columns>            
         <FooterStyle BackColor="#990000" ForeColor="White" /> 
         <RowStyle Wrap="False" HorizontalAlign="Center" Font-Bold="false" BackColor="#ffffff"/> 
         <HeaderStyle HorizontalAlign="Center" BackColor="#F5F5F5" Font-Bold="false" ForeColor="#000000" />
         <AlternatingRowStyle BackColor="#F5F5F5" />
    </asp:GridView>   
    <br />
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="fortable" style="display:none;">
     <tr>
        <td colspan="2" align="center" style="height:30px">
            <asp:Button ID="PPFOR_saveStatus" OnClick="PPFOR_saveStatusClick" runat="server" CssClass="inputbutton" Text="保存设置" />
            <input name="reset" id="reset1" type="reset" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" value="重置" />
            <script type="text/javascript">
                addButtonArray("<%= PPFOR_saveStatus.ClientID %>","reset1");
            </script>
        </td>
       </tr> 
    </table>
    <br />
</form>        
</asp:Content>
