list.skin.php를 사용안하고 바로 view.skin.php를 보게할수있는 방법은없나요? +소스

list.skin.php를 사용안하고 바로 view.skin.php를 보게할수있는 방법은없나요? +소스

QA

list.skin.php를 사용안하고 바로 view.skin.php를 보게할수있는 방법은없나요? +소스

본문

http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=97882&sca=&sfl=wr_subject||wr_content&stx=misshong 이분의 스킨을쓰고있는데요

사진이 한장밖에없어서 목록부분이 되게 빈티가 나보이더라구요.

그래서 상단바에있는 갤러리누르면 갤러리 썸네일리스트가아닌 바로 목록으로 나오게 하고싶은데


category.data.php 나 skin.lib.php에서 뭘 빼야할거같은데..;; 어느 부분을 수정해야할까요..? 


=========================skin.lib.php=======================================================
<?
function get_size($filename, $max="120")
{
    $size = Array();
    list($width, $height, $type, $attr) = getimagesize($filename);
    if ($width <= $max && $height <= $max) {
        $size[w] = $width;
        $size[h] = $height;
    } else {
        if ($width >= $height) {
            $size[w] = $max;
            $size[h] = round(($size[w] * $height) / $width);
        }
        
        if ($width < $height) {
            $size[h] = $max;
            $size[w] = round(($width * $size[h]) / $height);
        }
    }
    $size[0] = $width;
    $size[1] = $height;
    $size[t] = $type;
    return $size;
}

function get_nc_category_option($bo_table, $sca="")
{
    global $g4, $board;
    
    $arr    = explode("|", $board[bo_category_list]);
    $arr1   = explode("|", $board[bo_10]);
    $key    = array_search($sca, $arr);
    $cate   = explode("^", $arr1[$key]);
    
    for ($i=0; $i<count($cate); $i++) {
        if (trim($cate[$i])) {
            $str .= "<option value='$cate[$i]'>$cate[$i]</option>\n";
        }
    }
    
    return $str;
}
?>

============================================================

=========================category.data.php=======================================================

<?
$arr    = explode("|", $board[bo_category_list]);
$arr1   = explode("|", $board[bo_10]);

echo "function category_data(str, target) { \n";
foreach ($arr as $key => $sca) {
    $cate   = explode("^", $arr1[$key]);
    $i = 1;
    
    echo "if (str == '$sca') { \n";
    echo "discard(document.fwrite.wr_10); \n";
    echo "document.forms[\"fwrite\"].wr_10.options[0] = new Option('선택하세요', ''); \n";
    
    foreach ($cate as $value) {
        if (trim($value)) {
            echo "document.forms[\"fwrite\"].wr_10.options[$i] = new Option('$value', '$value'); \n";
            $i++;
        }
    }
    
    echo "} \n\n";
}
echo "}";
?>

// 옵션을 초기화 시키는 함수
function discard(form)
{
    for ( i = form.length-1 ; i > -1 ; i--)
    {
form.options[i].value = null;
form.options[i] = null;
    }
}

이 질문에 댓글 쓰기 :

답변 1


상단바 링크 위치에다 wr_id 값을 주면 바로 뷰페이지로 이동합니다.


bbs/board.php?bo_table="게시판"&wr_id="이동할 wr_id 값"

답변을 작성하시기 전에 로그인 해주세요.
전체 123,682 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT