. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 87.98.249.37 / Your IP : 216.73.216.208 [ Web Server : Microsoft-IIS/10.0 System : Windows NT NS3076740 10.0 build 17763 (Windows Server 2019) AMD64 User : IWPD_292(growel19p) ( 0) PHP Version : 8.3.12 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/growel.com/httpdocs/GrowelAdmin/ |
Upload File : |
<%@ Page Title="" Language="C#" MasterPageFile="~/GrowelAdmin/Admin.Master" AutoEventWireup="true" CodeBehind="ManageProducts.aspx.cs" Inherits="GrowelWeb.GrowelAdmin.ManageProducts" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script>
$(function () {
$("#sortable").sortable();
$("#sortable").disableSelection();
$("#sortable1").sortable();
$("#sortable1").disableSelection();
$("#order").click(function () {
saveOrder();
});
$("#order1").click(function () {
saveOrder1();
});
});
function saveOrder() {
$("#stat").fadeIn(100);
$("#stat").html("Please wait");
var selectedLanguage = new Array();
$('#sortable .sort').each(function () {
selectedLanguage.push($(this).attr("title"));
});
var bt = $("#prod").val();
//alert(bt);
// alert(selectedLanguage);
$.ajax({
url: 'sortproducts.aspx?products=' + selectedLanguage + '&p=' + bt,
dataType: "html",
type: 'POST', //I want a type as POST
data: "products=" + selectedLanguage + "&p=" + bt,
success: function (data) {
//$("#stat").html(data);
// alert("New Order is saved.")
$("#stat").html("New Order is saved.");
//location.reload();
}
});
}
function saveOrder1() {
$("#stat").fadeIn(100);
$("#stat").html("Please wait");
var selectedLanguage = new Array();
$('#sortable1 .sort').each(function () {
selectedLanguage.push($(this).attr("title"));
});
var bt = $("#prod").val();
//alert(bt);
// alert(selectedLanguage);
$.ajax({
url: 'sortproducts.aspx?products=' + selectedLanguage + '&p=' + bt,
dataType: "html",
type: 'POST', //I want a type as POST
data: "products=" + selectedLanguage + "&p=" + bt,
success: function (data) {
//$("#stat").html(data);
// alert("New Order is saved.")
$("#stat").html("New Order is saved.");
//location.reload();
}
});
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h3>Manage Sub Products Of <%=ptype %></h3>
<input type="hidden" name="prod" id="prod" value='<%=type %>' />
<div class="topbutton"><a href="AddProduct.aspx?type=<%=type %>" class="btn btn-default">Add New Product</a></div>
<div class="btn-danger status" visible="false" runat="server" id="status"></div>
<div class="row">
<div id="sortable">
<asp:Repeater ID="dtlstproducts" runat="server">
<ItemTemplate>
<div class="col-md-4 thumb sort" id='img<%# Container.ItemIndex + 1 %>' title='<%#Eval("product") %>'>
<h4><%#Eval("product_displayname") %></h4>
<div>
<a href="AddProduct.aspx?product=<%#Eval("product").ToString() %>&type=<%=type %>">View / Edit</a>
<a href='ManageSubProducts.aspx?product=<%#Eval("product") %>&type=<%=type %>'>Manage Subproducts</a>
<asp:LinkButton ID="lnkdelete" runat="server" Text="Delete" OnClientClick="return confirm('Delete Product? All Information Will Be Deleted.')" CommandArgument='<%#Eval("product") %>' OnCommand="lnkdelete_click"></asp:LinkButton></div></div>
</ItemTemplate>
</asp:Repeater>
</div> <br clear="all" />
<div class="btn btn-default" id="order">Save order</div>
<div class="clearfix" style="padding:10px;font-weight:bold;" id="stat"></div>
</div>
<br />
<h3>Manage Products Of <%=ptype %></h3>
<div class="row">
<div id="sortable1">
<asp:Repeater ID="dtlstproducts1" runat="server">
<ItemTemplate>
<div class="col-md-4 thumb sort" id='img<%# Container.ItemIndex + 1 %>' title='<%#Eval("product") %>'>
<h4><%#Eval("product_displayname") %></h4>
<div>
<a href="AddProduct.aspx?product=<%#Eval("product").ToString() %>&type=<%=type %>">View / Edit</a>
<%--<a href='ManageSubProducts.aspx?product=<%#Eval("product") %>&type=<%=type %>'>Manage Subproducts</a>--%>
<asp:LinkButton ID="lnkdelete" runat="server" Text="Delete" OnClientClick="return confirm('Delete Product? All Information Will Be Deleted.')" CommandArgument='<%#Eval("product") %>' OnCommand="lnkdelete_click"></asp:LinkButton></div></div>
</ItemTemplate>
</asp:Repeater>
</div> <br clear="all" />
<div class="btn btn-default" id="order1">Save order</div>
<div class="clearfix" style="padding:10px;font-weight:bold;" id="stat"></div>
</div>
</asp:Content>