<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="paperName.aspx.cs" MasterPageFile="~/MasterPage.master"
    Inherits="Maticsoft.Web.Admin.paperName.paperName" %>

<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>
                    <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>

    <script language="javascript" type="text/javascript">
function Del(id,paperName,ename)
{
    if(confirm('你确认删除此报纸吗?)'))
    {
        self.location="?Action=Del&ID="+id+"&papername="+paperName+"&ename="+ename;
    }
}

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){
    if(document.getElementsByName("selectFlag")[i].value.split(",").length>0){
    ids+=document.getElementsByName("selectFlag")[i].value.split(",")[0]+","+document.getElementsByName("selectFlag")[i].value.split(",")[1]
    +","+document.getElementsByName("selectFlag")[i].value.split(",")[2]+"|";
   
}  }  
   
  }
  self.location="?Action=Dels&ID="+ids;
        
    }
  
 }
    </script>

</asp:Content>
