metaData.php
2.38 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
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
<!doctype html>
<html>
<head>
<title><?=$title?></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<link rel="stylesheet" type="text/css" href="/web/inc/css/style.css">
<script type="text/javascript" src="/common/js/common.js"></script>
<script type="text/javascript" src="/common/js/jsMap.js"></script>
<script type="text/javascript" src="/common/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/common/js/jquery.form.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" language="javascript" src="/common/js/jquery.cookie.js"></script>
<!-- 리치 js -->
<script type="text/javascript" src="/common/js/jquery_rich/RichBaseExtends.js"></script>
<script type="text/javascript" src="/common/js/jquery.DOMWindow.js"></script>
<script type="text/javascript" src="/common/js/ajaxupload.3.6.js"></script>
<script type="text/javascript" src="/common/js/imgPreview.js"></script>
</head>
<script>
//*********** 전역변수 선언 스코프 ***********//
var _domain = "" ;
var _urlPath = getUrlPath(); // top menu를 위해
var _fullUrlPath = getFullUrlPath(); // left menu 선택을 위해
var _documentUrl = getOriginUrl(); // #제거한 url
//*********** 전역변수 선언 스코프 ***********//
//url 경로 추출
function getUrlPath()
{
var currentUrl = urlRemoveSharp(document.URL);
currentUrl = currentUrl.replace(_domain, "");
var urlArr = currentUrl.split("/");
var retPath = "";
for (var i=1; i < 3 ; i++)
{
if(urlArr[i] != "")
{
retPath += "/"+urlArr[i];
}
}
return retPath;
}
//url 전체경로 추출
function getFullUrlPath()
{
var currentUrl = document.URL;
var urlPath = currentUrl.split("?");
urlPath = urlPath[0];
urlPath = urlRemoveSharp(urlPath);
urlPath = urlPath.replace(_domain, "");
return urlPath;
}
//document.URL 원본 추출
function getOriginUrl()
{
var currentUrl = urlRemoveSharp(document.URL);
return currentUrl;
}
//url에서 #제거
function urlRemoveSharp(url)
{
var urlArr = url.split("?");
urlArr[0] = urlArr[0].replace("#", "");
urlArr = urlArr.join("?");
return urlArr;
}
</script>