/home/mjc1/public_html/html/millennium/demo_request.inc.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
<?php include_once("./_common2.php"); ?>
<?

$cm_nCount                
=    10;
$cm_item_nCount    =    30;     

function 
pageListing($cur_page$total_page$n$url$mode$SearchMdiv ,$SearchMup,$SearchMper,$searchCode ,$keyword ,$SearchMsw1 $cm_nCount$menu$sub  ) {

        
$retValue "<div class='paging'>";
        if (
$cur_page 1) {

            
$retValue .= "<a href='" $url . ($cur_page-1) ."' class='page'><span class='next'>ÀÌÀü</span></a>";
        } else {
            
$retValue .= "";
            
$retValue .= "";
        }

        
$retValue .= "";

        
$start_page = ( ( (int)( ($cur_page ) / 10 ) ) * 10 ) + 1;

        
$end_page $start_page 9;
        if (
$end_page >= $total_page$end_page $total_page;
            if (
$start_page 1$retValue .= "<a href='" $url . ($start_page-1) . "' class='page'><span class='next10'>ÀÌÀü 10°³</span></a>";

                if (
$total_page 1)
                    for (
$k=$start_page;$k<=$end_page;$k++)
                if (
$cur_page != $k$retValue .= "<a href='$url$k'>$k</a>";
                    else 
$retValue .= "<a href='$url$k' class='on'>$k</a>";

        if (
$total_page $end_page$retValue .= "<a href='" $url . ($end_page+1) . "' class='page'><span class='pro10'>´ÙÀ½ 10°³</span></a>";

        
$retValue .= "";

        if (
$cur_page $total_page) {
            
$retValue .= "<a href='$url. ($cur_page+1) ."' class='page'><span class='pro'>´ÙÀ½</span></a>";

        } else {
            
$retValue .= "";
            
$retValue .= "";
        }

    
$retValue .= "</div>";
    return 
$retValue;
}

?>

    <div class="wrap">

        <div class="contents" style='margin-top:0px;margin-bottom:0px;'>

            <div class="subContents">
                <div class="section">
                    <h2 style='font-size:17px;'>µ¥¸ðÀåºñ ½Åû ¸®½ºÆ®</h2>

                    <table class="faqTable mt30">
                        <tr> 
                            <th width="50">¹øÈ£</th>
                            <th width="150">µ¥¸ðÀåºñ¸í</th>
                            <th width="160">»óÈ£¸í</th>
                            <!--<th width="150">¼º¸í</th>-->
                            <th width="100">½Åû»óÅÂ</th>
                            <th width="130">µî·ÏÀϽÃ</th>
                            <!--<th width="110">¿Ï·áÀϽÃ</th>-->
                        </tr>

<?

    
/* ·Î±×¾Æ¿ô ½Ã Àüü ±Û, ·Î±×ÀÎÇϸé Àڱ⠱۸¸ º¸ÀÓ */

            
$sql         =     " select * from mBoard_dd_request where dd_mid = '{$_COOKIE['USERID']}' ";

            
$result      mysql_query($sql) or die (mysql_error());
            
$nTotalCount mysql_num_rows($result);
            
$nPage       ceil($nTotalCount $cm_nCount);
  
            if (
$pg == ""$pg 1;
            
$nFrom = ($pg 1) * $cm_nCount;
            
            
$result      =       mysql_query($sql) or die (mysql_error());

            
$sql    $sql "  order by reg_date desc limit $nFrom$cm_nCount ";
 
            
$result mysql_query($sql) or die (mysql_error());


    if( 
mysql_num_rows($result) > ){ 
        
$cnt $nTotalCount-$nFrom;
        while (
$Row =  mysql_fetch_array($result)){ 
        
$reg_date  $Row['reg_date'];

?>
                        <tr <? if(isset($_COOKIE['USERID']) && $Row[4] == $_COOKIE['USERID'] && $replyRow_0 !== "" && $Row[3] == "E"){ echo "onClick=\"asLink('y','$replyRow_0');\" style='cursor:pointer;' bgcolor=ffffff ";} ?>>
                            <td ><?=$cnt;?></td>
                            <td ><a href='?mode=view&uid=<?=$Row['uid'];?>'><?=$Row['dd_device'];?></a></td>
                            <td><?=$Row['dd_company'];?></td>
                            <td><?=$Row['state'];?></td>
                            <td><?=$Row['reg_date'];?></td>
                        </tr>
<?    
            $cnt
--;
        }  
    }  
?>

                    </table>


                <? echo pageListing($pg$nPage$cm_nCount"?pg=" $mode$chknotend$SearchMup$SearchMper$searchCode$keyword$SearchMsw1$cm_nCount$menu$sub)?> 

                </div><!-- //section -->

            </div><!-- //subContents -->
        </div><!-- //contents -->
    </div><!-- //wrap -->