mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 04:53:18 +01:00
68 lines
2.9 KiB
PHP
68 lines
2.9 KiB
PHP
<?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_info = array();
|
|
$phpgw_info["flags"] = array("currentapp" => "admin", "enable_nextmatchs_class" => True);
|
|
include("../header.inc.php");
|
|
|
|
$phpgw->template->set_file(array("list" => "applications.tpl",
|
|
"row" => "applications_row.tpl"));
|
|
|
|
if ($order) {
|
|
$ordermethod = "order by $order $sort";
|
|
} else {
|
|
$ordermethod = "order by app_title asc";
|
|
}
|
|
|
|
if (! $sort) {
|
|
$sort = "desc";
|
|
}
|
|
|
|
$phpgw->template->set_var("lang_installed",lang("Installed applications"));
|
|
$phpgw->template->set_var("bg_color",$phpgw_info["theme"]["bg_color"]);
|
|
$phpgw->template->set_var("th_bg",$phpgw_info["theme"]["th_bg"]);
|
|
|
|
$phpgw->template->set_var("sort_title",$phpgw->nextmatchs->show_sort_order($sort,"app_title",$order,"applications.php",lang("title")));
|
|
$phpgw->template->set_var("lang_edit",lang("Edit"));
|
|
$phpgw->template->set_var("lang_delete",lang("Delete"));
|
|
$phpgw->template->set_var("lang_enabled",lang("Enabled"));
|
|
|
|
$phpgw->db->query("select * from applications $ordermethod",__LINE__,__FILE__);
|
|
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 = " ";
|
|
|
|
$phpgw->template->set_var("tr_color",$tr_color);
|
|
$phpgw->template->set_var("name",$name);
|
|
$phpgw->template->set_var("edit",'<a href="' . $phpgw->link("editapplication.php","app_name=" . urlencode($phpgw->db->f("app_name"))) . '"> ' . lang("Edit") . ' </a>');
|
|
$phpgw->template->set_var("delete",'<a href="' . $phpgw->link("deleteapplication.php","app_name=" . urlencode($phpgw->db->f("app_name"))) . '"> ' . lang("Delete") . ' </a>');
|
|
|
|
if ($phpgw->db->f("app_enabled") != 0) {
|
|
$status = lang("Yes");
|
|
} else {
|
|
$status = "<b>" . lang("No") . "</b>";
|
|
}
|
|
$phpgw->template->set_var("status",$status);
|
|
|
|
$phpgw->template->parse("rows","row",True);
|
|
}
|
|
|
|
$phpgw->template->set_var("new_action",$phpgw->link("newapplication.php"));
|
|
$phpgw->template->set_var("lang_add",lang("add"));
|
|
|
|
$phpgw->template->pparse("out","list");
|
|
$phpgw->common->phpgw_footer();
|
|
?>
|