{config_load file="config.conf"} {include file="header.tpl"} {include file="navigation.tpl"}

ADMIN

Add News

{php} $results = mysql_query("SELECT * FROM `news` ORDER BY `newsID` DESC"); echo "

\n"; echo "

\n"; echo '' . "\n"; echo "

\n"; echo "
\n"; {/php}

Delete News

{php} echo "
\n"; while ($output = mysql_fetch_array($results)) { echo "
\n"; echo "

" .$output[title]. "

\n"; echo "

" .$output[description]. "

\n"; echo "

posted by: " .$output[user]. " @ " .$output[timestamp]. "

\n"; echo '

\n'; echo "
\n\n"; } echo '' . "\n"; echo "

\n"; echo "
"; if($_POST['perform']) { foreach($_POST as $id) { mysql_query("DELETE FROM news WHERE newsID='$id' LIMIT 1"); } } {/php}
{include file="footer.tpl"}