/home/mjc1/public_html/manage/consultBoardPop.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
<?
    
include("./category/common.php");
?>

<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
    <title>MacAddress ½Å±Ôµî·Ï</title> 
    <link rel='stylesheet' type='text/css' href='./css/reset.css'>
    <link rel='stylesheet' type='text/css' href='./css/point.css'>
    <script language="JavaScript">
    function goSearch(){ //Á¶È¸ ½ºÅ©¸³Æ®
        document.serch_form.action="consultBoardPop.php"
        document.serch_form.submit(); 
    } 
    </script>
</head>


<body>
    <div class="wrap">
        <h2>´ã´çÀÚº° ´äº¯°Ç¼ö</h2>
        
        <form name="serch_form" style="margin:0;">
        <div class="replyWrap" style="margin:0 5px 5px; border-bottom:1px solid #d1d7de;">
        
<? //Æû·Îµå ÇÒ¶§ ÀÚµ¿À¸·Î ³¯Â¥ »ý¼º(¿À´ÃºÎÅÍ ÇÑ´ÞÀü)
if ($keydate1 == "") { 
    
$keydate1 = ($keydate1 == "") ? date("Y-m-d"strtotime("-1 Month")) : $keydate1
}
if (
$keydate2 == "") { 
    
$keydate2 = ($keydate2 == "") ? date("Y-m-d"time()) : $keydate2
}
?> 
            <dl>
                <dt>±â°£ : </dt>
                <dd><input type="text" name="keydate1" size="10" value='<?=$keydate1;?>' maxlength="10" onClick="check_mouse('SearchFrm.'+this.name)"><span>~</span><input type="text" name="keydate2" size="10" value='<?=$keydate2;?>' maxlength="10" onClick="check_mouse('SearchFrm.'+this.name)"><input type="button" name="btnqurry" value="°Ë»ö" onClick="goSearch()">
                </dd>
            </dl>
        </div><!--//replyWrap-->
        </form>

<?
    $qry        
=    " SELECT admin, COUNT(admin) AS num FROM mBoard_consult 
                            WHERE admin != '' AND reg_date BETWEEN '
$keydate1 00:00:01' AND '$keydate2 23:59:59'
                            GROUP BY admin
                            ORDER BY num desc" 
;

    
$result    =    mysql_query($qry);
    
    
$nTotalCount mysql_num_rows($result);
//    echo $qry;
?>


        <table class="replyTable" style="margin:0 auto;">
            <colgroup>
                <col style="width:100px;"><col>
            </colgroup>
            <tr>
                <th>´ã´çÀÚ¸í</th>
                <th class="last">´äº¯°Ç¼ö</th>
            </tr>
<? while($row mysql_fetch_array($result)){ ?>
        <tr>
            <td><?=$row['admin']?></td>
            <td class="last"><?=$row['num']?></td>
        </tr>
<? ?>
        </table><!--//replyTable-->

    </div><!--//wrap-->
</body>
</html>