blob: d75082dd384cc8ddc56f6774ab0dcfee8992d636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
//
// List of organisations
//
// $Id$
//
class Admin_Orgs extends Admin_BasePage {
function __construct() {
$this->content_template = 'admin/orgs.html';
}
function Render() {
$rs = $this->pg_query("SELECT id,name,CASE WHEN approved THEN 'Yes' ELSE 'No' END AS approved,lastconfirmed FROM organisations ORDER BY approved,name,id");
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');
}
}
}
?>
|