-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfirm.php
55 lines (48 loc) · 1.37 KB
/
confirm.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
<?php
require_once(__DIR__ . "/logic/scripts/load_confirm.php");
?><!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="format-detection" content="telephone=no">
<title>お問い合わせ - 確認</title>
<meta name="description" content="">
</head>
<body>
<h1>お問い合わせ - 確認</h1>
<form id="form" action="finish.php" method="post">
<input type="hidden" name="_token" value="<?php echo $mailform->getToken(); ?>">
<table>
<?php foreach ($form_item as $section => $item) : ?>
<tr>
<th>
<label for="<?php echo $section; ?>"><?php echo $item['label']; ?></label>
<?php echo ($item['required']) ? '<span>必須</span>' : ''; ?>
</th>
<td>
<?php if ($item['type'] === 'checkbox' && $section !== 'agree') : ?>
<p>
<?php echo (is_array($item['value'])) ? implode(', ', $item['value']) : $item['value']; ?>
</p>
<?php elseif ($item['type'] === 'textarea') : ?>
<div>
<?php echo nl2br($item['value']); ?>
</div>
<?php else : ?>
<p>
<?php echo $item['value']; ?>
</p>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<div>
<button type="submit" name="back">修正する</button>
<button type="submit" name="submit">送 信</button>
</div>
</form>
</body>
</html>