File: abook_lookup.t

package info (click to toggle)
prayer 1.3.4-dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,416 kB
  • sloc: ansic: 43,089; makefile: 812; sh: 451; perl: 166
file content (102 lines) | stat: -rw-r--r-- 2,898 bytes parent folder | download | duplicates (6)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
%# $Cambridge: hermes/src/prayer/templates/cam/abook_lookup.t,v 1.2 2008/09/18 19:52:00 dpc22 Exp $
%#
% CALL header
% CALL toolbar
% CALL container_start
% CALL status
% CALL submitenter_js
% CALL abook_lookup_search
<form method="post" accept-charset="UTF-8"
 enctype="multipart/form-data" action="<% abook_lookup |s %>">
<table class="banner">
<tr>
<td class="nav_l">
% CALL abook_lookup_nav_1
</td>
% IFNEQ $count 1
<td class="nav_c">
 <strong>Search Results (<% $count |h %> entries)</strong></td>
% ELSE
<td class="nav_c">
 <strong>Search Results (1 entry)</strong></td>
% ENDIF
<td class="nav_r">
 <table><tr><td>&nbsp;</td></tr></table>
</td>
</tr></table>
<div class="rule"></div>
<table class="altrows">
<tr class="t_title">
<td style="width: 3%">#</td>
<td style="width: 5%">Userid</td>
<td style="width: 20%">Name (Registered Name)</td>
<td style="width: 42%">Primary Affiliation</td>
% IFDEF $have_cancelled
<td style="width: 10%">Cancelled?</td>
% ENDIF
% IFDEF $have_phone
<td style="width: 10%">Phone</td>
% ENDIF
<td style="width: 10%">Addressbook</td>
<td style="width: 10%" align="center">
% IFDEF $g_have_draft
<input type="submit" name="sub_add_address" value="Add marked to draft" />
% ELSE
&nbsp;
% ENDIF
</td></tr>
% FOREACH $i @list
%   IFDEF $i->even_row
<tr class="t_even_row">
%   ELSE
<tr class="t_odd_row">
%   ENDIF
<td valign="top"><strong><% $i->offset |h %>.</strong></td>
<td valign="top"><% $i->userid |h %></td>
%   IFDEF ${i->registered_name}
<td valign="top"><% $i->display_name |h %>
<br />(<% $i->registered_name |h %>)</td>
%   ELSE
<td valign="top"><% $i->display_name |h %></td>
%   ENDIF
<td valign="top"><% $i->affiliation |h %></td>
%   IFDEF $have_cancelled
<td valign="top"><% "CANCELLED" IFDEF ${i->cancelled} |h %></td>
%   ENDIF
%   IFDEF $have_phone
<td valign="top"><% $i->phone |h %></td>
%   ENDIF
<td valign="top"><a href="<% abook_take?alias=${i->alias|u}&name=${i->display_name|u}&comment=${i->comment|u}&email=${i->email|u} |s %>">Add</a></td>
%   IFDEF $g_have_draft
<td valign="top">
<input type="checkbox" name="to_<% $i->offset |h %>" />To
<input type="checkbox" name="cc_<% $i->offset |h %>" />Cc
<input type="checkbox" name="bcc_<% $i->offset |h %>" />Bcc
</td>
%   ELSE
<td valign="top"><a href="<% abook_compose/${i->display_name|c}/${i->email|c} |s %>">Compose</a></td>
%   ENDIF
</tr>
% ENDFOREACH
</table></form>
<div class="rule"></div>
<form method="post" accept-charset="UTF-8"
 enctype="multipart/form-data" action="<% abook_lookup |s %>">
<table class="banner">
<tr>
<td class="nav_l">
% CALL abook_lookup_nav_1
</td>
<td class="nav_c">
Page:
<input name="page" size="4" value="<% $page_current |h %>" />\
/<% $page_total |h %>
<input type="submit" name="sub_page" value="Go" /></td>
<td class="nav_r">&nbsp;</td>
</tr></table>
</form>
% IFDEF $g_help
%   CALL abook_lookup_help
% ENDIF
% CALL container_end
% CALL footer