mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 23:58:54 +01:00
Started app the application enabler/disabler
This commit is contained in:
parent
7b8853c760
commit
21a934d1c7
65
admin/applications.php
Normal file
65
admin/applications.php
Normal file
@ -0,0 +1,65 @@
|
||||
<?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$ */
|
||||
|
||||
$phpgw_flags["currentapp"] = "admin";
|
||||
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] . '">'
|
||||
. '<td align="center">' . lang_admin("Installed applications") . '</td></tr>';
|
||||
|
||||
echo "<tr bgcolor=" . $phpgw_info["theme"]["th_bg"] . "><td>"
|
||||
. $phpgw->nextmatchs->show_sort_order($sort,"app_title",$order,"applications.php",lang_common("title")) . "</td><td>"
|
||||
. lang_common("Edit") . "</td> <td> " . lang_common("Delete") . " </td> <td> "
|
||||
. lang_common("Enabled") . " </td> <td></tr>";
|
||||
|
||||
$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";
|
||||
}
|
||||
|
||||
echo "</form></table><form method=POST action=\"newapplication.php\">"
|
||||
. $phpgw->session->hidden_var()
|
||||
. "<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");
|
@ -21,6 +21,7 @@
|
||||
<p>
|
||||
<br><a href="<?php echo $phpgw->link("accounts.php") . "\">" . lang_admin("User accounts"); ?></a>
|
||||
<br><a href="<?php echo $phpgw->link("groups.php") . "\">" . lang_admin("User groups"); ?></a>
|
||||
<br><a href="<?php echo $phpgw->link("applications.php") . "\">" . lang_admin("Applications"); ?></a>
|
||||
<p><a href="<?php echo $phpgw->link("currentusers.php") . "\">" . lang_admin("View sessions"); ?></a>
|
||||
<br><a href="<?php echo $phpgw->link("accesslog.php") . "\">" . lang_admin("View Access Log"); ?></a>
|
||||
<p><a href="<?php echo $phpgw->link("headlines.php") . "\">" . lang_admin("Headline Sites"); ?></a>
|
||||
|
Loading…
Reference in New Issue
Block a user