File: tree.html

package info (click to toggle)
albatross 1.36-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,472 kB
  • ctags: 1,822
  • sloc: python: 7,437; makefile: 146; sh: 132
file content (35 lines) | stat: -rw-r--r-- 1,110 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
32
33
34
35
<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" ellipsis>
 <tr>
 <al-for iter="i" expr="range(n.depth())">
  <td width="16" nowrap></td>
 </al-for>
 <al-if expr="n.node_type() == 1">
  <td width="16" nowrap>
   <al-input type="image" src="/alsamp/images/ellipsis.png" width="13" height="13" border="0" treeellipsis="n">
  </td>
 <al-else>
  <td width="16" nowrap>
   <al-if expr="n.has_children()">
     <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>
   </al-if>
  </td>
  <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>
 </al-if>
 </tr>
</al-tree>
</table>
<al-input type="submit" name="submit" value="Submit">
</al-form>
</body>
</html>