summaryrefslogtreecommitdiff
path: root/portal/admin/applications.php
blob: 6f10b163065ca23936154d41c6e1ba6ba2ac41b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
//
// List of StackBuilder applications
//
// $Id: applications.php,v 1.1 2007-04-26 13:23:08 dpage Exp $
//
class Admin_Applications extends Admin_BasePage {
    function __construct() {
        $this->content_template = 'admin/applications.html';
    }

    function Render() {
        $rs = $this->pg_query("SELECT id, platform, CASE WHEN active = TRUE THEN 'Yes' ELSE 'No' END AS active, version, name FROM applications ORDER BY id, version, name;");

        for ($i = 0, $rows = pg_num_rows($rs); $i < $rows; $i++) {
            $cons = pg_fetch_array($rs, $i, PGSQL_ASSOC);
            $this->tpl->setVariable($cons);
            $this->tpl->parse('cons_loop');
        }
    }
}
?>