D:
/
vhosts
/
kolejfm.com.tr
/
admin.kolejfm.com.tr
/
Views
/
Sarki
/
Upload File
HOME
@model List<kolejfm.Models.Sarki> @{ ViewBag.Title = "SarkiList"; Layout = "~/Views/Shared/_LayoutPage1.cshtml"; } <head> <script src="~/content/assets/js/jquery.min.js"></script> <link href="https://cdn.datatables.net/1.10.24/css/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css"> <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css" rel="stylesheet" type="text/css"> <!-- animate CSS--> <!-- Icons CSS--> <link href="~/content/assets/css/icons.css" rel="stylesheet" type="text/css" /> <!-- Sidebar CSS--> <!-- Custom Style--> <link href="~/content/assets/css/app-style.css" rel="stylesheet" /> </head> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-header"><i class="fa fa-table"></i> Şarki Listesi</div> <div class="card-header"> <a href="/Sarki/Sarki"><button data-placement="top" data-toggle="tooltip" title="Sarki Ekle" class="btn btn-primary btn-xs" style="font-size:x-small">Sarki Ekle</button></a> </div> <div class="card-body"> <div class="table-responsive"> <table id="example" class="table table-bordered" style="width:100%"> <thead> <tr> <th>No</th> <th>Şarki</th> <th>İndir</th> <th>Durum </th> <th>Sil </th> </tr> </thead> <tbody> @foreach (var item in Model) { <tr> <td>@item.Id</td> <td>@item.sarki1</td> @if (item.SarkiYol != null && item.SarkiYol != "") { if (item.SarkiYol.Split(';')[0].Length > 0) { <td> <a class="media" target=”_blank” href="http://admin.kolejfm.com.tr/\content\Album\@item.SarkiYol.Split(';')[0]">Ses Dosyası Aç</a> </td> } } else { <td> <a class="media" target=”_blank” href="">Dosya Bulunamadı</a> </td> } <td> @if (item.Aktif == true) { <a href="/Sarki/AktifPasifSarki/@item.Id" data-placement="top" data-toggle="tooltip" title="Tıklarsanız Üye Pasif Olacaktır." class="btn btn-success" style="font-size:x-small" onclick="return confirm(' Albüm Pasif Edeceksiniz emin misiniz?')">Aktif</a> } else if (item.Aktif == null) { <a href="/Sarki/AktifPasifSarki/@item.Id" data-placement="top" data-toggle="tooltip" title="Tıklarsanız Üye Aktif Olacaktır." class="btn btn-danger btn-xs" style="font-size:x-small" onclick="return confirm('Albüm Aktif Edeceksiniz emin misiniz?')">Pasif</a> } else { <a href="/Sarki/AktifPasifSarki/@item.Id" data-placement="top" data-toggle="tooltip" title="Tıklarsanız Üye Aktif Olacaktır." class="btn btn-danger btn-xs" style="font-size:x-small" onclick="return confirm('Albüm Aktif Edeceksiniz emin misiniz?')">Pasif</a> } </td> <td> <a href="/Sarki/sarkiSİl/@item.Id" @Session["sanaticiId"] class="btn btn-info waves-effect waves-light btn-sm" id="confirm-btn-alert" data-placement="top" data-toggle="tooltip" title="Sil" style="font-size:x-small">Sil</a> </td> </tr> } </tbody> </table> </div> </div> </div> </div> </div> @Scripts.Render("~/bundles/datatable") <script> $(document).ready(function () { //Default data table $('#default-datatable').DataTable(); var table = $('#example').DataTable({ lengthChange: true, buttons: ['copy', 'excel', 'pdf', 'print'] }); table.buttons().container() .appendTo('#example_wrapper .col-md-6:eq(0)'); }); </script>