<?php include_once 'database.php'; $news = getallnews(); ?> <html> <head><title>PH directory - News Management</title></head> <body> <a href="index.php?page=news-add"><button class="btn btn-primary">Add Entry</button></a> <table class="table"> <thead> <tr> <td>News No.</td> <td>News Type</td> <td>Title</td> <td>Information</td> <td>Website</td> <tr> </thead> <?php foreach ($news as $a) { ?> <tr> <td><?php echo $a['newsID']; ?> </td> <td><?php echo $a['newsType'];
<?php session_start(); require_once '../php/db.php'; require_once '../php/function.php'; $data = getallnews(); ?> <!DOCTYPE html> <html lang="zh-TW"> <head> <meta charset="utf-8"> <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame Remove this if you use the .htaccess --> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>後台管理</title> <meta name="description" content=""> <meta name="author" content="kevin"> <meta name="viewport" content="width=device-width; initial-scale=1.0"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" href="../css/style.css"> <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <script src="../js/admin.js"></script> <body> <?php if (isset($_SESSION['is_mlogin']) && $_SESSION['is_mlogin'] == TRUE) { ?>