/home/mjc1/public_html/html/millennium/mac_list.php


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
<?php include_once("./_common2.php"); ?>
<?
    
if(!isset($Oname)) $Oname "";
    if(!isset(
$_REQUEST['SearchMsw1'])) $SearchMsw1 "";
    include_once(
$_SERVER['DOCUMENT_ROOT']."/manage/category/opcommon.php");

    
//print_r($_COOKIE);

?>

<script>
function go_check(query){ //ÇÑÅØ½º¼ÛÀå¹øÈ£Á¶È¸
    var obj = document.OrderSelect
    window.open('', 'popup','scrollbars=yes, width=900, height=490');
    
    obj.target = "popup";

    location.href = "http://ptop.e-pointerex.co.kr:8080/jsp/tr/detailSheet.jsp?iSheetNo="+query;

    return true;

}

function go_check_CJ(query){ //CJ¼ÛÀå¹øÈ£Á¶È¸
    var obj = document.OrderSelect
    window.open('', 'popup','scrollbars=yes, width=900, height=490');
    
    obj.target = "popup";

    location.href = "http://nexs.cjgls.com/web/tracking_hth_pop.jsp?slipno="+query;

    return true;

}

function go_check_hanjin(query){ //ÇÑÁøÅùè¼ÛÀå¹øÈ£Á¶È¸

    window.open("http://www.hanjin.co.kr/delivery_html/inquiry/result_waybill.jsp?wbl_num="+query,"","width=1024,height=768,scrollbars=yes");

}

function selectuser(gubun){ //°Ë»ö
    var telnum  = OrderSelect.Oname.value;

    location.href  =  "mypagepaper.php?Oname="+telnum+"&SearchMsw1="+gubun;

}

function selectuserText(telnum){

    location.href  =  "mypagepaper.php?Oname="+telnum;

}

</script>
<style>
    .deliveryTable tr td {padding-left:10px; padding-right:10px; line-height:25px;}
    .deliveryTable2 {margin-top:5px; margin-bottom:5px; border-left:1px solid #e0e0e0; border-top:1px solid #e0e0e0; }
    .deliveryTable2 td, th { border-right:1px solid #e0e0e0; border-bottom:1px solid #e0e0e0;}
    .deliveryTable2 th { background:#f0f0f0; }
</style>
<form name="OrderSelect" action="" method="post">

<div class="deliverySearch" style='display:none;'>
    <form name="searchFrm" method="post">
    <div class="deliverySection">
        <p><img src="./img/mypage/division.jpg" alt="±¸ºÐ"></p>
        <select name='SearchMsw1'>
            <option value=all <? if($SearchMsw1 == 'all' ){ echo "selected"; } ?> >Àüü</option>
            <option value=1 <? if($SearchMsw1 == '1' ){ echo "selected"; } ?> >¹è¼Û</option>
            <option value=2 <? if($SearchMsw1 == '2' ){ echo "selected"; } ?> >ÁÖ¹®</option>
        </select>
        <p><img src="./img/mypage/number.jpg" alt="ÀüÈ­¹øÈ£"> <input type="text" name="Oname" value="<?=$Oname;?>" onKeyDown="if(event.keyCode==13)selectuserText(this.value);" size="15"></p>
        <p><input type="image" name="submit" src="./img/mypage/search.jpg"> <font color="#3333CC">Áö¿ª¹øÈ£Æ÷ÇÔ ÀԷ ÈÄ [°Ë»ö]´©¸£¼¼¿ä.</font></p>
    </div>
    </form>
</div><!-- //faqSearch -->

<table class="deliveryTable" style='width:100%;'>
     <tr>
        <th>ÇÁ·Î±×·¡¸í</th>
        <th>CD-KEY</th>
        <th>¶óÀ̼¾½º</th>
        <th>µî·Ï/¸¸·áÀÏ</th>
        <th>ºñ°í</th>
        <th>¼¼ºÎ³»¿ªº¸±â</th>
    </tr>

<?

    
if (1==1) {

        if( 
$SearchMsw1 == 'all')  $SearchMswQry =  "";
        if( 
$SearchMsw1 == '1')    $SearchMswQry =  " AND Deliver <> '' ";
        if( 
$SearchMsw1 == '2')    $SearchMswQry =  " AND Deliver = '' ";

    
$box_qry      =  " select r.*, c.cde_nm from regist_user r left join codes c on r.app_code = c.cde where user_id = '{$_COOKIE['USERID']}' " ;

    
$box_result   =  MYSQL_QUERY($box_qry);
    
$num          =  MYSQL_NUM_ROWS($box_result);

        if (
$num ) {

            
$i 1;

        while (
$Row   =  MYSQL_FETCH_ARRAY($box_result)) {
            
//_pr($Row);
            
$sql "SELECT A.*, B.bigo FROM mac_detail A LEFT JOIN macs B ON A.mac_idx = B.idx WHERE A.cdkey = '{$Row['cdkey']}'";
            
$res mysql_query($sql);
            
//$info = mysql_fetch_array($res);
            
$mac_cnt mysql_num_rows($res)

    
?>

    <tr onclick="if(document.all('tr_<?=$i;?>').style.display==''){document.all('tr_<?=$i;?>').style.display='none';}else{document.all('tr_<?=$i;?>').style.display=''}" onmouseover="this.style.background='#ecf0f9'" onmouseout="this.style.background='#ffffff'" style="cursor:pointer;">
        <td height="30">
            <?php echo $Row['cde_nm']?>
        </td>
        <td height="30">
            <?php echo $Row['cdkey']?>
        </td>
        <td height="30">
            <?php echo $Row['license_pc']."({$mac_cnt})"?>
        </td>
        <td height="30">
            <?php echo substr($Row['rgst_dtm'],0,10);?><br><font color=red><?php echo $Row['enddate'];?></font>
        </td>
        <td height="30">
            <?php echo $Row['bigo']?>
        </td>


        <td width="120">
            <p><img src="./img/mypage/detail_bt.jpg" alt="»ó¼¼³»¿ªº¸±â"></p>
        </td>
    </tr>

    <tr id='tr_<?=$i;?>' style='display:none;'>
        <td colspan="6" style='<?php if($mac_cnt==0){?>display:none;<?php }?>'>
            <table class='deliveryTable2' style='width:100%;' >
                <tr>
                    <th>ȸ¿øID</th>
                    <th>MACÁÖ¼Ò</th>
                    <th>±ÇÇÑ</th>
                </tr>
<?php
    
while($info mysql_fetch_array($res)){
?>
                <tr>
                    <td><?php echo $info['pc_name']?><br><?php echo $info['last_edit_dtm']?></td>
                    <td><?php echo $info['mac_addr']?><br><?php echo $info['bigo']?></td>
                    <td>
                        <? if($info['opt1'] == 0){    ?>
                            <p><span style="font-size:9pt;"><font face="Verdana">Àüü±â´É</font></span></p>
                        <? }else{    ?>
                            <p><span style="font-size:9pt;"><font face="Verdana">Á¶È¸±â´É</font></span></p>
                        <? }    ?>
                    </td>
                </tr>
<?php
    
}
?>
            </table>
        </td>
    </tr>

<?
    
    $i
++;

        } 
    } else {


?>

    <tr>
        <td colspan="7">
            <p class="noneData">°Ë»öµÈ ³»¿ªÀÌ ¾ø½À´Ï´Ù.</p>
        </td>
    </tr>


<?
        
}

    } else {

?>

    <tr>
        <td colspan="7">
            <p class="noneData">°Ë»öµÈ ³»¿ªÀÌ ¾ø½À´Ï´Ù.</p>
        </td>
    </tr>

<? ?>

</table>
</form>