Warning: Undefined array key "mobile_dir" in /home/kagla/new-sir/old/common.php on line 315
포인트랭킹 최신글스킨으로 게시글 최신글 랭킹을 만들려고 하는데 호출이2개밖에 안되네요.

포인트랭킹 최신글스킨으로 게시글 최신글 랭킹을 만들려고 하는데 호출이2개밖에 안되네요.

포인트랭킹 최신글스킨으로 게시글 최신글 랭킹을 만들려고 하는데 호출이2개밖에 안되네요.

QA

포인트랭킹 최신글스킨으로 게시글 최신글 랭킹을 만들려고 하는데 호출이2개밖에 안되네요.

답변 3

본문

<?php
if (!defined('_GNUBOARD_')) exit; //개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
include_once("./_common.php");
// 스넵이미지 생성함수
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
?>
<div style="background: #eee;height: 38px;border-top: 1px solid #e8e3ec;border-left: 1px solid #e8e3ec;border-right: 1px solid #e8e3ec;">
<li style="list-style-type: none;background: #fff;padding: 8px;width: 140px;height: 38px;border-top: 3px solid #2c3d47;text-align: center;">
            <a style="font-size: 16px;"href=""><?php echo $bo_subject; ?><?php echo $sca ?> - TOP10</strong></a>
                <div class="clear"></div>
</li>   
</div>
<div class="latest_jw_ga_bbs_01_box">
  <div style="margin-top: 0;height:180px;border: 1px solid #e8e3ec;padding: 10px 0px 5px 0px;">
    <li class="latest_jw_ga_bbs_01_cop">
<?php
$rank_rows = 10; //출력 수
$sql = " select * from {$g5[member_table]} where mb_point > '{$row[mb_point]}' {$sql_common} order by mb_point desc, mb_today_login desc limit {$rank_rows} ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
    $rank = number_format($i + 1);
    if ($rank == 1) {
        $rank_bg = ' rank_bg';
    } else if ($rank <= 3) {
        $rank_bg = ' rank_bg';
    } else {
        $rank_bg = '';
    }
?>
        <span class="cop_txt">
            <span style="width: 25px;height: 20px;font-size: 12px;line-height: 20px;text-align: center;background: #2c3d47;color: #fff;margin: 0px 5px 0px 1px;float: left;"><?php echo $rank; ?></span>
            <a style="line-height:23px;margin: 0px 10px 0px 2px;"class="txt_blck" href="<?=$list[$i]['href']?>"><?php echo $list[$i]['subject'];?></a> <? echo $list[$i]['datetime']; ?>
        </span><?php } ?>
        </li>
    </div>
</div>
 

이 질문에 댓글 쓰기 :

답변 3

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 129,406
© SIRSOFT
현재 페이지 제일 처음으로