<%@ page language="C#" autoeventwireup="true" inherits="news.News_Detail, LebiMall" %>

<!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>
    <title><%=ds.Tables[0].Rows[0]["atitle"] %>_<%=typename%>_<%=model_t.Title %></title>
    <meta name="description" content=<%=ds.Tables[0].Rows[0]["asummary"] %> />
    <meta name="keywords" content=<%=model_t.Keywords %> />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="../images/css/css.css" rel="stylesheet" type="text/css">
    <link href="../images/css/css2.css" rel="stylesheet" type="text/css">
    <link href="../images/css/cart.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="../images/js/shopjs.js"></script>
    <script type="text/javascript" src="../images/js/js_s.js"></script>
    <script type="text/javascript">
        function search(){
            var texts2=document.getElementById("ser").value;
            var select_v2=document.getElementById("Select1").value;
            window.location="list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
        function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select3").value;
            window.location="list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
        function val(){
            var flag=true;
            if(document.getElementById("TextArea1").value==""){
                flag=false;
                document.getElementById("msg_c").innerHTML="<span class='msg_submit'>评论内容不能为空！<span>";
            }
            if(flag){
                return true;
            }else{
                return false;
            }
        }
        function selecta(){
            var txttitle=document.getElementById("Text1").value;
            var txttid=document.getElementById("selecttype").value;
            window.location="List.aspx?tid="+txttid+"&title="+escape(txttitle);
        }
    </script>
</head>
<body>
    <form id="form" runat="server">
        <div id="top-menu02">
            <div id="top-menu">
                <div class="right">
                    <script type="text/javascript">indexhead();</script>
                </div>
            </div>
        </div>
        <div id="top">
            <div id="logo">
                <a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">
                    <img src="../Upload/WebAdminImages/<%=model_t.Logoimg %>" border="0" /></a></div>
        </div>
        <div id="sp-menu">
            <ul>
                <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (model_t.Tab == "1"){ %>
                <a href="../<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>/" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%}else{%>
                <a href="../TopTab.aspx?type=<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%} %></li>
            <%} %>
            <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/News/" target="_blank">资讯</a></li>
            </ul>
            <p>
                <span><a href="../ShopCoupon.aspx">优惠券</a></span></p>
        </div>
        <div id="contenter2">
            <div id="contenter">
            <div id="search">
                <div class="search-left">
                    <div class="search-left-title">
                        搜索：</div>
                    <div class="search-left-form">
                        <input type="text" runat="server" id="ser" size="30" /></div>
                    <div class="search-left-list">
                        <select id="Select1" runat="server">
                        </select>
                    </div>
                    <div class="search-left-button">
                        <img src="../images/search-buttom.gif" width="60" height="20" onclick="search()" /></div>
                </div>
                <div class="search-right">
                    <div runat=server id="div_s1"></div>
                </div>
            </div>
                <div class="sp-left-k">
                    <div class="sp-left-k">
                        <div class="sp-left-sreach">
                            <div class="ang-list01">
                            </div>
                            <div class="ang-list02">
                            </div>
                            <div class="ang-topheight"><%=typename%>
                            </div>
                            <div class="left-list" >
                                <div class="left-list-title">
                                    搜索</div>
                                <div class="left-list-contenter">
                                    <table>
                                        <tr><td align=right style="height:30px;">关键字：</td><td><input id="Text1" type="text" runat=server style="border:#ccc solid 1px; width:110px;" /></td></tr>
                                        <tr><td align=right style="height:30px;">类别：</td><td><select id="selecttype" runat="server"></select></td></tr>
                                        <tr><td colspan="2" style="height:30px;"><input id="Button1" type="button" value="搜索" class="btnbc" style="margin-left:50px;"  onclick="selecta();" /></td></tr>
                                    </table>
                                </div>
                            </div>
                            <div class="left-list">
                                <div class="left-list-title">
                                    推荐文章</div>
                                <div class="left-list-contenter">
                                    <%for (int i = 0; i < ds_rec.Tables[0].Rows.Count;i++){ %>
                                        <a href="detail.aspx?aid=<%=ds_rec.Tables[0].Rows[i]["id"] %>"><%=ds_rec.Tables[0].Rows[i]["atitle"] %></a><br />
                                    <%} %>
                                </div>
                            </div>
                            <div class="left-list">
                                <div class="left-list-title">
                                    最热文章</div>
                                <div class="left-list-contenter">
                                    <%for (int i = 0; i < ds_hot.Tables[0].Rows.Count;i++){ %>
                                        <a href="detail.aspx?aid=<%=ds_hot.Tables[0].Rows[i]["id"] %>"><%=ds_hot.Tables[0].Rows[i]["atitle"] %></a><br />
                                    <%} %>
                                </div>
                            </div>
                            <div class="ang-bottomheight">
                            </div>
                            <div class="ang-list02">
                            </div>
                            <div class="ang-list01">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="sp-right-k">
                    <div class="navigate">
                        您现在的位置：<a href="Default.aspx">首页</a>><a href="List.aspx?tid=<%=tid %>"><%=typename%></a>><%=ds.Tables[0].Rows[0]["atitle"] %>
                    </div>
                    <div class="sp-right-content">
                        <div class="wz_dt">
                        <span style="float:left"><%if (getId(1)!=0){ %><a href="detail.aspx?aid=<%=getId(1) %>" ><%=getTitle(1)%></a><%}else{%><em>前面没有了</em><%} %></span>
                        <span style="float:right"><%if (getId(2) != 0){ %><a href="detail.aspx?aid=<%=getId(2) %>" ><%=getTitle(2)%></a><%}else{%><em>后面没有了</em><%} %></span>
                        </div>
                        <div class="both"></div>
                        <h2><%=ds.Tables[0].Rows[0]["atitle"] %></h2>
                        <div class="wz_dt2"><%if (ds.Tables[0].Rows[0]["uname"].ToString()!=""){ %><a href="UserList.aspx?uid=<%=ds.Tables[0].Rows[0]["uid"] %>"><%=ds.Tables[0].Rows[0]["uname"] %></a><%}else{ %>管理员<%} %>&nbsp;&nbsp;&nbsp;<em>发布于：<%=ds.Tables[0].Rows[0]["submittime"] %>&nbsp;&nbsp;&nbsp;浏览：<%=ds.Tables[0].Rows[0]["acount"] %></em></div>
                        <div class="wz_ty"><%=ds.Tables[0].Rows[0]["asummary"] %></div>
                        <div class="wz_c"><%=ds.Tables[0].Rows[0]["acontent"] %></div>
                        <%if (ds_comm.Tables[0].Rows.Count!=0){ %>
                        <div class="comm_list">
                        <span class="comm_title">评论</span>
                            <ul>
                            <%for (int i = 0; i < ds_comm.Tables[0].Rows.Count;i++ ){ %>
                                <li><div class="li_left"><a href="userList.aspx?uid=<%=ds_comm.Tables[0].Rows[i]["uid"].ToString() %>"><img src="../Upload/face/avatar/<%=ds_comm.Tables[0].Rows[i]["uavatar"].ToString() %>" border="0" /></a>
                                                        <br /><a href="userList.aspx?uid=<%=ds_comm.Tables[0].Rows[i]["uid"].ToString() %>"><%=ds_comm.Tables[0].Rows[i]["uname"].ToString() %></a></div>
                                <div class="li_right"><em>评论时间：<%=ds_comm.Tables[0].Rows[i]["submittime"].ToString() %></em><br /><%=ds_comm.Tables[0].Rows[i]["ccontent"].ToString() %></div></li>
                            <%} %>  
                            </ul>
                        </div>
                        <%} %>
                        <div class="comm_list2" id="comm" runat="server">
                            <span class="comm_title">发表评论</span><em>（限300字符）</em>
                            <div class="comm_c"><textarea id="TextArea1" cols="65" rows="5" runat="server"></textarea><span id="msg_c" runat="server"></span></div>
                            <div class="comm_c"><asp:Button ID="Button2" runat="server" Text="发表" CssClass="btnbc" OnClick="Button2_ServerClick" OnClientClick="return val();" /></div>
                        </div>
                    </div>
                </div>
                <div class="both"></div>
                <div class="both">
                </div>
                <div id="footer">
                    <div id="copyright">
                        <div class="search">
                            <div class="search-left">
                                <div class="search-left-title">
                                    搜索：</div>
                                <div class="search-left-form">
                                    <input type="text" runat="server" id="ser2" size="30" /></div>
                                <div class="search-left-list">
                                    <select id="Select3" runat="server">
                                    </select>
                                </div>
                                <div class="search-left-button">
                                    <img src="../images/search-buttom.gif" width="60" height="20" onclick="search2()" /></div>
                            </div>
                            <div class="search-right">
                                <div runat="server" id="div_s2">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="copyright" runat="server" id="copr"></div>
            </div>
        </div>
    </form>
</body>
</html>
