-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroups.php
44 lines (41 loc) · 834 Bytes
/
groups.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
include('./mini.inc.php');
include('App.php');
$app->header('Groups');
?>
<!-- ==== DISPLAY ==================== -->
<BR>
<TABLE id="OUT" class="DEFSHOW" hidden>
<THEAD>
<TR><TH>name</TH><TH>type</TH><TH>all_on</TH><TH>any_on</TH>
</TR>
</THEAD>
<TBODY>
</TBODY>
</TABLE>
<!-- ==== TEMPLATE =================== -->
<TEMPLATE id='TPL'>
{{#rows}}
<TR id="{{id}}">
<TD class= "name"><A href="./group.php?id={{id}}&title={{name}}">{{name}}</A></TD>
<TD>{{type}}</TD>
<TD>{{state.all_on}}</TD>
<TD>{{state.any_on}}</TD>
</TR>
{{/rows}}
{{^rows}}
<TR><TD colspan="5" class="NOENTRY">Nope !</TD></TR>
{{/rows}}
</TEMPLATE>
<!-- ==== SCRIPT ==================== -->
<SCRIPT>
var WSPATH='/groups';
var WSMETH='GET';
$(function() {
// ZIG.setDebug(true);
ZIG.call(WSMETH,WSPATH,ajs.arrayTPLout);
});
</SCRIPT>
<?
$app->tailer();
?>