<%@ page language="C#" autoeventwireup="true" inherits="general_Communicate_ReceiveMsg, CrmCommand" %>

<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>
<!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 id="Head1" runat="server">
 <script src="../../Javascript/CheckALL.js"  language=javascript></script>
 <script>
    function CheckDel(formName,chkName,str,width,heigth)
   {
       var R= CheckOk(formName,chkName,str,width,heigth)
         if(R)
              {
                  return confirm('确定删除所选记录吗?');
              }
     
          return false;
      
      
   }
      function ShowWin(id)
   {
    
     
      var url="MsgInfo.aspx?id="+id;
    
         if(id !="")
         {
          
           var R=  window.showModalDialog(url,"newwindow","dialogWidth=570px;dialogHeight=300px");
           
              
             //     location.reload();
            
             
               
         }
       return false;
   
   }
 </script>
    <title>无标题页</title>
</head>
<body class="bodycolor" topmargin="5">
    <form id="form1" runat="server">
   <TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
					<TR>
						<TD class="Big">
						<IMG height="18" src="../images/notify_new.gif" width="18" align="absMiddle"><SPAN class="big3">
                            已接收短信</SPAN>
						</TD>
					</TR>
				</TABLE>
				<TABLE class="small" cellSpacing="1" cellPadding="3" width="450" align="center" bgColor="#000000" border="0">
					
					<TR>
						<TD class="TableData"  colspan=2 noWrap>
						<c1webgrid:c1webgrid   SkinId="gridviewSkin" Width=700px   ID="C1WebGrid1" 

  runat="server" AutoGenerateColumns="False"  AllowPaging=true  

PageSize=15 OnItemCreated="C1WebGrid1_ItemCreated" OnPageIndexChanging="C1WebGrid1_PageIndexChanging"  >
        <Columns>
         <C1WebGrid:C1TemplateColumn HeaderText="全选"><HeaderTemplate>
                    <input id="all" type="checkbox"  value="全选" onclick="CheckAll

('form1','item','all')" /></HeaderTemplate> <ItemTemplate > <input id="item" type="checkbox" 

runat="server" value='<%#Eval("MessageID") %>'/></ItemTemplate></C1WebGrid:C1TemplateColumn>
  
           
            <C1WebGrid:C1BoundColumn  DataField="sender_Name" HeaderText="发件人" >
     
            </C1WebGrid:C1BoundColumn>  
           
            
<c1webgrid:C1TemplateColumn  HeaderText="内容" >
<ItemStyle Width=300 />
<ItemTemplate>
    
   	<asp:Label    ID="Lkb" Text='<%# Server.HtmlDecode(Eval

("Content").ToString()).Length > 25 ? Server.HtmlDecode(Eval

("Content").ToString()).Substring(0, 24) + "..." : Server.HtmlDecode(Eval

("Content").ToString())%>' ToolTip='<%#Server.HtmlDecode(Eval

("Content").ToString())%>' runat="server"></asp:Label> 
                    
			</ItemTemplate>
</c1webgrid:C1TemplateColumn>
           <C1WebGrid:C1BoundColumn DataField="Exp1"   HeaderText="发送日期" /> 
           
        <c1webgrid:C1TemplateColumn  HeaderText="状态" >

<ItemTemplate>
    
     <img src='<%# Eval("IsRead").ToString() == "0" ? "../images/email_new.gif" : "../images/email_open.gif"%>'  alt='<%# Eval("IsRead").ToString() == "0" ? "未读" : "已读"%>' />
                    
			</ItemTemplate>
</c1webgrid:C1TemplateColumn>
            <c1webgrid:C1TemplateColumn  HeaderText="操作" >

<ItemTemplate>
<a onclick='return ShowWin(<%# Eval("MessageID")%>)' href='javascript:'>查看</a>
    <a target=_self  href='NewMsg.aspx?id=<%# Eval("SenderID").ToString()%>'>回复</a>
    
                    
			</ItemTemplate>
</c1webgrid:C1TemplateColumn>
            
            
        				</Columns> 
    
        </c1webgrid:c1webgrid></TD>
						
							
					</TR>
					
					
				<tr><td align=left  colspan=2 class="TableData"><TABLE class="small" cellSpacing="0" cellPadding="0" width="100%">
								<TR align="center"><td class="TableData" noWrap style="height: 24px">&nbsp;&nbsp;<asp:Button ID="BtnCancel" OnClientClick=" return  CheckDel('form1','item','','','')" class="BigButton" runat="server" Text="删除" OnClick="BtnDel_Click" Width="95px" /></td></tr>
    </TABLE> 
</td></tr>
				
				</TABLE><input id="txtId" runat=server  type="hidden" />
    </form>
</body>
</html>

