查看文件: setnoheader.php
大小: 2.71 KB
类型: application/octet-stream
<?php require('system/login.php'); ?> <?php require_once('../Connections/BE2.php'); ?> <?php if(isset($_GET['del_id']) && ( $_GET['del_id']>0 )){ mysql_select_db($database_BE2, $BE2); $delete_SQL = sprintf("delete from noheader WHERE nid='%s'",$_GET['del_id']); $Rt2 = mysql_query($delete_SQL, $BE2) or die(mysql_error()); } $colname_Rt2 = "-1"; if (isset($_GET['keyword'])) { $colname_Rt2 = $_GET['keyword']; } $picpath= "/products/"; mysql_select_db($database_BE2, $BE2); $sql=""; $query_Rt2 = "SELECT * FROM noheader where 1"; //$query_Rt2 = "SELECT * FROM adpage where pmid=0 $sql order by pindex"; $Rt2 = mysql_query($query_Rt2, $BE2) or die(mysql_error()); $row_Rt2 = mysql_fetch_assoc($Rt2); $totalRows_Rt2 = mysql_num_rows($Rt2); ?> <style type="text/css"> .q { color: #F00; } </style> <div class="row"> <div class="col-md-9"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><a href="main.php?act=editnoheader">新增隱藏<span class="font2">導航</span>頁面</a></h3> <div class="panel-options"> <a href="main.php?act=editnoheader"> <i class="fa-plus"></i> </a> </div> </div> <table cellspacing="1" class="table table-small-font table-bordered table-striped"> <tr> <th width="20" nowrap="nowrap" class="font2">ID</th> <th width="233" nowrap="nowrap" class="font2">隱藏頁面導航選單頁面</th> <th width="160" align="center" nowrap="nowrap" class="font2">關閉導航選單</th> <th width="160" align="center" nowrap="nowrap" class="font2">下關閉方登入</th> <th width="69" nowrap="nowrap" class="font2">刪除</th> </tr> <?php if($totalRows_Rt2>0){ do { ?> <tr> <td align="center" class="font3"><a href="main.php?act=editnoheader&id=<?= $row_Rt2['nid']; ?>"><img src="images/edit.png" alt="修改項目名稱" title="修改項目名稱" width="16" height="16" border="0" /></a></td> <td align="left" class="font3"><a href="/<?=$row_Rt2['nname']; ?>.html"><?=$row_Rt2['nname']; ?></a></td> <td align="left" class="font3"><?=$row_Rt2['ncknav']; ?></td> <td align="left" class="font3"><?=$row_Rt2['nckreg']; ?></td> <td align="center" class="font3"><a href="javascript:if(confirm('確實要刪除嗎?'))location='main.php?act=setnoheader&del_id=<?= $row_Rt2['nid']?>'"><img src="images/del.png" alt="刪除項目" width="16" height="16" border="0"/></a></td> </tr> <?php } while ($row_Rt2 = mysql_fetch_assoc($Rt2)); } ?> </table> <span class="q"> 限主頁根目錄</span> </div> </div> </div> <?php mysql_free_result($Rt2); ?>
保存
取消
返回文件列表