<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Inbox.aspx.cs" Inherits="InfoPath.Message.Inbox" %>
<%@ Register TagPrefix="uc1" TagName="Css" Src="../include/Css.ascx" %>

<!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 runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <uc1:css id="Css1" runat="server"></uc1:css>
			<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
				<TR CssClass="WsdnOrgTitle1">
					<TD style="WIDTH: 295px">
						&nbsp; <a href="addmsg.aspx?type=new" target="info">
							<asp:Image id="Image2" runat="server" ImageUrl="../image/pic/m_write.gif"></asp:Image></a></TD>
					<TD align="right">
						<asp:ImageButton id="Button1" runat="server" 
                            ImageUrl="../image/pic/m_inbox.gif" Width="40px" Height="40px" 
                            onclick="Button1_Click"></asp:ImageButton>&nbsp;&nbsp;|&nbsp;
						<asp:ImageButton id="Button2" runat="server" 
                            ImageUrl="../image/pic/m_outbox.gif" Width="40px" Height="40px" 
                            onclick="Button2_Click"></asp:ImageButton>&nbsp;&nbsp;|&nbsp;
						<asp:ImageButton id="Button3" runat="server" 
                            ImageUrl="../image/pic/m_recycle.gif" Width="40px" Height="40px" 
                            onclick="Button3_Click"></asp:ImageButton>&nbsp;&nbsp;|&nbsp;&nbsp;<asp:ImageButton 
                            ID="ImageButton1" runat="server" ImageUrl="../image/pic/m_delete.gif" 
                            onclick="ImageButton1_Click" />
&nbsp;<asp:Button class="buttons" id="ButtonDelAll" runat="server" Text="清空已删除邮件" 
                            onclick="ButtonDelAll_Click" Height="36px" style="margin-top: 0px" 
                            Visible="False"></asp:Button>&nbsp;
					</TD>
				<TR>
					<TD colSpan="2"><asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="False" Width="100%" AllowPaging="True"
							PageSize="5">
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <HeaderStyle CssClass="WsdnOrgTitle" Font-Bold="True" HorizontalAlign="Left" />
							<Columns>
								<asp:TemplateColumn HeaderImageUrl="../image/upload.GIF" HeaderText="状态">
									<HeaderTemplate>
										已读
									</HeaderTemplate>
									<ItemTemplate>
										<asp:Image id="Image1" runat="server" ImageUrl='<%# String.Format("../image/{0}.gif", DataBinder.Eval(Container.DataItem, "Wsdn_StarCRM_IsChecked"))%>'>
										</asp:Image>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:HyperLinkColumn Target="info" DataNavigateUrlField="Wsdn_StarCRM_Id" DataNavigateUrlFormatString="Info.aspx?id={0}"
									DataTextField="Wsdn_StarCRM_Title" HeaderText="标题"></asp:HyperLinkColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_From" HeaderText="发送人"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_To" HeaderText="接收人"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Time" HeaderText="发出时间"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_ReadTime" HeaderText="查阅时间"></asp:BoundColumn>
								<asp:BoundColumn DataField="Wsdn_StarCRM_Type" HeaderText="消息类型"></asp:BoundColumn>
								<asp:HyperLinkColumn Text="删除" DataNavigateUrlField="Wsdn_StarCRM_Id" DataNavigateUrlFormatString="DelMsg.aspx?id={0}"
									HeaderText="删除"></asp:HyperLinkColumn>
							</Columns>
							<PagerStyle Mode="NumericPages"></PagerStyle>
						</asp:datagrid></TD>
				</TR>
			</TABLE>
    </div>
    </form>
</body>
</html>
