diff options
Diffstat (limited to 'admin/news')
-rw-r--r-- | admin/news/functions.php | 2 | ||||
-rw-r--r-- | admin/news/index.php | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/admin/news/functions.php b/admin/news/functions.php index a098e46..f98c4e2 100644 --- a/admin/news/functions.php +++ b/admin/news/functions.php @@ -94,7 +94,7 @@ function EditNews($news_id){ global $db; echo "<select name=\"author\">"; - $result = $db->Query("SELECT `user_id`, `lastname` FROM `bayonet_users` WHERE `active` = 1 ORDER BY `username` ASC"); + $result = $db->Query("SELECT `user_id`, `lastname` FROM `bayonet_users` ORDER BY `username` ASC"); while(($row = $db->Fetch($result))!= false){ if($author_id == $row['user_id']) echo "<option value=\"{$row['user_id']}\" selected>{$row['lastname']}</option>"; diff --git a/admin/news/index.php b/admin/news/index.php index 2b7dca1..43baf81 100644 --- a/admin/news/index.php +++ b/admin/news/index.php @@ -16,7 +16,12 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ + ?> + <div style="text-align:left;"><h2>- Manage News</h2></div> + -Everything needs to be completed. +<?php + if(!defined("ADMIN_FILE")) { die("Access denied."); @@ -30,7 +35,6 @@ echo "<table class=\"panel\" width=\"100%\"> if(isset($_GET['edit'])){ $news_id = $_GET['edit']; EditNews($news_id); - return; } |