<%@ page language="C#" autoeventwireup="true" inherits="Admin_Admin_SoftList, App_Web_ahimsrpm" %>

<%@ Register Assembly="WanerSoft" Namespace="WanerSoft.Web.UI.Controls" TagPrefix="cc1" %>
<html>
<head>
    <title>软件管理列表</title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="../css/Admin.css" rel="stylesheet" />
    <script type="text/javascript" language="javascript" src="js/jscheckbox.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div style="margin: 0px auto 0px auto; text-align: left;">
            <div class="tips">
                软件列表，您可以通过选择相应编号软件进行批量管理，或者通过 【<a href="Admin_SoftEdit.aspx">添加软件</a>】 来增加新的软件！
            </div>
            <div class="tips">
                通过按不同信息来搜索相关软件！
            </div>
            <table>
                <tr>
                    <td>
                        软件搜索：
                        <cc1:TextBox ID="txt_SoftName" CssClass="w" Width="20%" runat="server"></cc1:TextBox>
                        <asp:DropDownList ID="searchby" runat="server">
                            <asp:ListItem Value="softName">按软件名称</asp:ListItem>
                            <asp:ListItem Value="adderLoginName">按上传者帐号</asp:ListItem>
                            <asp:ListItem Value="isAudit">按是否审核,0否,1是</asp:ListItem>
                            <asp:ListItem Value="downCount">按下载数 大于</asp:ListItem>
                            <asp:ListItem Value="replyCount">按回复数 大于</asp:ListItem>
                        </asp:DropDownList>
                        <Ws:Button ID="btn_Search" Styles="WebButton" Format-Value="正在搜索，请稍候......" Type="Wait"
                            Text="搜索" runat="server" OnClick="btn_Search_Click" />
                        <Ws:Button ID="btn_Audit" Styles="WebButton" Format-Value="正在审核，请稍候......" Type="Wait"
                            Text="审核选中" runat="server" OnClick="btn_Audit_Click" />
                        <Ws:Button ID="btn_Cancelaudit" Styles="WebButton" Format-Value="正在取消审核，请稍候......"
                            Type="Wait" Text="取消审核" runat="server" OnClick="btn_Cancelaudit_Click" />
                        <Ws:Button ID="btn_Dels" Styles="WebButton" Format-Value="正在删除选中，请稍候......" Type="Wait"
                            Text="删除选中" runat="server" OnClick="btn_Dels_Click" />
                            </td>
                </tr>
            </table>
            <table  class="main" style="margin-top: 10px; margin-bottom: 10px;" border="1">
                <thead>
                    <tr>
                        <td>
                            <input name="chkall" value="1" type="checkbox" onclick="javascript:CheckAll(this,'Item')" />
                        </td>
                        <td>
                            软件名称</td>
                        <td>
                            类别名称</td>
                        <td >
                            下载数</td>
                        <td >
                            回复数</td>
                            <td >
                            是否审核</td>
                        <td>
                            操作
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="repsoftlist" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <input name="Item" type="checkbox" value='<%# Eval("id")%>' />
                                </td>
                                <td>
                                    <a href="Admin_SoftEdit.aspx?action=edits&id=<%# Eval("id") %>">
                                        <%# Eval("softName") %>
                                    </a>
                                </td>
                                <td>
                                    <%# Eval("softClassName")%>
                                </td>
                                <td>
                                    <%# Eval("downCount")%>
                                </td>
                                <td>
                                    <%# Eval("replyCount")%>
                                </td>
                                <td>
                                    <img src="admin_images/softimg/<%# Eval("isAudit")%>.gif" />
                                </td>
                                <td>
                                    <a href="Admin_SoftEdit.aspx?action=edits&id=<%# Eval("id") %>">编辑</a>
                                     &nbsp; 
                                     <a href="Admin_ReplyList.aspx?sid=<%# Eval("id") %>">查看评论</a>
                                     &nbsp; 
                                    <a href="?action=Del&id=<%# Eval("id") %>" onclick="javascript:return confirm('确认删除?')">删除</a>                                       
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>            
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="true" FirstPageText="[首页]"
                LastPageText="[尾页]" NextPageText="[后页]" PrevPageText="[前页]" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                ShowCustomInfoSection="Right" OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
        </div>
    </form>
</body>
</html>
