Files
g.hnyhua.cn/Mtxfw.VipSite/bindproducts.aspx
2026-02-07 15:48:27 +08:00

222 lines
9.9 KiB
Plaintext

<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="bindproducts.aspx.cs" Inherits="Mtxfw.VipSite.bindproducts" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<title></title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script src="/Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="/Scripts/jquery-migrate-1.1.1.min.js" type="text/javascript"></script>
<script src="/Scripts/common.js" type="text/javascript"></script>
<link href="/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<!-- Basic Styles -->
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" media="screen" href="/css/bootstrap.css">
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" media="screen" href="/css/font-awesome-ie7.min.css">
<![endif]-->
<link rel="stylesheet" type="text/css" media="screen" href="/css/smartadmin-production.css">
<link rel="stylesheet" type="text/css" media="screen" href="/css/smartadmin-skins.css">
<link rel="stylesheet" type="text/css" media="screen" href="/css/your_style.css">
<!-- Demo purpose only: goes with demo.js, you can delete this css when designing your own WebApp -->
<link rel="stylesheet" type="text/css" media="screen" href="/css/demo.css">
<!-- FAVICONS -->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="/css/cjadd.css">
<style type="text/css">
.data_table td input[type="text"]
{
width:100px;
text-align:center;
}
</style>
<script src="Scripts/setdate.js" type="text/javascript"></script>
<script src="/artDialog/artDialog.js?skin=default" type="text/javascript"></script>
<script src="/artDialog/iframeTools.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
var d = $(window.parent.document);
var products = d.find("#hiddenproducts").val();
if (products != "") {
var aproducts = products.split(",");
for (var i = 0; i < aproducts.length; i++) {
if (aproducts[i] != "") {
if ($("#select_product" + aproducts[i]).val() == aproducts[i]) {
document.getElementById("select_product" + aproducts[i]).checked = true;
} else {
document.getElementById("select_product" + aproducts[i]).checked = false;
}
}
}
}
});
var search = function () {
var key = document.getElementById('text_key');
var cls = document.getElementById('Drop_Cls');
var state = document.getElementById('Drop_State');
var type=document.getElementById('Drop_type');
var MorN = $("#Drop_MorN");
if (key != "")
location.href = "bindproducts.aspx?morn=" + MorN.val() + "&type="+type.value+"&cls=" + cls.value + "&key=" + escape(key.value) + "&state=" + escape(state.value);
};
function qysel() {
var strid = "";
var p_table = document.getElementById('p_table');
var checka = p_table.getElementsByTagName('input');
for (var i = 0; i < checka.length; i++) {
if (checka[i].checked) {
if (strid == "") {
strid = checka[i].value;
} else {
strid += "," + checka[i].value;
}
}
}
var d = $(window.parent.document);
d.find("#hiddenproducts").val(strid);
art.dialog.close();
}
function qksel() {
var strid = "";
var p_table = document.getElementById('p_table');
var checka = p_table.getElementsByTagName('input');
for (var i = 0; i < checka.length; i++) {
if (checka[i].checked) {
checka[i].checked = false;
}
}
var d = $(window.parent.document);
d.find("#hiddenproducts").val("");
art.dialog.close();
}
</script>
<style type="text/css">
#Label_JF{ color:Red;}
</style>
</head>
<body>
<form runat="server">
<!-- RIBBON -->
<!-- MAIN CONTENT -->
<div style="opacity: 1;" id="content">
<div class="frontMain">
<div class="MainContent">
<table width="100%" border="0" class="data_table" id="p_table" cellspacing="0" cellpadding="0">
<tr>
<td colspan="9">
<asp:DropDownList ID="Drop_type" runat="server">
<asp:ListItem Value="0">银花优选优选商品</asp:ListItem>
<asp:ListItem Value="2">精选商品</asp:ListItem>
<asp:ListItem Value="4">创客区商品</asp:ListItem>
<asp:ListItem Value="5">助农专区商品</asp:ListItem>
<asp:ListItem Value="8">事业联盟商品</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="Drop_Cls" runat="server">
</asp:DropDownList>
<asp:DropDownList ID="Drop_State" runat="server">
<asp:ListItem Text="所有状态" Value="所有状态"></asp:ListItem>
<asp:ListItem Text="已处理" Value="已处理"></asp:ListItem>
<asp:ListItem Text="未处理" Value="未处理"></asp:ListItem>
<asp:ListItem Text="推荐" Value="推荐"></asp:ListItem>
<asp:ListItem Text="热销" Value="热销"></asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="Drop_MorN" runat="server">
<asp:ListItem Text="按门店或服务中心账号" Value="2"></asp:ListItem>
<asp:ListItem Text="按商品名称" Value="0"></asp:ListItem>
<asp:ListItem Text="按商品编号" Value="1"></asp:ListItem>
</asp:DropDownList>
<input id="text_key" type="text" value="<%=Request.QueryString["key"] %>" style=" width:200px;"/>
<input id="btn_search" type="button" value="搜索" onclick="search()" class="abtn" />
</td>
</tr>
<tr bgcolor="#f7f7f7">
<th><b>ID</b></th>
<th width="250"><b>商品</b></th>
<th width="250"><b>价格/库存</b></th>
<th><b>添加时间</b></th>
<th><b>状态</b></th>
<th width="50"><b>选择</b></th>
</tr>
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<tr <%#(Container.ItemIndex + 1)%2==0?"bgColor=\"#f4f4f4\" onmouseover=\"this.bgColor='#fdff7e'\" onmouseout='this.bgColor=\"#f4f4f4\"'":"bgColor=\"#ffffff\" onmouseover=\"this.bgColor='#fdff7e'\" onmouseout='this.bgColor=\"#ffffff\"'"%>>
<td><%#Eval("P_ID") %></td>
<td><img src="<%#(Eval("P_images").ToString().Split('|')[0].Split(',')[0].IndexOf("http") != -1 ? Eval("P_images").ToString().Split('|')[0].Split(',')[0] : Mtxfw.Utility.Common.GetCoverPic(Eval("P_images").ToString().Split('|')[0].Split(',')[0],"40x40","cut")) %>" width="40" height="40" /><br><%#(Convert.ToInt32(Eval("utype"))==2||Convert.ToInt32(Eval("utype"))==4||Convert.ToInt32(Eval("utype"))==5)?"":"【"+daoCategory.GetCategoryName(Convert.ToInt32(Eval("utype")), Eval("P_CATEGORYs").ToString())+"】"%><br><a href="Admin_Member_Products_add.aspx?action=edit&ID=<%#Eval("P_ID") %>"><%#Eval("P_NAME")%></a><br>NO:<%#Eval("P_bianhao")%></td>
<td><%#getje(Convert.ToDouble(Eval("P_VIP_P")), Convert.ToInt32(Eval("P_Inventory")), Convert.ToInt32(Eval("P_ID")))%></td>
<td><%#Eval("P_ADDATE")%></td>
<td><%#Eval("P_State")%> <%#Eval("P_COMMENDF").ToString().ToLower() == "true" ? "<br>推荐" : ""%>
<%#Eval("P_ppproduct").ToString().ToLower() == "true" ? "<br>品牌" : ""%>
<%#Eval("P_jpproduct").ToString().ToLower() == "true" ? "<br>热销" : ""%>
<%#Eval("P_cjproduct").ToString().ToLower() == "true" ? "<br>最新上架" : ""%>
</a></td>
<td>
<input type="checkbox" value="<%#Eval("P_ID")%>" name="select_product" id="select_product<%#Eval("P_ID")%>" />
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
<tr>
<td colspan="9" style="text-align:left" class="th">
</td>
</tr>
<tr>
<td colspan="9"> <webdiyer:AspNetPager ID="MyPager" AlwaysShow="true" runat="server"
FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
CustomInfoHTML="共 &lt;font color=&quot;red&quot;&gt;%RecordCount%&lt;/font&gt; 条记录 当前 &lt;font color=&quot;red&quot;&gt;%CurrentPageIndex%/%PageCount%&lt;/font&gt; 页"
PrevPageText="上一页" ShowPageIndexBox="Always" ShowCustomInfoSection="Left"
SubmitButtonText="Go" TextAfterPageIndexBox="页" ShowBoxThreshold="100"
CurrentPageButtonPosition="Center" ShowMoreButtons="False" PageIndexBoxType="DropDownList"
TextBeforePageIndexBox="转到" UrlPaging="True">
</webdiyer:AspNetPager></td>
</tr>
</table>
<div style="height:3em;text-align:center;"></div>
</div>
</div>
</div>
<div style="background-color:#fff;position:fixed;bottom:0;width:100%;height:3em;text-align:center;">
操作:<span style=" cursor:pointer; color:Blue;" onclick="seclectall(0)">全选</span>&nbsp;<span style=" cursor:pointer; color:Blue;" onclick="seclectall(1)">取消所选</span>
<input id="qybtn" type="reset" value="确认选择" onclick="qysel()" class="abtn" />
<input id="qkbtn" type="reset" value="清空选择" onclick="qksel()" class="abtn" />
</div>
</form>
</body></html>