[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
bem2
/
panel
/
application
/
views
/
slides_v
/
list
/
[
Home
]
File: content.php
<?php defined('BASEPATH') or exit('No direct script access allowed');?> <div class="container-fluid mt-xl-50 mt-lg-30 mt-15 bg-white p-3"> <div class="row"> <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12"> <h4 class="mb-3"> Slayt Listesi <a href="javascript:void(0)" data-url="<?= base_url("slides/new_form"); ?>" class="btn btn-sm btn-outline-primary rounded-0 btn-sm float-right createSlideBtn"> <i class="fa fa-plus"></i> Yeni Ekle</a> </h4> </div><!-- END column --> <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12"> <form id="filter_form" onsubmit="return false"> <div class="d-flex flex-wrap"> <label for="search" class="flex-fill mx-1"> <input class="form-control form-control-sm rounded-0" placeholder="Arama Yapmak İçin Metin Girin." type="text" onkeypress="return runScript(event,'sliderTable')" name="search"> </label> <label for="clear_button" class="mx-1"> <button class="btn btn-sm btn-outline-danger rounded-0 " onclick="clearFilter('filter_form','sliderTable')" id="clear_button" data-toggle="tooltip" data-placement="top" data-title="Filtreyi Temizle" data-original-title="" title=""><i class="fa fa-eraser"></i></button> </label> <label for="search_button" class="mx-1"> <button class="btn btn-sm btn-outline-success rounded-0 " onclick="reloadTable('sliderTable')" id="search_button" data-toggle="tooltip" data-placement="top" data-title="Slider Ara"><i class="fa fa-search"></i></button> </div> </form> <table class="table table-hover table-striped table-bordered content-container sliderTable"> <thead> <th><i class="fa fa-reorder"></i></th> <th class="order"><i class="fa fa-reorder"></i></th> <th class="w50">#id</th> <th>Başlık</th> <th>Açıklama</th> <th>Dil</th> <th>Durumu</th> <th>Oluşturulma Tarihi</th> <th>Güncelleme Tarihi</th> <th>Paylaşım Tarihi</th> <th class="nosort">İşlem</th> </thead> <tbody> </tbody> </table> <script> function obj(d) { let appendeddata = {}; $.each($("#filter_form").serializeArray(), function() { d[this.name] = this.value; }); return d; } $(document).ready(function() { TableInitializerV2("sliderTable", obj, {}, "<?= base_url("slides/datatable") ?>", "<?= base_url("slides/rankSetter") ?>", true); }); </script> </div> </div> </div> <div id="slideModal"></div> <script> $(document).ready(function(){ $(document).on("click",".createSlideBtn",function(e){ e.preventDefault(); e.stopImmediatePropagation(); let url = $(this).data("url"); $('#slideModal').iziModal('destroy'); createModal("#slideModal","Yeni Slayt Ekle","Yeni Slayt Ekle",600,true,"20px",0,"#e20e17","#fff",1040,function(){ $.post(url,{},function(response){ $("#slideModal .iziModal-content").html(response); TinyMCEInit(); flatPickrInit(); $(".tagsInput").select2({ placeholder: 'Lütfen Seçim Yapınız.', width: 'resolve', theme: "classic", tags: false, tokenSeparators: [',', ' '], multiple: false }); }); }); openModal("#slideModal"); }); $(document).on("click",".btnSave",function(e){ e.preventDefault(); e.stopImmediatePropagation(); let url = $(this).data("url"); let formData = new FormData(document.getElementById("createSlide")); createAjax(url,formData,function(){ closeModal("#slideModal"); reloadTable("sliderTable"); }); }); $(document).on("click",".updateSlideBtn",function(e){ e.preventDefault(); e.stopImmediatePropagation(); $('#slideModal').iziModal('destroy'); let url = $(this).data("url"); createModal("#slideModal","Slayt Düzenle","Slayt Düzenle",600,true,"20px",0,"#e20e17","#fff",1040,function(){ $.post(url,{},function(response){ $("#slideModal .iziModal-content").html(response); TinyMCEInit(); flatPickrInit(); $(".tagsInput").select2({ placeholder: 'Lütfen Seçim Yapınız.', width: 'resolve', theme: "classic", tags: false, tokenSeparators: [',', ' '], multiple: false }); }); }); openModal("#slideModal"); }); $(document).on("click",".btnUpdate",function(e){ e.preventDefault(); e.stopImmediatePropagation(); let url = $(this).data("url"); let formData = new FormData(document.getElementById("updateSlide")); createAjax(url,formData,function(){ closeModal("#slideModal"); reloadTable("sliderTable"); }); }); }); </script>