<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BType.aspx.cs" Inherits="Maticsoft.Web.Admin.BType.BType"
    MasterPageFile="~/MasterPage.master" Title="栏目管理" EnableEventValidation="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1">
        <tr>
            <td>
                <fieldset>
                    <legend class="tt1">栏目管理</legend>
                    <table>
                        <tr>
                            <td>
                                所属报纸:
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList1" runat="server" onchange="showBtype()">
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:Button ID="Button1" runat="server" CssClass="button2" Text="查询" OnClick="Button1_Click" />
                            </td>
                            <td>
                                <asp:Button ID="Button2" runat="server" CssClass="button22" Text="删除该报该栏目信息" ForeColor="Red"
                                    OnClick="Button2_Click" OnClientClick="return window.confirm('确定要删除满足条件的栏目吗?')" />
                            </td>
                        </tr>
                    </table>
                    <div id="List" runat="server">
                    </div>
                    <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1">
                        <tr>
                            <td height="50" valign="middle" align="center">
                                <div id="CopyrightInfo" runat="server">
                                </div>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </td>
        </tr>
    </table>
 <asp:HiddenField ID="HiddenField_specialRole" runat="server" />
    <script language="javascript" type="text/javascript">
function Del(id)
{
    if(confirm('你确认删除此栏目吗?'))
    {
        self.location="?Action=Del&ID="+id;
    }
}

function Edit(id)
{
    self.location="Modify.aspx?id="+id;
}
 function delAll() {
   if(confirm('你确认删除所选版面吗?'))
    {
    var ids="";
    for (var i = 0; i < document.getElementsByName("selectFlag").length; i++) {
     if(document.getElementsByName("selectFlag")[i].checked){
     ids+=document.getElementsByName("selectFlag")[i].value+",";
     }
     }
     ids=ids.substring(0,(ids.length-1))
     self.location="?Action=Dels&ID="+ids;
   
        
    }
  
 }

    </script>

</asp:Content>
