<%@ page validaterequest="false" enableeventvalidation="false" language="C#" autoeventwireup="true" inherits="Default2, App_Web_ybuigdas" %>
<%@ Register Src="BanMian_Top.ascx" TagName="BanMian_Top" TagPrefix="Bati_Top" %>

<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
<%@ Register Src="~/bottom.ascx" TagName="bottom" TagPrefix="Bati_Bottom" %>
<%@ Register Src="~/msg.ascx" TagName="msg" TagPrefix="bati_msg" %>
<%@ Register Src="~/usertop.ascx" TagName="usertop" TagPrefix="bati_usertop" %>
<!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 id="title1" runat="server"></title>
    <link href="MyBati/images/news_show.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
body{margin:0 0 25px 0;padding:0;font-family:Tahoma,Arial,"宋体";font-size:12px;line-height:20px;color:#333;background:#FFF;}
form,img,p,iframe{margin:0;padding:0;border:none;}
ul,li{margin:0;padding:0;list-style:none;}
.clear,#topLogin,#logoNav,#menuNav,#itvBox_video,#search,.searchInput,.centerHots_txt ul,#tab,.hotKey,.hotKey ul,#itvTit,#bookeTit,#jokeTit,#ad_370x150,#ad_120x60,.ad_700x90,#ad_130x340_line,#ad_250x200,#ad_250x90,.main,.right_h22,.line_a,.line_b,.line_c,.line_d,.line_e,#line_itv,#Oaks,#footer,#ad_960x90,#ad_205x120{clear:both;overflow:hidden;}
#topLogin,#search,#entHots,#entStarect,#entInect,#entCarect,#liveHots,#liveDzh,#liveOther,#liveBbs,#itvMain,#bookeMain,#ebay,#Oaks{border:1px #E3E3E3 solid;}
.con{float:left;overflow:hidden;}
a{text-decoration:none;color:#333;}
a:hover{text-decoration:underline;color:#000;}
.link_red{color:#E00;}
.link_blue{color:#06F;}
.link_black{color:#000;}
h1,h2,h3,h4,h5,h6{margin:0; padding:0;}

</style>
<%--<script  type="text/javascript">       
  function     window.onbeforeunload()       
  {       
  if(event.clientX>document.body.clientWidth&&event.clientY<0   ||event.altKey)       
  {       
  var     xmlhttp     =     new     ActiveXObject("Microsoft.XMLHTTP");   
    
  xmlhttp.open("GET","exit.aspx",false);       
  xmlhttp.send();   
  }   
  }       
  </script>  --%> 

</head>
<body>

    <form id="form1" runat="server">
    <center>
    <div>
        <%--<bati_msg:msg ID="msg1" runat="server" />--%>
        
    <Bati_Top:BanMian_Top ID="BanMian_Top1" runat="server" />
        <table border="0" cellpadding="0" cellspacing="0" style="width: 959px">
            <tr>
                <td style="width: 100%; height: 5px" valign="top">
                </td>
            </tr>
            <tr>
                <td style="width: 100%" valign="top">
                    
                    <bati_usertop:usertop ID="usertop" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="width: 100%; height: 9px" valign="top">
                </td>
            </tr>
        <tr>
        <td style="width: 100%;" valign="top">
            <asp:HyperLink ID="HyperLink4" runat="server" Font-Bold="True" ForeColor="Red" NavigateUrl="bati_show.aspx?ArticleID=2135"
                Target="_blank">上芭提社区必看！！！</asp:HyperLink>
           <asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="Red" Text="看贴不回帖是要遭人鄙视的！！！"></asp:Label></td>
        </tr>
            <tr>
                <td style="width: 100%; height: 2px" valign="top">
                </td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 959px">
            <tr>
                <td style="width: 40%;" valign="top">
                    <table border="0" cellpadding="5" cellspacing="0" style="width: 100%">
                        <tr>
                            <td style="width: 100%">
                                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                    <tr>
                                        <td  style="width: 33%; border-right: #cccccc 1px solid; height: 69px;" align="left" valign="top">
                                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                                <tr>
                                                    <td align="center" style="width: 50%">
                                                        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Bati_image/s-1.png"
                                                            OnClick="ImageButton1_Click" Height="55px" Width="54px" /></td>
                                                    <td style="width: 50%">
                                                        <asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="True" OnClick="LinkButton1_Click">个人管理</asp:LinkButton></td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td style="width: 33%; border-right: #cccccc 1px solid; height: 69px;" align="left" valign="top">
                                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                                <tr>
                                                    <td align="center" style="width: 50%">
                                                        <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Bati_image/s-2.png"
                                                            OnClick="ImageButton2_Click" /></td>
                                                    <td style="width: 50%">
                                                        <asp:LinkButton ID="LinkButton2" runat="server" Font-Bold="True" OnClick="LinkButton2_Click">发短消息</asp:LinkButton></td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td style="width: 33%; height: 69px;" valign="top">
                                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                                <tr>
                                                    <td style="width: 50%">
                                                        <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/Bati_image/s-3.png"
                                                            OnClick="ImageButton3_Click" /></td>
                                                    <td align="left" style="width: 50%">
                                                        <asp:LinkButton ID="LinkButton3" runat="server" Font-Bold="True" OnClick="LinkButton3_Click" ForeColor="Red">魔法表情</asp:LinkButton></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 100%">
                                <a href="wc/login.aspx"><asp:Image ID="Image2" runat="server" ImageUrl="~/WC/images/200611713506598.gif" /></a>
                                <a href="wc/login.aspx"><asp:Image ID="Image1" runat="server" Height="100px" ImageUrl="~/WC/images/2-3.png" /></a></td>
                        </tr>
                        <tr>
                            <td style="width: 100%;" align="left">
                                <table border="0" cellpadding="0" cellspacing="0" style="border-right: #cccccc 1px dashed;
                                    border-top: #cccccc 1px dashed; border-left: #cccccc 1px dashed; width: 100%;
                                    border-bottom: #cccccc 1px dashed; background-color: #eef2f3">
                                    <tr>
                                        <td align="center" colspan="2" style="height: 22px">
                                            <asp:Label ID="Label5" runat="server" Font-Bold="True" Text="撰写网站广播"></asp:Label>支持HTML语法</td>
                                    </tr>
                                    <tr>
                                        <td align="center" style="width: 20%; height: 5px">
                                        </td>
                                        <td style="width: 100%; height: 5px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="height: 5px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" style="width: 20%; height: 25px">
                                            <asp:Label ID="Label4" runat="server" Font-Bold="True" Text="标题："></asp:Label></td>
                                        <td style="width: 100%; height: 25px">
                                            <asp:TextBox ID="TextBoxTitle2" runat="server" Width="229px"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td align="center" style="width: 20%; height: 10px">
                                        </td>
                                        <td style="width: 100%; height: 10px">
                                            </td>
                                    </tr>
                                    <tr>
                                        <td align="center" style="width: 20%; height: 26px">
                                        </td>
                                        <td style="width: 100%; height: 26px">
                                            <asp:LinkButton ID="LinkButton7" runat="server" OnClick="LinkButton7_Click" Font-Bold="true">确认发言</asp:LinkButton>
                                            <asp:Label ID="Label6" runat="server" ForeColor="Red" Text="Label" Visible="False"></asp:Label></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100%; height: 10px;" align="left">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 100%">
        
                                <table border="0" cellpadding="3" cellspacing="0" style="border-right: #e3e3e3 1px solid;
                                    border-top: #e3e3e3 1px solid; border-left: #e3e3e3 1px solid; width: 100%; border-bottom: #e3e3e3 1px solid">
                                    <tr>
                                        <td align="left" style="width: 100%">
                                            <asp:Label ID="Label9" runat="server" Font-Bold="True" Text="→"></asp:Label><asp:Label
                                                ID="Label10" runat="server" Font-Bold="True" ForeColor="#3390EE" Text="发表新帖子"></asp:Label>
                                            <asp:Label ID="Label11" runat="server" Font-Bold="True" ForeColor="Red" Text="Label"
                                                Visible="False"></asp:Label></td>
                                    </tr>
                                    <tr style="color: #333333">
                                        <td align="left" style="width: 100%">
                                            用户名：<asp:TextBox ID="TextBoxusername" runat="server" Width="123px"></asp:TextBox>&nbsp;
                                            <asp:Label ID="Labelpass" runat="server" Text="密码：" Visible="False"></asp:Label>
                                            <asp:TextBox ID="TextBoxpass" runat="server" TextMode="Password" Visible="False"
                                                Width="93px"></asp:TextBox></td>
                                    </tr>
                                    <tr style="color: #333333">
                                        <td align="left" style="width: 100%">
                                            &nbsp;<asp:LinkButton ID="LinkButtonlogin" runat="server" Font-Bold="True" OnClick="LinkButtonlogin_Click"
                                                Visible="False">[登陆]</asp:LinkButton>&nbsp;
                                            <asp:LinkButton ID="LinkButtonreg" runat="server" Font-Bold="True" OnClick="LinkButtonreg_Click"
                                                Visible="False">[现在注册]</asp:LinkButton></td>
                                    </tr>
                                    <tr>
                                        <td align="left" style="width: 100%">
                                            选择版面：<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource5"
                                                DataTextField="BanMianName" DataValueField="BanMianName">
                                            </asp:DropDownList>&nbsp; 填写标题：<asp:TextBox ID="TextBoxTitle" runat="server" Width="133px"></asp:TextBox>
                                            <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:Mir3WebConnectionString %>"
                                                SelectCommand="SELECT [BanMianName] FROM [BanMian]"></asp:SqlDataSource>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" style="width: 100%">
                                            上传图片：<asp:FileUpload ID="FileUpload1" runat="server" Width="255px" />
                                            <asp:LinkButton ID="LinkButton4" runat="server" Font-Bold="True" OnClick="LinkButton4_Click">[上传]</asp:LinkButton></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100%">
                                            <CE:Editor ID="iContent" runat="server" Width="360px" AutoConfigure="Minimal">
            <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"
                CssClass="CuteEditorFrame" Height="100%" Width="100%" />
        </CE:Editor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100%" align="center">
                                            <asp:LinkButton ID="LinkButton5" runat="server" Font-Bold="True" OnClick="LinkButton5_Click" TabIndex="1">[发表帖子]</asp:LinkButton>
                                            <asp:LinkButton ID="LinkButton6" runat="server" Font-Bold="True" OnClick="LinkButton6_Click">[清空内容]</asp:LinkButton></td>
                                    </tr>
                                    <tr>
                                        <td align="left" style="width: 100%">
                                            <asp:Label ID="Label15" runat="server" Font-Bold="True" ForeColor="Red" Text="Label"
                                                Visible="False"></asp:Label></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td valign="top" colspan="2" style="width: 60%" align="left">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                       
                        <tr>
                            <td style="width: 100%; height: 9px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100%">
                              
                                <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
                                    <tr>
                                        <td align="left" style="width: 100%; border-bottom: #cccccc 1px dashed; background-color: #eef2f3;">
                                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                                <tr>
                                                    <td style="width: 20%; height: 25px;" align="center">
                                                        &nbsp;<asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="#404040" Text="最新帖子列表"></asp:Label></td>
                                                    <td style="width: 80%; height: 25px;" align="left" >
                                                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                                            <tr>
                                                                <td style="width: 70%" class="newsCon2">
                                                                    <asp:LinkButton ID="LinkButton8" runat="server" Font-Bold="True" OnClick="LinkButton8_Click">按精华排序</asp:LinkButton>&nbsp;
                                                                    <asp:LinkButton ID="LinkButton9" runat="server" Font-Bold="True" OnClick="LinkButton9_Click">按热门排序</asp:LinkButton>
                                                                    <asp:HyperLink ID="HyperLink5" runat="server" Font-Bold="True" NavigateUrl="wc2/login.aspx">公厕老鸟版</asp:HyperLink>
                                                                    <asp:HyperLink ID="HyperLink6" runat="server" Font-Bold="True" NavigateUrl="online.aspx">聊天社区</asp:HyperLink></td>
                                                                <td style="width: 30%" align="center">
                                                                    <asp:Button ID="Button1" runat="server" Text="刷　新" Font-Bold="True" OnClick="Button1_Click" /></td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" style="width: 100%">
                                            <table border="0" cellpadding="4" cellspacing="0" style="width: 100%">
                                                <tr>
                                                    <td  style="width: 100%">
                                                        <asp:DataList ID="DataList2" runat="server" DataSourceID="SqlDataSource1" Width="100%" OnItemDataBound="DataList2_ItemDataBound">
                                                            <ItemTemplate>
                                                                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                                                    <tr>
                                                                        <td style="width: 5%; height: 22px">
                                                                        
                                                                            <asp:Image ID="Image3" runat="server" ImageUrl="~/Bati_image/icon0.gif" /></td>
                                                                        <td style="width: 95%; height: 22px">
                                                                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                                                                <tr>
                                                                                    <td style="width: 58%">
                                                                            <asp:HyperLink ID="HyperLink3" runat="server" ForeColor="Black" Target="_blank" Text='<%#Eval("title") %>' NavigateUrl='<%#"bati_show.aspx?articleid=" + Eval("articleid") %>'>HyperLink</asp:HyperLink>
                                                                                        </td>
                                                                                    <td style="width: 18%">
                                                                                        【<asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Text='<%# Eval("banmianname") %>' NavigateUrl='<%# "ban_list.aspx?banmianname=" + Eval("banmianname") %>'>HyperLink</asp:HyperLink>】</td>
                                                                                    <td style="width: 24%" class="newsCon2">
                                                                                        <asp:HyperLink ID="HyperLink2" runat="server" Font-Bold="True" Target="_blank" Text='<%# Eval("username") %>'>HyperLink</asp:HyperLink>
                                                                                        <asp:HyperLink ID="HyperLink7" runat="server" Text='<%# Eval("articleid") %>' Visible="false" />
                                                                                        </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                        </asp:DataList></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                              
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100%; height: 10px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100%">
                                <table id="TABLE1" runat="server" border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                    <tr>
                                        <td style="width: 100%; border-bottom: #cccccc 1px dashed; height: 25px; background-color: #eef2f3">
                                            &nbsp;
                                            <asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="Black" Text="我关注的帖子"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100%; height: 5px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100%">
                                            <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource2" Width="100%" >
                                                <ItemTemplate>
                                                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                                        <tr>
                                                            <td style="width: 5%; height: 22px">
                                                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Bati_image/icon0.gif" /></td>
                                                            <td style="width: 95%; height: 22px">
                                                                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                                                    <tr>
                                                                        <td style="width: 70%">
                                                                            <asp:HyperLink ID="HyperLink3" runat="server" ForeColor="Black" NavigateUrl='<%#"bati_show.aspx?articleid=" + Eval("articleid") %>'
                                                                                Target="_blank" Text='<%#Eval("title") %>'>HyperLink</asp:HyperLink>
                                                                                
                                                                                </td>
                                                                        
                                                                        <td style="width: 30%" class="newsCon2">
                                                                            【<asp:HyperLink ID="HyperLink2" runat="server" Font-Bold="True" Target="_blank" Text='<%# Eval("username") %>'>HyperLink</asp:HyperLink>】</td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ItemTemplate>
                                            </asp:DataList></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    <Bati_Bottom:bottom ID="bottom1" runat="server" />
    </div>
    </center>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Mir3WebConnectionString %>">
           
        </asp:SqlDataSource>
        
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:Mir3WebConnectionString %>">
           
        </asp:SqlDataSource>
    </form>
</body>
</html>
