⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 collection.aspx

📁 易想商城系统
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/Admin/Masterpage/Page.Master" AutoEventWireup="true" CodeBehind="Collection.aspx.cs" Inherits="YXShop.Web.Admin.Accessories.Collection" %>
<asp:Content ID="Contentheand" runat="server" ContentPlaceHolderID="head">
<script language="javascript">

/*单个删除*/
function Mdelete(id)
{
   if(confirm("删除后将不可再恢复,您确认要删除吗?"))
    {
     var content=YXShop.Web.Admin.Accessories.Collection.BetchDel(id.toString());
      if(content.value=="")
      {
       DeleteRow();
       }

       else
       {
       alert("删除失败!");
       }
    }
}

/*批量删除*/
function Abuth()
{
   if(confirm("删除后将不可再恢复,您确认要删除所选择吗?"))
   {
       var List="";
       var strID = document.getElementsByName("ID");
       for(var i=0;i<strID.length;i++)
       {
           if(strID[i].checked)
           {
                List+=strID[i].value+",";
           }
       }
       var content=YXShop.Web.Admin.Accessories.Collection.BetchDel(List);
       if(content.value=="")
      {
      window.location.reload();
       }
       else
       {
       alert("删除失败!");
       }
}
}
</script>
 <script src="../JS/FormSelected.js" type="text/javascript"></script>
</asp:Content>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceTitle">
收藏管理
</asp:Content>

<asp:Content ID="Content2" runat="server" ContentPlaceHolderID=ContentPlaceHolderMain>
<asp:GridView ID="dgTBCollectionInfo" runat="server" AutoGenerateColumns="False"  DataKeyNames="ID" AllowPaging="True" 
 CssClass="taStyle" GridLines="None" BorderWidth="0px" CellPadding="0" CellSpacing="1"  PageSize="20" Width="100%" OnRowDataBound="dgTBCollectionInfo_RowDataBound" >
           <Columns>
              <asp:TemplateField HeaderText="选择">
                <ItemTemplate>
                   <input id="ID" name="ID" type="checkbox" style="border: 0" value='<%#Eval("ID") %>' />
                </ItemTemplate>
              </asp:TemplateField>
               <asp:BoundField DataField=""  SortExpression =""  HeaderText="商品名称"   >
                   <ItemStyle HorizontalAlign="Center" />
               </asp:BoundField>
               <asp:BoundField SortExpression ="CollectionName" DataField="CollectionName" HeaderText="收藏用户">
                   <ItemStyle HorizontalAlign="Center" Wrap="False" />
               </asp:BoundField>
               <asp:BoundField SortExpression ="CollectionDate" DataField="CollectionDate" HeaderText="收藏时间">
                   <ItemStyle HorizontalAlign="Center" Wrap="False" />
               </asp:BoundField>
               <asp:BoundField HeaderText="操作">
                   <ItemStyle HorizontalAlign="Center" Wrap="False" />
               </asp:BoundField>
               
		</Columns>
		<RowStyle Wrap="True" CssClass="Rlist" Height="20px" />
		<AlternatingRowStyle Wrap="True" CssClass="Alist" Height="20px" />
		<HeaderStyle CssClass="head"/>
		<EmptyDataTemplate>
         <div align="center"><span class="SubTitle"> 没有找到相关信息。</span></div>
    </EmptyDataTemplate>
    <PagerSettings Visible="False" />
	</asp:GridView>
	<table width="100%" border="0" align="right" bgcolor="white">
	<tr>
	  <td><input type="checkbox" id="chkAll" onclick="CheckAll(this.form);" />全选/取消
                <input type="checkbox" id="BackAll" onclick="CheckBack(this.form);" />返选
                <input id="Button1" type="button" onclick="Abuth()" value="删除所选卡" /></td>
		<td align="right" class="noprint"><% 
		if (ps!=null)
			Response.Write(ps.navStr);
		%></td>
	</tr>
</table>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -