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
|
<? session_start(); error_reporting(E_ALL); ini_set("display_errors", 1); if(!isset($_SESSION['id'])){ // notice error 방지 $_SESSION['id'] = ""; } if(!isset($sname)){ // notice error 방지 $sname = ""; } if(!isset($id)){ // notice error 방지 $id = ""; } /* if(!$_SESSION['id']){ //echo "<script>alert('로그인 후 이용해주세요.');location.href='login.php';</script>"; //echo "<script>location.href='login.php';</script>"; } */ /* jyh 디버깅 함수 */ function prt($data=null, $size=0) { //if (!isdev()) return; ob_start(); print_r($data); $content_text = ob_get_contents(); ob_end_clean(); $content_list = explode("\n", $content_text); $rows = count($content_list); $cols = 0; foreach ($content_list as $line) { if (($col = mb_strlen($line)) > $cols) { $cols = $col; if ($cols > 128) $rows++; } } $rows += 2; $cols += 2; if (!headers_sent()) { header('Content-type: text/html; charset=utf-8'); } echo '<textarea cols="' . $cols . '" rows="' . $rows . '"'; echo ' style="display:block; margin:0; padding:5px; border:1px solid #999;'; if ($size) echo ' width:' . $size . 'px;'; echo ' font-family:Hwsr_9pt, Gulimche; font-size:9pt;">'; echo $content_text; echo '</textarea>'; } //prt($_SESSION); //$a = iconv("EUC-KR","UTF-8", $_SESSION['sname']); ?> <html> <head> <title>e수발주</title> <script type="text/javascript" src="../js/jquery-1.5.min.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0, minimum-scale=1.0, user-scalable=yes" /> <script> document.domain = "mijinsoft.co.kr"; function slist(){ var elogin = document.getElementsByName("optelogin")[0].value; if(elogin == "1"){ alert("매입처원장은 천년경영 사용 거래처에서만 볼 수 있습니다."); } else { document.location.href="../../onlinecs/sell_list.php"; } }
function blist(){ var elogin = document.getElementsByName("optelogin")[0].value; if(elogin == "1"){ alert("매출처원장은 천년경영 사용 거래처에서만 볼 수 있습니다."); } else { document.location.href="../../onlinecs/buy_list.php"; } } function chgpass(){ //var passwin = window.open( '../chgpwd.php', 'passWin', 'status=0,toolbar=0,resizable=1,scrollbar=no,width=304,height=184' ); document.getElementById("test_iframe").src = 'chgpwd.php'; document.getElementById("test_iframe").style.width = "100%"; document.getElementById("test_iframe").style.height = "100%"; // document.forms.r_detail.submit(); } function ifrm_reset(){ //document.getElementById("test_iframe").src = ''; document.getElementById("test_iframe").style.width = "0"; document.getElementById("test_iframe").style.height = "0"; } </script> <script> function login(){ location.href = "login.php"; } function logout(){ login_ifm.location.href = "logout.php"; } // </script> </head> <body> <iframe name="test_iframe" id="test_iframe" width="0" height="0" style="border:0px"></iframe> <iframe name="login_ifm" width="0" height="0" style="border:0px"></iframe> <input type="hidden" name="optelogin" value="<?=$elogin?>"> <!-- top menu 로 쓰야지~~~~ --> <table width="100%" border="1" align="center"> <? if($sname){ ?> <tr align="right"> <td colspan="7"><b>수주처상호(ID):</b> <?=$sname;?>(<?=$id;?>) </td> </tr> <?}?> <tr> <td>LOGO</td> <td>수주(판매)</td> <td>발주(구매)</td> <td><a href="javascript:slist();" />매입처원장</a></td> <td><a href="javascript:blist();" />매출처원장</a></td> <td><a href="javascript:chgpass();" />암호변경</a></td> <td><?if($id){?><a href="javascript:logout();" />로그아웃</a><?}else{?><a href="javascript:login();" />로그인</a><?}?></td> </tr> </table> <!-- top menu 끝 --> <!-- content area --> <table width="100%" height="200" border="1" align="center"> <tr align="center"> <td>content <a href="http://m.naver.com">네이버</a></td> </tr> <tr align="center"> <td>content <a href="http://mijinsoft.co.kr/new_design/_common/">디자인</a></td> </tr> </table> <!-- content area 끝 --> <!-- copyright--> <table width="100%" height="50" border="1" align="center"> <tr align="center"> <td>Copyright (c) 2014 MijinSoft All Rights Reserved.</td> </tr> </table> <!-- copyright 끝 --> </body> </html>
|