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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
|
<?php include_once("./_common2.php"); ?> <?php include_once("../../common.php"); ?> <? include("./Page/common/header.php"); ?>
<?
$USERID = "" ; //20130807Ãß°¡ $currentDay = date('Y-m-d',Time()); //if( $_COOKIE['USERID'] == ""){ if(!isset($_COOKIE['USERID'])) $_COOKIE['USERID'] = ""; if( !isset($_COOKIE['USERID']) || $_COOKIE['USERID'] == "" ) { ?>
<script> location.href = "./logingo.php?menu=3"; </script>
<? }
$enckey = sha1($_COOKIE['USERID']."¡×¡×¡×".$_COOKIE['USERID']); //_pr($enckey); $memberQry = " SELECT * FROM member WHERE Mid = '{$_COOKIE['USERID']}' "; $memberResult = MYSQL_QUERY($memberQry); $memberRow = MYSQL_FETCH_ARRAY($memberResult);
//20130903 $programName_0 = ""; $programName_1 = "";
if($memberRow['Msw1'] !== "0"){ //»ç¿ëÇÁ·Î±×·¥ $programNameQry = " SELECT category_name FROM cate3 WHERE category_code = '{$memberRow['Msw1']}' "; $programResult = MYSQL_QUERY($programNameQry); $programRow = MYSQL_FETCH_ARRAY($programResult); $programName = explode("->",$programRow[0]); $programName_0 = $programName[0]; if (count($programName)>=2) $programName_1 = $programName[1]; } else { //$programName = "¼±ÅõÇÁö ¾ÊÀ½"; $programName_0 = "¼±ÅõÇÁö ¾ÊÀ½"; } if($memberRow['Mdiv'] == "2") $_certiNum = "certi_num"; //Á¤Ç°¹øÈ£ else $_certiNum = "rent_num"; //ÀÓ´ë¹øÈ£ $certiQry = " SELECT $_certiNum, ver FROM certinumManage WHERE substring( category_code , 5,2 ) = '{$memberRow['Msw1']}' "; //_pr($certiQry); $certiResult = mysql_query($certiQry); $certiRow = mysql_fetch_array($certiResult); //_pr($certiRow); //Á¤Ç°¹øÈ£ ¾÷µ¥ÀÌÆ® 2010-11-09 Ãß°¡:ÀÎÁõ±â°£³»À϶§¸¸ ¾÷µ¥ÀÌÆ®
$toDay = date('Y-m-d',Time()); $j_query = "select * from member where (Mdiv ='2' and Mup ='1') and End_day > '$toDay' and Mid = '{$_COOKIE['USERID']}' "; $j_result = mysql_query($j_query);
$i_query = "select * from member where (Mdiv ='3' and Mper ='1') and End_day > '$toDay' and Mid = '{$_COOKIE['USERID']}' "; $i_result = mysql_query($i_query); if( MYSQL_NUM_ROWS($j_result) > 0 || MYSQL_NUM_ROWS($i_result) > 0 ){ $certiUpdate = " update member set Certi_num = '$certiRow[0]', Certi_ver = '$certiRow[ver]' WHERE Mid = '{$_COOKIE['USERID']}' "; mysql_query($certiUpdate); }
if($memberRow['Msw1']!=''){ $sql = "select * from cate3 where category_code = '{$memberRow['Msw1']}' "; $prod_res1 = mysql_query($sql); $prod_row1 = mysql_fetch_array($prod_res1); $v = explode("->",$prod_row1['category_name']); $prod_row1['prod_name'] = $v[1];
$sql = "select * from app_priv where user_id = '{$_COOKIE['USERID']}' and app_id = '{$memberRow['Msw1']}' "; $res = mysql_query($sql,$connect_app); $app_info1 = mysql_fetch_array($res); }
//_pr($app_info1);
if($memberRow['Msw2']!=''){ $sql = "select * from cate3 where category_code = '{$memberRow['Msw2']}' "; $prod_res2 = mysql_query($sql); $prod_row2 = mysql_fetch_array($prod_res2); $v = explode("->",$prod_row2['category_name']); $prod_row2['prod_name'] = $v[1]; }
// °³¹ß¿äû 17108. ·ÎÄûç¿ëÀÚÀÇ °æ¿ì Á¤Ç°ÀÎÁõ±â°£ÀÌ Áö³ª¸é ¹«»ó¾÷µ¥ÀÌÆ®±â°£¸¸·á·Î Ç¥±â $today = date("Y-m-d"); if($memberRow['End_day'] < $today) { $certifi_txt = "¹«»ó¾÷µ¥ÀÌÆ®±â°£¸¸·á (°í°´¼¾Å͹®ÀÇ 1566-8680)"; } else { $certifi_txt = $certiRow['certi_num']; } ?> <style> /* @import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700;800&display=swap');*/ /* .page {font-family: 'Nanum Myeongjo', serif;width: 712px;height: 1082px;margin: 20px auto;border: 1px #D3D3D3 solid;background: white;background:url('./img/mypage/certifi_frame.png') no-repeat;background-size:contain;color:#000;padding:93px;}*/ /* .page h2 {font-family: 'Nanum Myeongjo', serif;text-align: center; font-weight:bold; font-size:36px;color:#000;margin-bottom:80px;margin-top:-15px;margin-right:25px;}*/ /* .page p {font-family: 'Nanum Myeongjo', serif;font-size:16px;line-height:1.5;font-weight:bold;margin:auto;}*/ /* .page p span {font-family: 'Nanum Myeongjo', serif;}*/ /* .page a {color:inherit;}*/ /* .page .certifi_text {font-size:24px;line-height:1.5;margin-top:80px;}*/ /* .page .mb37 {margin-bottom:37px;}*/ /* .certifi_num {font-weight:800;}*/
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700;800&display=swap'); .sec_block {box-sizng:border-box;-moz-box-sizing:border-box;width: 210mm;margin:auto;} .page {font-family: 'Nanum Myeongjo', serif;width: 210mm; min-height: 297mm;padding: 10mm;margin: 10mm auto;border-radius:5px;background:white;} .subpage {background:url('./img/mypage/certifi_frame.png') no-repeat center;background-size:cover;color:#000;padding: 1cm;height:257mm;} .subpage .wrap_page {padding:0.7cm;} .subpage h2 {font-family: 'Nanum Myeongjo', serif;text-align: center; font-weight:bold; font-size:22pt;color:#000;margin-bottom:70px;margin-top:-3px;margin-right:25px;} .subpage p {font-family: 'Nanum Myeongjo', serif;font-size:10pt;line-height:1.5;font-weight:bold;margin:auto;} .subpage p span {font-family: 'Nanum Myeongjo', serif;} .subpage a {color:inherit;text-decoration:none;} .subpage .certifi_text {font-size:15pt;line-height:1.5;margin-top:60px;} .subpage .mb35 {margin-bottom:35px;} .certifi_num {font-weight:800;} @media screen { .page { border: initial; border-radius: initial; width: initial; min-height: initial; background: initial; page-break-after: always; } } /*IE10+*/ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){ .page{ width:745px; } } </style>
<div class="wrap">
<div class="contents"> <div class="asideMenu"> <? include("./Page/mypage/leftNavi.html"); ?> </div><!-- //leftNavi -->
<div class="subContents"> <h1> <img src="./img/titlebar/mypagecertifi.png" alt="ÀÎÁõ¼Ãâ·Â"> <p> <span class="home"><a href="intro.php">Home</a></span> <span class="depth">></span> <span class="depth1">¸¶ÀÌÆäÀÌÁö</span> <span class="depth">></span> <span class="depth2">ÀÎÁõ¼Ãâ·Â/´Ù¿î·Îµå</span> </p> </h1>
<div class="section" style="margin-bottom:10px;border:1px solid #ccc;width:898px;"> <div class="sec_block"> <div class="page"> <div class="subpage"> <div class="wrap_page"> <h2> <img src="./img/mypage/seal.png" style="vertical-align:middle;width:110px;"> ¼ÒÇÁÆ®¿þ¾î »ç¿ë±Ç ÀÎÁõ¼ </h2> <p class="mb35"> »ç¿ëÀÚ Á¤º¸ È®ÀÎ<br>- »óÈ£(À̸§) : <span><?php echo $memberRow['Mcompany']."(".$memberRow['Mname'].")";?></span><br> - ÁÖ¼Ò : <span><?php echo $memberRow['Madd'];?></span><br> - ID : <span><?php echo $memberRow['Mid'];?></span> </p> <p class="mb35"> ¼ÒÇÁÆ®¿þ¾î : <span><?php echo $prod_row1['prod_name']; if($prod_row2['prod_name']!=''){ echo ", ".$prod_row2['prod_name']; }?></span><br> ÀÎÁõ¹øÈ£ : <span class="certifi_num"><?php echo $certifi_txt;?></span><br> µµÀÔÀÏ : <span><?php echo substr($memberRow['Start_day'],0,4)."³â ".substr($memberRow['Start_day'],5,2)."¿ù ".substr($memberRow['Start_day'],8,2)."ÀÏ";?></span> <!--»ç¿ë¹üÀ§ : <span>PC 1´ë, PDA 3´ë(¾çµµ¾ç¼öºÒ°¡)</span><br> »ç¿ë±â°£ : <span>2021³â 2¿ù 24ÀÏ ~ Æò»ý</span>--> </p> <p class="mb35"> <?php if($memberRow['End_day'] < $today) { ?> ¼ÒÇÁÆ®¿þ¾î¼³Ä¡°æ·Î : ±âÁ¸¿¡ Á¦°ø¹ÞÀº ¼³Ä¡ ÆÄÀÏÀ» ÅëÇØ ¼³Ä¡¸¦ ÁøÇàÇÏ¼Å¾ß ÇÕ´Ï´Ù.<br/> - »ç¿ëÁßÀÎ µ¥ÀÌÅÍ ¹öÀü¿¡ ¸ÂÁö ¾Ê´Â ÇÁ·Î±×·¥ ¹öÀüÀ» ¼³Ä¡ÇÏ¿´À» °æ¿ì<br/> ¹ß»ýµÇ´Â ¹®Á¦¿¡ ´ëÇØ¼ ´ç»ç°¡ Ã¥ÀÓÁú ¼ö ¾ø´Â ºÎºÐ ¾çÇØºÎʵ右´Ï´Ù.<br/> - ¼³Ä¡ ÆÄÀÏÀ» ºÐ½ÇÇÏ¿´À» °æ¿ì¿¡´Â °í°´¼¾ÅÍ 1566-8680À¸·Î ¹®ÀÇ ºÎʵ右´Ï´Ù. <?php } else { ?> ¼ÒÇÁÆ®¿þ¾î¼³Ä¡°æ·Î : <a href="http://www.mijinsoft.co.kr/download/<?php echo $prod_row1['DemoDownFile'];?>" target="_blank"><span>http://www.mijinsoft.co.kr/download/<?php echo $prod_row1['DemoDownFile'];?></span></a><br> - ¼³Ä¡ÆÄÀÏÀ» ´Ù¿î·Îµå ÇϽŠÈÄ ¹é¾÷ »çº»À» ¸¸µé¾î º°µµ·Î ¾ÈÀüÇÑ Àå¼Ò¿¡ º¸°üÇϽñ⠹ٶø´Ï´Ù. ÀÏÁ¤±â°£ÀÌ °æ°ú ÈÄ¿¡´Â ´Ù¿î·Îµå°¡ ¾È µÉ ¼ö ÀÖ½À´Ï´Ù. <?php } ?> </p> <p> Á¦Ç°µî·Ï<br> 1. º» ÇÁ·Î±×·¥À» ¸ÕÀú ´Ù¿î·ÎµåÇÏ¿© ¼³Ä¡ÇÕ´Ï´Ù.<br> 2. ÀÎÁõ¹øÈ£¸¦ È®ÀÎ ÈÄ ±âÀçµÈ Á¤Ç°¹øÈ£·Î Á¤Ç°µî·Ï ÇÏ½Ã¸é µË´Ï´Ù. </p> <p class="certifi_text"> ¿¥Á¦À̼ÒÇÁÆ®´Â º» ¼ÒÇÁÆ®¿þ¾î »ç¿ë¿ø ÀÎÁõ¼¸¦ ÅëÇØ "¼ÒÇÁÆ®¿þ¾î" »ç¿ë¿¡ ´ëÇÑ ±Ç¸®¸¦ À§¿Í °°ÀÌ ÀÎÁõÇϸç, "¼ÒÇÁÆ®¿þ¾î" ¸¦ Á¤´çÇÏ°Ô ÃëµæÇÏ¿© »ç¿ëÇϰí ÀÖÀ½À» Áõ¸íÇÕ´Ï´Ù. </p> <p class="certifi_text" style="text-align:right;"> <span style="margin-right:40px;"><span><?php echo date("Y");?></span>³â</span><span style="margin-right:40px;"><span><?php echo date("m");?></span>¿ù</span><span style="margin-right:118px;"><span><?php echo date("d");?></span>ÀÏ</span> </p> <p class="certifi_text" style="text-align:center;margin-left:71px;"> ¿¥Á¦À̼ÒÇÁÆ®<img src="./img/mypage/office_stamp.png" style="margin-left:14px;vertical-align:middle;width:60px;"> </p> </div> </div> </div> </div> </div><!-- //section --> <div style="text-align:right;margin-top:50px;"> <img src="./img/mypage/print_bt.png" onclick="print_btn();" style="margin-right:12px;cursor:pointer;"> <img src="./img/mypage/pdf_bt.png" onclick="down_btn()" style="cursor:pointer;"> </div> </div><!-- //subContents --> </div><!-- //contents --> </div><!-- //wrap --> <script> function print_btn() { var win = window.open("./certifi_print.php", "popupwin", "width=810, height=1200"); }; function down_btn() { if(confirm('PDFÆÄÀÏ·Î Á¦°øµË´Ï´Ù. ÀÎÁõ¼¸¦ ´Ù¿î·Îµå ÇϽðڽÀ´Ï±î?')){ document.location.href="./certifi_download.php?Mid=<?php echo $_COOKIE['USERID'];?>&enckey=<?php echo $enckey;?>"; } } </script>
<? include("./Page/common/footer.php"); ?>
|