egroupware/admin/headlines.php

47 lines
2.2 KiB
PHP
Raw Normal View History

2000-08-18 05:24:22 +02:00
<?php
/**************************************************************************\
* phpGroupWare - administration *
* http://www.phpgroupware.org *
* Written by Joseph Engo <jengo@phpgroupware.org> *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
$phpgw_info["flags"]["currentapp"] = "admin";
2000-08-18 05:24:22 +02:00
include("../header.inc.php");
2000-09-07 22:49:55 +02:00
echo "<p><center>" . lang("Headline Sites") . "<br><table border=0 width=65%>"
. "<tr bgcolor=" . $theme["th_bg"] . "><td>" . lang("Site") . "</td>"
. "<td> " . lang("Edit") . " </td> <td> " . lang("Delete") . " </td> <td> "
. lang("View") . " </td></tr>";
2000-08-18 05:24:22 +02:00
$phpgw->db->query("select con,display from news_site order by "
. "display");
while ($phpgw->db->next_record()) {
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
$display = $phpgw->db->f("display");
if (! $display)
$display = '&nbsp;';
echo "<tr bgcolor=$tr_color><td>$display</td>"
. "<td width=5%><a href=\"".$phpgw->link("editheadline.php",
2000-09-07 22:49:55 +02:00
"con=".$phpgw->db->f("con"))."\"> ".lang("Edit")." </a></td>";
2000-08-18 05:24:22 +02:00
echo "<td width=5%><a href=\"".$phpgw->link("deleteheadline.php",
2000-09-07 22:49:55 +02:00
"con=".$phpgw->db->f("con"))."\"> ".lang("Delete")." </a></td>";
2000-08-18 05:24:22 +02:00
echo "<td width=5%><a href=\"".$phpgw->link("viewheadline.php",
2000-09-07 22:49:55 +02:00
"con=".$phpgw->db->f("con"))."\"> ".lang("View")." </a> </td></tr>\n";
2000-08-18 05:24:22 +02:00
}
2000-09-03 22:25:31 +02:00
echo "<form method=POST action=\"".$phpgw->link("newheadline.php")."\">"
2000-09-07 22:49:55 +02:00
. "<tr><td colspan=\"5\"><input type=\"submit\" value=\"".lang("Add")
2000-08-18 05:24:22 +02:00
. "\"></td></tr></form></table></center>";
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
?>