[게시판 수정] 게시판 페이지 부분을 미니위니처럼
2005.07.09 11:06
9266
84
https://eond.com/20619
object(HotopayModel)#798 (23) { ["error"]=> int(0) ["message"]=> string(7) "success" ["variables"]=> array(0) { } ["httpStatusCode"]=> int(200) ["module"]=> string(7) "hotopay" ["module_info"]=> NULL ["origin_module_info"]=> NULL ["module_config"]=> NULL ["module_path"]=> string(52) "/home/eond/web/eond.com/public_html/modules/hotopay/" ["xml_info"]=> NULL ["module_srl"]=> NULL ["mid"]=> NULL ["act"]=> NULL ["template_path"]=> NULL ["template_file"]=> NULL ["layout_path"]=> NULL ["layout_file"]=> NULL ["edited_layout_file"]=> NULL ["stop_proc"]=> bool(false) ["user"]=> object(Rhymix\Framework\Helpers\SessionHelper)#797 (20) { ["member_srl"]=> int(0) ["user_id"]=> NULL ["user_name"]=> NULL ["nick_name"]=> NULL ["email_address"]=> NULL ["phone_number"]=> NULL ["homepage"]=> NULL ["blog"]=> NULL ["birthday"]=> NULL ["denied"]=> NULL ["status"]=> NULL ["is_admin"]=> string(1) "N" ["is_site_admin"]=> NULL ["profile_image"]=> NULL ["image_name"]=> NULL ["image_mark"]=> NULL ["signature"]=> NULL ["description"]=> NULL ["group_list"]=> array(0) { } ["menu_list"]=> array(0) { } } ["request"]=> object(Rhymix\Framework\Request)#10 (13) { ["method"]=> string(3) "GET" ["compat_method"]=> string(3) "GET" ["url"]=> string(28) "zeroboard4/20619/page/465387" ["hostname"]=> string(8) "eond.com" ["domain"]=> NULL ["protocol"]=> string(5) "https" ["callback_function"]=> string(0) "" ["_route_status":protected]=> int(200) ["_route_options":protected]=> object(stdClass)#11 (5) { ["cache_control"]=> bool(true) ["check_csrf"]=> bool(true) ["is_forwarded"]=> bool(false) ["is_indexable"]=> bool(true) ["enable_session"]=> bool(true) } ["module"]=> string(5) "board" ["mid"]=> string(10) "zeroboard4" ["act"]=> string(16) "dispBoardContent" ["args"]=> array(4) { ["document_srl"]=> string(5) "20619" ["page"]=> int(465387) ["mid"]=> string(10) "zeroboard4" ["act"]=> string(16) "dispBoardContent" } } ["ajaxRequestMethod"]=> array(2) { [0]=> string(6) "XMLRPC" [1]=> string(4) "JSON" } ["gzhandler_enable"]=> bool(true) }

http://www.sojeong.com/zboard/view.php?id=free&no=51

_zb/zboard.php 파일 '스킨에서 사용할 페이지 정리'라는 부분을 찾아내서 부분 수정하여 주시면 됩니다.
보이는 원리는 현재 보이는 페이지에서 좌,우로 한 칸씩 공백을 넣어준 것과 나눔 줄을 넣어주면 되는 것입니다.
나눔 줄의 소스는 이렇습니다.
<font style='color:#CCCCCC;font:9px Verdana'>|</font>

실제로 고친 부분은 굶게 처리된 부분이니, 주석과 함께 찬찬히 살펴 보시면 이해되실 것입니다.

/***************************************************************************
 * 스킨에서 사용할 페이지 정리
 **************************************************************************/

 $print_page="";
        $show_page_num=$setup[page_num]; // 한번에 보일 페이지 갯수
        $start_page=(int)(($page-1)/$show_page_num)*$show_page_num;
        $i=1;

        $a_1_prev_page= "<Zeroboard ";
        $a_1_next_page= "<Zeroboard ";
        $a_prev_page = "<Zeroboard ";
        $a_next_page = "<Zeroboard ";

        if($page>1) $a_1_prev_page="<a onfocus=blur() href='$PHP_SELF?id=$id&page=".($page-1)."&select_arrange=$select_arrange&desc=$desc&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&sn1=$sn1&divpage=$divpage'><font style='background-color:transparent;color:#999999;font:10px Verdana'>";//pre

        if($page<$total_page) $a_1_next_page="<a onfocus=blur() href='$PHP_SELF?id=$id&page=".($page+1)."&select_arrange=$select_arrange&desc=$desc&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&sn1=$sn1&divpage=$divpage'><font style='background-color:transparent;color:#999999;font:10px Verdana'>";//next

        if($page>$show_page_num) {
                $prev_page=$start_page;
                $a_prev_page="<a onfocus=blur() href='$PHP_SELF?id=$id&page=$prev_page&select_arrange=$select_arrange&desc=$desc&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&sn1=$sn1&divpage=$divpage'>";
                $print_page.="<a onfocus=blur() href='$PHP_SELF?id=$id&page=1&select_arrange=$select_arrange&desc=$desc&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&sn1=$sn1&divpage=$divpage'><font style='background-color:transparent;#999999:white;font:10px Verdana'>&nbsp;1&nbsp;</a></font><font style='font:10px Verdana'>.."; //1 페이지
                $prev_page_exists = true;
                }

        while($i+$start_page<=$total_page&&$i<=$show_page_num) {
                $move_page=$i+$start_page;
                if($page==$move_page) $print_page.="&nbsp;<font style='background-color:EF5900;color:white;font:10px Verdana'>&nbsp;<b>$move_page</b>&nbsp;</font>&nbsp;<font style='color:#CCCCCC;font:9px Verdana'>|</font>";//현재 선택한 페이지
                else $print_page.="<a onfocus=blur() href='$PHP_SELF?id=$id&page=$move_page&select_arrange=$select_arrange&desc=$desc&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&sn1=$sn1&divpage=$divpage'><font style='font:10px Verdana'>&nbsp;$move_page&nbsp;</a></font><font style='color:#CCCCCC;font:9px Verdana'>|</font>";//다음 페이지들
                $i++;
        }

        if($total_page>$move_page) {
                $next_page=$move_page+1;
                $a_next_page="<a onfocus=blur() href='$PHP_SELF?id=$id&page=$next_page&select_arrange=$select_arrange&desc=$desc&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&sn1=$sn1&divpage=$divpage'>";
                $print_page.="<font style='font:10px Verdana'>..<a onfocus=blur() href='$PHP_SELF?id=$id&page=$total_page&select_arrange=$select_arrange&desc=$desc&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&sn1=$sn1&divpage=$divpage'><font style='font:10px Verdana'>&nbsp;$total_page&nbsp;</a>";
                $next_page_exists = true;
        }

        // 검색시 Divsion 페이지 이동 표시
        if($use_division) {
                if($prevdivpage&&!$prev_page_exists) $a_div_prev_page="<a onfocus=blur() href='$PHP_SELF?id=$id&&select_arrange=$select_arrange&desc=$desc&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&sn1=$sn1&divpage=$prevdivpage'>[이전 검색]</a>...";
                if($nextdivpage&&!$next_page_exists) $a_div_next_page="...<a onfocus=blur() href='$PHP_SELF?id=$id&&select_arrange=$select_arrange&desc=$desc&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&sn1=$sn1&divpage=$nextdivpage'>[계속 검색]</a>";
                $print_page = $a_div_prev_page.$print_page.$a_div_next_page;

        }


라이믹스는 이온디와 함께

닫기

마이페이지

로그인을 해주세요

네이버로 로그인