-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlanguage.tpl.php
More file actions
43 lines (40 loc) · 1.16 KB
/
language.tpl.php
File metadata and controls
43 lines (40 loc) · 1.16 KB
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta charset="utf-8">
<title>Tan Hoa Furniture</title>
</head>
<body>
<div class="content" align="center">
<ul>
<li>
<a class="lang" data-lang="vi" href="<?php echo $base_url; ?>/vi" >
<em>Tiếp tục bằng Tiếng Việt.</em>
</a>
</li>
</ul>
<ul>
<li>
<a class="lang" data-lang="en" href="<?php echo $base_url; ?>/en" >
<em>Continue by English language<em>
</a>
</li>
</ul>
</div>
<script type="text/javascript" src="http://drumy.com/misc/jquery.js?v=1.4.4"></script>
<script type="text/javascript">
$(document).ready(function () {
$('a.lang').bind('click', function(e) {
var lang = $(this).attr('data-lang');
setCookie('user_lang', lang, 7, '/');
});
});
function setCookie(c_name,value,exdays, path) {
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value + '; path=' + path;
}
</script>
</body>
</html>