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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head><title>Table View</title></head>
<body bgcolor="#ddeeff">
<al-form method="post">
<font size="+1"><b>Table:</b></font>
<al-select name="table" size="1" optionexpr="tables"/>
<al-input type="submit" name="changetable" value="View Table">
</al-form>
<font size="+1"><b>Table Contents</b></font>
<al-expand name="box">
<al-if expr="len(rows) == 0">
<font color="red">There are no rows.</font>
<al-else>
<table width="100%">
<tr align="left" bgcolor="#cccccc">
<al-for iter="d" expr="desc"><th><al-value expr="d.value()[0]"></th>
</al-for>
</tr>
<al-for iter="r" expr="rows" pagesize="25">
<al-if expr="r.count() & 1"><tr><al-else><tr bgcolor="#eeeeee"></al-if>
<al-for iter="d" expr="desc"><td nowrap><al-value expr="r.value()[d.count()]"></td>
</al-for>
</tr>
</al-for>
</table>
</al-if>
</al-expand>
<al-if expr="rows">
Rows <al-value expr="r.start() + 1">..<al-value expr="r.index()">:
<al-if expr="r.has_prevpage()">
<al-a prevpage="r">Prev</al-a>
<al-if expr="r.has_nextpage()"> | </al-if>
</al-if>
<al-if expr="r.has_nextpage()">
<al-a nextpage="r">Next</al-a>
</al-if>
</al-if>
<al-form method="post">
<al-input type="submit" name="back" value="Back">
</al-form>
</body>
</html>
|