<%@ control language="C#" autoeventwireup="true" inherits="Chat, App_Web_soepvfzo" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<%@ Register Assembly="OnlineUser" Namespace="OnlineUser" TagPrefix="cc1" %>

<%@ Register Namespace="ATLASComponents" TagPrefix="LA" %>
<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
<script runat="server">
    void h(object sender, EventArgs a)
    {
        myTimer.Enabled = !myTimer.Enabled;
    }


</script>

<script language="javascript"> 
function playSound() 
{ 　
   if (navigator.appName == 'Netscape')
       document.embeds[0].play();
   else
   {
       document.embeds[0].run();
   }
} 
</script> 
<atlas:ScriptManager ID="s1" runat="server" EnablePartialRendering="true"> 
<Scripts>
            <atlas:ScriptReference Path="ATLASDisposer.js" />
  </Scripts>
  </atlas:ScriptManager>

<cc1:Script ID="Script1" runat="server">
</cc1:Script>

  

                   
<atlas:UpdatePanel runat="server" ID="myPanel">


            <ContentTemplate>
            


<LA:MyATLASTimer runat="server" id="myTimer" Enabled="true" Interval="5000" OnTick="myTimer_Tick"/>

              
<TABLE style="BORDER-RIGHT: #1879d6 2px solid; BORDER-TOP: #1879d6 2px solid; BORDER-LEFT: #1879d6 2px solid; WIDTH: 184px; height:614px; BORDER-BOTTOM: #1879d6 2px solid" id="table1" cellSpacing=0 cellPadding=0 border=0 runat="server">

<TR><TD style="BACKGROUND-IMAGE: url(images/line.gif); WIDTH: 185px; HEIGHT: 24px" colSpan=2><TABLE style="WIDTH: 100%" cellSpacing=0 cellPadding=0 border=0><TBODY><TR><TD style="WIDTH: 86%; HEIGHT: 19px">&nbsp;<asp:Label id="Label1" runat="server" Width="134px" Text="Bati-即时聊天" ForeColor="White" Font-Bold="True"></asp:Label></TD><TD style="WIDTH: 100%; HEIGHT: 19px" align=center><asp:ImageButton id="ImageButton10" onclick="ImageButton10_Click" runat="server" ImageUrl="~/images/wp_icoMax.gif"></asp:ImageButton></TD></TR></TBODY></TABLE></TD></TR><TR><TD style="WIDTH: 185px" colSpan=2 rowSpan=2><TABLE style="WIDTH: 100%; height: 614px;" id="TABLE2" cellSpacing=0 cellPadding=5 border=0 runat="server" visible="true"><TBODY><TR><TD style="BACKGROUND-IMAGE: url(Img/Icon-9.png); WIDTH: 100%" align=center><TABLE style="WIDTH: 100%" cellSpacing=0 cellPadding=0 border=0><TBODY><TR><TD style="WIDTH: 15%" align=center rowSpan=2><asp:Image id="Image4" runat="server" Width="44px" Height="43px"></asp:Image></TD><TD style="WIDTH: 50%">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
        <tr>
            <td align="left" colspan="2">
                <asp:Label id="Label6" runat="server" Text="Label" ForeColor="Black"></asp:Label><%--<asp:LinkButton ID="LinkButton7" runat="server" OnClick="LinkButton7_Click">在线会员</asp:LinkButton>--%></td>
        </tr>
    </table>
    <asp:LinkButton ID="LinkButton4" runat="server" Font-Bold="True" OnClick="LinkButton4_Click1">添加好友</asp:LinkButton>
    <div id="DIV2" runat="server" style="z-index: 102; left: 254px; width: 302px; position: absolute;
        top: 159px; height: 219px; background-color: #ffffff" visible="false">
        <table border="0" cellpadding="0" cellspacing="0" style="border-right: #3366cc 1px solid;
            border-top: #3366cc 1px solid; border-left: #3366cc 1px solid; width: 100%; border-bottom: #3366cc 1px solid">
            <tr>
                <td style="width: 100%; height: 30px; background-color: #3399cc">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                        <tr>
                            <td style="width: 50%">
                    <asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="White" Text="搜索用户"></asp:Label></td>
                            <td align="right" style="width: 50%">
                                <asp:LinkButton ID="LinkButton6" runat="server" Font-Bold="True" ForeColor="White"
                                    OnClick="LinkButton6_Click">关闭窗口</asp:LinkButton></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="width: 100%; height: 5px">
                </td>
            </tr>
            <tr>
                <td style="width: 100%; height: 31px">
                    用户名：<asp:TextBox ID="TextBox2" runat="server" Width="134px"></asp:TextBox>&nbsp;<asp:Button
                        ID="Button1" runat="server" Font-Bold="True" Text="搜索" OnClick="Button1_Click" /></td>
            </tr>
            <tr>
                <td style="width: 100%; height: 7px">
                </td>
            </tr>
            <tr>
                <td style="width: 100%">
                    <asp:DataList ID="DataList3" runat="server" DataSourceID="SqlDataSource3" Width="100%" OnItemCommand="DataList3_ItemCommand">
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink4" runat="server" Text='<%#Eval("username") %>' Target="_blank" NavigateUrl='<%# "user/bati_user2.aspx?username=" + Eval("url") %>'>HyperLink</asp:HyperLink>
                            （<asp:LinkButton ID="LinkButton5" runat="server">添加</asp:LinkButton>）
                        </ItemTemplate>
                    </asp:DataList><asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:Mir3WebConnectionString %>"
                        ></asp:SqlDataSource>
                </td>
            </tr>
        </table>
    </div>
</TD></TR><TR><TD style="WIDTH: 50%"><FONT color=black>
    <%--<asp:LinkButton ID="LinkButton4" runat="server" Font-Bold="True" ForeColor="Black"
        OnClick="LinkButton4_Click">添加好友</asp:LinkButton>--%>
    </FONT></TD></TR></TBODY></TABLE></TD></TR><TR><TD style="WIDTH: 100%" align=center><IMG src="Img/ivr_btn_3.png" /></TD></TR><TR><TD style="WIDTH: 100%" id="TD1" align=center runat="server"><DIV style="OVERFLOW: auto; WIDTH: 100%; HEIGHT: 429px"><asp:DataList id="DataList1" runat="server" Width="100%" ForeColor="Black" DataSourceID="SqlDataSource1" OnItemCommand="DataList1_ItemCommand" BorderWidth="0px" OnItemDataBound="DataList1_ItemDataBound"><ItemTemplate>
                            
                            <table style="width: 100%" border="0" cellpadding="3" cellspacing="0">
                                <tr>
                                        <td align="center" rowspan="2" style="width: 16%">
                                            <asp:ImageButton ID="ImageButton2" runat="server"  ToolTip="资料"   /></td>
                                        <td align="left" rowspan="2" style="width: 55%">
                                            <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("ff") %>' ToolTip="点击开始聊天" ForeColor="black"></asp:HyperLink></td>
                                        <td align="left" rowspan="2" style="width: 14%">
                                            <asp:ImageButton ID="ImageButton6" runat="server" ImageUrl="~/Img/l-3.gif" ToolTip="点击聊天"   /></td>
                                        <td align="left" rowspan="2" style="width: 100%">
                                            <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/Img/w26.gif" Visible="False"   /></td>
                                    </tr>
                                <tr>
                                </tr>
                            </table>
                        </ItemTemplate>
                        </asp:DataList> <asp:SqlDataSource id="SqlDataSource1" runat="server" SelectCommand="select [FriendName] ff from [UserFriend] where ([UserName]=@UserName) order by [UserFriendID] desc" ConnectionString="<%$ ConnectionStrings:Mir3WebConnectionString %>">
    <SelectParameters>
        <asp:SessionParameter Name="UserName" SessionField="BatiUser" Type="String" />
    </SelectParameters>
</asp:SqlDataSource> </DIV></TD></TR><TR><TD style="WIDTH: 100%" align=center><IMG src="Img/icon-10.png" /></TD></TR><TR><TD style="WIDTH: 100%"><DIV style="OVERFLOW: auto; WIDTH: 100%; HEIGHT: 141px"><asp:DataList id="DataList2" runat="server" Width="100%" ForeColor="Black" DataSourceID="SqlDataSource2" OnItemCommand="DataList2_ItemCommand" BorderWidth="0px" OnItemDataBound="DataList2_ItemDataBound">
                            <ItemTemplate>
                                <table border="0" cellpadding="3" cellspacing="0" style="width: 100%">
                                    <tr>
                                        <td align="center" rowspan="2" style="width: 16%">
                                            <asp:ImageButton ID="ImageButton3" runat="server" /></td>
                                        <td align="left" rowspan="2" style="width: 55%">
                                            <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="Black" Text='<%# Eval("MyName") %>'></asp:HyperLink></td>
                                        <td align="left" rowspan="2" style="width: 11%">
                                            <asp:ImageButton ID="ImageButtonnn" runat="server" ImageUrl="~/Img/l-3.gif" ToolTip="点击聊天" /></td>
                                        <td align="left" rowspan="2">
                                            <asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/Img/w26.gif" Visible="False" /></td>
                                    </tr>
                                    <tr>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList> </DIV></TD></TR></TBODY></TABLE></TD></TR><TR></TR><TR><TD style="WIDTH: 185px" colSpan=2 rowSpan=1><asp:SqlDataSource id="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:Mir3WebConnectionString %>">
                        </asp:SqlDataSource> </TD></TR></TABLE>
                        
 
   <%--<iframe style="position:absolute;z-index:9;width:expression(this.nextSibling.offsetWidth);height:expression(this.nextSibling.offsetHeight);top:expression(this.nextSibling.offsetTop);left:expression(this.nextSibling.offsetLeft); width:0; height:0;" frameborder="0" ></iframe>                     --%>
<script src="aspnet_client/Drog.js"></script>
 <div class="dragAble" style="Z-INDEX: 101; LEFT: 217px; WIDTH: 449px;position: absolute; TOP: 66px; HEIGHT: 337px" id="Chat2" runat="server" visible="false"><TABLE style="BORDER-RIGHT: #3192e7 1px solid; BORDER-TOP: #3192e7 1px solid; BORDER-LEFT: #3192e7 1px solid; WIDTH: 100%; BORDER-BOTTOM: #3192e7 1px solid; BACKGROUND-COLOR: #73e3ff" cellSpacing=0 cellPadding=0 border=0><TR><TD align=right colSpan=2><TABLE style="WIDTH: 100%" cellSpacing=0 cellPadding=5 border=0><TBODY><TR><TD colSpan=2><TABLE style="BORDER-RIGHT: #2169c6 1px solid; BORDER-TOP: #2169c6 1px solid; BORDER-LEFT: #2169c6 1px solid; WIDTH: 100%; BORDER-BOTTOM: #2169c6 1px solid" cellSpacing=0 cellPadding=0 border=0><TBODY><TR><TD style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #2169c6; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #2169c6; WIDTH: 67%; BORDER-TOP-COLOR: #2169c6; HEIGHT: 25px; BACKGROUND-COLOR: #42aaef; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #2169c6" align=left><IMG src="Img/icon_cafe.gif" />和<asp:Label id="Label3" runat="server" Text="Label"></asp:Label> 聊天中......</TD><TD style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #2169c6; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #2169c6; WIDTH: 67%; BORDER-TOP-COLOR: #2169c6; HEIGHT: 25px; BACKGROUND-COLOR: #42aaef; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #2169c6" align=right><asp:ImageButton id="ImageButton7" onclick="ImageButton7_Click" runat="server" ImageUrl="~/Img/1-6.png"></asp:ImageButton></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR><TR><TD style="WIDTH: 67%; HEIGHT: 216px" vAlign=top align=left><asp:Label id="TextBox1" runat="server" Width="297px" Height="216px" BorderWidth="1px" BorderColor="#2169C6" BackColor="White"></asp:Label></TD><TD style="WIDTH: 100%; HEIGHT: 216px" vAlign=top><TABLE style="WIDTH: 100%" cellSpacing=0 cellPadding=3 border=0><TBODY><TR><TD style="WIDTH: 100%" align=center><TABLE style="WIDTH: 100%" cellSpacing=0 cellPadding=0 border=0><TBODY><TR><TD style="WIDTH: 2%"></TD><TD style="BORDER-RIGHT: #2165c6 1px solid; BORDER-TOP: #2165c6 1px solid; BORDER-LEFT: #2165c6 1px solid; WIDTH: 80%; BORDER-BOTTOM: #2165c6 1px solid" align=center>
<asp:Image id="Image2" runat="server" Height="123px" Width="139px"></asp:Image></TD><TD style="WIDTH: 2%"></TD></TR></TBODY></TABLE></TD></TR><TR><TD style="WIDTH: 100%" align=center>
    &nbsp;<DIV style="Z-INDEX: 101; LEFT: 456px; WIDTH: 246px; POSITION: absolute; TOP: 259px; HEIGHT: 147px" id="DIV1" runat="server" visible="false"><TABLE style="BORDER-RIGHT: #3192e7 1px solid; BORDER-TOP: #3192e7 1px solid; BORDER-LEFT: #3192e7 1px solid; WIDTH: 100%; BORDER-BOTTOM: #3192e7 1px solid; BACKGROUND-COLOR: #efffff" cellSpacing=0 cellPadding=0 border=0><TBODY><TR><TD style="WIDTH: 100%; HEIGHT: 25px; BACKGROUND-COLOR: #42aaef" align=right><asp:ImageButton id="ImageButton9" onclick="ImageButton9_Click" runat="server" ImageUrl="~/Img/1-6.png"></asp:ImageButton></TD></TR><TR><TD style="WIDTH: 100%" align=center><asp:Label id="Label5" runat="server" Text="Label" ForeColor="#C00000" Font-Bold="True"></asp:Label></TD></TR><TR><TD style="WIDTH: 100%" align=center><asp:LinkButton id="LinkButton3" onclick="LinkButton3_Click" runat="server" Font-Bold="True">确 认</asp:LinkButton> <asp:LinkButton id="LinkButton2" onclick="LinkButton2_Click" runat="server" Font-Bold="True">取 消</asp:LinkButton> </TD></TR></TBODY></TABLE></DIV>
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
        <tr>
            <td style="height: 18px;" colspan="2">
            <asp:ImageButton id="ImageButton1" onclick="ImageButton1_Click" runat="server" ImageUrl="~/Img/btn_addf.gif"></asp:ImageButton></td>
        </tr>
        <tr>
            <td colspan="2" style="height: 20px">
        <IMG id="IMG1" src="Img/Icon-5.png" runat="server" visible="true" /> 
<asp:LinkButton id="LinkButton1" onclick="LinkButton1_Click" runat="server" ForeColor="Black">删除好友</asp:LinkButton></td>
        </tr>
        <tr>
            <td colspan="2" style="height: 20px">
                <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/ChatImg/Chat_n.aspx"
                    Target="_blank">聊天纪录</asp:HyperLink></td>
        </tr>
    </table>
</TD></TR></TBODY></TABLE></TD></TR><TR><TD style="WIDTH: 67%; HEIGHT: 23px" vAlign=top><TABLE style="BORDER-RIGHT: #2169c6 1px solid; BORDER-TOP: #2169c6 1px solid; BORDER-LEFT: #2169c6 1px solid; WIDTH: 100%; BORDER-BOTTOM: #2169c6 1px solid" cellSpacing=0 cellPadding=0 border=0><TBODY><TR><TD style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #2169c6; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #2169c6; WIDTH: 25%; BORDER-TOP-COLOR: #2169c6; BACKGROUND-COLOR: white; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #2169c6" align=center>
     <asp:ImageButton ID="ImageButton13" runat="server" ImageUrl="~/ChatImg/b-1.png" OnClick="ImageButton13_Click" /></TD><TD style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #2169c6; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #2169c6; WIDTH: 25%; BORDER-TOP-COLOR: #2169c6; BACKGROUND-COLOR: white; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #2169c6" align=center>
     <asp:ImageButton ID="ImageButton12" runat="server" ImageUrl="~/ChatImg/u-1.png" OnClick="ImageButton12_Click" /></TD><TD style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #2169c6; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #2169c6; WIDTH: 25%; BORDER-TOP-COLOR: #2169c6; BACKGROUND-COLOR: white; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #2169c6" align=center>
     <asp:ImageButton ID="ImageButton11" runat="server" ImageUrl="~/ChatImg/i-1.png" OnClick="ImageButton11_Click" /></TD><TD style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: #2169c6; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #2169c6; WIDTH: 25%; BORDER-TOP-COLOR: #2169c6; BACKGROUND-COLOR: white; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #2169c6" align=center></TD></TR></TBODY></TABLE></TD><TD style="WIDTH: 100%; HEIGHT: 23px" vAlign=top></TD></TR><TR><TD style="WIDTH: 67%; HEIGHT: 95px" vAlign=top>
     
        
        <asp:TextBox id="TextBoxNR" tabIndex=1 runat="server" Width="296px" Height="92px" TextMode="MultiLine"></asp:TextBox> </TD><TD style="WIDTH: 100%; HEIGHT: 95px" vAlign=top></TD></TR><TR><TD style="WIDTH: 67%; HEIGHT: 28px" vAlign=top><asp:Button id="Button2" onclick="Button2_Click" runat="server" Text="发送信息" AccessKey="s"  Font-Bold="True"></asp:Button>
            <font color="black"><strong>Alt+s 快速提交</strong></font></TD><TD style="WIDTH: 100%; HEIGHT: 28px"></TD></TR></TABLE></DIV>
           
</ContentTemplate>
</atlas:UpdatePanel>


                    
<LA:ATLASDisposer runat="server" id="myDisposer" componentid="myTimer" Enabled="true"/>

  
