/home/mjc1/public_html/mac_confirm/userMacInformation_7day_old.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
<?
session_start
(); 
include_once(
"./common.php"); 

if(
$_SESSION['userid'] == ""){
    echo 
"<script>alert('ºñÁ¤»óÀûÀΠÁ¢±Ù ÀÔ´Ï´Ù.');</script>";
    exit;
}

if(
is_mobile()){
    
$viewport "<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=3.0, minimum-scale=1.0, user-scalable=yes' />";
}

$date date("Y-m-d H:i:s");
$w7_b date("Y-m-d H:i:s",strtotime("-7 day {$date}"));

$sql "select * from mac_remove_log where user_id = '{$_SESSION['userid']}' and cdkey = '{$_GET['cdkey']}' and del_date >= '{$w7_b}' order by idx desc";
$result mysql_query($sql);
$info mysql_fetch_array($result);
if(
$info['del_date']!=''){ $del_no_mode "Y"; }
?>
<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="euc-kr">
    <title>¹ÌÁø¼ÒÇÁÆ® - Mac Á¤º¸°ü¸® ÆäÀÌÁö</title>
    <?php echo $viewport;?>
    <link href="css/macInformation.css" rel="stylesheet" />
    <script>
        function rowdel(mac, app){
            if('<?php echo $del_no_mode;?>'=='Y'){
                alert('ÀÎÁõ »èÁ¦´Â 7Àϰ£ 1ȸ¸¸ °¡´ÉÇÕ´Ï´Ù. <?php echo $info['del_date'];?>¿¡ »èÁ¦¸¦ Çϼ̽À´Ï´Ù.');
                return;
            }
            if(confirm("»èÁ¦ ÇϽðڽÀ´Ï±î? MacÁּҴ Á¦Ç°´ç Çѹø »èÁ¦ÈÄ¿¡ 7Àϵڿ¡ ´Ù½Ã »èÁ¦ °¡´ÉÇÕ´Ï´Ù.")){
                var idwin = window.open("./macrowdelProcess.php?macidx="+mac+"&appcode="+app+"", "macprocess", "status=0,toolbar=0,resizable=0,scrollbars=no,width=640,height=400" );
            }else{
                return;
            }
        }
        function alldel(){
            if('<?php echo $del_no_mode;?>'=='Y'){
                alert('ÀÎÁõ »èÁ¦´Â 7Àϰ£ 1ȸ¸¸ °¡´ÉÇÕ´Ï´Ù. <?php echo $info['del_date'];?>¿¡ »èÁ¦¸¦ Çϼ̽À´Ï´Ù.');
                return;
            }
            var cdkey = document.getElementById("cdkey").value;
            var appcode = document.getElementById("app_code").value;
            if(confirm("Àüü»èÁ¦ ÇϽðڽÀ´Ï±î? MacÁּҴ Á¦Ç°´ç Çѹø »èÁ¦ÈÄ¿¡ 7Àϵڿ¡ ´Ù½Ã »èÁ¦ °¡´ÉÇÕ´Ï´Ù.")){
                var idwin = window.open("./macalldelProcess.php?cdkey="+cdkey+"&appcode="+appcode+"", "macprocess", "status=0,toolbar=0,resizable=0,scrollbars=no,width=640,height=400" );
            }else{
                return;
            }
        }    
    </script>    

<style>

@media(max-width:750px){
    .macWrap2 { width:90%; }
    .th_pc { display:none;}
    .th_mobile { display:;}
    .macFooter { width:98%; }
    .v_width_class { width:16%;}
    .popContainer .cols1 { width:400px; }
    .popContainer .cols2 { width:150px; }
    .popContainer .cols3 { width:150px; }
    .popContainer .cols4 { width:0px; }
}
@media(min-width:750px){
    .th_pc { display:;}
    .th_mobile { display:none;}
    .v_width_class { width:16%;}
    .popContainer .cols1 { width:185px; }
    .popContainer .cols2 { width:335px; }
    .popContainer .cols3 { width:115px; }
    .popContainer .cols4 { width:115px; }

}

.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>

</head>

<body>
    <iframe name="macprocess" width="0" height="0" style="border:0px;"></iframe>
    
    <div class="macWrap1">
        <div class="logo"><img src="images/logo.png" alt="¹ÌÁø¼ÒÇÁÆ®"></div>

        <div class="macWrap2">
            <h3 class="inp_label">MacÁ¤º¸°ü¸®</h3>

            <table class="popContainer">
                <colgroup>
                    <!--<col width="185"><col width="335"><col width="115"><col width="115">-->
                    <col class='cols1'><col class='cols2'><col class='cols3'><col class='cols4'>
                </colgroup>
                <tr class='th_pc'>
                    <th>PC¸í</th>
                    <th>MACÁÖ¼Ò</th>
                    <th>°ü¸®</th>
                    <th>±ÇÇÑ</th>
                </tr>
                <tr class='th_mobile'>
                    <th>PC¸í</th>
                    <th>°ü¸®</th>
                    <th>±ÇÇÑ</th>
                </tr>
                <tr class='th_mobile'>
                    <th colspan=3>MACÁÖ¼Ò</th>
                    
                </tr>
                <?
                $sql 
"SELECT A.*, B.bigo FROM mac_detail A LEFT JOIN macs B ON A.mac_idx = B.idx WHERE A.cdkey = '{$_GET['cdkey']}'";
                
$result mysql_query($sql);
                while(
$row mysql_fetch_array($result)){
                    
$row['bigo'] = str_replace(",µ¥¸ð¿¬Àå"""$row['bigo']);
                
?>
                <tr class='th_pc'>
                    <td>
                        <p><?=$row['pc_name']?></p>
                        <p><?=$row['last_edit_dtm']?></p>
                    </td>
                    <td>
                        <?=$row['mac_addr']?><br>
                        <span style="font-size:9pt;"><font face="Verdana"><?=$row['bigo']?></font></span></p>
                    </td>                
                    <td>
                        <input type="hidden" name="macidx" id="macidx" style="width:30px;"value=<?=$row['mac_idx']?>>
                        <input type="hidden" name="app_code" id="app_code" style="width:30px;"value=<?=$row['app_code']?>>
                        <input type="hidden" name="cdkey" id="cdkey" style="width:30px;"value=<?=$cdkey?>>                        
                        <img src="images/btn_del.png" alt="»èÁ¦" style="cursor:pointer;" onclick="rowdel(<?=$row['mac_idx']?>,<?=$row['app_code']?>);">
                    </td>
                    <td><? echo $row['opt1'] == "Àüü±â´É" "Á¶È¸±â´É";?></td>
                </tr>

                <tr class='th_mobile'>
                    <td>
                        <p><?=$row['pc_name']?></p>
                        <p><?=$row['last_edit_dtm']?></p>
                    </td>
                    <td><? echo $row['opt1'] == "Àüü±â´É" "Á¶È¸±â´É";?></td>
                    <td>
                        <input type="hidden" name="macidx" id="macidx" style="width:30px;"value=<?=$row['mac_idx']?>>
                        <input type="hidden" name="app_code" id="app_code" style="width:30px;"value=<?=$row['app_code']?>>
                        <input type="hidden" name="cdkey" id="cdkey" style="width:30px;"value=<?=$cdkey?>>                        
                        <img src="images/btn_del.png" alt="»èÁ¦" style="cursor:pointer;" onclick="rowdel(<?=$row['mac_idx']?>,<?=$row['app_code']?>);">
                    </td>            
                </tr>
                <tr class='th_mobile'>
                    <td colspan=3>
                        <?=$row['mac_addr']?><br>
                        <span style="font-size:9pt;"><font face="Verdana"><?=$row['bigo']?></font></span></p>
                    </td>                
                            
                </tr>
                <?}?>                                                                                
            </table>


            <div class="btnContainer">
                <img src="images/btn_allDel.png" alt="Àüü»èÁ¦" style="cursor:pointer;" onclick="alldel();"><a href="javascript:self.close();" style="margin-left:10px;"><img src="images/btn_close.png" alt="´Ý±â"></a>
            </div>

        </div><!-- //macWrap2-->
    </div><!-- smsWrap1-->
</body>
</html>