1<?php
2
3
4$output = "";
5
6  //Make the form
7$output .= '<a name="form"></a>';
8
9//Add the fields
10$output .= '<form name="onlineordering_form" id="onlineordering_form" method="post" action="?'.$_SERVER['QUERY_STRING'].'#form">';
11$output .= '<input type="hidden" name="onlineordering_stage" id="onlineordering_stage" value="'.$form['stage'].'">';
12$output .= '<input type="hidden" name="onlineordering_title" id="onlineordering_title" value="'.$form['title'].'">';
13$output .= '<input type="hidden" name="onlineordering_firstname" id="onlineordering_firstname" value="'.$form['firstname'].'">';
14$output .= '<input type="hidden" name="onlineordering_lastname" id="onlineordering_lastname" value="'.$form['lastname'].'">';
15$output .= '<input type="hidden" name="onlineordering_street" id="onlineordering_street" value="'.$form['street'].'">';
16$output .= '<input type="hidden" name="onlineordering_postcode" id="onlineordering_postcode" value="'.$form['postcode'].'">';
17$output .= '<input type="hidden" name="onlineordering_place" id="onlineordering_place" value="'.$form['place'].'">';
18$output .= '<input type="hidden" name="onlineordering_country" id="onlineordering_country" value="'.$form['country'].'">';
19$output .= '<input type="hidden" name="onlineordering_email" id="onlineordering_email" value="'.$form['email'].'">';
20$output .= '<input type="hidden" name="onlineordering_tickets" id="onlineordering_tickets" value="'.$form['tickets'].'">';
21$output .= '<input type="hidden" name="onlineordering_remarks" id="onlineordering_remarks" value="'.$form['remarks'].'">';
22
23$output .= '<b>'.$this->getLang('confirm_values').'</b><br /><br />';
24
25$output .= '<table>';
26
27//Title
28$form_title = $form['title'];
29$output .= '<tr>';
30$output .= 	'<th><label for="title">'.$this->getLang('title').'</label></th>';
31$output .= 	'<td>'.$form['title'].'</td>';
32$output .= '</tr>';
33
34
35//Firstname
36$output .= '<tr>';
37$output .= 	'<th><label for="firstname">'.$this->getLang("firstname").'</label></th>';
38$output .= 	'<td>'.$form['firstname'].'</td>';
39$output .= '</tr>';
40
41//Lastname
42$output .= '<tr>';
43$output .= 	'<th><label for="lastname">'.$this->getLang('lastname').'</label></th>';
44$output .= 	'<td>'.$form['lastname'].'</td>';
45$output .= '</tr>';
46
47//Street
48$output .= '<tr>';
49$output .= 	'<th><label for="street">'.$this->getLang('street').'</label></th>';
50$output .= 	'<td>'.$form['street'].'</td>';
51$output .= '</tr>';
52
53//Zipcode
54$output .= '<tr>';
55$output .= 	'<th><label for="postcode">'.$this->getLang('postcode').'</label></th>';
56$output .= 	'<td>'.$form['postcode'].'</td>';
57$output .= '</tr>';
58
59//Place
60$output .= '<tr>';
61$output .= 	'<th><label for="place">'.$this->getLang('place').'</label></th>';
62$output .= 	'<td>'.$form['place'].'</td>';
63$output .= '</tr>';
64
65//Country
66$output .= '<tr>';
67$output .= 	'<th><label for="country">'.$this->getLang('country').'</label></th>';
68$output .= 	'<td>'.$form['country'].'</td>';
69$output .= '</tr>';
70
71//Email
72$output .= '<tr>';
73$output .= 	'<th><label for="email">'.$this->getLang('email').'</label></th>';
74$output .= 	'<td>'.$form['email'].'</td>';
75$output .= '</tr>';
76
77//Tickets
78$output .= '<tr>';
79$output .= '<th><label for="price">'.$this->getLang('price').'</label></th>';
80
81// Calculate the price
82
83$porto = $this->_get_porto( $data, $form['country'] );
84
85$price = $data['price'];
86
87$output .= '<td>'.number_format(($price*$form['tickets']) + $porto,2,',','.').' '.$data['currency'];
88$output .= ' ('.$form['tickets'].' x '.number_format($price,2,',','.').' '.$data['currency'].' + '.number_format($porto, 2, ",",":").' '.$data['currency'].' '.$this->getLang('porto').')</td>';
89
90$output .= '</tr>';
91
92//Remarks
93$output .= '<tr>';
94$output .= '<th><label for="remarks">'.$this->getLang('remarks').'</label></th>';
95$output .= '<td>'.$form['remarks'].'</td>';
96$output .= '</tr>';
97
98$output .= '</table>';
99
100//Submit
101$output .= '<br /><input type="submit" name="Submit" value="'.$this->getLang('send').'" tabindex="10" />';
102$output .= '</form>';
103//Correct values
104$output .= '<form name="onlineordering_form" id="onlineordering_form" method="post" action="?'.$_SERVER['QUERY_STRING'].'#form">';
105$output .= '<input type="hidden" name="onlineordering_stage" id="onlineordering_stage" value="0">';
106$output .= '<input type="hidden" name="onlineordering_title" id="onlineordering_title" value="'.$form['title'].'">';
107$output .= '<input type="hidden" name="onlineordering_firstname" id="onlineordering_firstname" value="'.$form['firstname'].'">';
108$output .= '<input type="hidden" name="onlineordering_lastname" id="onlineordering_lastname" value="'.$form['lastname'].'">';
109$output .= '<input type="hidden" name="onlineordering_street" id="onlineordering_street" value="'.$form['street'].'">';
110$output .= '<input type="hidden" name="onlineordering_postcode" id="onlineordering_postcode" value="'.$form['postcode'].'">';
111$output .= '<input type="hidden" name="onlineordering_place" id="onlineordering_place" value="'.$form['place'].'">';
112$output .= '<input type="hidden" name="onlineordering_country" id="onlineordering_country" value="'.$form['country'].'">';
113$output .= '<input type="hidden" name="onlineordering_email" id="onlineordering_email" value="'.$form['email'].'">';
114$output .= '<input type="hidden" name="onlineordering_tickets" id="onlineordering_tickets" value="'.$form['tickets'].'">';
115$output .= '<input type="hidden" name="onlineordering_remarks" id="onlineordering_remarks" value="'.$form['remarks'].'">';
116$output .= '<input type="submit" name="Submit" value="'.$this->getLang('correct').'" tabindex="10" />';
117$output .= '</form>';
118
119
120
121
122
123
124
125?>