-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
999 lines (957 loc) · 53.7 KB
/
index.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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
<!DOCTYPE html>
<html lang="en">
<head>
<title>WESHOP - Charger avec smart force</title>
<link rel="shortcut icon" type="image/x-icon" href="images/logo.png">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,600,700" rel="stylesheet">
<link rel="stylesheet" href="css/open-iconic-bootstrap.min.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link href="css/css.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="css/aos.css">
<link rel="stylesheet" href="css/ionicons.min.css">
<link rel="stylesheet" href="css/bootstrap-datepicker.css">
<link rel="stylesheet" href="css/jquery.timepicker.css">
<link rel="stylesheet" href="css/flaticon.css">
<link rel="stylesheet" href="css/icomoon.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" type="text/css" href="static/iconfont.css">
<link rel="stylesheet" href="static/chat.css">
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="css/Devis_InnerHTML.css">
</head>
<body>
<!--导航栏-->
<nav class="navbar navbar-expand-lg navbar-dark ftco_navbar bg-dark ftco-navbar-light" id="ftco-navbar">
<div class="container">
<img src="images/title.png" class="Accueil">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#ftco-nav" aria-controls="ftco-nav" aria-expanded="false" aria-label="Toggle navigation">
<span class="oi oi-menu">Menu</span>
</button>
<div class="collapse navbar-collapse" id="ftco-nav">
<ul class="navbar-nav ml-auto">
<li class="nav-item active"><a href="index.html" class="nav-link">Accueil</a></li>
<li class="nav-item"><a href="presentation.html" class="nav-link">Présentation</a></li>
<li class="nav-item"><a href="produits.html" class="nav-link">Produits</a></li>
<li class="nav-item"><a class="nav-link" href="QRShop.html">QRshop</a></li>
<li class="nav-item"><a href="NosClients.html" class="nav-link">NosClients</a></li>
<li class="nav-item"><a href="contact.html" class="nav-link">Contact</a></li>
<li class="nav-item cta"><a href="#devis" class="nav-link" data-toggle="modal" data-target="#modalRequest"><span>DEVIS</span></a></li>
</ul>
</div>
</div>
</nav>
<!-- END nav-->
<!--banner,轮播图部分-->
<div class="hero-wrap">
<div class="overlay"></div>
<div class="container-fluid">
<div class="slider-text d-md-flex align-items-center" data-scrollax-parent="true">
<div class="one-forth ftco-animate align-self-md-center" data-scrollax=" properties: { translateY: '70%' }">
<h1 class="mb-4"> La caisse enregistreuse
<span class="wrap"></span>
</strong>
</h1>
<h1 class="mb-4">
<strong class="typewrite" data-period="4000" data-type='[ "facilite votre vie", "économise votre temps", "augmente vos CA" ]'>
<span class="wrap"></span>
</strong>
</h1>
<p class="mb-md-5 mb-sm-3" data-scrollax="properties: { translateY: '30%', opacity: 1.6 }">Votre bon assistant de gestion !</p>
<p data-scrollax="properties: { translateY: '30%', opacity: 1.6 }">
<a href="#devis" class="btn btn-primary px-4 py-3 mt-3">DEMANDER UN DEVIS</a>
<a href="#" class="btn btn-primary btn-outline-primary px-4 py-3 mt-3">Nos Produits</a>
</p>
</div>
<div class="one-half align-self-md-end align-self-sm-center">
<div class="slider-carousel owl-carousel">
<div class="item">
<img src="images/dashboard_full_3.png" class="img-fluid img"alt="">
</div>
<div class="item">
<img src="images/dashboard_full_4.png" class="img-fluid img"alt="">
</div>
<div class="item">
<img src="images/dashboard_full_5.png" class="img-fluid img"alt="">
</div>
</div>
</div>
</div>
</div>
</div>
<!--banner部分结束-->
<!--分割线-->
<section class="ftco-section ftco-section-2">
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-md-8">
<h3 class="heading-white">Nous fournissons un excellent service</h3>
</div>
</div>
</div>
</section>
<!--分割线结束-->
<!--三点优势部分-->
<section class="ftco-section ftco-services">
<div class="mt-5">
<div class="row d-flex no-gutters">
<div class="col-md-6 img ftco-animate" style="background-image: url(images/about.jpg);">
</div>
<div class="col-md-6 d-flex">
<div class="services-wrap">
<div class="heading-section mb-5 ftco-animate">
<h2 class="mb-2">Pourquoi nous choisir</h2>
<span class="subheading">Experts en logiciel de caisse enregistreuse</span>
</div>
<div class="list-services d-flex ftco-animate">
<div class="icon d-flex justify-content-center align-items-center">
<span><img class="icon" src="images/nf515.png"></span>
</div>
<div class="text">
<h3>Notre logiciel</h3>
<p>Logiciel légal & fiable & pratique. Il conforme à la loi des finances 2016 et au certifiée NF525, obligatoire à partir du 1er janvier 2018.</p>
</div>
</div>
<div class="list-services d-flex ftco-animate">
<div class="icon d-flex justify-content-center align-items-center">
<span><img class="icon" src="images/client.png"></span>
</div>
<div class="text">
<h3>Notre équipements</h3>
<p>Peut être utilisé sur les caisses, les téléphones mobiles, les tablettes et autres appareils. Prise en charge des systèmes Windows et Linux.</p>
</div>
</div>
<div class="list-services d-flex ftco-animate">
<div class="icon d-flex justify-content-center align-items-center">
<span><img class="icon" src="images/service.png"></span>
</div>
<div class="text">
<h3>Notre service</h3>
<p>À votre service 6 jours par semaine. Nous mettons à votre disposition un service après-vente multilingue en français, anglais, chinois et coréen.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!--三点优势部分结束-->
<!--分割线-->
<section class="ftco-section ftco-counter img" id="section-counter" style="background-image: url(images/bg_1.jpg);" data-stellar-background-ratio="0.5">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-11">
<div class="row">
<div class="col-md-3 d-flex justify-content-center counter-wrap ftco-animate">
<div class="block-18 text-center">
<div class="text">
<strong class="number" data-number="2">0</strong>
<span>agences</span>
</div>
</div>
</div>
<div class="col-md-3 d-flex justify-content-center counter-wrap ftco-animate">
<div class="block-18 text-center">
<div class="text">
<strong class="number" data-number="1500">0</strong>
<span>collaborateurs</span>
</div>
</div>
</div>
<div class="col-md-3 d-flex justify-content-center counter-wrap ftco-animate">
<div class="block-18 text-center">
<div class="text">
<strong class="number" data-number="6">0</strong>
<span>ans d’expérience</span>
</div>
</div>
</div>
<div class="col-md-3 d-flex justify-content-center counter-wrap ftco-animate">
<div class="block-18 text-center">
<div class="text">
<strong class="number" data-number="10000">0</strong>
<span>clients en France</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!--分割线部分结束-->
<!--陈列产品部分-->
<section class="ftco-section">
<div class="container-fluid">
<div class="row justify-content-center mb-5 pb-5">
<div class="col-md-7 text-center heading-section ftco-animate">
<h2 class="mb-2">LE MATÉRIEL</h2>
<span class="subheading">We're Happy to share our complete Projects</span>
</div>
</div>
<div class="row">
<div class="col-md-4 ftco-animate">
<div class="work-entry">
<a data-toggle="modal" data-target="#product1" class="img" style="background-image: url(images/work1.png);">
<div class="text d-flex justify-content-center align-items-center">
<div class="p-3">
<h3>Tablette</h3>
</div>
</div>
</a>
</div>
</div>
<div class="col-md-4 ftco-animate">
<div class="work-entry">
<a data-toggle="modal" data-target="#product2" class="img" style="background-image: url(images/work2.png);">
<div class="text d-flex justify-content-center align-items-center">
<div class="p-3">
<h3>Caisse traditionnelle</h3>
</div>
</div>
</a>
</div>
</div>
<div class="col-md-4 ftco-animate">
<div class="work-entry">
<a data-toggle="modal" data-target="#product3" class="img" style="background-image: url(images/work3.png);">
<div class="text d-flex justify-content-center align-items-center">
<div class="p-3">
<h3>Télécommande portable</h3>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
</section>
<!--产品部分结束-->
<!--Devis部分-->
<section class="ftco-section bg-light" id="devis">
<!-- 加上container-fluid页面不超出 -->
<div class="container-fluid">
<div class="row justify-content-center mb-5 pb-5">
<div class="col-md-7 text-center heading-section ftco-animate">
<h2 class="mb-2">DEVIS CAISSE ENREGISTREUSE EN LIGNE</h2>
<span class="subheading">Pricing Plans</span>
</div>
</div>
</div>
<section class="ftco-section ftco-counter img"style="background-image: url(images/bg_1.jpg);" data-stellar-background-ratio="0.5">
<!-- 设置空的target阻止默认提交表单以后刷新 -->
<form class="row" style="text-align:center; margin-left:20px; margin-right:20px" method="post" action="storeDevis.php" target="nm_iframe">
<div class="colForm col-lg-4 col-md-6 col-sm-12 col-xs-12">
<div class="pricing-table">
<h3>Principaux produits</h3>
<HR>
<div class="form-group">
<!-- 这里设置的value值是php Post到的值,不设置默认显示on -->
<input type="radio" id="radio1" name="radio" value="Caisse et logiciel" checked>
<label class="circle" for="radio1" > Caisse et logiciel</label>
<HR>
<input type="radio" id="radio2" name="radio" value="Tablette et logiciel">
<label class="circle" for="radio2"> Tablette et logiciel</label>
<HR>
<input type="radio" id="radio3" name="radio" value="Logiciel">
<label class="circle" for="radio3"> Logiciel</label>
<HR>
</div>
</div>
</br>
</div>
<div class="colForm col-lg-4 col-md-6 col-sm-12 col-xs-12" >
<div class="pricing-table">
<h3>Autres produits</h3>
<HR>
<div class="form-group">
<!-- php name后面必须加[] -->
<input name="checkbox[]" value="Smartphone" type="checkbox" id="checkbox1">
<label class="circle" for="checkbox1"> Smartphone</label>
<HR>
<input name="checkbox[]" value="Imprimante" type="checkbox" id="checkbox2">
<label class="circle" for="checkbox2"> Imprimante</label>
<HR>
<input name="checkbox[]" value="Tiroir" type="checkbox" id="checkbox3">
<label class="circle" for="checkbox3"> Tiroir</label>
<HR>
<input name="checkbox[]" value="Balance" type="checkbox" id="checkbox4">
<label class="circle" for="checkbox4"> Balance</label>
<HR>
<input name="checkbox[]" value="Scanneur" type="checkbox" id="checkbox5">
<label class="circle" for="checkbox5"> Scanneur</label>
<HR>
<input name="checkbox[]" value="Ecran de client" type="checkbox" id="checkbox6">
<label class="circle" for="checkbox6"> Ecran de client</label>
<HR>
<input name="checkbox[]" value="Conseillez-moi" type="checkbox" id="checkbox7">
<label class="circle" for="checkbox7"> Conseillez-moi</label>
</div>
</div>
</br>
</div>
<div class="colForm col-lg-4 col-md-6 col-sm-12 col-xs-12" >
<div class="pricing-table" >
<h3>Votre Informations</h3>
<HR>
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
<input type="text" name="societe" class="form-control" id="societe" placeholder="Nom de la société *" required="required">
</div>
</div>
</br>
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
<input type="email" name="email" class="form-control" id="email" placeholder="Mail *" required="required">
</div>
</div>
</br>
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
<input type="text" name="telephone" class="form-control" id="telephone" placeholder="Tel *" required="required">
</div>
</div>
</br>
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
<input type="text" name="codePostale" class="form-control" id="codePostale" placeholder="Code postale" required="required">
</div>
</div>
</br>
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
<input type="text" name="addresse" class="form-control" id="addresse" placeholder="Addresse" required="required">
</div>
</div>
</br>
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
<textarea rows="3" name="message" class="form-control" id="description" placeholder="Votre message"></textarea>
</div>
</div>
<div class="actions">
</br>
<input type="submit" id="obtenirDevis" value="OBTENIR LE DEVIS" name="submit" id="submitButton" class="btn btn-primary px-4 py-2" title="Submit Your Message!" />
</div>
</div>
</div>
</form>
</section>
</div>
</section>
<iframe id="id_iframe" name="nm_iframe" style="display:none;"></iframe>
<script>
//点发送按钮发送消息
$("#obtenirDevis").click(function () {
alert("Soumis avec succès!");
});
</script>
<footer class="ftco-footer ftco-bg-dark ftco-section">
<div class="container">
<div class="row mb-5">
<div class="col-md-3">
<div class="ftco-footer-widget mb-4">
<h2 class="ftco-heading-2">WESHOP</h2>
<p>Weshop est un fournisseur pour les caisses enregistreuses tactiles. Weshop met à votre disposition des équipements et des logiciels de caisse complets, aussi des équipements de réseau( routeur, téléphone portable).</p>
</div>
<ul class="ftco-footer-social list-unstyled float-md-left float-lft ">
<li class="ftco-animate"><a href="#"><span class="icon-wechat"></span></a></li>
<li class="ftco-animate"><a href="#"><span class="icon-youtube"></span></a></li>
<li class="ftco-animate"><a href="#"><span class="icon-message"></span></a></li>
</ul>
</div>
<div class="col-md-2">
<div class="ftco-footer-widget mb-4 ml-md-5">
<h2 class="ftco-heading-2">Quick Links</h2>
<ul class="list-unstyled">
<li><a href="#" class="py-2 d-block">About</a></li>
<li><a href="#" class="py-2 d-block">Features</a></li>
<li><a href="#" class="py-2 d-block">Projects</a></li>
<li><a href="#" class="py-2 d-block">Blog</a></li>
<li><a href="#" class="py-2 d-block">Contact</a></li>
</ul>
</div>
</div>
<div class="col-md-4 pr-md-4">
<div class="ftco-footer-widget mb-4">
<h2 class="ftco-heading-2">Recent Blog</h2>
<div class="block-21 mb-4 d-flex">
<a class="blog-img mr-4" style="background-image: url(images/image_1.jpg);"></a>
<div class="text">
<h3 class="heading"><a href="#">Even the all-powerful Pointing has no control about</a></h3>
<div class="meta">
<div><a href="#"><span class="icon-calendar"></span> Sept 15, 2018</a></div>
<div><a href="#"><span class="icon-person"></span> Admin</a></div>
<div><a href="#"><span class="icon-chat"></span> 19</a></div>
</div>
</div>
</div>
<div class="block-21 mb-4 d-flex">
<a class="blog-img mr-4" style="background-image: url(images/image_2.jpg);"></a>
<div class="text">
<h3 class="heading"><a href="#">Even the all-powerful Pointing has no control about</a></h3>
<div class="meta">
<div><a href="#"><span class="icon-calendar"></span> Sept 15, 2018</a></div>
<div><a href="#"><span class="icon-person"></span> Admin</a></div>
<div><a href="#"><span class="icon-chat"></span> 19</a></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<div class="ftco-footer-widget mb-4">
<h2 class="ftco-heading-2">Contact Info</h2>
<div class="block-23 mb-3">
<ul>
<li><span class="icon icon-map-marker"></span><span class="text">8 avenue Henri Barbusse, 93000 Bobigny, 93000</span></li>
<li><a href="#"><span class="icon icon-phone"></span><span class="text">+33 1 48 46 12 88</span></a></li>
<li><a href="#"><span class="icon icon-envelope"></span><span class="text">[email protected]</span></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 text-center">
<p><!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright ©<script>document.write(new Date().getFullYear());</script> Tous droits réservés | Pour plus d’informations voir SARL WESHOP
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. --></p>
</div>
</div>
</div>
</footer>
<!-- loader -->
<div id="ftco-loader" class="show fullscreen">
<svg class="circular" width="48px" height="48px">
<circle class="path-bg" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke="#eeeeee"/>
<circle class="path" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke-miterlimit="10" stroke="#F96D00"/>
</svg>
</div>
<!--客服悬浮窗-->
<div class="livechat-girl animated"> <img class="girl" src="images/en_3.png">
<div class="livechat-hint rd-notice-tooltip rd-notice-type-success rd-notice-position-left single-line show_hint">
<div class="rd-notice-content">Bonjour, je peut vous aider?</div>
</div>
<div class="animated-circles">
<div class="circle c-1"></div>
<div class="circle c-2"></div>
<div class="circle c-3"></div>
</div>
</div>
<!--客服悬浮窗结束-->
<!--客服悬浮窗JS-->
<script type="text/javascript">
(function ($) {
setInterval(function () {
if ($(".animated-circles").hasClass("animated")) {
$(".animated-circles").removeClass("animated");
} else {
$(".animated-circles").addClass('animated');
}
}, 3000);
var wait = setInterval(function () {
$(".livechat-hint").removeClass("show_hint").addClass("hide_hint");
clearInterval(wait);
}, 4500);
$(".livechat-girl").hover(function () {
clearInterval(wait);
$(".livechat-hint").removeClass("hide_hint").addClass("show_hint");
}, function () {
$(".livechat-hint").removeClass("show_hint").addClass("hide_hint");
}).click(function () {
$(".chatBox").toggle(100);
$(".chatBox-head-two").toggle();
$(".chatBox-kuang").fadeToggle();
$(".livechat-girl").css("display", "none");
});
})(jQuery);
</script>
<!--客服悬浮窗JS结束-->
<!--产品图弹窗介绍-->
<div class="modal fade" id="product1" tabindex="-1" role="dialog" aria-labelledby="modalLabel" style="display:none">
<!-- 在style文件中设置lg max-height:1200px-->
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="modalLabel">Caisse</h4></div>
<div id="_modalDialog_body" class="modal-body">
<!-- 设置这个div的大小,超出部分显示滚动条 -->
<div class="row">
<div class="col-md-8">
<img class="img_product" src="images/work-1.jpg" alt="work1">
</div>
<div class="col-md-4">
<h2>Introduction:</h2>
<h4>balabalabalabala</h4>
</div>
</div>
</div>
<div class="modal-footer">
<!-- <button type="submit" class="btn btn-primary">确定</button>-->
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="product2" tabindex="-1" role="dialog" aria-labelledby="modalLabel" style="display:none">
<!-- 在style文件中设置lg max-height:1200px-->
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="modalLabel">Caisse</h4>
</div>
<div id="_modalDialog_body" class="modal-body">
<!-- 设置这个div的大小,超出部分显示滚动条 -->
<div class="row">
<div class="col-md-8">
<img class="img_product" src="images/work-2.jpg" alt="work2">
</div>
<div class="col-md-4">
<h2>Introduction:</h2>
<h4>balabalabalabala</h4>
</div>
</div>
</div>
<div class="modal-footer">
<!-- <button type="submit" class="btn btn-primary">确定</button>-->
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="product3" tabindex="-1" role="dialog" aria-labelledby="modalLabel" style="display:none">
<!-- 在style文件中设置lg max-height:1200px-->
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="modalLabel">Caisse</h4></div>
<div id="_modalDialog_body" class="modal-body">
<!-- 设置这个div的大小,超出部分显示滚动条 -->
<div class="row">
<div class="col-md-8">
<img class="img_product" src="images/work-3.jpg" alt="work3">
</div>
<div class="col-md-4">
<h2>Introduction:</h2>
<h4>balabalabalabala</h4>
</div>
</div>
</div>
<div class="modal-footer">
<!-- <button type="submit" class="btn btn-primary">确定</button>-->
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>
<!--产品图弹窗部分结束-->
<!-- 客服自动回复聊天框 -->
<div class="chatContainer" style="z-index: 100;">
<div class="chat-message-num"></div>
<div class="chatBox" ref="chatBox" style="display: none">
<div class="chatBox-head">
<div class="chatBox-head-two">
<div class="chat-people">
<div class="ChatInfoHead">
<img src="static/icon01.png" alt="头像"/>
</div>
</div>
<div class="chat-close"><span style="font-weight: bolder;">×</span></div>
</div>
</div>
<div class="chatBox-info">
<div class="chatBox-kuang" ref="chatBoxkuang">
<div class="chatBox-content">
<div class="chatBox-content-demo" id="chatBox-content-demo">
<div class="clearfloat">
<div class="author-name">
<small class="chat-date" id="systime">2020-9-4 15:33:33</small>
</div>
<div class="left">
<div class="chat-avatars"><img src="static/icon01.png" alt="头像"/></div>
<div class="chat-message">
Bonjour, je peut vous aider?
</div>
</div>
</div>
</div>
</div>
<div class="chatBox-send">
<!-- <div class="div-textarea"></div> -->
<div>
<input class="div-textarea" id="message" style="border: 0px;">
</div>
<div>
<button id="chat-biaoqing" class="btn-default-styles">
<i class="iconfont icon-biaoqing"></i>
</button>
<label id="chat-tuxiang" title="发送图片" for="inputImage" class="btn-default-styles">
<input type="file" onchange="selectImg(this)" accept="image/jpg,image/jpeg,image/png"
name="file" id="inputImage" class="hidden">
<i class="iconfont icon-tuxiang"></i>
</label>
<button id="chat-fasong" class="btn-default-styles"><i class="iconfont icon-fasong"></i></button>
</div>
<div class="biaoqing-photo">
<ul>
<li><span class="emoji-picker-image" style="background-position: -9px -18px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -40px -18px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -71px -18px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -102px -18px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -133px -18px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -164px -18px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -9px -52px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -40px -52px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -71px -52px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -102px -52px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -133px -52px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -164px -52px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -9px -86px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -40px -86px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -71px -86px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -102px -86px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -133px -86px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -164px -86px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -9px -120px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -40px -120px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -71px -120px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -102px -120px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -133px -120px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -164px -120px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -9px -154px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -40px -154px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -71px -154px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -102px -154px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -133px -154px;"></span></li>
<li><span class="emoji-picker-image" style="background-position: -164px -154px;"></span></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 客服自动回复聊天框部分结束 -->
<!--检测IP-->
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<script type="text/javascript">
console.log(returnCitySN["cip"] + ',' + returnCitySN["cname"]);
var ip_client = returnCitySN["cip"];
</script>
<!--检测人工客服是否上线-->
<?php
require 'conn.php';
$cstm_online = 1;
?>
<!--客服人工回复-->
<!-- <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script> -->
<script>
var cstmer_online = 0;
$(function () {
var wsurl = 'ws://192.168.1.100:8090';
var ws;
var i = 0;
if (window.WebSocket) {
ws = new WebSocket(wsurl);
//连接建立
ws.onopen = function (event) {
console.log("Connected to WebSocket server.");
$('.chatBox-content-demo').append(reply('Bonjour, avez-vous des questions ?'));
}
//收到消息
ws.onmessage = function (event) {
var msg = JSON.parse(event.data); //解析收到的json消息数据
console.log(msg);
var type = msg.type; // 消息类型
var umsg = msg.message; //消息文本
var uname = msg.name; //发送人
i++;
if (type == '82.127.79.18') {
$('.chatBox-content-demo').append(reply(umsg));
}
if (type == 'system') {
console.log(umsg);
}
$('#message').val('');
window.location.hash = '#' + i;
}
//发生错误
ws.onerror = function (event) {
i++;
console.log("Connected to WebSocket server error");
window.location.hash = '#' + i;
}
//连接关闭
ws.onclose = function (event) {
i++;
console.log('websocket Connection Closed. ');
$('.chatBox-content-demo').append(reply('Il y a une error sur Internet'));
window.location.hash = '#' + i;
}
function send() {
var message = $('#message').val();
if (!message) {
return false;
}
var msg = {
type: 'usermsg',
name: ip_client,
message: message,
};
try {
ws.send(JSON.stringify(msg));
repeatClientMsg(message);
document.getElementById('message').value = "";
} catch (ex) {
console.log(ex);
}
}
//按下enter键发送消息
$(window).keydown(function (event) {
if (event.keyCode == 13) {
var textContent = $("#message").val();
cstmer_online = 1;
if (cstmer_online == 1) {
send();
} else if (cstmer_online == 0) {
if (textContent != "") {
//聊天框默认最底部
$(document).ready(function () {
$("#chatBox-content-demo").scrollTop($("#chatBox-content-demo")[0].scrollHeight);
});
document.getElementById('timenow').innerHTML = timenow();
if (textContent.indexOf("balabala1") != "-1" || textContent.indexOf("1") != "-1") {
var re = "<a href=\"#devis\">Rua~</a>";
reply(re);
} else if (textContent.indexOf("balabala2") != "-1" || textContent.indexOf("2") != "-1") {
var re = "RuaRua~";
reply(re);
} else if (textContent.indexOf("balabala3") != "-1" || textContent.indexOf("3") != "-1") {
var re = "RuaRuaRua~";
reply(re);
} else if (textContent.indexOf("balabala4") != "-1" || textContent.indexOf("4") != "-1") {
var re = "RuaRuaRuaRua~";
reply(re);
} else {
var re = "Questions susceptibles de vous intéresser: <br> <a href=\"javascript:void(0);\" onclick=setTimeout(\"replyNum(1)\",600)>1.balabala1</a><br> <a href=\"javascript:void(0);\" onclick=setTimeout(\"replyNum(2)\",600)>2.balabala2 </a><br><a href=\"javascript:void(0);\" onclick=setTimeout(\"replyNum(3)\",600)>3.balabala3</a><br> <a href=\"javascript:void(0);\" onclick=setTimeout(\"replyNum(4)\",600)>4.balabala4</a>";
reply(re);
}
}
}
else {
reply ('il y a une error sur Internet');
console.log(客服部分运行错误);
}
}
});
//点发送按钮发送消息
$("#chat-fasong").click(function () {
var textContent = $("#message").val();
send();
if (textContent != "") {
//聊天框默认最底部
$(document).ready(function () {
$("#chatBox-content-demo").scrollTop($("#chatBox-content-demo")[0].scrollHeight);
});
document.getElementById('timenow').innerHTML = timenow();
if (textContent.indexOf("balabala1") != "-1" || textContent.indexOf("1") != "-1") {
var re = "<a href=\"#devis\">Rua~</a>";
reply(re);
} else if (textContent.indexOf("balabala2") != "-1" || textContent.indexOf("2") != "-1") {
var re = "RuaRua~";
reply(re);
} else if (textContent.indexOf("balabala3") != "-1" || textContent.indexOf("3") != "-1") {
var re = "RuaRuaRua~";
reply(re);
} else if (textContent.indexOf("balabala4") != "-1" || textContent.indexOf("4") != "-1") {
var re = "RuaRuaRuaRua~";
reply(re);
} else {
var re = "Questions susceptibles de vous intéresser: <br> <a href=\"javascript:void(0);\" onclick=setTimeout(\"replyNum(1)\",600)>1.balabala1</a><br> <a href=\"javascript:void(0);\" onclick=setTimeout(\"replyNum(2)\",600)>2.balabala2 </a><br><a href=\"javascript:void(0);\" onclick=setTimeout(\"replyNum(3)\",600)>3.balabala3</a><br> <a href=\"javascript:void(0);\" onclick=setTimeout(\"replyNum(4)\",600)>4.balabala4</a>";
reply(re);
}
}
});
} else {
alert('该浏览器不支持web socket');
}
});
</script>
<!--客服人工回复部分结束-->
<!--客服自动回复对话框JS部分-->
<script>
function timenow() {
var myDate = new Date();
var times = myDate.toLocaleString( );
return times
}
document.getElementById('systime').innerHTML = timenow();
screenFuc();
function screenFuc() {
var topHeight = $(".chatBox-head").innerHeight();//聊天头部高度
//屏幕小于768px时候,布局change
var winWidth = $(window).innerWidth();
if (winWidth <= 768) {
var totalHeight = $(window).height(); //页面整体高度
//中间内容高度
$(".chatBox-info").css("height", totalHeight - topHeight);
$(".chatBox-content-demo").css("height", totalHeight - topHeight - 55);
// $(".chatBox-list").css("height", totalHeight - topHeight-200);
$(".chatBox-kuang").css("height", totalHeight - topHeight);
$(".div-textarea").css("width", winWidth - 106);
} else {
$(".chatBox-info").css("height", 495);
$(".chatBox-content").css("height", 448);
$(".chatBox-content-demo").css("height", 448);
$(".chatBox-list").css("height", 495);
$(".chatBox-kuang").css("height", 495);
// !import不可覆盖,以删除
$(".div-textarea").css("width", 245);
}
}
(window.onresize = function () {
screenFuc();
})();
//未读信息数量为空时
var totalNum = $(".chat-message-num").html();
if (totalNum == "") {
$(".chat-message-num").css("padding", 0);
}
$(".message-num").each(function () {
var wdNum = $(this).html();
if (wdNum == "") {
$(this).css("padding", 0);
}
});
$(".chat-close").click(function () {
$(".chatBox").toggle(100);
$(".chatBox-head-two").toggle();
$(".chatBox-kuang").fadeToggle();
$(".livechat-girl").css("display", "block");
})
// changer
function repeatClientMsg(ques) {
if (ques != "") {
$(".chatBox-content-demo").append("<div class=\"clearfloat\">" +
"<div class=\"author-name\"><small class=\"chat-date\" id=\"timenow\"></small> </div> " +
"<div class=\"right\"> <div class=\"chat-message\"> " + ques + " </div> " +
"<div class=\"chat-avatars\"><img src=\"static/icon00.png\" alt=\"头像\" /></div> </div> </div>");
}
$(document).ready(function () {
$("#chatBox-content-demo").scrollTop($("#chatBox-content-demo")[0].scrollHeight);
});
}
//changer
function replyNum(num) {
if (num == 1) {
repeatClientMsg("balabala1");
var re = "1.我们是冠军!";
reply(re);
} else if (num == 2) {
repeatClientMsg("balabala2");
var re = "2.我们是冠军!我们是冠军!";
reply(re);
} else if (num == 3) {
repeatClientMsg("balabala3");
var re = "3.我们是冠军!我们是冠军!我们是冠军!";
reply(re);
} else if (num == 4) {
repeatClientMsg("balabala4");
var re = "4.我们是冠军!我们是冠军!我们是冠军!我们是冠军!";
reply(re);
}
}
// 发送表情
$("#chat-biaoqing").click(function () {
$(".biaoqing-photo").toggle();
});
$(document).click(function () {
$(".biaoqing-photo").css("display", "none");
});
$("#chat-biaoqing").click(function (event) {
event.stopPropagation();//阻止事件
});
$(".emoji-picker-image").each(function () {
$(this).click(function () {
var bq = $(this).parent().html();
console.log(bq)
$(".chatBox-content-demo").append("<div class=\"clearfloat\">" +
"<div class=\"author-name\"><small class=\"chat-date\" id=\"timenow\"></small> </div> " +
"<div class=\"right\"> <div class=\"chat-message\"> " + bq + " </div> " +
"<div class=\"chat-avatars\"><img src=\"static/icon00.png\" alt=\"头像\" /></div> </div> </div>");
//发送后关闭表情框
$(".biaoqing-photo").toggle();
//聊天框默认最底部
$(document).ready(function () {
$("#chatBox-content-demo").scrollTop($("#chatBox-content-demo")[0].scrollHeight);
});
document.getElementById('timenow').innerHTML = timenow();
})
});
//自动回复
function reply(textContent) {
if (textContent != "") {
$(".chatBox-content-demo").append("<div class=\"clearfloat\">" +
"<div class=\"author-name\"><small class=\"chat-date\" id=\"timenow\"></small> </div> " +
"<div class=\"left\"><div class=\"chat-avatars\"><img src=\"static/icon01.png\" alt=\"头像\" /></div> " +
"<div class=\"chat-message\"> " + textContent + " </div> </div> </div>");
//聊天框默认最底部
$(document).ready(function () {
$("#chatBox-content-demo").scrollTop($("#chatBox-content-demo")[0].scrollHeight);
});
document.getElementById('timenow').innerHTML = timenow();
}
}
// 发送图片
function selectImg(pic) {
if (!pic.files || !pic.files[0]) {
return;
}
var reader = new FileReader();
reader.onload = function (evt) {
var images = evt.target.result;
$(".chatBox-content-demo").append("<div class=\"clearfloat\">" +
"<div class=\"author-name\"><small class=\"chat-date\" id=\"timenow\"></small> </div> " +
"<div class=\"right\"> <div class=\"chat-message\"><img src=" + images + "></div> " +
"<div class=\"chat-avatars\"><img src=\"static/icon01.png\" alt=\"头像\" /></div> </div> </div>");
//聊天框默认最底部
$(document).ready(function () {
$("#chatBox-content-demo").scrollTop($("#chatBox-content-demo")[0].scrollHeight);
});
document.getElementById('timenow').innerHTML = timenow();
};
reader.readAsDataURL(pic.files[0]);
}
</script>
<!--客服自动回复对话框JS部分结束-->
<script src="js/jquery.min.js"></script>
<script src="js/jquery-migrate-3.0.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/jquery.waypoints.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/aos.js"></script>
<script src="js/jquery.animateNumber.min.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<script src="js/jquery.timepicker.min.js"></script>
<script src="js/scrollax.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBVWaKrjvy3MaE7SQ74_uJiULgl1JY0H2s&sensor=false"></script>
<script src="js/google-map.js"></script>
<script src="js/main.js"></script>
</body>
</html>