게시판 검사좀 부탁드립니다 ^^ 정보
게시판 검사좀 부탁드립니다 ^^
본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : http://www.ochangtown.com/bbs/board.php?bo_table=02_1
테스트 아이디 : test
테스트비번 :test
검사는 물론이거니와..
오류 하나와 질문 두가지가 있습니다 ^^
우선 첫번째 오류는 화일(현재 첫번째 게시물에 쿠폰.txt가 걸려있습니다)을 클릭했을 때
나오는 경고 메세지(쿠폰을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 쿠폰 하나당 한번만 차감되며 일정기간 안에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n쿠폰을 지급 받으시겠습니까?) 출력이 안됩니다..
다른 소스를 참고해서 스크립트로 적어놓기는 했는데 작동을 안하네요..
제 스크립트가 잘못된 것인지 어떤 문제인지를 모르겠습니다..
다음은 질문사항입니다..
현재 게시판이 탭으로 되어있습니다..
업로드 4번부터 7번까지를 갤러리 탭에 썸네일화되어 나오게 했는데요..
여기에 화일이 없으면 갤러리탭 자체가 안나오도록 할 수 있는 구문이 없을까요?
if else를 사용하면 될 것 같은데 문구에 대한 이해력이 약해서 작성을 할 수 없습니다..
고수님들의 도움이 절실합니다..
두번째 질문은 그 탭버튼이 현재는 버튼을 눌러야 넘어가게 되었는데요..
그것을 마우스오버시 넘어가게 하려면 어떻게 해야하는지 모르겠네요..
도움을 부탁드립니다 ^^
아래는 이 게시판의 view.skin.php 전문입니다..
짜집기 한 것이라..
지저분해도 이해해주세요 ^^
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.tp_test_nCell{border-bottom: 1px solid #ffffff;}
.tp_test_Content1{border: 1px solid #ffffff;border-top-width:0;padding:10px}
.tp_test_Content2{font:12px 돋움;}
.tp_test_Cell{
padding-top:5;
font:13px 돋움;
background:url('<?=$g4['path']?>/img/unsel.png') no-repeat 50%;
height:23;
width:110;
text-align:center;
cursor:pointer;
cursor:hand;
}
.tp_test_sCell{
padding-top:5;
font:13px 돋움;
background-image:url('<?=$g4['path']?>/img/sel.png');
background-position: 50%;
background-repeat: no-repeat;
height:23;
width:110;
text-align:center;
cursor:pointer;
cursor:hand;
}
</style>
<script>
function obxTabPage(sizex , sizey, cssHead){
if(!cssHead) this.cssHead='';
else this.cssHead=cssHead;
document.write(
'<table cellpadding="0" cellspacing="0" style="table-layout:fixed;padding:1;height:'+sizey+';width:'+sizex+'">' +
'<tr><td class=TP_'+this.cssHead+'_NCELL width=*> </td></tr>'+
'<tr><td class=TP_'+this.cssHead+'_CONTENT1 width=100%> </td></tr>'+
'</table>'
);
this.height=sizey;
this.width=sizex;
var tables=document.getElementsByTagName("table");
this.table=tables[tables.length-1];
this.titleRow=this.table.rows[0];
this.nullCell = this.titleRow.cells[0];
this.contentRow = this.table.rows[1];
this.contentCell = this.contentRow.cells[0];
this.item= new Object();
this.length=0;
var re=new RegExp("\\bobxtp=(\\w+)\\b",'i');
if(location.search.match(re)) this.defaultView = RegExp.$1;
this.addStart= function (id,title,idx,action) {
var iIndex=(idx) ? idx-1 : this.length;
this.item[id] = this.titleRow.insertCell(iIndex);
this.item[id].className='TP_'+this.cssHead+'_CELL';
this.item[id].parentObject=this;
this.item[id].onclick=Function("this.parentObject.show('"+id+"');");
if(action) this.item[id].action = action;
this.item[id].height=25;
this.item[id].innerHTML=title;
document.write('<div style="display:none;width:100%;height:100%">');
var divs=document.getElementsByTagName("div");
this.item[id].content = divs[divs.length-1];
this.item[id].content.className='TP_'+this.cssHead+'_CONTENT2';
this.DrawingID=id;
this.length++;
this.contentCell.colSpan=this.length+1;
}
this.addEnd = function () {
document.write("</div></div>");
this.contentCell.appendChild(this.item[this.DrawingID].content);
if(!this.LastShownItemID) this.show(this.DrawingID,1);
else if(this.defaultView==this.DrawingID) this.show(this.defaultView,1);
}
this.show = function (id,runtime){
if (this.LastShownItemID) this.hide(this.LastShownItemID);
this.LastShownItemID = id;
this.item[id].className='TP_'+this.cssHead+'_SCELL';
this.item[id].content.style.display='';
if(this.item[id].action) {
try{eval(this.item[id].action);}catch(e){}}
}
this.hide = function (id){
this.item[id].className='TP_'+this.cssHead+'_CELL';;
this.item[id].content.style.display="none";
}
}
</script>
<script>
//Table Size 조정
function ImageResizing(objFrame) {
if (!objFrame) return;
//height 조정
var conversionSize = 380;
var orgWidth = objFrame.width;
var orgHeight = objFrame.height;
if (( orgWidth > conversionSize) || (orgHeight > conversionSize)){
if (orgWidth > orgHeight){
newWidth = conversionSize;
newHeight = Math.round((conversionSize * orgHeight)/orgWidth);
}else{
newWidth = Math.round((conversionSize * orgWidth)/orgHeight);
newHeight = conversionSize;
}
objFrame.width = newWidth;
objFrame.height = newHeight;
}
}
function ThumbViewer(ImageObj){
// if (ImageObj.src == "http://pics.auction.co.kr/buy/itempage/no_image_thumb.gif") return;
ThumbImage0.style.border = "silver 1px solid";
ThumbImage1.style.border = "silver 1px solid";
ThumbImage2.style.border = "silver 1px solid";
if (ThumbImage0 == ImageObj) ThumbImage0.style.border = "#333333 1px solid";
if (ThumbImage1 == ImageObj) ThumbImage1.style.border = "#333333 1px solid";
if (ThumbImage2 == ImageObj) ThumbImage2.style.border = "#333333 1px solid";
if (ThumbImage1 == ImageObj){
img0.style.display = "none";
img1.style.display = "";
img2.style.display = "none";
ImageResizing(img1);
}
else if (ThumbImage2 == ImageObj){
img0.style.display = "none";
img1.style.display = "none";
img2.style.display = "";
ImageResizing(img2);
}
else
{
img0.style.display = "";
img1.style.display = "none";
img2.style.display = "none";
ImageResizing(img0);
}
}
</script>
<?
//$img = "$g4[path]/data/file/$bo_table/".urlencode($view[file][0][file]);
//if (!file_exists($img) || !$view[file][0][file]) $img = "$board_skin_path/img/progress/no_image.gif";
?>
<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>
<!-- 링크 버튼 -->
<?
ob_start();
?>
<table width='100%' cellpadding=0 cellspacing=0>
<tr height=35>
<td width=75%>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_update.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_good.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_nogood.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=$wr_id');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
<td width=25% align=right>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
</tr>
</table>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
<table width="100%" cellspacing="0" cellpadding="0">
<!-- <tr><td height=2 bgcolor=#B0ADF5></td></tr> -->
<tr>
<td height="10"> </td>
</tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="210">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="9" colspan="3"><img src="<?= $board_skin_path?>/img/progress/skin_top.gif" width="210" height="9"></td>
</tr>
<tr>
<td width="9" background="<?= $board_skin_path?>/img/progress/skin_left.gif"> </td>
<td width="192" height="128">
<?
// 파일 출력
$sql = "select * from $g4[board_file_table] where `bo_table`='$bo_table' and `wr_id`='$wr_id'";
$result=mysql_query($sql);
for($i=0 ; $row = mysql_fetch_array($result) ; $i++){
if($i > 0){
$style= "style=\"display:none\"";
}
echo "<img src =$g4[path]/data/file/$bo_table/$row[bf_file] width=192 height=128 border=0 id=img$i $style>";
$thumimg[$i]=" <img src =$g4[path]/data/file/$bo_table/$row[bf_file] width=30 height=20 border=0 id=ThumbImage$i onfocus=\"javascript:ThumbViewer(this)\" onmouseover=\"javascript:ThumbViewer(this)\">";
}
?>
</td>
<td width="9" valign="top" background="<?= $board_skin_path?>/img/progress/skin_right.gif"><img src="<?= $board_skin_path?>/img/progress/skin_right_img.gif" width="9" height="5"></td>
</tr>
<tr>
<td colspan="3"><img src="<?= $board_skin_path?>/img/progress/skin_down.gif" width="210" height="9"></td>
</tr>
<tr>
<td colspan="3" height="5"></td>
</tr>
<tr>
<td colspan="3" height="30" align="right">
<?php
echo $thumimg[0];
echo $thumimg[1];
echo $thumimg[2];
?>
</td>
</tr>
</table>
</td>
<td width="10"></td>
<td valign="top">
<table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
<!-- 추가필드시작-->
<tr><td height=2 bgcolor=#B0ADF5></td></tr>
<!-- <tr><td height=1 bgcolor=#E7E7E7></td></tr> -->
<tr><td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 업 체 명 : <?php echo $view[subject] ?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr><td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 전화번호 : <font color="red"><?php echo $view[wr_1] ?></font> </td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr><td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 위 치 : <?=$view[wr_3]?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr><td height=28 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?>
기타사항 :
[쿠폰발급:<?php echo $view[wr_4] ?>]
[예약:<?php echo $view[wr_5] ?>]
</td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 쿠폰 다운 (500포인트가 차감됩니다):<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++)
{
if ($view[file][$i][source] && !$view[file][$i][view])
{
$cnt++;
echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'>{$view[file][$i][source]} ({$view[file][$i][size]}), Down : {$view[file][$i][download]}</a></td></tr>";
}
} ?> </td>
</tr>
<tr><td height=2 bgcolor=#B0ADF5></td></tr>
<!-- 추가필드끝-->
<tr>
<td>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 박스 시작-->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" align="center">
<br><br>
<!--탭시작 -->
<script>tp=new obxTabPage('100%','550','test'); // 이게 초기설정</script>
<script>tp.addStart("1page","업체소개"); // 1페이지 시작</script>
<br><br><?=$view[wr_content]?>
<script>tp.addEnd();// 1페이지 끝</script>
<script>tp.addStart("4page","갤러리");// 4페이지 시작</script>
<table style="line-height:130%; margin-top:0; margin-bottom:0;" border="0" cellpadding="0" cellspacing="0" width="578">
<tr>
<td width="590" colspan="3"><p> </p></td>
</tr>
<tr>
<td width="570" rowspan="4"><p><img id=orgin_img src="/data/file/<?=$bo_table?>/<?=$view[file][3][file]?>" width="450" height="450" border="0"></p></td>
<td width="59" rowspan="4"><p> </p></td>
<td width="81"><p><img onmouseover="ch_img('fimg1');" id=fimg1 src="/data/file/<?=$bo_table?>/<?=$view[file][3][file]?>" width="110" height="110" border="0"></p></td>
</tr>
<tr>
<td width="81"><p><img onmouseover="ch_img('fimg2');" id=fimg2 src="/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="110" height="110" border="0"></p></td>
</tr>
<tr>
<td width="81"><p><img onmouseover="ch_img('fimg3');" id=fimg3 src="/data/file/<?=$bo_table?>/<?=$view[file][5][file]?>" width="110" height="110" border="0"></p></td>
</tr>
<tr>
<td width="81"><p><img onmouseover="ch_img('fimg4');" id=fimg4 src="/data/file/<?=$bo_table?>/<?=$view[file][6][file]?>" width="110" height="110" border="0"></p></td>
</tr>
<tr>
<td width="590" colspan="3"> </td>
</tr>
</table>
<script>tp.addEnd();</script></td>
</tr>
</table>
<!-- 박스 끝-->
</td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<?
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++)
{
if ($view[link][$i])
{
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "<tr><td height=30> <img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle> 매장 홈페이지 : <a href='{$view[link_href][$i]}' target=_blank>{$link} ({$view[link_hit][$i]})</a></td></tr><tr><td height=1 bgcolor=#E7E7E7></td></tr>";
}
}
?>
<tr>
<td>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?></td>
</tr>
</table>
<br><br>
<?
include_once("./view_comment.php");
?>
<?=$link_buttons?>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>
<!-- 게시글 보기 끝 -->
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$image_width?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>
<script>
function ch_img(id){
var ol = document.getElementById("orgin_img");
ol.src = document.getElementById(id).src;
}
</script>
<script language="JavaScript">
function file_download(link, file) {
<? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 쿠폰을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 쿠폰 하나당 한번만 차감되며 일정기간 안에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n쿠폰을 지급 받으시겠습니까?"))<?}?>
document.location.href=link;
}
</script>
오류 주소 : http://www.ochangtown.com/bbs/board.php?bo_table=02_1
테스트 아이디 : test
테스트비번 :test
검사는 물론이거니와..
오류 하나와 질문 두가지가 있습니다 ^^
우선 첫번째 오류는 화일(현재 첫번째 게시물에 쿠폰.txt가 걸려있습니다)을 클릭했을 때
나오는 경고 메세지(쿠폰을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 쿠폰 하나당 한번만 차감되며 일정기간 안에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n쿠폰을 지급 받으시겠습니까?) 출력이 안됩니다..
다른 소스를 참고해서 스크립트로 적어놓기는 했는데 작동을 안하네요..
제 스크립트가 잘못된 것인지 어떤 문제인지를 모르겠습니다..
다음은 질문사항입니다..
현재 게시판이 탭으로 되어있습니다..
업로드 4번부터 7번까지를 갤러리 탭에 썸네일화되어 나오게 했는데요..
여기에 화일이 없으면 갤러리탭 자체가 안나오도록 할 수 있는 구문이 없을까요?
if else를 사용하면 될 것 같은데 문구에 대한 이해력이 약해서 작성을 할 수 없습니다..
고수님들의 도움이 절실합니다..
두번째 질문은 그 탭버튼이 현재는 버튼을 눌러야 넘어가게 되었는데요..
그것을 마우스오버시 넘어가게 하려면 어떻게 해야하는지 모르겠네요..
도움을 부탁드립니다 ^^
아래는 이 게시판의 view.skin.php 전문입니다..
짜집기 한 것이라..
지저분해도 이해해주세요 ^^
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.tp_test_nCell{border-bottom: 1px solid #ffffff;}
.tp_test_Content1{border: 1px solid #ffffff;border-top-width:0;padding:10px}
.tp_test_Content2{font:12px 돋움;}
.tp_test_Cell{
padding-top:5;
font:13px 돋움;
background:url('<?=$g4['path']?>/img/unsel.png') no-repeat 50%;
height:23;
width:110;
text-align:center;
cursor:pointer;
cursor:hand;
}
.tp_test_sCell{
padding-top:5;
font:13px 돋움;
background-image:url('<?=$g4['path']?>/img/sel.png');
background-position: 50%;
background-repeat: no-repeat;
height:23;
width:110;
text-align:center;
cursor:pointer;
cursor:hand;
}
</style>
<script>
function obxTabPage(sizex , sizey, cssHead){
if(!cssHead) this.cssHead='';
else this.cssHead=cssHead;
document.write(
'<table cellpadding="0" cellspacing="0" style="table-layout:fixed;padding:1;height:'+sizey+';width:'+sizex+'">' +
'<tr><td class=TP_'+this.cssHead+'_NCELL width=*> </td></tr>'+
'<tr><td class=TP_'+this.cssHead+'_CONTENT1 width=100%> </td></tr>'+
'</table>'
);
this.height=sizey;
this.width=sizex;
var tables=document.getElementsByTagName("table");
this.table=tables[tables.length-1];
this.titleRow=this.table.rows[0];
this.nullCell = this.titleRow.cells[0];
this.contentRow = this.table.rows[1];
this.contentCell = this.contentRow.cells[0];
this.item= new Object();
this.length=0;
var re=new RegExp("\\bobxtp=(\\w+)\\b",'i');
if(location.search.match(re)) this.defaultView = RegExp.$1;
this.addStart= function (id,title,idx,action) {
var iIndex=(idx) ? idx-1 : this.length;
this.item[id] = this.titleRow.insertCell(iIndex);
this.item[id].className='TP_'+this.cssHead+'_CELL';
this.item[id].parentObject=this;
this.item[id].onclick=Function("this.parentObject.show('"+id+"');");
if(action) this.item[id].action = action;
this.item[id].height=25;
this.item[id].innerHTML=title;
document.write('<div style="display:none;width:100%;height:100%">');
var divs=document.getElementsByTagName("div");
this.item[id].content = divs[divs.length-1];
this.item[id].content.className='TP_'+this.cssHead+'_CONTENT2';
this.DrawingID=id;
this.length++;
this.contentCell.colSpan=this.length+1;
}
this.addEnd = function () {
document.write("</div></div>");
this.contentCell.appendChild(this.item[this.DrawingID].content);
if(!this.LastShownItemID) this.show(this.DrawingID,1);
else if(this.defaultView==this.DrawingID) this.show(this.defaultView,1);
}
this.show = function (id,runtime){
if (this.LastShownItemID) this.hide(this.LastShownItemID);
this.LastShownItemID = id;
this.item[id].className='TP_'+this.cssHead+'_SCELL';
this.item[id].content.style.display='';
if(this.item[id].action) {
try{eval(this.item[id].action);}catch(e){}}
}
this.hide = function (id){
this.item[id].className='TP_'+this.cssHead+'_CELL';;
this.item[id].content.style.display="none";
}
}
</script>
<script>
//Table Size 조정
function ImageResizing(objFrame) {
if (!objFrame) return;
//height 조정
var conversionSize = 380;
var orgWidth = objFrame.width;
var orgHeight = objFrame.height;
if (( orgWidth > conversionSize) || (orgHeight > conversionSize)){
if (orgWidth > orgHeight){
newWidth = conversionSize;
newHeight = Math.round((conversionSize * orgHeight)/orgWidth);
}else{
newWidth = Math.round((conversionSize * orgWidth)/orgHeight);
newHeight = conversionSize;
}
objFrame.width = newWidth;
objFrame.height = newHeight;
}
}
function ThumbViewer(ImageObj){
// if (ImageObj.src == "http://pics.auction.co.kr/buy/itempage/no_image_thumb.gif") return;
ThumbImage0.style.border = "silver 1px solid";
ThumbImage1.style.border = "silver 1px solid";
ThumbImage2.style.border = "silver 1px solid";
if (ThumbImage0 == ImageObj) ThumbImage0.style.border = "#333333 1px solid";
if (ThumbImage1 == ImageObj) ThumbImage1.style.border = "#333333 1px solid";
if (ThumbImage2 == ImageObj) ThumbImage2.style.border = "#333333 1px solid";
if (ThumbImage1 == ImageObj){
img0.style.display = "none";
img1.style.display = "";
img2.style.display = "none";
ImageResizing(img1);
}
else if (ThumbImage2 == ImageObj){
img0.style.display = "none";
img1.style.display = "none";
img2.style.display = "";
ImageResizing(img2);
}
else
{
img0.style.display = "";
img1.style.display = "none";
img2.style.display = "none";
ImageResizing(img0);
}
}
</script>
<?
//$img = "$g4[path]/data/file/$bo_table/".urlencode($view[file][0][file]);
//if (!file_exists($img) || !$view[file][0][file]) $img = "$board_skin_path/img/progress/no_image.gif";
?>
<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>
<!-- 링크 버튼 -->
<?
ob_start();
?>
<table width='100%' cellpadding=0 cellspacing=0>
<tr height=35>
<td width=75%>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_update.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_good.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_nogood.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=$wr_id');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
<td width=25% align=right>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
</tr>
</table>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
<table width="100%" cellspacing="0" cellpadding="0">
<!-- <tr><td height=2 bgcolor=#B0ADF5></td></tr> -->
<tr>
<td height="10"> </td>
</tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="210">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="9" colspan="3"><img src="<?= $board_skin_path?>/img/progress/skin_top.gif" width="210" height="9"></td>
</tr>
<tr>
<td width="9" background="<?= $board_skin_path?>/img/progress/skin_left.gif"> </td>
<td width="192" height="128">
<?
// 파일 출력
$sql = "select * from $g4[board_file_table] where `bo_table`='$bo_table' and `wr_id`='$wr_id'";
$result=mysql_query($sql);
for($i=0 ; $row = mysql_fetch_array($result) ; $i++){
if($i > 0){
$style= "style=\"display:none\"";
}
echo "<img src =$g4[path]/data/file/$bo_table/$row[bf_file] width=192 height=128 border=0 id=img$i $style>";
$thumimg[$i]=" <img src =$g4[path]/data/file/$bo_table/$row[bf_file] width=30 height=20 border=0 id=ThumbImage$i onfocus=\"javascript:ThumbViewer(this)\" onmouseover=\"javascript:ThumbViewer(this)\">";
}
?>
</td>
<td width="9" valign="top" background="<?= $board_skin_path?>/img/progress/skin_right.gif"><img src="<?= $board_skin_path?>/img/progress/skin_right_img.gif" width="9" height="5"></td>
</tr>
<tr>
<td colspan="3"><img src="<?= $board_skin_path?>/img/progress/skin_down.gif" width="210" height="9"></td>
</tr>
<tr>
<td colspan="3" height="5"></td>
</tr>
<tr>
<td colspan="3" height="30" align="right">
<?php
echo $thumimg[0];
echo $thumimg[1];
echo $thumimg[2];
?>
</td>
</tr>
</table>
</td>
<td width="10"></td>
<td valign="top">
<table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
<!-- 추가필드시작-->
<tr><td height=2 bgcolor=#B0ADF5></td></tr>
<!-- <tr><td height=1 bgcolor=#E7E7E7></td></tr> -->
<tr><td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 업 체 명 : <?php echo $view[subject] ?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr><td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 전화번호 : <font color="red"><?php echo $view[wr_1] ?></font> </td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr><td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 위 치 : <?=$view[wr_3]?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr><td height=28 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?>
기타사항 :
[쿠폰발급:<?php echo $view[wr_4] ?>]
[예약:<?php echo $view[wr_5] ?>]
</td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 쿠폰 다운 (500포인트가 차감됩니다):<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++)
{
if ($view[file][$i][source] && !$view[file][$i][view])
{
$cnt++;
echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'>{$view[file][$i][source]} ({$view[file][$i][size]}), Down : {$view[file][$i][download]}</a></td></tr>";
}
} ?> </td>
</tr>
<tr><td height=2 bgcolor=#B0ADF5></td></tr>
<!-- 추가필드끝-->
<tr>
<td>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 박스 시작-->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" align="center">
<br><br>
<!--탭시작 -->
<script>tp=new obxTabPage('100%','550','test'); // 이게 초기설정</script>
<script>tp.addStart("1page","업체소개"); // 1페이지 시작</script>
<br><br><?=$view[wr_content]?>
<script>tp.addEnd();// 1페이지 끝</script>
<script>tp.addStart("4page","갤러리");// 4페이지 시작</script>
<table style="line-height:130%; margin-top:0; margin-bottom:0;" border="0" cellpadding="0" cellspacing="0" width="578">
<tr>
<td width="590" colspan="3"><p> </p></td>
</tr>
<tr>
<td width="570" rowspan="4"><p><img id=orgin_img src="/data/file/<?=$bo_table?>/<?=$view[file][3][file]?>" width="450" height="450" border="0"></p></td>
<td width="59" rowspan="4"><p> </p></td>
<td width="81"><p><img onmouseover="ch_img('fimg1');" id=fimg1 src="/data/file/<?=$bo_table?>/<?=$view[file][3][file]?>" width="110" height="110" border="0"></p></td>
</tr>
<tr>
<td width="81"><p><img onmouseover="ch_img('fimg2');" id=fimg2 src="/data/file/<?=$bo_table?>/<?=$view[file][4][file]?>" width="110" height="110" border="0"></p></td>
</tr>
<tr>
<td width="81"><p><img onmouseover="ch_img('fimg3');" id=fimg3 src="/data/file/<?=$bo_table?>/<?=$view[file][5][file]?>" width="110" height="110" border="0"></p></td>
</tr>
<tr>
<td width="81"><p><img onmouseover="ch_img('fimg4');" id=fimg4 src="/data/file/<?=$bo_table?>/<?=$view[file][6][file]?>" width="110" height="110" border="0"></p></td>
</tr>
<tr>
<td width="590" colspan="3"> </td>
</tr>
</table>
<script>tp.addEnd();</script></td>
</tr>
</table>
<!-- 박스 끝-->
</td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<?
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++)
{
if ($view[link][$i])
{
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "<tr><td height=30> <img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle> 매장 홈페이지 : <a href='{$view[link_href][$i]}' target=_blank>{$link} ({$view[link_hit][$i]})</a></td></tr><tr><td height=1 bgcolor=#E7E7E7></td></tr>";
}
}
?>
<tr>
<td>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?></td>
</tr>
</table>
<br><br>
<?
include_once("./view_comment.php");
?>
<?=$link_buttons?>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>
<!-- 게시글 보기 끝 -->
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$image_width?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>
<script>
function ch_img(id){
var ol = document.getElementById("orgin_img");
ol.src = document.getElementById(id).src;
}
</script>
<script language="JavaScript">
function file_download(link, file) {
<? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 쿠폰을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 쿠폰 하나당 한번만 차감되며 일정기간 안에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n쿠폰을 지급 받으시겠습니까?"))<?}?>
document.location.href=link;
}
</script>
댓글 전체