📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv4.demodesign.com.tr
/
wpanel
/
islemler
📝
video.php
← Geri Dön
<?php if(!defined("Hacking")){die("404 Not Found"); } $categorys =$Modul->getCategory(8); $cat = ''; if(isset($_GET['category']) && !empty($_GET['category']) && $_GET['category']!='Tümü'){ $cat = $_GET['category']; } $catID =0; if (isset($_GET['catid'])){ $catID = $_GET['catid']; } ?> <div id="tour-11" class="header-content"> <h2><i class="fa fa-video-camera"></i>Video Listesi</h2> </div> <form action="" method="get" class="hidden"> <input type="text" name="do" value="video"> <input type="text" name="category" id="categoryName"> <input type="text" name="catid" id="categoryId"> <input type="submit" id="sorgula"> </form> <div class="body-content animated fadeIn"> <div class="panel rounded shadow"> <div class="panel-body"> <div class="row"> <div class="col-md-2 text-left"> <button class="btn btn-danger" onclick="topluSilme('video', 'Videolardan','video');">Sil</button> </div> <div class="col-md-10"> <div class="pull-right"> <div class="btn-group"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="catSelectText"><?php if($cat!=''){print $cat;} else { print 'Kategori Seç';} ?><span class="caret"></span> </button> <ul class="dropdown-menu selectCategory" role="menu"> <li data="0" class=""><a href="#">Tümü</a></li> <?php foreach ($categorys as $category) { ?> <li data="<?=$category['sayfa_id']?>" class="<?php if($category['sayfa_baslik']==$cat){print 'active';}?>"><a href="#"><?=$category['sayfa_baslik']?></a></li> <?php } ?> </ul> </div> </div> </div> </div> <table id="table" class="table" data-pagination="true" data-search="true" data-pagination-v-align="bottom" data-click-to-select="true" data-toggle="table" data-page-list="[10, 25, 50, 100, 150, 200]"> <thead> <tr> <th data-checkbox="true"></th> <th data-visible="false">id</th> <th data-class="expand" class="text-center">Video Resmi</th> <th data-hide="phone">Başlık</th> <th data-hide="phone">Kategori</th> <th>Gizle/Göster</th> <th>Sırala</th> <th data-hide="phone,tablet" style="min-width: 200px" class="text-center">İşlem</th> </tr> </thead> <tbody> <?php if(@$_GET["islev"] != ""){ $db->query("UPDATE video SET sira='0' WHERE id='".$_GET["id"]."'"); if($_GET["islev"] == "asagi"){ $yeni_sira = $_GET["sira"] + 1; }elseif($_GET["islev"] == "yukari"){ $yeni_sira = $_GET["sira"] - 1; } $db->query("UPDATE video SET sira='".$_GET["sira"]."' WHERE sira='".$yeni_sira."'"); $db->query("UPDATE video SET sira='".$yeni_sira."' WHERE sira='0'"); } /*$video = $db->select('video') ->orderby('id','DESC') ->run();*/ //$video = $Modul->sayfalamastart($kayitsayisi,'video'); $video = $db->select('video') ->orderby('sira','ASC') ->run(); if (isset($catID) && $catID !=0 ){ $datam =[]; foreach ($video as $ref) { $bol = explode(' ', $ref['kategori']); foreach ($bol as $item) { if ($catID ==0 || $item == $catID){ array_push($datam,$ref); } } } $video = $datam; } foreach ($video as $key => $videoRow){ ?> <tr> <td></td> <td><?=$videoRow['id']?></td> <td class="text-center" style="width: 2%"><img src="../upload/<?php echo $videoRow['videoResim']; ?>" height="160" width="160" class="mt-5 mb-5"/></td> <td><?php echo $videoRow['videoBaslik']; ?></td> <td > <?php $kategoriler = explode(' ', $videoRow['kategori']); $array = []; foreach ($kategoriler as $item) { foreach ($categorys as $cat) { if ($item == $cat['sayfa_id']){ array_push($array, $cat['sayfa_baslik']); } } } echo implode(' - ',$array); ?> </td> <td> <label class="switch"> <input type="checkbox" id="toggle[<?=$videoRow['id']?>]" name="toggle" <?php if($videoRow['aktifkontrol']=="aktif"){ print "checked"; } ?> onclick="aktifkontrol(<?=$videoRow['id']?>,'video');"> <span class="slider round"></span> </label> </td> <td align="center"> <?php if($videoRow["sira"] != "1"){?><a href="index.php?do=video&islev=yukari&id=<?=$videoRow["id"]?>&sira=<?=$videoRow["sira"]?>"><i class="fa fa-arrow-up fa-2x" style="color:green;"></i></a> <?php } ?> <?php if($videoRow["sira"] != Count($video)){?><a href="index.php?do=video&islev=asagi&id=<?=$videoRow["id"]?>&sira=<?=$videoRow["sira"]?>"><i class="fa fa-arrow-down fa-2x" style="color:red;"></i></a><?php } ?> </td> <td class="text-center"> <a href="index.php?do=video&duzenle=<?php echo $videoRow['id']; ?>" class="btn btn-sm btn-primary btn-s btn-push"><i class="fa fa-edit"></i> Videoyu Düzenle</a> <a href="#" onclick="itemsil(<?php echo $videoRow['id']?>,'','<?php echo $videoRow['videoBaslik']?>','video');" class="btn btn-sm btn-danger btn-s btn-push"><i class="fa fa-trash"></i> Videoyu Sil</a> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <?php $Modul->sayfalama("video","video", $kayitsayisi); //sayfa do , tablo adı , limit , sayfa_type (tablo sayfa değilse girme) ?> </div> <script> $(document).ready(function() { $('#example').DataTable(); } ); </script> <script> $(document).ready(function(){ $('.selectCategory li').click(function () { $('li').removeClass("active"); $(this).addClass("active"); var selectText = $('.selectCategory li.active a').html(); var selectID = $('.selectCategory li.active').attr('data'); $('#catSelectText').html(selectText); $('#categoryName').val(selectText); $('#categoryId').val(selectID); $('#sorgula').click(); }); }); </script>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula