File: pbpl-view.xy

package info (click to toggle)
bitpim 0.9.08.dfsg.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 24,228 kB
  • ctags: 45,773
  • sloc: python: 191,894; cpp: 2,074; perl: 600; ansic: 343; sh: 185; makefile: 76; sed: 1
file content (29 lines) | stat: -rw-r--r-- 563 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
Current View
<html>
<head></head>
<body>

<py-line>rownum=-1</py-line>

<table class="table">
<tr class="row">
<py-open>for h in currentcolumns:</py-open>
<th class="columnheader">${h}</th>
<py-close/>
</tr>

<py-open>for key in rowkeys:</py-open>
<py-line>rownum+=1</py-line>
<py-line>entry=data[key]</py-line>
<tr class="row" class="${('roweven', 'rowodd')[rownum%2]}">
<py-open>for h in currentcolumns:</py-open>
<td class="item" class="${h}">${phonebook.htmlify(phonebook.getdata(h, entry, " "))}</td>
<py-close/>
</tr>
<py-close/>


</table>

</body>
</html>