Sindbad~EG File Manager
<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" enableEventValidation="false" ClientIDMode="Static" ValidateRequest="false" AutoEventWireup="true" CodeFile="Urunler.aspx.cs" Inherits="Admin_Default2" %>
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<%-- <link rel="stylesheet" href="referanslar/css/stylesheet.css" type="text/css" media="all" />--%>
<!--CollectionPager-->
<style type="text/css">
.Sayfalama a:link, .Sayfalama a:visited, .Sayfalama a:active
{
background-image:url('images/sayfabg.jpg');
border:solid 1px #e4e4e4;
padding:3px 5px 3px 5px;
margin:1px;
font-size:9pt;
color:#2f2f2f;
font-weight:bold;
text-decoration:none;
font-family:Trebuchet MS;
cursor:pointer;
}
.Sayfalama a:hover
{
background-image:url('images/sayfabg2.jpg');
border:solid 1px #e4e4e4;
padding:3px 5px 3px 5px;
font-size:9pt;
color:White;
font-family:Trebuchet MS;
cursor:pointer;
}
.Sayfalama INPUT
{ background-image:url('images/sayfabg.jpg');
border:solid 1px #e4e4e4;
padding:3px 5px 3px 5px;
margin:1px;
font-size:9pt;
color:#2f2f2f;
font-weight:bold;
font-family:Trebuchet MS;
cursor:pointer;
}
.Sayfalama span
{
margin:1px;
}
.Sayfalama B
{
background-image:url('images/sayfabg2.jpg');
border:solid 1px #e4e4e4;
padding:3px 5px 3px 5px;
font-size:9pt;
color:White;
font-family:Trebuchet MS;
cursor:pointer;
}
</style>
<link rel="stylesheet" href="referanslar/css/landscape.css" type="text/css" media="all" />
<script type="text/javascript" src="referanslar/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
function sil(id) {
console.log(id);
var res = confirm("Silmek istediğinizden eminmisiniz ?");
if (res) {
console.log(res);
$.ajax({
type: "POST",
url: "Urunler.aspx/Sil",
data: "{id:" + id + "}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(res) {
console.log(res.d);
if (res.d == true) {
$("tr[id=" + id + "]").remove();
} else {
alert("İşlem gerçekleşmedi.");
}
},
error: function(res) {
alert("hata oluştu: " + res.d);
}
});
}
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class=" row show-grid">
<div class="col-lg-12 list-group-item active" style="font-weight: bold; text-align: left;">
<asp:Literal ID="ltrUrunlerAltMenuAdi" runat="server"></asp:Literal>|
<a href="YeniUrunKategoriEkleme.aspx"class="label label-danger"></a>
<button id="btnYeniUrunEkleme" runat="server" OnServerClick="btnYeniUrunEkleme_OnServerClick" class="btn btn-default btn-sm"><i class="fa fa-refresh" > </i>Yeni Ürün Ekle</button>
<%-- --%>
</div>
</div>
<!-- Matter -->
<div style="margin-top: 5px;">
<div class="container">
<!-- Table -->
<div class="row">
<div class="col-md-12">
<div class="widget">
<div class="widget-head">
<div class="pull-left">
Alt Kategori Listesi
</div>
<div class="widget-icons pull-right">
<a href="#" class="wminimize"><i class="fa fa-chevron-up"></i></a>
</div>
<div class="clearfix">
</div>
</div>
<div class="widget-content">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Resmi
</th>
<th>Adı
</th>
<th>
Kategori Adı
</th>
<th>Sıra
</th>
<th>Ekle - Düzelt - Sil</th>
</tr>
</thead>
<tbody>
<%-- Repeater --%>
<asp:Repeater ID="rptUrunler" runat="server">
<ItemTemplate>
<tr id="<%# Eval("id") %>">
<td align="left" width="46">
<img src="../upload/urunler/<%#Eval("kapak") %>" width="45" height="45"/>
</td>
<td align="left" style="padding-top: 20px;" width="437">
<%#Eval("adi") %>
</td>
<td align="center" style="padding-top: 20px;" width="413">
<%#Eval("katadi") %>
</td>
<td align="center" style="padding-top: 20px;" width="70">
<%#Eval("Siralar") %>
</td>
<td align="center" style="padding-top: 20px;" width="150">
<%-- <a href="UrunKategoriEdit.aspx?urunid=<%#Eval("id") %>&altkatid=<%#altkatid %>&katid=<%#katid %>" class="btn btn-xs btn-warning"> <i class="fa fa-pencil"></i></a>
<input type="button" id="btnSil" class="btn btn-xs btn-danger" style="width: 24px;height: 24px;" value="X" onclick="sil(<%# Eval("id") %>);" />--%>
<a href="UrunEdit.aspx?altkatid=<%#urunaltkatid %>&katid=<%#urunkatid %>&urunid=<%#Eval("id") %>" class="btn btn-xs btn-warning"> <i class="fa fa-pencil"></i></a>
<input type="button" id="btnUrunSil" class="btn btn-xs btn-danger" style="width: 24px;height: 24px;" value="X" onclick="sil(<%# Eval("id") %>);" />
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
<%-- Repeater son --%>
</tbody>
</table>
<div class="widget-foot">
<div style="width:1265px; float:left; font-size:13px;">
<cc1:CollectionPager ID="pagerReferans" PageSize="15" runat="server" ControlCssClass="Sayfalama"
BackNextLocation="Split" BackText="&nbsp;<<" FirstText="İlk" LabelText="&nbsp; Sayfa : &nbsp;"
LastText="Son" NextText="&nbsp;>>" QueryStringKey="Sayfa"
ResultsFormat="Sayfa {0}-{1} (of {2})" BackNextDisplay="HyperLinks" ResultsLocation="None" MaxPages="1000" SectionPadding="10" SliderSize="10">
</cc1:CollectionPager></div>
<div class="clearfix">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Matter ends -->
<script>
jQuery(document).ready(function () {
jQuery("#container").css("opacity", "1");
});
</script>
<%--<link rel="stylesheet" href="referanslar/js/chosen/chosen.css" />--%>
<script src="referanslar/js/chosen/chosen.jquery.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(".chzn-select").chosen();
</script>
</asp:Content>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists