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
|
<? include("./header.php"); if(!isset($_GET['appCode'])) $_GET['appCode'] = ""; if(!isset($_SESSION['userid'])) $_SESSION['userid'] = "";
if($_GET['appCode'] == "" && $_SESSION['appCode'] == ""){ echo "<script>alert('ºñÁ¤»óÀûÀÎ Á¢±Ù ÀÔ´Ï´Ù.');</script>"; exit; }
if($_SESSION['userid'] == ""){ header("Location: login.php?appCode={$_GET['appCode']}"); }
// data ºÒ·¯¿À´Â ºÐ $sql = "SELECT r.idx, r.user_id, r.cdkey, r.user_name, r.app_code, r.enddate, r.license_pc, r.license_pda, r.sale_amount, r.bigo, r.rgst_dtm, c.cde_nm, c.flag3 FROM regist_user r LEFT JOIN codes c ON (r.app_code = c.cde) WHERE user_id = '{$_SESSION['userid']}' AND app_code = '{$_SESSION['appCode']}'"; $result = mysql_query($sql); $row = mysql_fetch_assoc($result);
// Notice Error ¹æÁö if(!isset($row['idx'])) $row['idx'] = ""; if(!isset($row['user_id'])) $row['user_id'] = ""; if(!isset($row['cdkey'])) $row['cdkey'] = ""; if(!isset($row['user_name'])) $row['user_name'] = ""; if(!isset($row['user_id'])) $row['user_id'] = ""; if(!isset($row['enddate'])) $row['enddate'] = ""; ?> <script> function editPop(cdkey){ var oldwin = window.open("userMacInformation.php?cdkey="+cdkey+"", "newpop", "status=0,toolbar=0,resizable=0,scrollbars=yes,width=800,height=800" ); } </script> <link href="css/macInformation.css" rel="stylesheet" /> <body> <form name="" id="" action="" method="post"> <div class="macWrap1"> <div class="logo"><img src="images/logo.png" alt="¹ÌÁø¼ÒÇÁÆ®"></div>
<div class="macWrap2"> <div class="header"> <h1><img src="images/mac_title.png" alt="MacAddredd Á¤Ç°ÀÎÁõ"></h1> <p>°í°´´ÔÀÇ Mac Address Á¤º¸¸¦ °ü¸® ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.</p> </div>
<table class="macContainer">
<caption> ÀÎÁõÁ¤º¸ <span class="logout"><a href="./logout.php"><img src="images/btn_logout.png" alt="·Î±×¾Æ¿ô"></a></span> </caption>
<colgroup> <col width="30%"><col width="70%"> </colgroup>
<tr> <th>ȸ¿ø ¾ÆÀ̵ð</th> <td><?=$_SESSION['userid']?></td> </tr> <tr> <th>»óÈ£¸í [¼º¸í]</th> <td><?=$row['user_name']?></td> </tr> <tr> <th>CD-Key</th> <td><? echo substr($row['cdkey'],0,4)."-".substr($row['cdkey'],4,4)."-".substr($row['cdkey'],8,4); ?></td> </tr> <tr> <th>ÇÁ·Î±×·¥</th> <td><?=$row['cde_nm']?></td> </tr> <tr> <th>¸¸·áÀÏÀÚ</th> <td><?=$row['enddate']?></td> </tr> <tr> <th>¶óÀ̼¾½º</th> <td class="license"><?=$row['license_pc']?> °³ <img src="images/btn_mac.png" alt="Mac°ü¸®" style="cursor:pointer;" onclick="editPop('<?=$row['cdkey']?>');"></td> </tr> </table> </div><!-- //macWrap2-->
<div class="macFooter"> <img src="images/copyright.png" alt="Ä«ÇǶóÀÌÆ®"> </div> </div><!-- smsWrap1--> </form> </body> <? include("./footer.php"); ?>
|