-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
204 lines (193 loc) · 6.39 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
<?php
session_start();
$session=session_id();
@define ( '_template' , './templates/');
@define ( '_source' , './sources/');
@define ( '_lib' , './admin/lib/');
if(!isset($_SESSION['lang']))
{
$_SESSION['lang']='';
}
$lang=$_SESSION['lang'];
require_once _source."lang$lang.php";
include_once _lib."config.php";
include_once _lib."constant.php";
include_once _lib."functions.php";
include_once _lib."class.database.php";
include_once _lib."functions_user.php";
include_once _lib."functions_giohang.php";
include_once _lib."file_requick.php";
include_once _source."counter.php";
include_once _source."useronline.php";
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<base href="http://<?=$config_url?>/" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.css" type="text/css">
<script type="text/javascript" src="assets/js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="assets/bootstrap/js/bootstrap.min.js"></script>
<link href="assets/css/style.css" rel="stylesheet" type="text/css" />
<link href="assets/css/styleresponsive.css" rel="stylesheet" type="text/css" />
<link href="assets/css/owl.carousel.min.css" rel="stylesheet" type="text/css" />
<link href="assets/css/owl.theme.default.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="assets/js/owl.carousel.js"></script>
<script type="text/javascript" src="assets/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="assets/js/jsmenuheader.js"></script>
<script type="text/javascript" src="assets/js/gototop.js"></script>
<script>
jQuery(document).ready(function($) {
$('.fadeOut').owlCarousel({
items: 1,
animateOut: 'fadeOut',
loop: true,
responsiveClass:true,
margin: 10,
autoplay:true,
dots:false,
nav:false,
});
$('.custom1').owlCarousel({
animateOut: 'slideOutDown',
animateIn: 'flipInX',
items: 1,
margin: 30,
stagePadding: 30,
smartSpeed: 450
});
});
</script>
<!--
<script type="text/javascript">
$(document).ready(function(){
$(window).scroll(function(){
var cach_top = $(window).scrollTop();
if(cach_top >= 40){
$('#header').css({position: 'fixed',width:'100%', top: '0px', zIndex:99});
}else{
$('#header').css({position: 'relative'});
}
});
});
</script>
-->
<script>
$(document).ready(function() {
$('.project').owlCarousel({
loop: true,
margin: 10,
responsiveClass: true,
responsive: {
0: {
items: 1,
nav: false
},
600: {
items: 1,
nav: false
},
1000: {
items: 1,
nav: false,
loop: false,
margin: 20
}
}
})
})
</script>
</head>
<body>
<div class="wrapper">
<div id="header">
<?php include _template."layout/header.php" ?>
<?php echo $_SERVER['SERVER_NAME']; ?>
</div>
<div>
<?php
if($com == "" || $com == "index")
include _template."layout/slider.php";
?>
</div>
<div style="clear: both;"></div>
<div id="main">
<?php
include _template.$template."_tpl.php";
?>
</div>
<div id="footer">
<?php include _template."layout/footer.php" ?>
</div>
<div class="copyright">
<div class="container">
<div class="row">
<div class="col-md-6">
<p>Design by Lanh Viet Thuan</p>
</div>
<div class="col-md-6">
<button onclick="topFunction()" class="btn btn-info" id="gotop">Về Đầu Trang</button>
</div>
</div>
</div>
</div>
</body>
<script>
jQuery(document).ready(function($) {
var owl = $('.owl-carousel');
owl.on('initialize.owl.carousel initialized.owl.carousel ' +
'initialize.owl.carousel initialize.owl.carousel ' +
'resize.owl.carousel resized.owl.carousel ' +
'refresh.owl.carousel refreshed.owl.carousel ' +
'update.owl.carousel updated.owl.carousel ' +
'drag.owl.carousel dragged.owl.carousel ' +
'translate.owl.carousel translated.owl.carousel ' +
'to.owl.carousel changed.owl.carousel',
function(e) {
$('.' + e.type)
.removeClass('secondary')
.addClass('success');
window.setTimeout(function() {
$('.' + e.type)
.removeClass('success')
.addClass('secondary');
}, 500);
});
owl.owlCarousel({
loop: true,
nav: false,
lazyLoad: true,
margin: 20,
video: true,
responsive: {
0: {
items: 1
},
600: {
items: 2
},
960: {
items: 3,
},
1200: {
items: 3
}
}
});
});
</script>
<script type="text/javascript">
function onSearch(evt) {
var keyword = document.getElementById("keyword").value;
if(keyword=='' || keyword=='Nhập từ khoá tìm kiếm...')
alert('Bạn chưa nhập từ khóa tìm kiếm!');
else{
//var encoded = Base64.encode(keyword);
location.href = "tim-kiem.html/keyword="+keyword;
loadPage(document.location);
}
}
</script>
</html>