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

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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><%=name%>的文章_<%=model_t.Title %></title>
    <meta name="description" content="<%=model_t.Description %>" />
    <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 selecta(){
            var txttitle=document.getElementById("Text1").value;
            var txttid=document.getElementById("selecttype").value;
            var uid='<%=userid %>';
            window.location="UserList.aspx?tid="+txttid+"&title="+escape(txttitle)+"&uid="+uid;
        }
        function dels(){
            var form =document.forms[0];
            var strid="";
            if (confirm("确认要删除？")) {
                for(i=0;i<form.elements.length;i++)
                {
                    if(form.elements[i].type=="checkbox")
                    {
                        if(form.elements[i].checked==true){
                            strid+=form.elements[i].value+",";
                        }
                    }
                }
                if(strid!="")
                window.location.href="ArticleDel.aspx?strid="+strid+"&uid="+'<%=userid %>';
            }
        }
    </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"><%=name%>的文章
                            </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>><%=name%>的文章
                    </div>
                    <div class="sp-right-content">
                    <%if (ds.Tables[0].Rows.Count==0){ %>什么都没搜到！<%}else{ %>
                    <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                      { %>
                        <div class="sp-right-title1">
                            <div style="float:left;">
                            <span class="list_title" >
                                <input id="Checkbox1" type="checkbox" value="<%=ds.Tables[0].Rows[i]["id"]%>" /> <%=ds.Tables[0].Rows[i]["atitle"]%>&nbsp;<em>(<%=ds.Tables[0].Rows[i]["acount"]%>)</em></span></div>
                            <div style="float:right;">
                            <span>发布人：<%if (ds.Tables[0].Rows[i]["uname"].ToString()!=""){ %><a href="userList.aspx?uid=<%=ds.Tables[0].Rows[i]["uid"]%>"><%=ds.Tables[0].Rows[i]["uname"]%></a> <%}else{ %>管理员<%} %></span>&nbsp;&nbsp;
                            <span>发布时间：<%=ds.Tables[0].Rows[i]["Submittime"]%></span>
                            </div>
                            <div class="both">
                            </div>
                        </div>
                        <div class="sp-right-list1" style="color:#666;text-indent: 2em; line-height:160%;">
                            <%=getStr(ds.Tables[0].Rows[i]["acontent"].ToString())%>
                            <div class="wz_yd" >
                            <div class="wz_ydc"><%if(userid==userid2) {%><a href="News_Edit.aspx?id=<%=ds.Tables[0].Rows[i]["id"]%>">编辑</a><%} %>&nbsp;<a href="detail.aspx?aid=<%=ds.Tables[0].Rows[i]["id"]%>">阅读全文</a></div>
                            </div>
                            <div class="both">
                            </div>
                        </div>
                    <%} %>
                    <%} %>
                    </div>
                </div><div class="both"></div>
                
                <div class="leaf2">
                    <webdiyer:AspNetPager CssClass="pages" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                        runat="server" RecordCount="228" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                        PrevPageText="上一页" PageSize="20" UrlPaging="True" ShowMoreButtons="False" CustomInfoClass="pages1" CurrentPageButtonPosition="Center" ShowBoxThreshold="50"
                        ShowFirstLast="False">
                    </webdiyer:AspNetPager>
                </div>
                <div class="del_a">
                    <input id="Button2" type="button" class="btnbc" value="删除" onclick="dels()" />
                </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>
