<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_Witkey, WebApp_deploy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
   <link href="../HL_Admin/tpl/css/style.css" rel="stylesheet" type="text/css" />
    <table class="adminheading">
        <tr>
            <th valign="middle" class="cpane">
                威客管理</th>
            <td align="right">
            </td>
            <td class="rtdw">
            </td>
        </tr>
    </table>
    
    <div class="main">
    <div style="background-color: #C6E6ED; text-align: left;">
        行业：<asp:DropDownList ID="DropDownList_WitkeyTypeOne" runat="server">
                    <asp:ListItem Value="-1">请选择行业</asp:ListItem>
                    <asp:ListItem Value="0">平面包装</asp:ListItem>
                    <asp:ListItem Value="1">网站/软件</asp:ListItem>
                    <asp:ListItem Value="2">策划/文案</asp:ListItem>
                    <asp:ListItem Value="3">劳务/营销</asp:ListItem>
                    <asp:ListItem Value="4">工造/产品</asp:ListItem>
                    <asp:ListItem Value="5">建筑/装饰</asp:ListItem>
                    <asp:ListItem Value="6">其它的</asp:ListItem>
                    </asp:DropDownList>
        任务状态：
        <asp:DropDownList ID="DropDownList_Statu" runat="server">
            <asp:ListItem Selected="True" Value="-1" Text="请选择状态" />
            <asp:ListItem Value="1" Text="任务未付款" />
            <asp:ListItem Value="2" Text="任务待审核" />
            <asp:ListItem Value="3" Text="任务审核失败" />
            <asp:ListItem Value="4" Text="任务进行中" />
            <asp:ListItem Value="5" Text="任务公示中" />
            <asp:ListItem Value="6" Text="任务投票中" />
            <asp:ListItem Value="7" Text="任务失败" />
            <asp:ListItem Value="8" Text="任务完成" />
            <asp:ListItem Value="9" Text="任务冻结" />
        </asp:DropDownList>
        任务类型：<asp:DropDownList ID="DropDownList_Mode" runat="server" >
                    <asp:ListItem Value="0">请选择类型</asp:ListItem>
                    <asp:ListItem Value="1">悬赏任务</asp:ListItem>
                    <asp:ListItem Value="2">招标任务</asp:ListItem>
                    </asp:DropDownList>
        任务编号：
        <input type="text" class="input_t" id="input_Id" runat="server" value=""/>
        <asp:Button ID="Button_Search" runat="server" CssClass="input_but" Text="查询" OnClick="Button_Search_Click" />
    </div>
    <div class="div_tit_a" style="background-color: #C6E6ED; text-align: left;">
        <asp:LinkButton ID="LinkButton0" ForeColor="red" CommandName="0" runat="server" OnCommand="LinkButton_Command">所有的</asp:LinkButton>
        | <asp:LinkButton ID="LinkButton1"  runat="server" CommandName="1"  OnCommand="LinkButton_Command">未付款</asp:LinkButton>
        | <asp:LinkButton ID="LinkButton2"  runat="server" CommandName="2" OnCommand="LinkButton_Command">待审核</asp:LinkButton>
        | <asp:LinkButton ID="LinkButton3"  runat="server" CommandName="3" OnCommand="LinkButton_Command">审核失败</asp:LinkButton>
        | <asp:LinkButton ID="LinkButton4"  runat="server" CommandName="4" OnCommand="LinkButton_Command">进行中</asp:LinkButton>
        | <asp:LinkButton ID="LinkButton5" runat="server" CommandName="5" OnCommand="LinkButton_Command">公示中</asp:LinkButton>
        | <asp:LinkButton ID="LinkButton6"  runat="server" CommandName="6" OnCommand="LinkButton_Command">投票中</asp:LinkButton>
        | <asp:LinkButton ID="LinkButton7"  runat="server" CommandName="7" OnCommand="LinkButton_Command">任务失败的</asp:LinkButton>
        | <asp:LinkButton ID="LinkButton8"  runat="server" CommandName="8" OnCommand="LinkButton_Command">结束的</asp:LinkButton>
        | <asp:LinkButton ID="LinkButton9"  runat="server" CommandName="9" OnCommand="LinkButton_Command">冻结的</asp:LinkButton>
        
        </div>
        <input type="hidden" id="hidden_checkbox" runat="server" />
    <div id="change">
    
        <table width="98%" border="0" cellspacing="0" cellpadding="0" class="adminlist">
            <tr>
                <th width="65" align="left">
                    ID( 
                    <asp:ImageButton ID="ImageButton_IDUp" ImageUrl="~/Admin/tpl/img/m_up.gif" runat="server" OnClick="ImageButton_IDUp_Click" /> / 
                    <asp:ImageButton ID="ImageButton_IDDown" ImageUrl="~/Admin/tpl/img/m_down.gif" runat="server" OnClick="ImageButton_IDDown_Click" /> )</th>
                <th width="25%" class="motif">
                    任务标题</th>
                <th>
                    任务状态</th>
                <th>
                    所属行业</th>
                <th>
                    发布者</th>
                <th>
                    发布时间( <asp:ImageButton ID="ImageButton_TimeUp" ImageUrl="~/Admin/tpl/img/m_up.gif" runat="server" OnClick="ImageButton_TimeUp_Click" /> / 
                    <asp:ImageButton ID="ImageButton_TimeDown" ImageUrl="~/Admin/tpl/img/m_down.gif" runat="server" OnClick="ImageButton_TimeDown_Click" /> )</th>
                <th>
                    过期时间( <asp:ImageButton ID="ImageButton_EndTimeDown" ImageUrl="~/Admin/tpl/img/m_down.gif" runat="server" OnClick="ImageButton_EndTimeDown_Click" /> )</th>
                <th width="55">
                    编辑</th>
                <th width="55">
                    删除</th>
            </tr>
            <asp:Repeater ID="Repeater_Witkey" runat="server">
            <ItemTemplate>
            <tr>
                <td align="left">
                
                <input name='id' type='checkbox'  onclick='unselectall()' id='id' value='<%# Eval("ww_Id") %>'>  
                    <%#Eval("ww_Id")%></td>
                <td align="left">
                    <%#Eval("ww_Title")%></td>
                <td>
                   <%#Eval("ww_Statu")%></td>
                <td>
                    <%#Eval("ww_WitkeyTypeOne")%></td>
                <td>
                    <%#Eval("UserName")%></td>
                <td>
                    <%#Eval("ww_StartTime")%></td>
                <td>
                    <%#Eval("ww_EndTime")%></td>
                <td>
                        <img alt="" src="tpl/img/ico/edit.png" />
                        <asp:LinkButton runat="server" ID="LinkButton_Edit"  CommandName='<%#Eval("ww_Id")%>'   OnCommand="LinkButton_Edit_Command">编辑</asp:LinkButton>
                </td>
                <td>
                        <img alt="" src="tpl/img/ico/delete.gif" />
                        <asp:LinkButton runat="server" ID="LinkButton_Delete"  OnClientClick="return confirm('确定要删除么?')" CommandName='<%#Eval("ww_Id")%>' OnCommand="LinkButton_Delete_Command" >删除</asp:LinkButton>
                </td>
            </tr>
            
            </ItemTemplate>
            </asp:Repeater>
            
            <tr>
                <th colspan="4" align="left" style="height:32px">
                    <input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this.form)' value='checkbox'>
                    全选
                    <asp:Button ID="Button_Check" CssClass="input_but" runat="server" Text="批量审批" Enabled="false"  OnClick="Button_Check_Click" />

                    <asp:Button ID="Button_Delete" CssClass="input_but" runat="server" Text="批量删除" OnClick="Button_Delete_Click"/>

                </th>
                <th colspan="5">
                    <div class="page">
                        
                        &nbsp;
                    </div>
                </th>
            </tr>
        </table>
        <br />
    </div>
    </div>
    <script type="text/javascript">
function unselectall(){
    if(document.myform.chkAll.checked){
        document.myform.chkAll.checked = document.myform.chkAll.checked&0;
       
    }
}
function CheckAll(form){
    for (var i=0;i<form.elements.length;i++){
        var e = form.elements[i];

        if (e.Name != 'chkAll'&&e.disabled==false)
        e.checked = form.chkAll.checked;
    }
}
 </script>
</asp:Content>
