7514aee8fb33a0e95c7c69f4ccd51d20701b19df.svn-base
2.05 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
function go($method,$subtype,$msg,$url)
{
$GF_TYPE = $method ;
$type = $subtype ;
$msg = $msg ;
$url = $url ;
$url = pack("H*",$url);
// echo $GF_TYPE . " : " .$type. " : " .$msg. " : ". $url ;
if( $type == "ToPrepageByRef" )
$ref = $_SERVER['HTTP_REFERER'] ;
if( $GF_TYPE == "AJAX" ) { ?>
function errorMSG(ERROR_ALERT_MSG) {
if( ERROR_ALERT_MSG != "null" && ERROR_ALERT_MSG != "" )
alert(ERROR_ALERT_MSG) ; // 에러 메세지 출력
}
function flowControl()
{
var url = '<?= $url ?>' ;
var type = '<?= $type ?>' ;
var msg = '<?= $msg ?>' ;
var ref = '<?= $ref ?>' ;
errorMSG(msg) ;
<?= $jsStatement ?> ;
if( type == "ToSelf" )
retrieveGRID() ;
else if( type == "ToNext" )
location.href = url ;
else if( type == "Close" )
self.close() ;
}
flowControl() ;
<? } else { ?>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
<TITLE> ANYGO </TITLE>
<script>
function errorMSG(ERROR_ALERT_MSG) {
if( ERROR_ALERT_MSG != "null" && ERROR_ALERT_MSG != "" )
alert(ERROR_ALERT_MSG) ; // 에러 메세지 출력
}
var url = '<?= $url ?>' ;
var type = '<?= $type ?>' ;
var msg = '<?= $msg ?>' ;
errorMSG(msg) ;
// ToO , ToS , ToPbyRef , ToOandClose , ReOandClose , ReOandToS ,
// Close , ToP , RePa , None , Ajax
if( type == "ToO" )
opener.location.href = url ;
else if( type == "ToS" )
self.location.href = url ;
else if( type == "ToPbyRef" )
self.location.href = ref ;
else if( type == "ToOandClose") {
opener.location.href = url ;
self.close() ;
}
else if( type == "ReOandClose") {
opener.location.href = opener.document.URL ;
self.close() ;
}
else if( type == "ReOandToS") {
opener.location.href = opener.document.URL ;
self.location.href = url ;
}
else if( type == "Close") {
self.close() ;
}
else if( type == "ToP") {
history.go(-1) ;
}
else if( type == "RePa") {
parent.location.href = parent.document.URL ;
}
else if( type == "None") {
}
else
{
alert('[Control Exception] 정의되어 있는 않은 flow type 입니다.') ;
}
</script>
</HEAD>
</HTML>
<? } }?>