<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="Web.User.search" %>
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>站内搜索</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/userCssEdit.htm" -->
    <script language="javascript" type="text/javascript">
        function checkAll()
        {
            //验证
            return checkAllValidate();
        }
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="list-func-box func-box">
        <div class="bd">
            <div class="function-hd">
                <div class="workbench">
                    <a href="AuditingNews.aspx" target="funcFrame"><i class="check"></i>待审信息<i class="arrow"></i></a>
                    <a href="infoSearch.aspx" target="funcFrame"><i class="publish"></i>最近发布<i class="arrow"></i></a>
                    <a href="myDraft.aspx" target="funcFrame"><i class="draft"></i>草稿箱<i class="arrow"></i></a>
                    <a href="search.aspx" class="active" ><i class="sitesearch"></i>站内搜索<i class="arrow"></i></a>
                </div>
                <div class="search-box fl">
                    <asp:DropDownList ID="SearchTypeSelectBox" runat="server" EnableViewState="False" CssClass="drop-txt" Width="80">
                        <asp:ListItem Value="intacttitle" Selected="True">标题</asp:ListItem>
                        <asp:ListItem Value="content">内容</asp:ListItem>
                        <%--<asp:ListItem Value="fullname">发布人</asp:ListItem>--%>
                    </asp:DropDownList>
                    <asp:TextBox ID="SearchStrTextBox" runat="server" CssClass="input-txt w3" notNull="true" msgName="搜索内容" MaxLength="100"></asp:TextBox>
                    <asp:Button ID="Search" class="btn btn1" runat="server" Text="搜 索" OnClientClick="return checkAll();" OnClick="Search_Click" />
                </div>
                <!--/search-box-->
                <div class="action-field">
                    
                </div>
                <!--/action-field-->
            </div>
            <div class="function-bd" style="height: 480px; overflow: auto;">
            <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
            <asp:HiddenField ID="hfidstr" runat="server" />
            <asp:HiddenField ID="hftitlestr" runat="server" />
            <asp:DataGrid ID="newsGrid" CssClass="list-table" runat="server" AllowSorting="True" AutoGenerateColumns="False" >
                <Columns>
                    <asp:BoundColumn DataField="pkId" HeaderText="ID号" HeaderStyle-CssClass="hidden" ItemStyle-CssClass="hidden" FooterStyle-CssClass="hidden"></asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="标题" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <asp:Label ID="CC" Visible="false" runat="server" Text="[抄送]" ForeColor="Red"></asp:Label>
                            <asp:Label ID="IsListTitle" Visible="false" runat="server" Text="[链接]" ForeColor="Red"></asp:Label>
                            <asp:HyperLink ID="intactTitle" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.intactTitle") %>'
                                Target="_blank" NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.pkId", "../newsInfo.aspx?pkId={0}") %>'>
                            </asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="所属栏目" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <asp:Label ID="menuLabel" runat="server" Text='<%# Eval("menuName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="发布人" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <a href="#"><asp:Label ID="info" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.fullName") %>' ToolTip='<%# "发布IP："+DataBinder.Eval(Container, "DataItem.updateIp") %>'></asp:Label></a>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="发布时间" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <a href="#"><asp:Label ID="lbtime" runat="server" Text='<%# Eval("updateTime", "{0:yyyy-M-d}") %>' ToolTip='<%# Eval("updateTime") %>'></asp:Label></a>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="click" HeaderText="点击量" HeaderStyle-CssClass="title"></asp:BoundColumn>
                    
                    <asp:TemplateColumn HeaderText="审核" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <asp:Label ID="lbpassed" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.passed").ToString().Trim() == "0" ? "待审" : (DataBinder.Eval(Container, "DataItem.passed").ToString().Trim() =="1" ? "通过" : "不通过") %>' ></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    
                    <asp:TemplateColumn HeaderText="管理" HeaderStyle-CssClass="title" ItemStyle-CssClass="td-a">
                        <ItemTemplate>
                            <asp:LinkButton ID="edit" runat="server" CommandName="edit">编辑</asp:LinkButton>&nbsp;&nbsp;
                            <%--<a href='manageReview.aspx?newsId=<%# DataBinder.Eval(Container, "DataItem.pkId")%>' target="_blank">评论</a>&nbsp;&nbsp;--%>
                            <asp:LinkButton ID="del" runat="server" CommandName="del">删除</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn Visible="False" DataField="useListTitle" HeaderText="useListTitle"></asp:BoundColumn>
                    <asp:BoundColumn Visible="False" DataField="listTitle" HeaderText="listTitle"></asp:BoundColumn>
                    <asp:BoundColumn Visible="False" DataField="Code" HeaderText="TemplateCode"></asp:BoundColumn>
                    <asp:BoundColumn Visible="False" DataField="bigClassId" HeaderText="bigClassId"></asp:BoundColumn>
                    <asp:BoundColumn Visible="False" DataField="sourceMenuId" HeaderText="menuId"></asp:BoundColumn>
                    <asp:BoundColumn Visible="False" DataField="isDuplicated" HeaderText="isDuplicated"></asp:BoundColumn>
                    <asp:BoundColumn Visible="False" DataField="duplicatedPkId" HeaderText="duplicatedPkId"></asp:BoundColumn>
                    <asp:BoundColumn Visible="False" DataField="usersId" HeaderText="usersId"></asp:BoundColumn>
                </Columns>
            </asp:DataGrid>
            <div id="isnull" runat="server" visible="false" style="text-align:center;">
            <p class="no-record">暂无内容哦！</p>
            </div>
            <!--[if lte IE 7]></div><![endif]-->
            </div>
        </div>
        <div class="ft">
            <div class="pagination">
                <asp:Label ID="showPage" runat="server"></asp:Label>
            </div>
            <!--/pagination-->
        </div>
    </div>
    <!--/list-func-box-->
    </form>
</body>
</html>
