aboutsummaryrefslogtreecommitdiff
path: root/admin/news
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-22 20:58:08 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-22 20:58:08 -0500
commit6c42f30a0424cbf1c1af63f21d7f5074a4653c7a (patch)
tree9c892117e219e532951e6761a5211cfc22711fda /admin/news
parent61148024a245a7bd3cdc9f978791b510cde40961 (diff)
downloadbayonetcms-6c42f30a0424cbf1c1af63f21d7f5074a4653c7a.tar.gz
(OC) tried fixing the insert in NewAdmin(), no luck
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@394 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'admin/news')
-rw-r--r--admin/news/functions.php2
-rw-r--r--admin/news/index.php6
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;
}