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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
|
<? include("./header.php"); if(!isset($_SESSION['userid'])) $_SESSION['userid'] = "";
if($_SESSION['userid'] == ""){ header("Location: login_total.php"); }
// data ºÒ·¯¿À´Â ºÐ /*$sql = "SELECT r.user_name FROM regist_user r LEFT JOIN codes c ON (r.app_code = c.cde) WHERE user_id = '{$_SESSION['userid']}' group by r.user_name";*/ $sql = "select Mcompany, Mname from member where Mid = '{$_SESSION['userid']}' ";
$result = mysql_query($sql,$connect_web );
$row = mysql_fetch_assoc($result);
?> <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" />
<style>
@media(max-width:750px){ .macContainer { width:100%; } .macContainer .cols1 { width:38%; } .macContainer .cols2 { width:57%; } .macWrap2 { width:90%; } .th_pc { display:none;} .th_mobile { /*display:;*/ /*display: inline-block;*/ width: 100%; background: #eee; margin: 0px; padding: 0px; font-size: 0; letter-spacing: 0; word-spacing: 0; border: 0; border-bottom: 1px solid #dbdbdb; } .macFooter { width:98%; } .listContainer th { height: 35px; color: #555; min-width: 70px; width: 163px; font-size: 13px; line-height: 35px; text-align: center; } /*.listContainer td { display:inline-block; width:50%; }*/ } @media(min-width:750px){ .macContainer .cols1 { width:30%; } .macContainer .cols2 { width:70%; } .th_pc { display:;} .th_mobile { display:none;} }
.mc_logo { width:117px; height:100px; float:left; } .mc_copyright { color:#6f6f6f !important; margin:5px 5px 5px 20px; font-size:11px; } .macFooter { clear:both; } .logo { width:300px; } </style> <script> $(function(){ /*$(window).resize(function(){ if(document.body.clientWidth<636){ $(".th_pc").hide(); $(".th_mobile").show(); } else { $(".th_pc").show(); $(".th_mobile").hide(); } });*/ }); </script> <body> <input type='hidden' id='th_split' value='0'> <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_total.php"><img src="images/btn_logout.png" alt="·Î±×¾Æ¿ô"></a></span>- </caption> <colgroup> <col class='cols1'><col class='cols2'> </colgroup> <tr> <th>ȸ¿ø ¾ÆÀ̵ð</th> <td><?=$_SESSION['userid']?></td> </tr> <tr> <th>»óÈ£¸í [¼º¸í]</th> <td><?=$row['Mcompany']."[".$row['Mname']."]"?></td> </tr> </table>
  <?php if($_SESSION['userid']=='sgdream'){
$where = ""; if($s_txt!=''){ $where .= " and {$s_key} like '%{$s_txt}%' "; }
$sql = "SELECT a.user_id, b.user_name FROM app_priv AS a INNER JOIN app_user AS b ON a.user_id = b.user_id WHERE a.groupwareid = 'sgdream' {$where} GROUP BY a.user_id, b.user_name order by b.user_name"; //print_r($sql); $res = mysql_query($sql,$connect_app); while($info=mysql_fetch_array($res)){ $id_array[] = $info; } //print_r($id_array); ?> <div style='margin:0 0 15px 0;'> ´ë¸®Á¡ ¼±Åà : <select name='sk_sub_id' id='sk_sub_id'> <option value=''>--¼±ÅÃ--</option> <?php foreach($id_array as $key=>$val){ if($sub_id==$val['user_id']){ $std = "selected"; } else { $std = ""; } echo "<option value='{$val['user_id']}' {$std}>{$val['user_name']}</option>"; } ?> </select> <select name='s_key'> <option value='user_id' <?php if($s_key=='user_id'){ echo "selected"; }?>>ȸ¿øID</option> <option value='user_name' <?php if($s_key=='user_name'){ echo "selected"; }?>>»óÈ£¸í</option> </select> <input type='text' name='s_txt' value='<?php echo $s_txt;?>' size=13> <input type='button' value='°Ë»öÇϱâ' onclick="key_search()"> </div> <?php } ?>
<table class="listContainer"> <!--<colgroup> <col width="25%"><col width="25%"><col width="25%"><col width="25%"> </colgroup>--> <tr class='th_pc'> <th>ÇÁ·Î±×·¥</th> <th>CD-Key</th> <th>¸¸·áÀÏÀÚ</th> <th>¶óÀ̼¾½º</th> </tr> <!-- ¸ð¹ÙÀÏ¿ë --> <thead class="th_mobile"> <th>ÇÁ·Î±×·¥</th> <th>CD-Key</th> <th>¸¸·áÀÏÀÚ</th> <th>¶óÀ̼¾½º</th> </thead> <!-- ¸ð¹ÙÀÏ¿ë ³¡ -->
<?
$sess_id = $_SESSION['userid']; if($sub_id!=''){ $sess_id = $sub_id; }
// 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, COUNT(d.cdkey) AS use_cdkey FROM regist_user r LEFT JOIN codes c ON (r.app_code = c.cde) LEFT JOIN mac_detail d ON (d.cdkey = r.cdkey) WHERE r.user_id = '{$sess_id}' GROUP BY r.idx, r.user_id, r.cdkey, r.user_name, r.enddate, r.license_pc, r.license_pda, r.sale_amount, r.bigo, r.rgst_dtm, r.rgster, c.cde_nm ORDER BY r.idx DESC"; //print_r($sql); $result = mysql_query($sql);
if($num = mysql_num_rows($result)){
while($row = mysql_fetch_array($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'] = "";
?> <tr class='th_pc'> <td><?=$row['cde_nm'];?></td> <td class='tab_class'><? echo substr($row['cdkey'],0,4)."-".substr($row['cdkey'],4,4)."-".substr($row['cdkey'],8,4); ?></td> <td class='tab_f_class'><?=$row['enddate'];?></td> <td> <?=$row['license_pc']."(".$row['use_cdkey'].")"?> °³ <img src="images/btn_mac.png" alt="Mac°ü¸®" onclick="editPop('<?=$row['cdkey']?>');"> </td> </tr>
<!-- ¸ð¹ÙÀÏ¿ë --> <tr class='th_mobile'> <td><?=$row['cde_nm'];?></td> <td class='tab_class'><? echo substr($row['cdkey'],0,4)."-".substr($row['cdkey'],4,4)."-".substr($row['cdkey'],8,4); ?></td> <td class='tab_f_class'><?=$row['enddate'];?></td> <td> <?=$row['license_pc']?> °³ <img src="images/btn_mac.png" alt="Mac°ü¸®" onclick="editPop('<?=$row['cdkey']?>');"> </td> </tr> <!-- ¸ð¹ÙÀÏ¿ë ³¡-->
<? } } else { ?> <tr> <td height="100" colspan="4" >µ¥ÀÌŸ°¡ ¾ø½À´Ï´Ù.</td> </tr> <? } ?>
</table>
</div><!-- //macWrap2-->
<div class="macFooter"> <!--<img src="images/copyright.png" alt="Ä«ÇǶóÀÌÆ®">--> <div class='mc_logo'><img src='images/mc_copy_logo.png'></div> <div class='mc_copyright'><strong>¿¥Á¦À̼ÒÇÁÆ®</strong> | ´ëÇ¥ <strong>Á¤ÀÏ¿µ</strong> | »ç¾÷ÀÚ¹øÈ£ 502-18-94746 | Åë½ÅÆÇ¸Å¾÷½Å°í 2011-¼¿ï¼ÛÆÄ-0758 | ¼¿ïƯº°½Ã ¼ÛÆÄ±¸ Áß´ë·Î 105(°¡¶ôµ¿, ¾ÆÀ̵ðŸ¿ö 1004È£) | Tel (02)<strong>401-5121</strong> | Fax (02)<strong>832-3555</strong> | ´ë±¸±¤¿ª½Ã ¼ö¼º±¸ µ¿´ë±¸·Î 331(¹ü¾î3µ¿, ûȿÁ¤ºôµù 7F) | Tel (053)894-1194 | Fax (053)744-1120 | ºÎ»ê±¤¿ª½Ã µ¿´ë±¸ »çÁ÷ºÏ·Î 34(»çÁ÷µ¿ 48-20) | Tel (051)894-1194 | Fax (051)797-8797 | ¾÷¹«½Ã°£ ÆòÀÏ <strong>09:00-18:00</strong>, Á¡½É : <strong>12:00-13:00 ±¹/°øÈÞÀÏ, Åä¿äÀÏ ÈÞ¹«</strong> <br>COPYRIGHT (C)<?php echo date("Y");?> MJSOFT ALL RIGHT RESERVED. </div> </div> </div><!-- smsWrap1--> </form> </body> <script> $(function(){ $("#sk_sub_id").change(function(){ $v = $(this).val(); document.location.href='?sub_id='+$v+'&s_key=<?php echo $s_key;?>&s_txt=<?php echo $s_txt;?>'; });
$("input[name='s_txt']").keypress(function(){ if(event.keyCode==13){ key_search(); } }); });
function key_search(){ $s_key = $("select[name='s_key'] option:selected").val(); $s_txt = $("input[name='s_txt']").val(); document.location.href='?s_key='+$s_key+'&s_txt='+$s_txt; } </script> <? include("./footer.php"); ?>
|