/home/mjc1/public_html/mjmall/include/cscenter/sub_lnb.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
<?php
include_once("../../_common.php");
?>
<div class="csMenuSection">
    <ul>
        <li><a href="./customernotice.php">°øÁö»çÇ×</a></li>
        <li><a href="./customerfaq.php">FAQ</a></li>
        <li><a href="./customeras.php">1:1 ¹®ÀÇ</a></li>
    </ul>
</div><!-- //csMenuSection -->

<?
    
//-- ÆäÀÌ¡

$cm_nCount            =   15 ;
$cm_item_nCount    =   30 ;

function 
pageListing($cur_page$total_page$n$url) {

    
$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 .= "&nbsp;";

    
$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;
}