<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TaskList2.ascx.cs" Inherits="TaskList" %>
<table border="0" cellpadding="0" cellspacing="1" style="background-color: lightgrey"
    width="100%">
    <tr>
        <td style="background-color: white">
<table border="0" cellpadding="0" cellspacing="0" style="background-image: url(../../images/task/SelectBK.jpg)"
    width="100%">
    <tr>
        <td align="left" style="width: 5%; height: 27px">
            <asp:Image ID="Image1" runat="server" Height="27px" ImageUrl="~/images/task/SelectLeft.jpg"
                Width="5px" /></td>
        <td style="width: 90%; height: 27px">
<asp:LinkButton ID="TaskKey01" runat="server" OnClick="TaskKey01_Click" Width="108px" CssClass="TaskSelectKey" Font-Bold="True" ForeColor="Maroon">全部</asp:LinkButton><asp:LinkButton ID="TaskKey02" runat="server" OnClick="LinkButton4_Click" Width="108px" CssClass="TaskSelectKey" Font-Bold="True" ForeColor="Maroon">进行中</asp:LinkButton><asp:LinkButton ID="TaskKey03" runat="server" OnClick="LinkButton5_Click" Width="108px" CssClass="TaskSelectKey" Font-Bold="True" ForeColor="Maroon">已完成</asp:LinkButton>
<asp:Label ID="Message" runat="server"></asp:Label></td>
        <td align="right" style="width: 5%; height: 27px">
            <asp:Image ID="Image2" runat="server" Height="27px" ImageUrl="~/images/task/SelectRight.jpg"
                Width="3px" /></td>
    </tr>
</table>
            <table cellpadding="0" width="100%">
                <tr>
                    <td align="center" style="width: 19%; height: 56px">
                        <strong>任务总数</strong><br />
                        <asp:Label ID="TotalLabel" runat="server" Font-Bold="True" Text="Label"></asp:Label></td>
                    <td align="center" style="width: 1%; height: 56px" valign="middle">
                        <table cellpadding="0" cellspacing="0" style="width: 1px; height: 80%; background-color: gainsboro">
                            <tr>
                                <td style="width: 37px; height: 21px">
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td style="width: 80%; height: 56px">
    <asp:DataList ID="TaskListDataList1" runat="server"
        RepeatColumns="5" Width="100%" Height="37px">
        <ItemTemplate>
            &nbsp;<asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" NavigateUrl='<%# CategoryLink(Eval("id").ToString()) %>'
                Text='<%# Bind("Category") %>'></asp:HyperLink>
            <asp:HyperLink ID="HyperLink2" runat="server" Font-Bold="True" NavigateUrl='<%# CategoryLink(Eval("id").ToString()) %>'
                Text='<%# CategoryNum(Eval("id").ToString()) %>'></asp:HyperLink>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>' Visible="False"></asp:Label>
                    <br />
        </ItemTemplate>
        <ItemStyle HorizontalAlign="Center" />
    </asp:DataList></td>
                </tr>
            </table>
    <div style="background-image: url(../../images/task/Botton.jpg); vertical-align: baseline;
        width: 100%; height: 32px">
        关键字<asp:TextBox ID="TaskListTextBox1" runat="server" Width="93px" CssClass="TaskAddInput" Height="15px"></asp:TextBox>&nbsp;
    <asp:LinkButton ID="TaskListLinkButton2" runat="server" OnClick="TaskListLinkButton2_Click"
        Width="36px" CssClass="TaskAddButton">搜</asp:LinkButton>
    &nbsp; &nbsp;&nbsp;
    排序方式
    <asp:DropDownList ID="TaskListDropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="TaskListDropDownList1_SelectedIndexChanged">
        <asp:ListItem Value="发布由晚到早">按发布时间顺序</asp:ListItem>
        
        
        <asp:ListItem Selected="True" Value="发布由晚到早">　发布由晚到早</asp:ListItem>
        <asp:ListItem Value="发布由早到晚">　发布由早到晚</asp:ListItem>
        <asp:ListItem Value="截稿由晚到早">按截稿时间顺序</asp:ListItem>
        <asp:ListItem Value="截稿由晚到早">　截稿由晚到早</asp:ListItem>
        <asp:ListItem Value="截稿由早到晚">　截稿由早到晚</asp:ListItem>
        <asp:ListItem Value="由高到低↓">按奖金额顺序排</asp:ListItem>
        <asp:ListItem Value="由高到低↓">　由高到低↓</asp:ListItem>
        <asp:ListItem Value="由低到高↑">　由低到高↑</asp:ListItem>
        <asp:ListItem Value="由多到小↓">按浏览量顺序</asp:ListItem>
        <asp:ListItem Value="由多到小↓">　由多到小↓</asp:ListItem>
        <asp:ListItem Value="由小到多↑">　由小到多↑</asp:ListItem>
    </asp:DropDownList></div>
        </td>
    </tr>
</table>
<asp:GridView ID="TaskGridView2" runat="server" AllowPaging="True" AutoGenerateColumns="False"
    Width="100%" OnRowDataBound="TaskGridView2_RowDataBound" ShowHeader="False" OnPageIndexChanging="TaskGridView2_PageIndexChanging">
    <Columns>
        <asp:TemplateField>
            <ItemTemplate>
                <table width="100%">
                    <tr>
                        <td rowspan="2" style="width: 10%">
                            <asp:HyperLink ID="TaskViewHyperLink2" runat="server" CssClass='<%# CategoryMoneyBK(Eval("money").ToString()) %>'
                                NavigateUrl='<%# TASKVIEWURL(Eval("id").ToString()) %>' Text='<%# CategoryMoneyText(Eval("cid").ToString(),Eval("money").ToString()) %>'
                                Width="80px"></asp:HyperLink></td>
                        <td rowspan="2" style="width: 10%">
                            <table style="background-image: url(../../images/task/TaskTimeOut.gif); width: 89px; height: 43px" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="center" rowspan="2" style="width: 144px; height: 43px">
                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# TASKVIEWURL(Eval("id").ToString()) %>'
                                            Text='<%# ViewTimeOut(Eval("sdt").ToString(),Eval("edt").ToString()) %>'></asp:HyperLink></td>
                                </tr>
                                <tr>
                                </tr>
                            </table>
                            </td>
                        <td rowspan="2" style="width: 5%">
                        </td>
                        <td style="width: 80%" align="left">
                            <asp:HyperLink ID="Subject" runat="server" Text='<%# SUBJECT(Eval("id").ToString(),Eval("subject").ToString(),Eval("sdt").ToString(),Eval("edt").ToString()) %>' NavigateUrl='<%# TASKVIEWURL(Eval("id").ToString()) %>'></asp:HyperLink></td>
                        <td rowspan="2" style="width: 10%">
                            &nbsp;<asp:HyperLink ID="HyperLink4" runat="server" ImageUrl="<%# AddPlanKeyImg() %>" NavigateUrl='<%# TASKVIEWURL(Eval("id").ToString()) %>'
                                Target="_blank">我要参于</asp:HyperLink></td>
                    </tr>
                    <tr>
                        <td style="width: 80%" align="left">
                            <asp:LinkButton ID="LinkButton6" runat="server" ForeColor="Silver">收藏此任务</asp:LinkButton><span
                                style="color: darkgray">
                            | 剩余(</span><asp:Label ID="Label2" runat="server" Text='<%# SURPLUS(Eval("sdt").ToString(),Eval("edt").ToString()) %>' ForeColor="#C00000"></asp:Label><span
                                        style="color: darkgray">)
                            | 浏览:</span><asp:Label ID="Label3" runat="server" Text='<%# Bind("CallNum") %>' ForeColor="#404040"></asp:Label><span style="color: darkgray">
                            | 投稿数: </span>
                            <asp:Label ID="Label4" runat="server" Text='<%# PLANNUM(Eval("id").ToString()) %>' ForeColor="#404040"></asp:Label><span
                                style="color: darkgray">
                            | (</span><asp:Label ID="Label5" runat="server" Text='<%# STATE(Eval("finish").ToString()) %>' ForeColor="#FF8000"></asp:Label><span style="color: darkgray">)
                                        </span>
                            </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <PagerSettings FirstPageText="第一页" LastPageText="尾页" Mode="NumericFirstLast" />
    <HeaderStyle Height="0px" />
</asp:GridView>
