File: tree.html

package info (click to toggle)
albatross 1.35-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,328 kB
  • ctags: 1,702
  • sloc: python: 6,964; makefile: 139; sh: 123
file content (31 lines) | stat: -rw-r--r-- 930 bytes parent folder | download | duplicates (5)
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
<html>
<head><title>Here is a Tree</title></head>
<body bgcolor="white">
<h1>Here is a Tree</h1>
<al-form method="post">
<table cellspacing="0" cellpadding="0">
<al-tree iter="n" expr="tree" lazy>
 <tr>
 <al-for iter="i" expr="range(n.depth())">
  <td width="16" nowrap></td>
 </al-for>
 <al-if expr="n.has_children()">
  <td width="16" nowrap>
   <al-if expr="n.is_open()">
    <al-input type="image" src="/alsamp/images/open.png" width="13" height="13" border="0" treefold="n">
   <al-else>
    <al-input type="image" src="/alsamp/images/close.png" width="13" height="13" border="0" treefold="n">
   </al-if>
  </td>
 <al-else>
  <td width="16" nowrap></td>
 </al-if>
 <td><al-input type="checkbox" treeselect="n"></td>
 <td colspan="<al-value expr="n.span()">" width="100%" nowrap><al-value expr="n.value().name"></td>
 </tr>
</al-tree>
</table>
<al-input type="submit" name="submit" value="Submit">
</al-form>
</body>
</html>