File: cal_monthly.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 (63 lines) | stat: -rw-r--r-- 924 bytes parent folder | download
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<html>

<head>
<h3 align="center">Calendar Events</h3>
<h5 align="center">${date_range}</h5>
</head>

<body>

<py-open code="for m in events:"/>

<table class="table">
<theader>
<tr>
<th class="day_name">Sunday</th>
<th class="day_name">Monday</th>
<th class="day_name">Tuesday</th>
<th class="day_name">Wednesday</th>
<th class="day_name">Thursday</th>
<th class="day_name">Friday</th>
<th class="day_name">Saturday</th>
</tr>
</theader>
<tr>
<td class="month_name">${m[0]}</td>
</tr>

<py-open code="for n in m[1:]:"/>

<tr>

<py-open code="for e in n:"/>

<py-open code="if len(e[0]):"/>

<td class="date_cell"><span class="date_number">${e[0]}</span><br/>
<py-open code="for s in e[1]:"/>
<span class="event_item">${s}</span><br/>
<py-close/>

</td>

<py-clause code="else:"/>

<td class="date_cell">&nbsp</td>

<py-close/>

<py-close/>

</tr>

<py-close/>

</table>

<br/><br/><br/><br/>

<py-close/>

</body>

</html>