-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
118 lines (115 loc) · 4.19 KB
/
index.php
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
// Main functions and config
require_once './functions.php';
// Mail
$mail = __('mail');
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?= __('main-form-page-title') ?></title>
<link rel="stylesheet" href="./ui/main.css">
</head>
<body>
<div id="header">
<h1><?= __('main-form-page-title') ?></h1>
</div>
<div id="nav">
<ul>
<li<?php if ($GLOBALS['user_lang'] === 'de') echo ' class="current"';?>>
<a href="?lang=de">Deutsch</a>
</li>
<li<?php if ($GLOBALS['user_lang'] === 'en') echo ' class="current"';?>>
<a href="?lang=en">English</a>
</li>
<li<?php if ($GLOBALS['user_lang'] === 'fr') echo ' class="current"';?>>
<a href="?lang=fr">Français</a>
</li>
<li<?php if ($GLOBALS['user_lang'] === 'nl') echo ' class="current"';?>>
<a href="?lang=nl">Nederlands</a>
</li>
</ul>
</div>
<h2 class="center"><?= __('pick-up-line') ?></h2>
<div id="intro">
<?= __('abstract') ?>
</div>
<form action="<?= $options['form_action_url'] ?>" method="post">
<fieldset class="letter_type">
<legend><?= __('type-of-letter') ?></legend>
<div>
<input type="checkbox" name="letter_type[]" id="letter_type_info" class="checkbox checked" value="information" checked="checked">
<label for="letter_type_info"><?= __('information-checkbox-label')?></label>
</div>
<div>
<input type="checkbox" name="letter_type[]" id="letter_type_opposition" class="checkbox" value="opposition">
<label for="letter_type_opposition"><?= __('opposition-checkbox-label')?></label>
</div>
<div>
<input type="checkbox" name="letter_type[]" id="letter_type_complaint" class="checkbox checked" value="complaint" checked="checked">
<label for="letter_type_complaint"><?= __('complaint-checkbox-label')?></label>
</div>
</fieldset>
<fieldset class="contact_details">
<legend><?= __('person-contact-details') ?></legend>
<?= (isset($_GET['error']) && substr($_GET['error'], 0, 6) == 'error-') ? '<p id="form-error">' . __($_GET['error']) . '</p>' : '' ?>
<div>
<label for="firstname"><?= __('firstname') ?></label>
<input type="text" name="firstname" id="firstname">
</div>
<div>
<label for="lastname"><?= __('lastname') ?></label>
<input type="text" name="lastname" id="lastname">
</div>
<div>
<label for="postal-address"><?= __('postal-address') ?></label>
<textarea name="postal-address" id="postal-address" cols="30" rows="10"></textarea>
</div>
<div>
<label for="postal-code"><?= __('postal-code') ?></label>
<input type="text" name="postal-code" id="postal-code">
</div>
<div>
<label for="city"><?= __('city') ?></label>
<input type="text" name="city" id="city">
</div>
<div>
<label for="country"><?= __('country') ?></label>
<input type="text" name="country" id="country">
</div>
<div>
<label for="email"><?= __('email') ?></label>
<input type="text" name="email" id="email">
</div>
</fieldset>
<div id="create">
<input type="hidden" name="user_lang" value="<?= $GLOBALS['user_lang'] ?>">
<input type="submit" id="submit" value="<?= __('make-letters') ?>" />
</div>
</form>
<div id="step-by-step">
<h2><?= __('what-should-i-do') ?></h2>
<ol>
<li id="step-print-pdf"><?= __('step-print-pdf') ?></li>
<li id="step-print-id"><?= __('step-print-id') ?></li>
<li id="step-send-letters"><?= __('step-send-letters') ?></li>
<li id="step-mail-cpvp"><?= __('step-mail-cpvp') ?></li>
<li id="step-mail-sncb"><?= __('step-mail-sncb') ?></li>
<li id="step-mails"><?= __('step-mails') ?></li>
<li id="step-wait"><?= __('step-wait') ?></li>
</ol>
</div>
<div id="footer">
<p class="logo">
<a href="http://nurpa.be" title="NURPA"><img src="./ui/logo_nurpa.png" alt="NURPA" /></a>
<?= __('footer-logo') ?>
</p>
<p><?= __('footer-text') ?></p>
</div>
<script>
window.lang = <?= json_encode($mail) ?>
</script>
<script src="./js/mini.js"></script>
</body>
</html>