-
Notifications
You must be signed in to change notification settings - Fork 0
/
section-confirmation.php
76 lines (74 loc) · 3.1 KB
/
section-confirmation.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
<?php
include_once("server-side/getMessageByUrlQuery.php");
if($isInvitation) {
$name = $invitation['invitation_name'];
$category = $invitation['invitation_category'];
$confirmation = $invitation['invitation_confirmation'];
$message = getMessageByUrlQuery($DB, $urlQuery);
}
?>
<div class="modal fade" id="id_div_confirmation_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="exampleModalLabel">Silahkan tulis pesan disini</h4>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="message-text" class="control-label">Pesan:</label>
<textarea class="form-control" id="id_textarea_confirmation_message" rows="7"><?php echo $message['message_content']; ?></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Lewati</button>
<button type="button" class="btn btn-primary" onclick="onClickSaveMessage_section_confirmation()">Simpan Pesan</button>
</div>
</div>
</div>
</div>
<section id="id_section_confirmation">
<div class="container">
<div class="row">
<div class="col-xs-12 text-center">
<h4 class="text-dark-pink text-center" style="margin-top: 0px">Tak ada yang lebih berkesan dari
kehadiran Bapak/Ibu/Saudara/i <br class="hidden-xs" />
pada acara syukuran sederhana kami untuk turut <br class="hidden-xs" />
merayakan serta memberikan doa restunya</h4>
</div>
</div>
<?php if($isInvitation && ($category != $name)) { ?>
<div id="id_div_confirmation_buttons" class="row">
<div class="col-sm-6 text-center">
<button id="id_button_confirmation_yes" onclick="onClickConfirmationYes_section_confirmation()"
class="btn btn-block text-center
<?php if($confirmation == 2) echo 'background-light-grey text-dark-grey'; else echo 'background-dark-pink text-light-pink';?>">
Akan hadir
</button>
</div>
<div class="col-sm-6 text-center">
<button id="id_button_confirmation_no" onclick="onClickConfirmationNo_section_confirmation()"
class="btn btn-block text-center
<?php if($confirmation == 1) echo 'background-light-grey text-dark-grey'; else echo 'background-dark-pink text-light-pink';?>">
Berhalangan hadir
</button>
</div>
</div>
<div class="row">
<div class="col-xs-12 text-center">
<p id="id_p_confirmation_reply" class="text-dark-pink text-center" style="margin-top: 10px;margin-bottom: 0px">
<?php if($confirmation != 0) { ?>
Terima kasih atas konfirmasi kehadirannya, <br />
<?php if($confirmation == 1) { ?>
Kami tunggu kehadiran Bapak/Ibu/Saudara/i di Jogja</p>
<?php } else if($confirmation == 2) { ?>
Mohon doa restunya</p>
<?php } ?>
<?php } ?>
</div>
</div>
<?php } ?>
</div>
</section>