Gestionnaire de fichiers - Editer - /home/par6413/jnfhgf/admin/Metalar_v1/index.php
Arrière
<?php require_once '../../include/connection.php'; require_once '../include/functions.php'; include_once '../include/head.php'; require_once '../include/menu.php'; require_once '../include/modul.php'; if(isset($_GET["page"])){ $page=$_GET["page"]; }else{ $page = 1; $page_number = 1; } ?> <body> <?php if($_SESSION["kullanici_yetki"] < 1){header("location:/");} ?> <div class="ui container" style="min-height:92vh; padding-top:25px;"> <div class="ui red segment"> <div class="ui two column grid"> <div class="column"> <h2 class="ui red header"><!--<h2 class="ui red header aligned right">--> <i class="fa fa-file-o"></i> <div class="content">Meta Listesi</div> </h2> </div> <div class="column"> <a href="new/"> <h4 class="ui red header aligned right" style="padding-top:10px;"> <i class="fa fa-plus-circle"></i> <div class="content">Meta Ekle</div> </h4> </a> </div> </div> <table class="ui celled table"> <thead> <tr> <th>Sayfa</th> <th>Keywords</th> <th>description</th> <th>Sıra</th> <th>Durum</th> </tr> </thead> <tbody> <?php $number_of_per_page = 40; $start_from = ($page-1) * $number_of_per_page; $dosya = $conn->query("SELECT * FROM Metalar_v1 order by sira desc LIMIT {$start_from},{$number_of_per_page}"); if($dosya){ while($dosyalar = $dosya->fetch_assoc()){ echo "<tr>"; echo "<td>".$dosyalar["sayfa"]."</td>"; echo "<td>".$dosyalar["keywords"]."</td>"; echo "<td>".$dosyalar["description"]."</td>"; echo "<td>".$dosyalar["sira"]."</td>"; echo "<td>".$dosyalar["durum"]."</td>"; echo "<td>"; echo "<div class=\"ui three column grid\">"; echo "<div class=\"column\"><a href=\"view/".$dosyalar["Id"]."\"><i class=\"fa fa-info-circle fa-lg \"></i></a></div>"; echo "<div class=\"column\"><a href=\"edit/".$dosyalar["Id"]."\"><i class=\"fa fa-edit fa-lg\"></i></a></div>"; echo "<div class=\"column\"><a href=\"delete/".$dosyalar["Id"]."\"><i class=\"fa fa-trash fa-lg\"></i></a></div>"; echo "</div>"; echo "</td>"; echo "</tr>"; } } ?> </tbody> <tfoot> <tr><th colspan="8"> <div class="ui right floated pagination menu"> <?php $slider_toplam = $conn->query("SELECT * FROM Metalar_v1"); $total_records=mysqli_num_rows($slider_toplam); $total_pages = ceil($total_records / $number_of_per_page); if($page != 1){ $pre_page = $page-1; echo "<a class=\"icon item\" href=\"?page=".$pre_page."\"><i class=\"fa fa-caret-left\"></i></a>"; } for ($i=1; $i<=$total_pages; $i++) { if($i == $page){ echo "<a class=\"item\" style=\"color:#ff0000;\"><b><u>".$i."</u></b> </a>"; }else{ echo "<a href=\"?page=".$i."\" class=\"item\">".$i."</a>"; } } if($total_pages != $page){ $next_page = $page+1; echo "<a class=\"icon item\" href=\"?page=".$next_page."\"><i class=\"fa fa-caret-right\"></i></a>"; } ?> </div> </th> </tr></tfoot> </table> </div> </div> <?php include_once '../include/food.php';?> <script> $( document ).ready(function(){ $('.ui.dropdown').dropdown(); $("#feed").sidebar({overlay: true}).sidebar('attach events','.ui.launch.button'); }); </script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 5.5.38 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages