<%@ Page Language="C#" AutoEventWireup="true" CodeFile="News.aspx.cs" Inherits="admin_Jobs_Jobs" %>

<!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>无标题页</title>
        <link href="../skin/Skin1/Table.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
         .gvHead{background-image:url(../skin/Skin1/tab_19.gif); }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table class="style1">
        <tr style="height:30px; line-height:30px; text-align:left;">
        <td align="left">标题关键字：<asp:TextBox ID="TextBox1" runat="server" CssClass="txt" Width="297px"></asp:TextBox>
&nbsp; 信息类别： <asp:DropDownList ID="DropDownList1" runat="server">
                        <asp:ListItem Value="0">==请选择==</asp:ListItem>
                        <asp:ListItem Value="10102813323889">公司新闻</asp:ListItem>
                        <asp:ListItem Value="10102813324956">招标公告</asp:ListItem>
                        <asp:ListItem Value="10102813384223">文件下载</asp:ListItem>
                        <asp:ListItem Value="10102813401439">政策法规</asp:ListItem>
                    </asp:DropDownList>
&nbsp;&nbsp;
            <asp:Button ID="btnGo" runat="server" CssClass="button" onclick="btnGo_Click" 
                Text="搜 索 &gt;&gt;" />
                    </td>
        </tr>
            <tr>
                <td colspan="2">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
                    onrowdeleting="GridView1_RowDeleting" DataKeyNames="id" AllowPaging="True" 
                        PageSize="20">
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:TemplateField HeaderText="编号" SortExpression="id">
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="50px" />
                        </asp:TemplateField>

                        <asp:BoundField DataField="n_title" HeaderText="新闻标题" ReadOnly="True" 
                            SortExpression="n_title" />
                        <asp:BoundField DataField="n_user" HeaderText="发布人" ReadOnly="True" 
                            SortExpression="n_user" >
                            <ItemStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="n_date" HeaderText="发表时间" SortExpression="n_date" >
                                                    <ItemStyle Width="150px" />
                        </asp:BoundField>
                                                    <asp:TemplateField HeaderText="所属分类" 
                            SortExpression="tid">
                                                        <ItemTemplate>
                                                        
                                                            <%#getTypeName(Eval("tid").ToString())%>
                                                        </ItemTemplate>
                                                        
                                                        <ItemStyle Width="150px" />
                        </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>                                   
                          
                   
                                    <a href="javascript:top.myTab.Cts('编辑信息','../admin/News/UpdateNews.aspx?nid=<%#Eval("id") %>')" >详细编辑</a>
                                    
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="100px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="删除">
                            <ItemTemplate>
                                <asp:LinkButton ID="lbtnDel0" runat="server" CausesValidation="False" 
                                    CommandName="Delete" Text="删除"  CommandArgument='<%#Eval("id") %>' 
                                    OnClientClick="return window.confirm('您确定要执行删除操作吗？');"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="50px" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerTemplate>
                             第<asp:Label ID="Label5" runat="server" 
                                 Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1  %>'/>
                                                    页/ 共<asp:Label ID="Label6" runat="server" 
                                            Text='<%# ((GridView)Container.Parent.Parent).PageCount  %>'/>
                                                    页 
                                                    <asp:LinkButton ID="lbtnFirst" runat="server" onclick="lbtnFirst_Click">首页</asp:LinkButton>
                                                    <asp:LinkButton ID="lbtnUp" runat="server" onclick="lbtnUp_Click">上一页</asp:LinkButton>
                                                    <asp:LinkButton ID="lbtnDown" runat="server" onclick="lbtnDown_Click">下一页</asp:LinkButton>
                                                    <asp:LinkButton ID="lbtnLast" runat="server" onclick="lbtnLast_Click">末页</asp:LinkButton>
                    </PagerTemplate>
                    <PagerStyle ForeColor="Black" HorizontalAlign="Center"  CssClass="gvHead"/>
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle Font-Bold="True" Font-Italic="False" 
                        Font-Strikeout="False" Font-Underline="False" ForeColor="White" 
                        BorderStyle="None"  CssClass="gvHead"/>
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
