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
|
<?php require_once('webadmin/basic_info.php');
if (!isset($_SESSION["id"]) || (int)$_SESSION["id"] <= 0) { echo "<script type='text/javascript'>alert('Cannot find survey information.');</script>"; exit; } else { $id = (int)$_SESSION["id"]; check_user_has_fill_form($id); $campaign = get_campaign($id);
check_campaign_date($campaign); } ?>
<!DOCTYPE html> <html> <head> <?php require_once('html_head.php'); ?> <link rel="stylesheet" type="text/css" media="screen" href="js/form_builder/assets/css/form-builder.min.css"> </head> <body>
<div class="container"> <h1> <?php foreach ($arraylangcode as $langcode => $langname) { if (!empty($campaign["name_" . $langcode])) { echo $campaign["name_" . $langcode] . "<br>"; } } ?> </h1>
<div style="margin-top: 30px;"> <?php foreach ($arraylangcode as $langcode => $langname) { if (!empty($campaign["desc2_" . $langcode])) { echo $campaign["desc2_" . $langcode] . "<br><br>"; } } ?> </div>
<div id="survey_form"> <form action="survey_form_post.php" method="post" name="survey_form" id="survey_form" enctype="multipart/form-data"> <?php $form_html = html_entity_decode(str_replace("||", "<br>", $campaign["form_html"])); echo $form_html; ?>
<div class="tc" style="margin-top: 50px;"> <button type="submit" class="btn">提交 Submit</button> </div> </form> </div>
</div>
<?php require_once('html_footer.php'); ?> </body> </html>
|