-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.announce.php
More file actions
34 lines (29 loc) · 1.23 KB
/
Copy pathaction.announce.php
File metadata and controls
34 lines (29 loc) · 1.23 KB
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
<?php
#----------------------------------------------------------------------
# Module: Booker - a resource booking module
# Action: announce - display message
#----------------------------------------------------------------------
# See file Booker.module.php for full details of copyright, licence, etc.
#----------------------------------------------------------------------
//parameter keys filtered out before redirect etc
$localparams = array(
'action',
'cancel',
'message'
);
$utils = new Booker\Utils();
$utils->UnFilterParameters($params);
if(isset($params['cancel']) || empty($params['message'])) {
$resume = array_pop($params['resume']);
$newparms = $utils->FilterParameters($params,$localparams);
$this->Redirect($id,$resume,$params['returnid'],$newparms);
}
$hidden = $utils->FilterParameters($params,$localparams);
$tplvars = array(
// 'title' => $this->Lang('title_requeststatus'),
'message'=> html_entity_decode($params['message'],ENT_QUOTES|ENT_HTML401),
'startform' => $this->CreateFormStart($id,'findbooking',$returnid,'POST','','','',$hidden),
'endform' => $this->CreateFormEnd(),
'cancel' => $this->CreateInputSubmit($id,'cancel',$this->Lang('close'))
);
echo Booker\Utils::ProcessTemplate($this,'announce.tpl',$tplvars);