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;
}
}
답변을 작성하시기 전에 로그인 해주세요.