<%@ Control Language="c#" AutoEventWireup="True" Codebehind="UserLetterBox.ascx.cs" Inherits="DreamerShop.UserControl.UserLetterBox" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="../LanguagesManage.ascx" %>
<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
<asp:label id="lbEditID" Visible="false" runat="server"></asp:label>
<table width="100%" border="0">
	<tr>
		<td width="33%"><IMG src="Images/Admin/intromenu-o_03.gif">&nbsp;
			<asp:linkbutton id="lbInbox" runat="server" CausesValidation="false" Font-Bold="True" onclick="lbInbox_Click">收件箱</asp:linkbutton></td>
		<td width="33%"><IMG src="Images/Admin/intromenu-o_03.gif">&nbsp;
			<asp:linkbutton id="lbWrite" runat="server" CausesValidation="false" Font-Bold="True" onclick="lbWrite_Click">写信件</asp:linkbutton></td>
		<td width="33%"><IMG src="Images/Admin/intromenu-o_03.gif">&nbsp;
			<asp:linkbutton id="lbOutbox" runat="server" CausesValidation="false" Font-Bold="True" onclick="lbOutbox_Click">发件箱</asp:linkbutton></td>
	</tr>
</table>
<br>
<div align="center"><asp:Label id="lbOperationTitle" runat="server" Font-Bold="True"></asp:Label></div>
<asp:panel id="PanInbox" runat="server">
	<asp:panel id="PanInboxDetail" Visible="False" runat="server">
		<TABLE cellSpacing="1" cellPadding="3" width="100%" align="center" bgColor="#cccccc" border="0">
			<TR bgColor="#ffffff">
				<TD align="right" width="100"><%=myLanguagesDeal.GetMyString("InternalLetterManageTextSendTime")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
				<TD class="pad">
					<asp:Label id="lbInboxTime" runat="server"></asp:Label></TD>
			</TR>
			<TR bgColor="#ffffff">
				<TD align="right"><%=myLanguagesDeal.GetMyString("InternalLetterManageTextTitle")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--名称：--></TD>
				<TD class="pad">
					<asp:Label id="lbInboxTitle" runat="server"></asp:Label></TD>
			</TR>
			<TR bgColor="#ffffff">
				<TD align="right"><%=myLanguagesDeal.GetMyString("InternalLetterManageTextContent")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--名称：--></TD>
				<TD class="pad">
					<asp:Label id="lbInboxContent" runat="server"></asp:Label></TD>
			</TR>
		</TABLE>
	</asp:panel>
	<BR>
	<asp:datagrid id="dgListInbox" runat="server" CssClass="table-shangxia" Width="100%" PageSize="15"
		AllowPaging="true" AutoGenerateColumns="False" DataKeyField="LetterID">
		<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1" Height="25" Font-Bold="True"></HeaderStyle>
		<Columns>
			<asp:TemplateColumn HeaderText="InternalLetterManageTextTitle">
				<ItemTemplate>
					<%# DataBinder.Eval(Container.DataItem, "Title")%>
					<font color="red"><%# DataBinder.Eval(Container.DataItem, "IsNew")%></font>
				</ItemTemplate>
			</asp:TemplateColumn>
			<asp:BoundColumn DataField="SendTime" HeaderText="InternalLetterManageTextSendTime">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
			<asp:TemplateColumn HeaderText="TextOperation">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
				<ItemTemplate>
					<asp:Button id="btViewInf" Text="查看" CssClass="go-wenbenkuang" CommandName="GetDetails" Runat="server"></asp:Button>
					<asp:Button id="btDelete" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"></asp:Button>
				</ItemTemplate>
			</asp:TemplateColumn>
		</Columns>
		<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
	</asp:datagrid>
	<TABLE class="table-notop" width="100%" align="center" border="0">
		<TR align="center">
			<TD>
				<asp:button id="btInFirst" runat="server" CssClass="go-wenbenkuang" Text=" 首 页" BorderStyle="Groove" onclick="btInFirst_Click"></asp:button>&nbsp;
				<asp:button id="btInPre" runat="server" CssClass="go-wenbenkuang" Text="上一页" BorderStyle="Groove" onclick="btInPre_Click"></asp:button>&nbsp;
				<asp:button id="btInNext" runat="server" CssClass="go-wenbenkuang" Text="下一页" BorderStyle="Groove" onclick="btInNext_Click"></asp:button>&nbsp;
				<asp:button id="btInLast" runat="server" CssClass="go-wenbenkuang" Text=" 尾 页" BorderStyle="Groove" onclick="btInLast_Click"></asp:button>&nbsp;
				<asp:label id="lbInPage" runat="server"></asp:label>&nbsp;
				<%=myLanguagesDeal.GetMyString("TextGotoPage")%>
				<asp:textbox id="txtInPageNum" runat="server" CssClass="wenbenkuang" Width="30px" MaxLength="3"></asp:textbox>
				<asp:CompareValidator id="cpvInPageNum" runat="server" Display="Dynamic" ControlToValidate="txtInPageNum"
					ErrorMessage="输入数字" Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextPages")%>
				<asp:Button id="btInGo" runat="server" CssClass="go-wenbenkuang" Text="Go" onclick="btInGo_Click"></asp:Button></TD>
		</TR>
	</TABLE>
	<BR>
</asp:panel><asp:panel id="PanWrite" runat="server" Visible="False"><br>
	<TABLE cellSpacing="1" cellPadding="3" width="550" align="center" bgColor="#cccccc" border="0">
		<TR bgColor="#ffffff">
			<TD align="right"><%=myLanguagesDeal.GetMyString("InternalLetterManageTextTitle")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--名称：--></TD>
			<TD class="pad" width="360">
				<asp:textbox id="txtWriteTitle" runat="server" CssClass="wenbenkuang" Width="280px" MaxLength="100"></asp:textbox>
				<asp:requiredfieldvalidator id="rfvWriteTitle" runat="server" Display="Dynamic" ControlToValidate="txtWriteTitle"
					ErrorMessage="请输入标题" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
		</TR>
		<TR bgColor="#ffffff">
			<TD noWrap align="right" width="20%"><%=myLanguagesDeal.GetMyString("InternalLetterManageTextContent")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--关闭说明：--></TD>
			<TD><FONT face="宋体">
					<asp:textbox id="txtWriteContent" runat="server" CssClass="wenbenkuang" Width="400px" MaxLength="500"
						Rows="8" TextMode="MultiLine"></asp:textbox></FONT></TD>
		</TR>
		<TR bgColor="#ffffff">
			<TD align="right" width="20%"></TD>
			<TD class="pad">&nbsp;
				<asp:button id="btWriteSend" runat="server" CssClass="go-wenbenkuang" Text="发送信件" onclick="btWriteSend_Click"></asp:button></TD>
		</TR>
		<TR bgColor="#ffffff">
			<TD align="center" colSpan="2">
				<asp:Label id="lbWriteInfo" runat="server" ForeColor="Red"></asp:Label></TD>
		</TR>
	</TABLE>
</asp:panel><asp:panel id="PanOutbox" runat="server" Visible="False">
	<asp:panel id="PanOutboxDetail" Visible="False" runat="server">
		<TABLE cellSpacing="1" cellPadding="3" width="100%" align="center" bgColor="#cccccc" border="0">
			<TR bgColor="#ffffff">
				<TD align="right" width="100"><%=myLanguagesDeal.GetMyString("InternalLetterManageTextSendTime")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
				<TD class="pad">
					<asp:Label id="lbOutboxTime" runat="server"></asp:Label></TD>
			</TR>
			<TR bgColor="#ffffff">
				<TD align="right"><%=myLanguagesDeal.GetMyString("InternalLetterManageTextTitle")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--名称：--></TD>
				<TD class="pad">
					<asp:Label id="lbOutboxTitle" runat="server"></asp:Label></TD>
			</TR>
			<TR bgColor="#ffffff">
				<TD align="right"><%=myLanguagesDeal.GetMyString("InternalLetterManageTextContent")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--名称：--></TD>
				<TD class="pad">
					<asp:Label id="lbOutboxContent" runat="server"></asp:Label></TD>
			</TR>
		</TABLE>
	</asp:panel>
	<BR>
	<asp:datagrid id="dgListOutbox" runat="server" CssClass="table-shangxia" Width="100%" PageSize="15"
		AllowPaging="true" AutoGenerateColumns="False" DataKeyField="LetterID">
		<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1" Height="25" Font-Bold="True"></HeaderStyle>
		<Columns>
			<asp:BoundColumn DataField="Title" HeaderText="InternalLetterManageTextTitle">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
			<asp:BoundColumn DataField="SendTime" HeaderText="InternalLetterManageTextSendTime">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
			</asp:BoundColumn>
			<asp:TemplateColumn HeaderText="TextOperation">
				<ItemStyle HorizontalAlign="Center"></ItemStyle>
				<ItemTemplate>
					<asp:Button id="btOutViewInf" Text="查看" CssClass="go-wenbenkuang" CommandName="GetDetails" Runat="server"></asp:Button>
					<asp:Button id="btOutDelete" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"></asp:Button>
				</ItemTemplate>
			</asp:TemplateColumn>
		</Columns>
		<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
	</asp:datagrid>
	<TABLE class="table-notop" width="100%" align="center" border="0">
		<TR align="center">
			<TD>
				<asp:button id="btOutFirst" runat="server" CssClass="go-wenbenkuang" Text=" 首 页" BorderStyle="Groove" onclick="btOutFirst_Click"></asp:button>&nbsp;
				<asp:button id="btOutPre" runat="server" CssClass="go-wenbenkuang" Text="上一页" BorderStyle="Groove" onclick="btOutPre_Click"></asp:button>&nbsp;
				<asp:button id="btOutNext" runat="server" CssClass="go-wenbenkuang" Text="下一页" BorderStyle="Groove" onclick="btOutNext_Click"></asp:button>&nbsp;
				<asp:button id="btOutLast" runat="server" CssClass="go-wenbenkuang" Text=" 尾 页" BorderStyle="Groove" onclick="btOutLast_Click"></asp:button>&nbsp;
				<asp:label id="lbOutPage" runat="server"></asp:label>&nbsp;
				<%=myLanguagesDeal.GetMyString("TextGotoPage")%>
				<asp:textbox id="txtOutPageNum" runat="server" CssClass="wenbenkuang" Width="30px" MaxLength="3"></asp:textbox>
				<asp:CompareValidator id="cpvOutPageNum" runat="server" Display="Dynamic" ControlToValidate="txtOutPageNum"
					ErrorMessage="输入数字" Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextPages")%>
				<asp:Button id="btOutGo" runat="server" CssClass="go-wenbenkuang" Text="Go" onclick="btOutGo_Click"></asp:Button></TD>
		</TR>
	</TABLE>
	<BR>
</asp:panel>
<asp:Label id="lbItembgColor" runat="server" Visible="False">#EFF3F7</asp:Label>
