묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
제로보드 최근게시물 관련 질문입니다
2006.10.10 10:22
// 갤러리 이미지 뽑아오는 스킨 (( 제목과 함께 뽑아오는 스킨 : 제목이 아랫쪽에 출력 테이블 ))
function print_gallery_wings04($skinname, $title, $id, $num=10, $xsize=80, $ysize=80, $xspace=64, $xnum=10) {
global $_zb_path, $_zb_url, $connect, $t_board, $admin_table, $HTTP_SESSION_VARS;
if(!$skinname||!$id) return;
$str = zReadFile($_zb_path."latest_skin/".$skinname."/main.html");
if(!$str) {
echo "지정하신 $skinname 이라는 최근목록 스킨이 존재하지 않습니다<br>";
return;
}
$tmpResult = mysql_query("select use_alllist from $admin_table where name='$id'") or die(mysql_error());
$setup = mysql_fetch_array($tmpResult);
if($setup[use_alllist]) $target = "zboard.php?id=".$id;
else $target = "view.php?id=".$id;
$result = mysql_query("select * from $t_board"."_$id order by no desc limit $num", $connect) or die(mysql_error());
$i = 0;
while($data=mysql_fetch_array($result)) {
if(eregi(".gif|.jpg",$data[file_name1])) $filename = $_zb_url.$data[file_name1];
elseif(eregi(".gif|.jpg",$data[file_name2])) $filename = $_zb_url.$data[file_name2];
else $filename="";
if($i==0) {
$imgList.="<table valign=top><tr valign=top><td width=$xspace>";
} else {
$imgList.="<td width=$xspace height=120 >";
}
if($filename) $imgList.="<a href='#' onclick=window.open('".$_zb_url.$target."&no=$data[no].','5good','toolbar=yes,status=yes,scrollbars=yes,width=800,height=620,left=0,top=0') > <table><tr><td><img src='$filename' border=1 style=border-color:black width=$xsize height=$ysize vspacing=10 hspacing=10 align='absmiddle'></td></tr><tr><td>".$data[subject]."...</a></td></tr></table>";
else $imgList.="<a href='".$_zb_url.$target."&no=$data[no]'><img src='[dir]t.gif' border=1 style=border-color:black width=$xsize height=$ysize vspacing=10 hspacing=10></a>";
$i++;
if($i>=$num) {
$imgList.="</td></tr></table>";
$i=0;
} else {
$imgList.="</td>";
}
}
$str = str_replace("[title]","<a href='".$_zb_url."zboard.php?id=".$id."'>".$title."</a>",$str);
$str = str_replace("[img]",$imgList,$str);
$str = str_replace("[dir]",$_zb_url."latest_skin/".$skinname."/images/",$str);
echo $str;
}
현재 새창으로 뜨는데요~~~ 새창이 아니라~
원래 창~ 전체창으로 뜨게 하려면 어떻게 해야하나요~
꼭좀~ 부탁드립니다!!!
function print_gallery_wings04($skinname, $title, $id, $num=10, $xsize=80, $ysize=80, $xspace=64, $xnum=10) {
global $_zb_path, $_zb_url, $connect, $t_board, $admin_table, $HTTP_SESSION_VARS;
if(!$skinname||!$id) return;
$str = zReadFile($_zb_path."latest_skin/".$skinname."/main.html");
if(!$str) {
echo "지정하신 $skinname 이라는 최근목록 스킨이 존재하지 않습니다<br>";
return;
}
$tmpResult = mysql_query("select use_alllist from $admin_table where name='$id'") or die(mysql_error());
$setup = mysql_fetch_array($tmpResult);
if($setup[use_alllist]) $target = "zboard.php?id=".$id;
else $target = "view.php?id=".$id;
$result = mysql_query("select * from $t_board"."_$id order by no desc limit $num", $connect) or die(mysql_error());
$i = 0;
while($data=mysql_fetch_array($result)) {
if(eregi(".gif|.jpg",$data[file_name1])) $filename = $_zb_url.$data[file_name1];
elseif(eregi(".gif|.jpg",$data[file_name2])) $filename = $_zb_url.$data[file_name2];
else $filename="";
if($i==0) {
$imgList.="<table valign=top><tr valign=top><td width=$xspace>";
} else {
$imgList.="<td width=$xspace height=120 >";
}
if($filename) $imgList.="<a href='#' onclick=window.open('".$_zb_url.$target."&no=$data[no].','5good','toolbar=yes,status=yes,scrollbars=yes,width=800,height=620,left=0,top=0') > <table><tr><td><img src='$filename' border=1 style=border-color:black width=$xsize height=$ysize vspacing=10 hspacing=10 align='absmiddle'></td></tr><tr><td>".$data[subject]."...</a></td></tr></table>";
else $imgList.="<a href='".$_zb_url.$target."&no=$data[no]'><img src='[dir]t.gif' border=1 style=border-color:black width=$xsize height=$ysize vspacing=10 hspacing=10></a>";
$i++;
if($i>=$num) {
$imgList.="</td></tr></table>";
$i=0;
} else {
$imgList.="</td>";
}
}
$str = str_replace("[title]","<a href='".$_zb_url."zboard.php?id=".$id."'>".$title."</a>",$str);
$str = str_replace("[img]",$imgList,$str);
$str = str_replace("[dir]",$_zb_url."latest_skin/".$skinname."/images/",$str);
echo $str;
}
현재 새창으로 뜨는데요~~~ 새창이 아니라~
원래 창~ 전체창으로 뜨게 하려면 어떻게 해야하나요~
꼭좀~ 부탁드립니다!!!