/var/www/hkosl.com/venuechain/tc/myorders.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
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
<!DOCTYPE html>
<html lang="tc-HK" prefix="og: http://ogp.me/ns#">

<head>
    <title>Venuechain</title>
    <?php include 'inc/headlinks.php';?>
    <!-- slider -->
    <link rel="stylesheet"  href="../css/lightslider.css"/>
    <link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
</head>

<body>
    <div class="wrapper">
        <!-- header -->
        <?php include 'inc/header.php';?>
        <!-- end of header -->

        <div class="subsection-grey" style="min-height:600px;">
          <div class="container">
            <div class="pagelocation"><a href="index.php">主頁</a>  / <span class="active">場地查詢例表</span></div>
            <h1>查詢流程</h1>
            <div class="md-stepper-horizontal orange">
                    <div class="md-step active">
                      <div class="md-step-circle"><span>1</span></div>
                      <div class="md-step-title">請確定要查詢例表中的場地</div>
                      <div class="md-step-bar-left"></div>
                      <div class="md-step-bar-right"></div>
                    </div>
                    <div class="md-step active">
                      <div class="md-step-circle"><span>2</span></div>
                      <div class="md-step-title">按一併查詢按鈕</div>
                      <div class="md-step-bar-left"></div>
                      <div class="md-step-bar-right"></div>
                    </div>
                    <div class="md-step active">
                      <div class="md-step-circle"><span>3</span></div>
                      <div class="md-step-title">填寫所需資料,一併送出查詢</div>
                      <div class="md-step-bar-left"></div>
                      <div class="md-step-bar-right"></div>
                    </div>
            </div>

            <div class="headingWarp">
                 <div class="heading">場地查詢例表</div>
                 <button  class="sendListBtn"  >一併查詢</button>
            </div>
            <div class="list myorder">
                  <table class="ui striped table">
                    <thead>
                      <tr>
                        <th>場地圖片</th>
                        <th>場地</th>
                        <th>地點</th>
                        <th>場地類型</th>
                        <th>價格:</th>
                        <th></th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td class="tableWidthImg"><img src="../img/venue-03.jpg"></td>
                        <td>上環 西區電訊大廈</td>
                        <td>香港島 上環</td>
                        <td>商務中心</td>
                        <td>$3,500</td>
                        <td><a href="#" class="deleteBtn"><i class="trash alternate icon"></i></a></td>
                      </tr>
                      <tr>
                      <td class="tableWidthImg"><img src="../img/venue-02.jpg"></td>
                        <td>上環 西區電訊大廈</td>
                        <td>香港島 上環</td>
                        <td>商務中心</td>
                        <td>$3,500</td>
                        <td><a href="#" class="deleteBtn"><i class="trash alternate icon"></i></a></td>
                      </tr>
                      <tr>
                      <td class="tableWidthImg"><img src="../img/venue-01.jpg"></td>
                        <td>上環 西區電訊大廈</td>
                        <td>香港島 上環</td>
                        <td>商務中心</td>
                        <td>$3,500</td>
                        <td><a href="#" class="deleteBtn"><i class="trash alternate icon"></i></a></td>
                      </tr>

                    </tbody>
                  </table>
            </div>

          </div>
        </div>

        <div class="ui small modal form">

            <i class="close icon"></i>
               <form class="sendListContactForm ui">
                  <div class="sendListForm">
                            <div class="ui icon header">
                              <h2 class="quickTopPadding"><i class="icon-mail headerIcon"></i> 一併與場主聯絡</h2>
                            </div>

                            <div class="content">
                              <h1 class="textCenter">請提供相關資料</h1>

                            </div>

                              <div class="actions">
                                      <div class="lableTitle">*必須填寫</div>

                                      <div class="two fields">
                                            <div class="field">
                                                  <div class="ui left icon fullwide input">
                                                    <input type="text" placeholder="*請輸入你的姓名" name="name">
                                                    <i class="icon-login formMailIcon"></i>
                                                  </div>
                                            </div>

                                            <div class="field">
                                                  <div class="ui left icon fullwide input">
                                                    <input type="text" placeholder="請輸入你的公司名"  >
                                                    <i class="icon-home formMailIcon"></i>
                                                  </div>
                                            </div>

                                      </div>


                                      <div class="field">
                                            <div class="field fullwide">
                                                  <div class="ui left icon fullwide input">
                                                    <input type="email" placeholder="*請輸入你的電子郵箱" name="email">
                                                    <i class="icon-mail formMailIcon"></i>
                                                  </div>
                                            </div>
                                      </div>

                                      <div class=" field">
                                            <div class="field fullwide">

                                                  <div class="ui left icon fullwide input">

                                                    <input id="phone" class="intlTelInput" type="tel" placeholder="*請輸入你的電話" name="phone" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" >

                                                  </div>
                                            </div>
                                      </div>

                                      <div class="field">
                                            <label class="textareaLabel">特別需求</label>
                                            <textarea></textarea>
                                      </div>
                                      <div class="captchaWrap">


                                          <div class='captchaInput'>
                                            <div class=" field">
                                              <input type="text" id="UserCaptchaCode" class="CaptchaTxtField" name="captcha" placeholder='請填寫驗證碼'>
                                            </div>
                                          </div>
                                          <div class='captchaImg'>
                                            <div id="CaptchaImageCode" class="CaptchaTxtField">
                                              <canvas id="CapCode" class="capcode" width="300" height="80"></canvas>
                                            </div>
                                            <input type="button" class="ReloadBtn" onclick='CreateCaptcha();'>
                                          </div>

                                      </div>
                                      <div class="ui error message"></div>
                                      <div class="formPaging">
                                        <button type="button" class="border-graylink nextBtn backStep03 halfwidth">上一步</button>
                                        <button type="submit" class="border-greenlink nextBtn halfwidth" >完成</button>

                                      </div>
                              </div>
                  </div>
               </form>
        </div>


        <!-- footer -->
        <?php include 'inc/footer.php';?>
        <!-- end of footer -->
   </div>

   <!-- JS -->
  <?php include 'inc/link-js.php';?>

  <script>





          var cd;

          $(function() {
              CreateCaptcha();
          });

          // Create Captcha
          function CreateCaptcha() {
              //$('#InvalidCapthcaError').hide();
              var alpha = new Array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9');

              var i;
              for (i = 0; i < 6; i++) {
                  var a = alpha[Math.floor(Math.random() * alpha.length)];
                  var b = alpha[Math.floor(Math.random() * alpha.length)];
                  var c = alpha[Math.floor(Math.random() * alpha.length)];
                  var d = alpha[Math.floor(Math.random() * alpha.length)];
                  var e = alpha[Math.floor(Math.random() * alpha.length)];
                  var f = alpha[Math.floor(Math.random() * alpha.length)];
              }
              cd = a + ' ' + b + ' ' + c + ' ' + d + ' ' + e + ' ' + f;
              $('#CaptchaImageCode').empty().append('<canvas id="CapCode" class="capcode" width="300" height="80"></canvas>')

              var c = document.getElementById("CapCode"),
                  ctx = c.getContext("2d"),
                  x = c.width / 2,
                  img = new Image();

              img.src = "https://pixelsharing.files.wordpress.com/2010/11/salvage-tileable-and-seamless-pattern.jpg";
              img.onload = function() {
                  var pattern = ctx.createPattern(img, "repeat");
                  ctx.fillStyle = pattern;
                  ctx.fillRect(0, 0, c.width, c.height);
                  ctx.font = "46px Roboto Slab";
                  ctx.fillStyle = '#ccc';
                  ctx.textAlign = 'center';
                  ctx.setTransform(1, -0.12, 0, 1, 0, 15);
                  ctx.fillText(cd, x, 55);
              };


          }

          // Validate Captcha
          function ValidateCaptcha() {
              var string1 = removeSpaces(cd);
              var string2 = removeSpaces($('#UserCaptchaCode').val());
              if (string1 == string2) {
                  return true;
              } else {
                  return false;
              }

          }

          // Remove Spaces
          function removeSpaces(string) {
              return string.split(' ').join('');
          }


          $.fn.form.settings.rules.myCustomRule = function(param) {
                  var result = ValidateCaptcha();
                  if (result == true){
                    return true;
                  } else{
                    $('.form').modal('refresh');
                  }

          }




          $(".sendListBtn").click(function(){
            $(".form").modal('show');
          });


          $('.sendListContactForm')
          .form({
            fields: {
              name: {
                identifier: 'name',
                rules: [
                  {
                    type   : 'empty',
                    prompt : '必須填寫姓名'
                  }
                ]
              },
              email: {
                identifier: 'email',
                rules: [
                  {
                    type   : 'empty',
                    prompt : '必須填寫電郵'
                  }
                ]
              },
              phone: {
                identifier: 'phone',
                rules: [
                  {
                    type   : 'empty',
                    prompt : '必須填寫電話,方便回覆'
                  }
                ]
              },
              captcha: {
                identifier: 'captcha',
                rules: [
                  {
                    type   : 'myCustomRule[param]',
                    prompt : '請填寫正確驗證碼'
                  },
                  {
                    type   : 'empty',
                    prompt : '請填寫驗證碼'
                  },
                ]
              }
            }
          });





  </script>

    <!-- initialise phone plugin -->
    <script>

    var telInput = $("#phone"),
      errorMsg = $("#error-msg"),
      validMsg = $("#valid-msg");

    // initialise plugin
    telInput.intlTelInput({

      allowExtensions: true,
      formatOnDisplay: true,
      autoFormat: true,
      autoHideDialCode: true,
      autoPlaceholder: true,
      defaultCountry: "auto",
      ipinfoToken: "yolo",

      nationalMode: false,
      numberType: "MOBILE",
      //onlyCountries: ['us', 'gb', 'ch', 'ca', 'do'],
      preferredCountries: ['sa', 'ae', 'qa','om','bh','kw','ma'],
      preventInvalidNumbers: true,
      separateDialCode: true,
      initialCountry: "hk",
      geoIpLookup: function(callback) {
      $.get("http://ipinfo.io", function() {}, "jsonp").always(function(resp) {
        var countryCode = (resp && resp.country) ? resp.country : "";
        callback(countryCode);
      });
    },
      utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/11.0.9/js/utils.js"
    });

    var reset = function() {
      telInput.removeClass("error");
      errorMsg.addClass("hide");
      validMsg.addClass("hide");
    };

    // on blur: validate
    telInput.blur(function() {
      reset();
      if ($.trim(telInput.val())) {
        if (telInput.intlTelInput("isValidNumber")) {
          validMsg.removeClass("hide");
        } else {
          telInput.addClass("error");
          errorMsg.removeClass("hide");
        }
      }
    });

    // on keyup / change flag: reset
    telInput.on("keyup change", reset);

    </script>

</body>


</html>