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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
<?php $page_settings = array( 'formid' => 'index', //for nav menu 'section' => '主頁', //for page title );
require_once '../include/header.php';
require_once '../include/navigation.php';
$slideshows = Slideshow::whereRaw("slidetype=? and deleted=? and status=?", array('WEDDING_HOME', 0, 1))->orderBy('sort', 'ASC')->get();
$branches = Location::whereRaw("deleted=?", array(0))->orderBy('sort', 'ASC')->get();
$about = Company::whereRaw("deleted=? and status=? and ospageid=?", array(0, 1, 8))->first(); use Illuminate\Database\Capsule\Manager as DB; $news = DB::select('SELECT distinct n.id, n.name_tc, n.desc_tc FROM news n inner join news_newscategory c ON n.id=c.news_id inner join master_type_code m ON c.newscategory_code=m.code WHERE m.typeid=? and n.deleted=? and n.status=? ORDER BY n.docdate DESC limit 10', array("NEWSCATEGORY_WEDDING", 0, 1)); ?> <link href="../css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="../css/swiper.min.css"> <link href="../css/stylePurple.css" rel="stylesheet"> <link rel="stylesheet" href="../css/tabs.css">
<script src="../js/picktime.js" ></script> <script async id="locale_script"></script> <link rel="stylesheet" id=cal_style type="text/css" href="../css/picktime.css"> <script type="text/javascript" src="../js/jquery-1.10.1.min.js"></script>
<script type="text/javascript"> $(document).ready(function() { var calendars = document.getElementsByClassName("flatpickr").flatpickr();
// Date format var fpInstance = new Flatpickr(document.createElement("input")), formatOutput = document.getElementById("dateFormatOutput"), now = new Date();
//never use it? if (document.getElementById("dateFormatComposer")) { document.getElementById("dateFormatComposer").addEventListener("keyup", function(e) { formatOutput.textContent = fpInstance.formatDate(e.target.value, now); }); } }); </script>
<div class="swiper-container"> <div class="swiper-wrapper"> <?php foreach ($slideshows as $slideshow) { if ($slideshow['has_application_form'] == 1){ ?> <div class="swiper-slide" id="slideStyle" style="background-image:url(../images/slider/<?= $slideshow['slideimg_tc'] ?>)"> <div class="container"> <div class="LatestContactForm"> <h2><?= $slideshow['slidecontent_tc'] ?></h2> <form action="../include/application.php?id=<?= $slideshow['slideid'] ?>" method="POST" enctype="multipart/form-data"> <input class="flatpickr data-enable-time=true" placeholder="請選擇日期及時間" name="txtDate"> <input type="text" placeholder="姓名" name="txtName" class="NewsContactInput"> <br> <input type="text" placeholder="電話" name="txtTel" class="NewsContactInput"> <br> <input type="text" placeholder="電子郵件" name="txtEmail" class="NewsContactInput"> <br> <input type="text" placeholder="驗證碼" name="verification" class="verifyInput"> <img src="../js/verification_code/captcha/vCodeImage.php?id=<?= $slideshow['slideid'] ?>&_=1" alt="按圖像重新載入" id="verify_code<?= $slideshow['slideid'] ?>" width="150" height="60" border="0" onclick="document.getElementById('verify_code<?= $slideshow['slideid'] ?>').src='../js/verification_code/captcha/vCodeImage.php?id=<?= $slideshow['slideid'] ?>&' + Math.random();" style="FILTER: wave(add=0,freq=3,lightstrength=50,phase=0,strength=3);cursor:pointer;padding-top: 5px;"/> <br/> <span style="font-size: 12px; color: #808080;">按圖像重新載入</span> <br> <input type="submit" value="遞交" class="SliderBTN"> </form> </div> </div> </div> <?php } else{ echo '<div class="swiper-slide"><a href="'.$slideshow['slidelink_tc'].'" target="_blank"><img src="../images/slider/'.$slideshow['slideimg_tc'].'"></a></div>'; } } ?> </div> <!-- Add Pagination --> <div class="swiper-pagination"></div> <!-- Add Arrows --> <div class="swiper-button-next"></div> <div class="swiper-button-prev"></div> </div>
<div class="FlipSection"> <div class="container"> <div class="row"> <?php foreach ($branches as $branch){ $site = Shop::whereRaw("deleted=? and status=? and location_id=?", array(0, 1, $branch['id']))->orderBy('sort', 'ASC')->first(); ?> <div class="col-md-6 col-sm-12" id="FlipIMG"> <div class="flip-container" ontouchstart="this.classList.toggle('hover');"> <div class="flipper"> <div class="front"> <div class="location"><?= _h($branch['name_tc']) ?></div> <img src="../images/flip/<?= $branch['img_tc'] ?>"> </div> <a href="<?= "location.php?id=".$site['id'] ?>"> <div class="back"> <h1><?= _h($branch['name_tc']) ?></h1> <hr> <?= nl2br(_h($branch['desc_tc'])) ?> </div> </a> </div> </div> </div> <?php } ?>
</div> </div> </div>
<div class="aboutBH" style="background-image:url(../images/background/<?= $about['background_image'] ?>)"> <div class="container"> <h1 class="headTitle"><img src="../images/title/whiteLeft.png">關於御苑皇宴<img src="../images/title/whiteRight.png"></h1> <p><?= $about['ospagedesc_tc'] ?></p> </div> </div>
<div class="LatestNews"> <div class="container"> <div class="NewsTitle"> <h1 class="headTitle"><img src="../images/title/goldLeft.png">最新消息<img src="../images/title/goldRight.png"></h1> </div> <div class="tabSection"> <div id="verticalTab"> <ul class="resp-tabs-list"> <?php foreach ($news as $record) { echo '<li>'._h($record['name_tc']).'</li>'; } ?> </ul> <div class="resp-tabs-container"> <?php foreach ($news as $record) { ?> <div class="tabContent"> <span class="TabTitle"><?=_h($record['name_tc']) ?></span> <br/> <?= $record['desc_tc'] ?> </div> <?php } ?> </div> </div> </div> </div> </div>
<?php $current_directory = basename(__DIR__); require_once '../include/comment.php';
require_once '../include/footer.php';
require_once '../include/slider.php'; ?>
</body>
</html>
|