'admin', 'enable_nextmatchs_class' => True ); include('../header.inc.php'); $p = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('admin')); $p->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"; } $p->set_var('lang_installed',lang('Installed applications')); $p->set_var('bg_color',$phpgw_info['theme']['bg_color']); $p->set_var('th_bg',$phpgw_info['theme']['th_bg']); $p->set_var('sort_title',$phpgw->nextmatchs->show_sort_order($sort,"app_title",$order,"/admin/applications.php",lang('title'))); $p->set_var('lang_edit',lang('Edit')); $p->set_var('lang_delete',lang('Delete')); $p->set_var('lang_enabled',lang('Enabled')); $phpgw->db->query("select * from phpgw_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 = " "; $p->set_var('tr_color',$tr_color); $p->set_var('name',$name); $p->set_var('edit',' ' . lang('Edit') . ' '); $p->set_var('delete',' ' . lang('Delete') . ' '); if ($phpgw->db->f('app_enabled') != 0) { $status = lang('Yes'); } else { $status = "" . lang('No') . ""; } $p->set_var('status',$status); $p->parse('rows','row',True); } $p->set_var('new_action',$phpgw->link('/admin/newapplication.php')); $p->set_var('lang_add',lang('add')); $p->pparse('out','list'); $phpgw->common->phpgw_footer(); ?>