-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroup.php
47 lines (42 loc) · 1.1 KB
/
group.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
45
46
47
<?php
include('./mini.inc.php');
include('App.php');
$title=T::gp('title','<unset>');
$app->header("Group $title");
?>
<!-- ==== DISPLAY ==================== -->
<BR>
<DIV id="OUT" class="DEFSHOW" hidden>
</DIV>
<!-- ==== TEMPLATE =================== -->
<TEMPLATE id='TPL'>
<FIELDSET class="fset ro">
<LEGEND>Group information</LEGEND>
<LABEL>Name :</LABEL><INPUT readonly id="name" value="{{name}}"><BR>
<LABEL>All On :</LABEL><INPUT readonly id="all_on" value="{{state.all_on}}"><BR>
<LABEL>Any On :</LABEL><INPUT readonly id="any_on" value="{{state.any_on}}"><BR>
<LABEL>Type :</LABEL><INPUT readonly id="type" value="{{type}}"><BR>
<LABEL>Scenes :</LABEL><SPAN>
{{#scenes}}
<A href="./scene.php?id={{.}}">{{.}}</A>
{{/scenes}}
</SPAN><BR>
<LABEL>Lights :</LABEL><SPAN>
{{#lights}}
<A href="./light.php?id={{.}}">{{.}}</A>
{{/lights}}
</SPAN><BR>
</FIELDSET>
</TEMPLATE>
<!-- ==== SCRIPT ==================== -->
<SCRIPT>
var WSPATH='/groups/'+DEVID;
var WSMETH='GET';
$(function() {
ZIG.setDebug(true);
ZIG.call(WSMETH,WSPATH,ajs.TPLout);
});
</SCRIPT>
<?
$app->tailer();
?>