2000-08-19 15:58:49 +02:00
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
|
|
|
* phpGroupWare - administration *
|
|
|
|
* http://www.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$ */
|
|
|
|
|
2000-09-05 20:36:13 +02:00
|
|
|
$phpgw_info["flags"]["currentapp"] = "admin";
|
2000-08-19 15:58:49 +02:00
|
|
|
include("../header.inc.php");
|
|
|
|
|
|
|
|
if ($order)
|
|
|
|
$ordermethod = "order by $order $sort";
|
|
|
|
else
|
|
|
|
$ordermethod = "order by app_title asc";
|
|
|
|
|
|
|
|
if (! $sort)
|
|
|
|
$sort = "desc";
|
|
|
|
|
|
|
|
echo '<p><table border="0" width="45%" align="center"><tr bgcolor="'
|
|
|
|
. $phpgw_info["theme"][bg_color] . '">'
|
2000-08-21 22:23:13 +02:00
|
|
|
. '<td align="center" colspan=4><b>' . lang_admin("Installed applications") . '</b></td></tr>'
|
|
|
|
. '<tr><td colspan=4> </td></tr>';
|
2000-08-19 15:58:49 +02:00
|
|
|
|
|
|
|
echo "<tr bgcolor=" . $phpgw_info["theme"]["th_bg"] . "><td>"
|
2000-08-19 16:05:56 +02:00
|
|
|
. $phpgw->nextmatchs->show_sort_order($sort,"app_title",$order,"applications.php",lang_admin("title")) . "</td><td>"
|
2000-08-19 15:58:49 +02:00
|
|
|
. lang_common("Edit") . "</td> <td> " . lang_common("Delete") . " </td> <td> "
|
2000-08-19 16:05:56 +02:00
|
|
|
. lang_admin("Enabled") . " </td> <td></tr>";
|
2000-08-19 15:58:49 +02:00
|
|
|
|
|
|
|
$phpgw->db->query("select * from applications $ordermethod");
|
|
|
|
|
|
|
|
while ($phpgw->db->next_record()) {
|
|
|
|
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
|
|
|
|
$name = $phpgw->db->f("app_title");
|
|
|
|
|
|
|
|
if (! $phpgw->db->f("app_title")) $name = $phpgw->db->f("app_name");
|
|
|
|
if (! $name) $name = " ";
|
|
|
|
|
|
|
|
echo "<tr bgcolor=$tr_color><td>$name</td><td width=5%><a href=\""
|
|
|
|
. $phpgw->link("editapplication.php","app_name=" . urlencode($phpgw->db->f("app_name")))
|
|
|
|
. "\"> " . lang_common("Edit") . " </a></td>";
|
|
|
|
|
|
|
|
echo "<td width=5%><a href=\"" . $phpgw->link("deleteapplication.php",
|
|
|
|
"app_name=" . urlencode($phpgw->db->f("app_name"))) . "\"> " . lang_common("Delete")
|
|
|
|
. " </a></td>";
|
|
|
|
|
|
|
|
echo "<td width=5%>";
|
|
|
|
if ($phpgw->db->f("app_enabled") == 1) {
|
|
|
|
echo lang_common("Yes");
|
|
|
|
} else {
|
|
|
|
echo "<b>" . lang_common("No") . "</b>";
|
|
|
|
}
|
|
|
|
echo "</td></tr>\n";
|
|
|
|
}
|
|
|
|
|
2000-09-03 22:25:31 +02:00
|
|
|
echo "</form></table><form method=POST action=\"".$phpgw->link("newapplication.php")."\">"
|
2000-08-19 15:58:49 +02:00
|
|
|
. "<table border=0 width=45% align=center><tr><td align=left><input type=\"submit\" "
|
|
|
|
. "value=\"" . lang_common("Add") . "\"></td></tr></table></form>";
|
|
|
|
|
|
|
|
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|