blob: 3a8d37a8c028431adcd3d293645004b44638522c (
plain)
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
|
<%doc>
Example:
include('/elements/init_overlib.html')
include( '/elements/popup_link-make-appointment.html', { #hashref or a list, either way
'custnum' => 54,
})
</%doc>
<& /elements/popup_link.html, $params &>\
<%init>
my $params = { 'closetext' => 'Close' };
if (ref($_[0]) eq 'HASH') {
$params = { %$params, %{ $_[0] } };
} else {
$params = { %$params, @_ };
}
#$params->{'label'} ||= 'schedule new appointment';
$params->{'label'} ||= 'Schedule new appointment';
$params->{'actionlabel'} ||= 'Schedule appointment';
#$params->{'width'} ||= 350;
#$params->{'height'} ||= 220;
$params->{'action'} = $p. 'misc/make_appointment.html?custnum='. $params->{'custnum'};
</%init>
|