어떤스킨인데요...view_skin.php에서 메인상품그림이 클릭안되게 되있더라구요.. 정보
어떤스킨인데요...view_skin.php에서 메인상품그림이 클릭안되게 되있더라구요..본문
클릭이 되서 큰그림으로 나오게 할려면 어떻게 하나요?
view_skin.php 소스입니다.
-----------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 환경설정값들을 불러온다. - 여유필드10은 더블카테고리 부분임
$color_filed = explode("|",$board[bo_1]); // 게시판색깔,상단모양,하단모양, 마크 분리
$bo_color = $color_filed[0]; // 게시판의 바, 버튼, 특정아이콘 색깔 지정
$bo_top = $color_filed[1]; // 상단모양 지정
$bo_bottom = $color_filed[2]; // 상단모양 지정
$bo_mark = $color_filed[3]; // 상단 이미지모양 마크표시
$bo_outline = $color_filed[4]; // 리스트 테두리여부
$bo_line = $board[bo_2]; // 구분선 - 점선과 직선 두가지
//$bo_auth = $board[bo_3]; // 관리자 승인여부 - 리스트에서만 작동하게 함 편법접근 무시
// 글쓰기폼과 리스트에서만 사용함 리스트에 안 나오면 뷰접근도 어렵기에 쉽게처리함
$bo_bbs = $board[bo_5]; // 게시판의 종류 - 일반, 이미지가 보이는일반
$bo_img = $board[bo_6]; // 이미지 있음,없음
$img_filed = explode("|",$board[bo_7]); // 이미지넓이 높이 분리
$bo_img_width = $img_filed[0]; // 이미지 넓이
$bo_img_height = $img_filed[1]; // 이미지 높이
$opt_filed = explode("|",$board[bo_8]); // 뷰페이지 애니콘사용여부, 코멘트페이지 이모티콘사용여부 분리
$bo_anicon = $opt_filed[0]; // 애니콘사용여부
$bo_emoticon = $opt_filed[1]; // 이모티콘사용여부
$bo_categroy = $board[bo_10]; // 더블카테고리 부분
if($bo_bbs == "story"){ // 끝말잇기면 바로 리스트로 보냄
goto_url("./board.php?bo_table=$bo_table");
exit;
}
// 환경설정 안할 경우의 기본값들
if($bo_color == "") {$bo_color = "img1";} // 게시판색깔
if($bo_top == "") {$bo_top = "0";} // 상단이미지
if($bo_bottom == "") {$bo_bottom = "0";} // 하단이미지
if($bo_outline == "") {$bo_outline = "0";} // 게시판 테두리 윤곽여부
if($bo_mark == "") {$bo_mark = "1";} // 게시판마크 이미지
if($bo_bbs == "") {$bo_bbs = "bbs";} // 게시판종류
if($bo_catview == "") {$bo_catview = "0";} // 분류보여주기 여부
if($bo_edit == "") {$bo_edit = "on";} // 글쓰기폼 여부
if($bo_edit_re == "") {$bo_edit_re = "0";} // 답글형식 여부
// 게시판분류 글자색과 공지사항의 글자색을 게시판색과 맞춤
if($bo_top == "0" || $bo_top == "1"){ // 블록입체형 또는 평명입체형이면 글자색 검정으로 처리함
$b_txt = "b_text4";
}else{
if($bo_color == "img2"){$b_txt = "b_text2";}
else if($bo_color == "img3" || $bo_color == "img4" || $bo_color == "img8"){$b_txt = "b_text6";}
else if($bo_color == "img5" ||$bo_color == "img6" || $bo_color == "img7"){$b_txt = "b_text7";}
else if($bo_color == "img8"){$b_txt = "b_text6";}
else if($bo_color == "img9" || $bo_color == "img10" || $bo_color == "img11"){$b_txt = "b_text3";}
else {$b_txt = "b_text4";}
}
if($bo_color == "img1"){$w_notice = "w_notice1";
}else if($bo_color == "img2"){$w_notice = "w_notice2";
}else if($bo_color == "img3"){$w_notice = "w_notice3";
}else if($bo_color == "img4"){$w_notice = "w_notice4";
}else if($bo_color == "img5"){$w_notice = "w_notice5";
}else if($bo_color == "img6"){$w_notice = "w_notice6";
}else if($bo_color == "img7"){$w_notice = "w_notice7";
}else if($bo_color == "img8"){$w_notice = "w_notice8";
}else if($bo_color == "img9"){$w_notice = "w_notice9";
}else if($bo_color == "img10"){$w_notice = "w_notice10";
}else if($bo_color == "img11"){$w_notice = "w_notice11";
}else{$w_notice = "w_notice1";}
// 상단모양에 대해서 - 8가지
if($bo_top == "0"){ $top_bar = "bar_top.gif";
}else if($bo_top == "1") {$top_bar = "bar_top1.gif";
}else if($bo_top == "2") {$top_bar = "bar_top2.gif";
}else if($bo_top == "3") {$top_bar = "bar_top3.gif";
}else if($bo_top == "4") {$top_bar = "bar_top5.gif";
}else if($bo_top == "5") {$top_bar = "bar_top6.gif";
}else if($bo_top == "6") {$top_bar = "bar_top4.gif";
}else if($bo_top == "7") {$top_bar = "bar_top5.gif";
}else if($bo_top == "8") {$top_bar = "bar_top6.gif";
}else {$top_bar = "bar_top.gif";}
// 하단모양에 대해서 - 2가지
if($bo_bottom == "0"){$buttom_bar = "bar_buttom.gif";}else{$buttom_bar = "bar_buttom1.gif";}
// 상단마크에 대해서
$img_mk = "mk" .$bo_mark .".gif";
?>
<?
if($bo_bbs == "movie") { // 영화게시판이면
$mov_filed = explode("|",$view[wr_4]); // 감독입력, 출연자, 장르/기타, 개봉년월, 상영시간, 별점주기
$mov_00 = $mov_filed[0];
$mov_01 = $mov_filed[1];
$mov_02 = $mov_filed[2];
$mov_03 = $mov_filed[3];
$mov_04 = $mov_filed[4];
$mov_05 = $mov_filed[5];
if($mov_05 == 1){ $marks_img = "<img src=" .$board_skin_path ."/img/1.gif align=absmiddle>";
}else if($mov_05 == 2){ $marks_img = "<img src=" .$board_skin_path ."/img/2.gif align=absmiddle>";
}else if($mov_05 == 3){ $marks_img = "<img src=" .$board_skin_path ."/img/3.gif align=absmiddle>";
}else if($mov_05 == 4){ $marks_img = "<img src=" .$board_skin_path ."/img/4.gif align=absmiddle>";
}else if($mov_05 == 5){ $marks_img = "<img src=" .$board_skin_path ."/img/5.gif align=absmiddle>";
}else{ $marks_img = "<img src=" .$board_skin_path ."/img/1.gif align=absmiddle>";}
?>
<script language="javascript">
<!--
function view(what) {
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=10,height=10');
imgwin.focus();
imgwin.document.open();
imgwin.document.write("<html>\n");
imgwin.document.write("<head>\n");
imgwin.document.write("<title>그림을 클릭함 창이 닫혀요..</title>\n"); //오픈창 타이틀 이름 지정하는 부분
imgwin.document.write("<sc"+"ript>\n");
imgwin.document.write("function resize() {\n");
imgwin.document.write("pic = document.il;\n");
//imgwin.document.write("alert(eval(pic).height);\n");
imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n");
imgwin.document.write(" if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height +20; myWidth = eval(pic).width + 0;\n");
imgwin.document.write(" } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n");
imgwin.document.write(" clearTimeout();\n");
imgwin.document.write(" var height = screen.height;\n");
imgwin.document.write(" var width = screen.width;\n");
imgwin.document.write(" var leftpos = width / 2 - myWidth / 2;\n");
imgwin.document.write(" var toppos = height / 2 - myHeight / 2; \n");
imgwin.document.write(" self.moveTo(leftpos, toppos);\n");
imgwin.document.write(" self.resizeTo(myWidth, myHeight);\n");
imgwin.document.write("}else setTimeOut(resize(), 100);}\n");
imgwin.document.write("</sc"+"ript>\n");
imgwin.document.write("</head>\n");
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="black">\n');
imgwin.document.write("<img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();' onclick='window.close();' style='cursor:pointer'>\n");
imgwin.document.write("</body>\n");
imgwin.document.close();
}
-->
</script>
<?} // 영화게시판이면 설정 끝?>
<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0"><tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height=40 background="<?=$board_skin_path?>/img/top_bar.gif">
<tr>
<td width="100%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <img src="<?=$board_skin_path?>/img/<?=$img_mk?>" align="absmiddle"> <a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>'> <font size=3><b><?=$board[bo_subject]?></b></font></a></td>
</tr>
</table>
</td>
</tr>
</table>
<? // 에니콘 - 플래쉬콘 - 사용하면 보여준다.
if($bo_anicon == 1){
if(!function_exists('anicon_html')) { include "../anicon/anicon.php"; }
$view[content] = anicon_html($view[content],$dir);
}
?>
<table width="100%" cellspacing="0" cellpadding="0" background="<?=$board_skin_path?>/img/<?=$bo_color?>/<?=$top_bar?>" height='35'>
<tr>
<td width="4" align="center" valign="middle"><?if($bo_top == "6") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top4_left.gif"><?}else if($bo_top == "7") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top5_left.gif"><?}else if($bo_top == "8") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top6_left.gif"><?}?></td>
<TD width=80%> <font class=<?=$b_txt?>><strong>
<?if($view[wr_10] == ""){ // 여유필드 wr_10에 이중분류 입력값이 없으면 분류 하나만 사용?><? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?><?}else{?><? if ($is_category) { echo ($category_name ? "[$view[ca_name] > $view[wr_10]] " : ""); } ?><?}?> <?if($bo_bbs == "money") { // 회비/회계 게시판이면?>납부자 또는 지출항목<?}else{?>제 목<?}?> : <?=$view[subject]?></strong></font> <?if($bo_bbs == "movie") { echo"$marks_img";}?></td>
<TD width=20% align=right>
<font color="#727272">
<? if ($is_good) echo "<b>추천</b>($view[wr_good])";?>
<? if ($is_nogood) echo "<b>비추천</b>($view[wr_nogood])";?></font>
</td>
<td width="4" align="center" valign="middle"><?if($bo_top == "6") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top4_right.gif"><?}else if($bo_top == "7") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top5_right.gif"><?}else if($bo_top == "8") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top6_right.gif"><?}?></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="30">
<td width="35%"> <strong>글쓴이 : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?></td>
<td width="45%" align="right"><strong>날 짜 : </strong><?=substr($view[wr_datetime],2,14)?></td>
<td width="20%" align="center">
<?if($bo_bbs == "psd") {?>
<font color="#727272"><b>자료평가</b></font>
<?
if ($view[wr_hit]<1)
echo ("<img src='$board_skin_path/graph/icon_ball00.gif' width=43 height=7 border=0 align=absmiddle>");
elseif($view[wr_hit]<=5)
echo ("<img src='$board_skin_path/graph/icon_ball01.gif' width=43 height=7 border=0 align=absmiddle>");
elseif($view[wr_hit]<=10)
echo ("<img src='$board_skin_path/graph/icon_ball02.gif' width=43 height=7 border=0 align=absmiddle>");
elseif($view[wr_hit]<=30)
echo ("<img src='$board_skin_path/graph/icon_ball03.gif' width=43 height=7 border=0 align=absmiddle>");
elseif($view[wr_hit]<=60)
echo ("<img src='$board_skin_path/graph/icon_ball04.gif' width=43 height=7 border=0 align=absmiddle>");
elseif($view[wr_hit]<=100)
echo ("<img src='$board_skin_path/graph/icon_ball05.gif' width=43 height=7 border=0 align=absmiddle>");
?>
<?}else{?>
<font color="#727272"><b>조회</b>(<?=$view[wr_hit]?>)</font>
<?}?>
</td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<?if($bo_bbs == "money") { // 회비/회계 게시판이면?>
<tr height="30">
<td width="35%"> <b>납부/지출</b> : <?=$view[wr_1]?>월 <?=$view[wr_2]?>일</td>
<td width="45%" align="right"> <b>수입액</b></font> : <?=number_format($view[wr_3])?>원</td>
<td width="20%" align="center"> <b>지출액</b> : <?=number_format($view[wr_3])?>원</td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<?}?>
<?
if($bo_bbs == "bmusic") { // 블로그음악실이면 가수이름 보여줌
?>
<tr height="30"><td width="100%" colSpan=3> <strong>가수명 : <?=$view[wr_3]?></strong></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<?}?>
<? if ($trackback_url) { ?>
<tr height=30>
<td>
<a href="javascript:FontPlus();" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/sbtn_txtplus1.gif" border="0" title="글자크게 보기" align="absmiddle"></a>
<a href="javascript:FontMinus();" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/sbtn_txtminus1.gif" border="0" title="글자작게 보기" align="absmiddle"></span></a>
<a href="javascript:GPEN_PRINT();" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/sbtn_print.gif" border="0" title="인쇄하기" align="absmiddle"></span></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/sbtn_smscrap1.gif' border='0' align='absmiddle' title='이 글 스크랩하기'></a> "; }?>
<? if($bo_bbs == "gallery" || $bo_bbs == "thum" || $bo_bbs == "movie"){?>
<img src="<?=$board_skin_path?>/img/sbtn_show.gif" border=0 style="vertical-align: middle;cursor:pointer;" onClick="OpenWin('<?=$board_skin_path?>/slideshow.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>',550,650); return false;" alt="슬라이드 쇼 보기" title="상단 이미지 슬라이드 쇼 보기">
<?}?>
</td>
<td align="right" colSpan=2>
트랙백 주소 : <a href="javascript:clipboard_trackback('<?=$trackback_url?>');" style="letter-spacing:0;" title='이 글을 소개할 때는 이 주소를 사용하세요'><?=$trackback_url?></a>
<script language="JavaScript">
function clipboard_trackback(str) {
if (g4_is_gecko)
prompt("이 글의 고유주소입니다. Ctrl+C를 눌러 복사하세요.", str);
else if (g4_is_ie) {
window.clipboardData.setData("Text", str);
alert("트랙백 주소가 복사되었습니다.\n\n<?=$trackback_url?>");
}
}
</script>
</td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<? } ?>
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {
$cnt++;
echo <<<HEREDOC
<tr height=30><td colSpan=3> FILE #{$cnt} : <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'><b>{$view[file][$i][source]}</b> ({$view[file][$i][size]}), Down:{$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>
<tr><td height="1" background="{$board_skin_path}/img/dot_bg.gif" colSpan=3></td></tr>
HEREDOC;
}
}
if($bo_bbs != "movie") {
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
if ($view[link][$i]) {
$cnt++;
$link = cut_str($view[link][$i], 70);
echo <<<HEREDOC
<tr height=30><td colSpan=3> LINK {$cnt} : <a href="{$view[link_href][$i]}" target="_blank"><b>{$link}</b></a> ({$view[link_hit][$i]})</td></tr>
<tr><td height="1" background="{$board_skin_path}/img/dot_bg.gif" colSpan=3></td></tr>
HEREDOC;
}
}
}// 영화게시판이 아니면 링크를 보여준다.
?>
<?if($bo_bbs == "movie") {?>
<tr>
<td valign="top" style='word-break:break-all; padding:10px;' colSpan=3>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
<td width=30%>
<?
if($view[file][0][file]){ // 첫번째 이미지
$image = $view[file][0][file];
$file1_v= "<img src='$g4[path]/data/file/$board[bo_table]/$image' width='200' height='220' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image')\" border=\"0\">";}
else{echo "<center>메인이미지 지정안함</center>";}
for ($i=0; $i<=count; $i++){
if ($view[file][$i]){echo "<a href='javascript:;'>$file1_v</a>";}
}
?>
</td>
<td width='70%' align=center>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr height=20><td><font color=cf4911>감독</font> : <?=$mov_00?></td></tr>
<tr><td height="2"></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
<tr><td height="2"></td></tr>
<tr height=20><td><font color=cf4911>출연</font> : <?=$mov_01?></td></tr>
<tr><td height="2"></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
<tr><td height="2"></td></tr>
<tr height=20><td><font color=cf4911>장르/기타</font> : <?=$mov_02?> / <?=$mov_03?> 개봉 / <?=$mov_04?> / <?=$list[$i][ca_name]?></td></tr>
<tr><td height="2"></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
<tr><td height="2"></td></tr>
<?if($view[link][$i]){?>
<tr><td><font color=cf4911>공식홈</font> :
<?// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
if ($view[link][$i]) {
$cnt++;
$link = cut_str($view[link][$i], 70);
echo " <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank><strong>{$link}</strong> ({$view[link_hit][$i]})</a>";
}}?>
</td></tr>
<tr><td height="2"></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
<tr><td height="7"></td></tr>
<?}?>
<tr>
<td>
<? // 이미지를 나열해준다.
$image1 = $view[file][1][file];
$image2 = $view[file][2][file];
$image3 = $view[file][3][file];
$image4 = $view[file][4][file];
$file1= "<img src='$g4[path]/data/file/$board[bo_table]/$image1' width='120' height='120' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image1')\" border=\"0\">";
$file2= "<img src='$g4[path]/data/file/$board[bo_table]/$image2' width='120' height='120' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image2')\" border=\"0\">";
$file3= "<img src='$g4[path]/data/file/$board[bo_table]/$image3' width='120' height='120' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image3')\" border=\"0\">";
$file4= "<img src='$g4[path]/data/file/$board[bo_table]/$image4' width='120' height='120' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image4')\" border=\"0\">";
if ($view[file][1][view]){echo "<a href='javascript:;'>$file1</a>";}
if ($view[file][2][view]){echo " <a href='javascript:;'>$file2</a>";}
if ($view[file][3][view]){echo " <a href='javascript:;'>$file3</a>";}
if ($view[file][4][view]){echo " <a href='javascript:;'>$file4</a>";}
else if(!$view[file][1][file] && !$view[file][2][file] && !$view[file][3][file] && !$view[file][4][file])
echo "추가이미지없음";
?>
</td>
</tr>
</table>
</td>
</tr>
<tr><td height="7" colspan="2"></td></tr>
<tr><td colspan="2" height="1" background="<?=$board_skin_path?>/img/dotline.gif"></td></tr>
<tr><td height="7" colspan="2"></td></tr>
<tr>
<td width=100% valign="top" style='word-break:break-all;' colSpan=2>
<div id="ContentsLayer">
<span class="ct lh"><?=$view[content];?></span>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
</div>
<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?>
</td>
</tr>
</table>
</td>
</tr>
<?
}else if($bo_bbs == "poll") { // 설문조사이면 - 투표여부 쿠키대신 디비값으로 비교함
$m_ip = $HTTP_SERVER_VARS[REMOTE_ADDR]; // 아이피로 투표여부 대조함 - 비회원참여도 고려해서
$poll_filed = explode("|",$view[wr_5]); // 각 항목별 투표자 수, 참여자아이디, 주제설명 분리
$poll_ck = $poll_filed[0]; // 설문인지 찬반인지 체크
$poll_num = $poll_filed[1]; // 각 항목별 투표자 수
$poll_id = $poll_filed[2]; // 참여자아이피
$poll_notice = $poll_filed[3]; // 주제설명
?>
<tr>
<td valign="top" style='word-break:break-all; padding:10px;' colSpan=3>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<form name=fpollskin method=post action="<?=$board_skin_path?>/poll_answer_update.php" onsubmit="return fpollskin_check(this.form);" target="hiddenframe">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=poll_member value="<?=$m_ip?>">
<input type=hidden name=poll_notice value="<?=$poll_notice?>">
<input type=hidden name=poll_ck value="<?=$poll_ck?>">
<? if ($poll_notice) { // 주제설명이 있으면?><tr><TD><img src="<?=$board_skin_path?>/img/icon_bullet.gif" align="absmiddle"> 설명 : <span class="ct lh"><?=nl2br($poll_notice)?></span></TD></tr><? } ?>
<tr><td height="5"></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dotline.gif"></td></tr>
<tr><td height="5"></td></tr>
<TR>
<TD style='word-break:break-all; padding:10px' height=150>
<img src="<?=$board_skin_path?>/img/icon_bullet.gif" align="absmiddle"> 설문조사 :
<!-- 내용 출력 -->
<?
// 투표한 사람, 자신, 관리자만 결과가 보임
$is_poll = false; // 기본값
$preson = explode(",",$poll_id); // 참여자아이디를 ,로 다시 분리
$s = count($preson);
for ($i=0; $i<count($preson); $i++){
$man = $preson[$i];
if ($man == $m_ip || $is_admin){$is_poll = true;}
}
$max = 1;
$total = 0;
$tmp = explode(",",$poll_num); // 각 항목별 투표자 수를 ,로 다시 분리
for ($i=0; $i<count($tmp); $i++){
$total += (int)$tmp[$i];
if ((int)$tmp[$i] > $max)
$max = (int)$tmp[$i];
}
echo "<table>";
$ans = explode("\n", $view[wr_content]);
for ($i=0; $i<count($ans); $i++){
echo "<tr>";
echo "<td>";
echo "<input type=radio name='ans' id='ans$i' value='$i'><label for='ans$i'>";
echo $ans[$i];
echo "</label>";
if ($is_poll) {
if ($total > 0)
$rate = ((int)$tmp[$i] / $total) * 100;
$bar = number_format($rate,1);
echo "</td>";
echo "<td width=200>";
echo "<table width=100% height=10 cellspacing=0 cellpadding=0 border=0>";
echo "<tr><td><div style='width:100%;height:10px;border:1px solid #8E959B;background-color:#ffffff'><img src='$board_skin_path/img/poll_bar.gif' width='{$bar}%' height='8' title='' border='0'></div></td></tr>";
echo "</table>";
echo "<td width=50 align=right>".number_format($tmp[$i])."명 </td>";
echo "<td width=70 align=right>".number_format($rate,1)."% </td>";
}
echo "</td></tr>";
}
if ($is_poll){
echo "<tr>";
echo "<td></td>";
echo "<td align=right>설문참여자 총 </td>";
echo "<td align=right>".$total."명 </td></tr>";
}
echo "</table>";
?>
<input type=hidden name=max_ans value="<?=$i?>">
<input type=hidden name=is_poll value="<?=$is_poll?>"> <!-- 투표를 했는지 안했는지 판단값 -->
<input type=hidden name=poll_num value="<?=$poll_num?>"> <!-- 투표수 조정하기 위해 필요 -->
<input type=hidden name=poll_id value="<?=$poll_id?>"> <!-- 투표수 조정하기 위해 필요 -->
<?
if ($is_poll){
echo "<p><font color=gray>이미 설문에 참여하셨습니다.</font>";
} else {
echo "<p><input type=submit value=' 설문 참여 '>";
echo "<p><font color=gray>투표하시면 결과가 보입니다.</font>";
}
?>
<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?>
</td>
</tr>
</form>
</table>
</td>
</tr>
<?}else if($bo_bbs == "shop") {
if ($member[mb_level] >= '1') { // 회원만 열람가능
$view[wr_email]; // 이메일
$ex5_filed = explode("|",$view[wr_5]); //전화,핸드폰
$view_TEL = $ex5_filed[0] ."-". $ex5_filed[1] ."-".$ex5_filed[2];
$view_HP = $ex5_filed[3] ."-". $ex5_filed[4] ."-".$ex5_filed[5];
} else {
$view[wr_email] = "Member Only";
$ex5_filed = explode("|",$view[wr_5]);
$view_TEL = "Member Only";
$view_HP = "Member Only";
}
$ex2_filed = explode("|",$view[wr_2]); // 소비자가/판매가/가격절충여부
$ext2_00 = $ex2_filed[0];
$ext2_01 = $ex2_filed[1];
$ext2_02 = $ex2_filed[2];
$ex3_filed = explode("|",$view[wr_3]); // 물품배송/거래상태/판매수량
$ext3_00 = $ex3_filed[0]; // 물품배송
$ext3_01 = $ex3_filed[1]; // 거래상태
$ext3_02 = $ex3_filed[2]; // 판매수량
?>
</table>
<table width="100%" cellspacing="0" cellpadding="0"style="border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-color:rgb(204,204,204); border-right-style:solid; border-bottom-style:solid; border-left-style:solid;">
<tr height="30">
<td width="50%" align=center style='padding-left:10px; padding-top:10px; padding-BOTTOM:10px; padding-right:10px;'>
<? for ($i=0; $i<=4; $i++) {$image[$i] = "$g4[path]/data/file/$bo_table/".$view[file][$i][file];}?>
<table width="220" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;padding-left:10px; padding-top:10px; padding-BOTTOM:10px; padding-right:10px;" align=center>
<tr>
<td width="100%">
<? if ($view[file][0][view]) {?>
<img src="<?=$image[0]?>" name=gallery_img width="200" height="190" border=0 value=0>
<? } else {?>
<img src="<?=$board_skin_path?>/img/no_image.gif" border=0 value=0>
<? } ?>
</td>
</tr>
</table>
<table width="100%">
<tr>
<td align="center">
<? if ($view[file][0][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[0]."','".$image[0]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>><img src="<?=$board_skin_path?>/img/p_1.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][1][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[1]."','".$image[1]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>><img src="<?=$board_skin_path?>/img/p_2.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][2][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[2]."','".$image[2]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_3.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][3][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[3]."','".$image[3]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_4.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][4][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[4]."','".$image[4]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_5.gif" align="absmiddle" border="0"></a><? }?>
</td>
</tr>
</table>
</td>
<td width="50%">
<table width="90%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr height="30">
<td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif" width="11" height="10"> <strong>상품명 : <?=$view[wr_6]?>
<? // 아이콘출력
if ($view[is_notice]) { echo "<img src=\"$board_skin_path/img/icon_level01.gif\" width=15 height=15 align='absmiddle'>"; }
else if ($view[wr_1] == "1") { echo "<img src=\"$board_skin_path/img/icon_level02.gif\" width=15 height=15 align='absmiddle'>"; }
else { echo ""; }
?>
<!-- // 거래관련 아이콘 출력 --//-->
<? if($ext3_01 == "on") {echo "<img src='{$board_skin_path}/img/icon_on.gif' border='0' width='47' height='16' align='absmiddle'>"; } ?>
<? if($ext3_01 == "off") {echo "<img src='{$board_skin_path}/img/icon_off.gif' border='0' width='47' height='16' align='absmiddle'>";} ?>
</td>
</tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>물품수량 : </strong><?=$ext3_02?> 개</td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>소비자가 : <?=number_format($ext2_00)?> 원</td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>판매가 : </strong><?=number_format($ext2_01)?> 원</td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>배송여부 : </strong><?=$ext3_00?></td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>가격절충 : </strong><?=$ext2_02?></td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
</table>
</td>
</tr>
<tr><td height="5" colSpan=2></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dotline.gif" colSpan=2></td></tr>
<tr><td height="5" colSpan=2></td></tr>
<tr>
<td height="150" valign="top" style='word-break:break-all; padding:10px;' colSpan=2>
<div id="ContentsLayer">
<span class="ct lh"><?=$view[content];?></span>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
</div>
</td>
</tr>
</table>
<table width='100%'><tr><td height='5'></td></tr></table>
<table width="100%"><tr><td class="blue"><img src="<?=$board_skin_path?>/img/icon7.gif" align="absmiddle"> <b> 판매자정보</b></td></tr></table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr height="30">
<td width="50%"> <strong>글쓴이 : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?></td>
<td width="50%"><strong>E-Mail : <a href="mailto:<?=$view[wr_email]?>"><?=$view[wr_email]?></a></td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<tr height="30">
<td width="50%">
<strong>전화번호 : <?=$view_TEL?>
</td>
<td width="50%"><strong>핸드폰 : </strong><?=$view_HP?></td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
</table>
<table width='100%'><tr><td height='5'></td></tr></table>
<table width="100%"><tr><td class="blue"><img src="<?=$board_skin_path?>/img/icon7.gif" align="absmiddle"> <b>상품 주문신청하기 - 로그인을 하시면 주문신청란이 나옵니다.</b></td></tr></table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr><td width="100%" style='padding-left:10px; padding-right:10px;'>
<table width='100%'><tr><td height='5'></td></tr></table>
<?}else{?>
<tr>
<td height="150" valign="top" style='word-break:break-all; padding:10px;' colSpan=3>
<?
$n = $view[wr_8]; // 한줄당 출력 이미지수
if ($n > (count($view[file])-1)) {
$i_count = (count($view[file])-1); //원본이미지수가 적으면 적은갯수를..
}
else {
$i_count = $n; //원본이미지수가 많으면 설정갯수를..
}
if ($i_count > 0) {
$wid = (int)($board[bo_image_width]/$i_count); //게시판환경설정->'이미지폭크기'를 갖고 나눈다
$board[bo_image_width] = $wid; //자동이미지폭 조정을 위해 다시 넘겨준다..
$wid = (int)(1/$n*100);
}
echo "<table width='100%' cellpadding=3 cellspacing=0 border=0>";
echo "<tr>";
for ($i=0; $i<=count($view[file]); $i++) {
if (($view[file][$i][view]) && $i>0 && ($i%$n == 0)) {
echo "</tr><tr>";
}
if ($view[file][$i][view]) {
echo "<td align='center' valign='top' style='word-break:break-all'>";
echo "<td align='center' valign='top' style='word-break:break-all'>";
echo "<table cellpadding=10 cellspacing=0 border=0 style='border:1px solid #cccccc;'><tr><td>";
echo "<table cellpadding=0 cellspacing=0 border=0 style='border:1px solid #888888;'><tr><td>";
echo $view[file][$i][view];
echo "</td></tr></table>";
echo "</td></tr></table>";
echo "<br><br>". $view[file][$i][content]; // 이미지 설명글 {게시판 환경설정에서 체크}
}
}
// 부족한 <td> 갯수 맞추는 작업
if ((count($view[file])-1) % $n != 0) {
$td_cnt = $n - ((count($view[file])-1)%$n);
for ($t=0; $t<$td_cnt; $t++) {
echo "<td> </td>";
}
}
echo "</tr></table>";
echo "<br>";
?>
<div id="ContentsLayer">
<span class="ct lh"><?=$view[content];?></span>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
</div>
</td>
</tr>
<? if ($is_signature) { echo "<tr><td colSpan=3>$signature<br><br></td></tr>"; } // 서명 출력 ?>
<?}?>
<tr><td width="100%" colSpan=3 style='padding-left:10px; padding-right:10px;'>
<? include_once("./view_comment.php"); ?>
</td></tr>
<tr><td width="100%" colSpan=3 style='padding-left:10px; padding-right:10px;'>
<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/$bo_color/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/$bo_color/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/$bo_color/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/$bo_color/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
<? if($poll_num == ""){
if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/$bo_color/btn_update.gif' border='0' align='absmiddle'></a> "; }
} // 설문참여자가 있으면 수정이 안되도록 처리 ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/$bo_color/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_bad.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/$bo_color/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>
<? if (($prev_href)or($next_href)) { ?>
<td width=25% align=right>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/$bo_color/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/$bo_color/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
<? } ?>
</tr>
</table>
</td></tr>
</table>
</td></tr></table>
<?if($bo_bbs == "poll") { // 설문조사이면 사용할 스크립트?>
<script language="JavaScript">
function fpollskin_check(f){
var ans = document.getElementsByName('ans');
var chk = false;
for (i=0;i<ans.length;i++) {
if (ans[i].checked) {
chk = true;
break;
}
}
if (!chk) {
alert("투표하실 항목을 선택하십시오.");
return false;
}
return true;
}
</script>
<?}?>
<?if($bo_bbs == "shop") {?>
<script>
function chgImg( imgname, dnimgname, imgdesc ) {
var LureExp = /<br>/gi;
document.gallery_img.src=imgname;
}
</script>
<?}?>
<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;
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;
}
//그누보드 choi5000 님의 글자크기조절 스크립트
// 폰트확대
function FontPlus(){
var l = document.getElementById('ContentsLayer');
var nSize = l.style.fontSize ? l.style.fontSize : '9pt';
var iSize = parseInt(nSize.replace('pt',''));
if (iSize < 20) {
l.style.fontSize = (iSize + 1) + 'pt';
l.style.lineHeight = '140%';
}
}
//폰트축소
function FontMinus() {
var l = document.getElementById('ContentsLayer');
var nSize = l.style.fontSize ? l.style.fontSize : '9pt';
var iSize = parseInt(nSize.replace('pt',''));
if (iSize > 6) {
l.style.fontSize = (iSize - 1) + 'pt';
l.style.lineHeight = '140%';
}
}
function GPEN_PRINT(){
var p = window.open("./print.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>","PrintWin","width=700, height=600, scrollbars=yes");
p.focus();
}
</script>
<script language="JavaScript">
<!--
function OpenWin(url,intWidth,intHeight){
window.open(url, "ReadSlideShow", "scrollbars=no, resizable=no, width="+intWidth+",height="+intHeight+" ");
return;
}
//-->
</script>
<!-- 게시글 보기 끝 -->
view_skin.php 소스입니다.
-----------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 환경설정값들을 불러온다. - 여유필드10은 더블카테고리 부분임
$color_filed = explode("|",$board[bo_1]); // 게시판색깔,상단모양,하단모양, 마크 분리
$bo_color = $color_filed[0]; // 게시판의 바, 버튼, 특정아이콘 색깔 지정
$bo_top = $color_filed[1]; // 상단모양 지정
$bo_bottom = $color_filed[2]; // 상단모양 지정
$bo_mark = $color_filed[3]; // 상단 이미지모양 마크표시
$bo_outline = $color_filed[4]; // 리스트 테두리여부
$bo_line = $board[bo_2]; // 구분선 - 점선과 직선 두가지
//$bo_auth = $board[bo_3]; // 관리자 승인여부 - 리스트에서만 작동하게 함 편법접근 무시
// 글쓰기폼과 리스트에서만 사용함 리스트에 안 나오면 뷰접근도 어렵기에 쉽게처리함
$bo_bbs = $board[bo_5]; // 게시판의 종류 - 일반, 이미지가 보이는일반
$bo_img = $board[bo_6]; // 이미지 있음,없음
$img_filed = explode("|",$board[bo_7]); // 이미지넓이 높이 분리
$bo_img_width = $img_filed[0]; // 이미지 넓이
$bo_img_height = $img_filed[1]; // 이미지 높이
$opt_filed = explode("|",$board[bo_8]); // 뷰페이지 애니콘사용여부, 코멘트페이지 이모티콘사용여부 분리
$bo_anicon = $opt_filed[0]; // 애니콘사용여부
$bo_emoticon = $opt_filed[1]; // 이모티콘사용여부
$bo_categroy = $board[bo_10]; // 더블카테고리 부분
if($bo_bbs == "story"){ // 끝말잇기면 바로 리스트로 보냄
goto_url("./board.php?bo_table=$bo_table");
exit;
}
// 환경설정 안할 경우의 기본값들
if($bo_color == "") {$bo_color = "img1";} // 게시판색깔
if($bo_top == "") {$bo_top = "0";} // 상단이미지
if($bo_bottom == "") {$bo_bottom = "0";} // 하단이미지
if($bo_outline == "") {$bo_outline = "0";} // 게시판 테두리 윤곽여부
if($bo_mark == "") {$bo_mark = "1";} // 게시판마크 이미지
if($bo_bbs == "") {$bo_bbs = "bbs";} // 게시판종류
if($bo_catview == "") {$bo_catview = "0";} // 분류보여주기 여부
if($bo_edit == "") {$bo_edit = "on";} // 글쓰기폼 여부
if($bo_edit_re == "") {$bo_edit_re = "0";} // 답글형식 여부
// 게시판분류 글자색과 공지사항의 글자색을 게시판색과 맞춤
if($bo_top == "0" || $bo_top == "1"){ // 블록입체형 또는 평명입체형이면 글자색 검정으로 처리함
$b_txt = "b_text4";
}else{
if($bo_color == "img2"){$b_txt = "b_text2";}
else if($bo_color == "img3" || $bo_color == "img4" || $bo_color == "img8"){$b_txt = "b_text6";}
else if($bo_color == "img5" ||$bo_color == "img6" || $bo_color == "img7"){$b_txt = "b_text7";}
else if($bo_color == "img8"){$b_txt = "b_text6";}
else if($bo_color == "img9" || $bo_color == "img10" || $bo_color == "img11"){$b_txt = "b_text3";}
else {$b_txt = "b_text4";}
}
if($bo_color == "img1"){$w_notice = "w_notice1";
}else if($bo_color == "img2"){$w_notice = "w_notice2";
}else if($bo_color == "img3"){$w_notice = "w_notice3";
}else if($bo_color == "img4"){$w_notice = "w_notice4";
}else if($bo_color == "img5"){$w_notice = "w_notice5";
}else if($bo_color == "img6"){$w_notice = "w_notice6";
}else if($bo_color == "img7"){$w_notice = "w_notice7";
}else if($bo_color == "img8"){$w_notice = "w_notice8";
}else if($bo_color == "img9"){$w_notice = "w_notice9";
}else if($bo_color == "img10"){$w_notice = "w_notice10";
}else if($bo_color == "img11"){$w_notice = "w_notice11";
}else{$w_notice = "w_notice1";}
// 상단모양에 대해서 - 8가지
if($bo_top == "0"){ $top_bar = "bar_top.gif";
}else if($bo_top == "1") {$top_bar = "bar_top1.gif";
}else if($bo_top == "2") {$top_bar = "bar_top2.gif";
}else if($bo_top == "3") {$top_bar = "bar_top3.gif";
}else if($bo_top == "4") {$top_bar = "bar_top5.gif";
}else if($bo_top == "5") {$top_bar = "bar_top6.gif";
}else if($bo_top == "6") {$top_bar = "bar_top4.gif";
}else if($bo_top == "7") {$top_bar = "bar_top5.gif";
}else if($bo_top == "8") {$top_bar = "bar_top6.gif";
}else {$top_bar = "bar_top.gif";}
// 하단모양에 대해서 - 2가지
if($bo_bottom == "0"){$buttom_bar = "bar_buttom.gif";}else{$buttom_bar = "bar_buttom1.gif";}
// 상단마크에 대해서
$img_mk = "mk" .$bo_mark .".gif";
?>
<?
if($bo_bbs == "movie") { // 영화게시판이면
$mov_filed = explode("|",$view[wr_4]); // 감독입력, 출연자, 장르/기타, 개봉년월, 상영시간, 별점주기
$mov_00 = $mov_filed[0];
$mov_01 = $mov_filed[1];
$mov_02 = $mov_filed[2];
$mov_03 = $mov_filed[3];
$mov_04 = $mov_filed[4];
$mov_05 = $mov_filed[5];
if($mov_05 == 1){ $marks_img = "<img src=" .$board_skin_path ."/img/1.gif align=absmiddle>";
}else if($mov_05 == 2){ $marks_img = "<img src=" .$board_skin_path ."/img/2.gif align=absmiddle>";
}else if($mov_05 == 3){ $marks_img = "<img src=" .$board_skin_path ."/img/3.gif align=absmiddle>";
}else if($mov_05 == 4){ $marks_img = "<img src=" .$board_skin_path ."/img/4.gif align=absmiddle>";
}else if($mov_05 == 5){ $marks_img = "<img src=" .$board_skin_path ."/img/5.gif align=absmiddle>";
}else{ $marks_img = "<img src=" .$board_skin_path ."/img/1.gif align=absmiddle>";}
?>
<script language="javascript">
<!--
function view(what) {
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=10,height=10');
imgwin.focus();
imgwin.document.open();
imgwin.document.write("<html>\n");
imgwin.document.write("<head>\n");
imgwin.document.write("<title>그림을 클릭함 창이 닫혀요..</title>\n"); //오픈창 타이틀 이름 지정하는 부분
imgwin.document.write("<sc"+"ript>\n");
imgwin.document.write("function resize() {\n");
imgwin.document.write("pic = document.il;\n");
//imgwin.document.write("alert(eval(pic).height);\n");
imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n");
imgwin.document.write(" if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height +20; myWidth = eval(pic).width + 0;\n");
imgwin.document.write(" } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n");
imgwin.document.write(" clearTimeout();\n");
imgwin.document.write(" var height = screen.height;\n");
imgwin.document.write(" var width = screen.width;\n");
imgwin.document.write(" var leftpos = width / 2 - myWidth / 2;\n");
imgwin.document.write(" var toppos = height / 2 - myHeight / 2; \n");
imgwin.document.write(" self.moveTo(leftpos, toppos);\n");
imgwin.document.write(" self.resizeTo(myWidth, myHeight);\n");
imgwin.document.write("}else setTimeOut(resize(), 100);}\n");
imgwin.document.write("</sc"+"ript>\n");
imgwin.document.write("</head>\n");
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="black">\n');
imgwin.document.write("<img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();' onclick='window.close();' style='cursor:pointer'>\n");
imgwin.document.write("</body>\n");
imgwin.document.close();
}
-->
</script>
<?} // 영화게시판이면 설정 끝?>
<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0"><tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height=40 background="<?=$board_skin_path?>/img/top_bar.gif">
<tr>
<td width="100%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <img src="<?=$board_skin_path?>/img/<?=$img_mk?>" align="absmiddle"> <a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>'> <font size=3><b><?=$board[bo_subject]?></b></font></a></td>
</tr>
</table>
</td>
</tr>
</table>
<? // 에니콘 - 플래쉬콘 - 사용하면 보여준다.
if($bo_anicon == 1){
if(!function_exists('anicon_html')) { include "../anicon/anicon.php"; }
$view[content] = anicon_html($view[content],$dir);
}
?>
<table width="100%" cellspacing="0" cellpadding="0" background="<?=$board_skin_path?>/img/<?=$bo_color?>/<?=$top_bar?>" height='35'>
<tr>
<td width="4" align="center" valign="middle"><?if($bo_top == "6") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top4_left.gif"><?}else if($bo_top == "7") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top5_left.gif"><?}else if($bo_top == "8") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top6_left.gif"><?}?></td>
<TD width=80%> <font class=<?=$b_txt?>><strong>
<?if($view[wr_10] == ""){ // 여유필드 wr_10에 이중분류 입력값이 없으면 분류 하나만 사용?><? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?><?}else{?><? if ($is_category) { echo ($category_name ? "[$view[ca_name] > $view[wr_10]] " : ""); } ?><?}?> <?if($bo_bbs == "money") { // 회비/회계 게시판이면?>납부자 또는 지출항목<?}else{?>제 목<?}?> : <?=$view[subject]?></strong></font> <?if($bo_bbs == "movie") { echo"$marks_img";}?></td>
<TD width=20% align=right>
<font color="#727272">
<? if ($is_good) echo "<b>추천</b>($view[wr_good])";?>
<? if ($is_nogood) echo "<b>비추천</b>($view[wr_nogood])";?></font>
</td>
<td width="4" align="center" valign="middle"><?if($bo_top == "6") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top4_right.gif"><?}else if($bo_top == "7") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top5_right.gif"><?}else if($bo_top == "8") {?><img src="<?=$board_skin_path?>/img/<?=$bo_color?>/bar_top6_right.gif"><?}?></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="30">
<td width="35%"> <strong>글쓴이 : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?></td>
<td width="45%" align="right"><strong>날 짜 : </strong><?=substr($view[wr_datetime],2,14)?></td>
<td width="20%" align="center">
<?if($bo_bbs == "psd") {?>
<font color="#727272"><b>자료평가</b></font>
<?
if ($view[wr_hit]<1)
echo ("<img src='$board_skin_path/graph/icon_ball00.gif' width=43 height=7 border=0 align=absmiddle>");
elseif($view[wr_hit]<=5)
echo ("<img src='$board_skin_path/graph/icon_ball01.gif' width=43 height=7 border=0 align=absmiddle>");
elseif($view[wr_hit]<=10)
echo ("<img src='$board_skin_path/graph/icon_ball02.gif' width=43 height=7 border=0 align=absmiddle>");
elseif($view[wr_hit]<=30)
echo ("<img src='$board_skin_path/graph/icon_ball03.gif' width=43 height=7 border=0 align=absmiddle>");
elseif($view[wr_hit]<=60)
echo ("<img src='$board_skin_path/graph/icon_ball04.gif' width=43 height=7 border=0 align=absmiddle>");
elseif($view[wr_hit]<=100)
echo ("<img src='$board_skin_path/graph/icon_ball05.gif' width=43 height=7 border=0 align=absmiddle>");
?>
<?}else{?>
<font color="#727272"><b>조회</b>(<?=$view[wr_hit]?>)</font>
<?}?>
</td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<?if($bo_bbs == "money") { // 회비/회계 게시판이면?>
<tr height="30">
<td width="35%"> <b>납부/지출</b> : <?=$view[wr_1]?>월 <?=$view[wr_2]?>일</td>
<td width="45%" align="right"> <b>수입액</b></font> : <?=number_format($view[wr_3])?>원</td>
<td width="20%" align="center"> <b>지출액</b> : <?=number_format($view[wr_3])?>원</td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<?}?>
<?
if($bo_bbs == "bmusic") { // 블로그음악실이면 가수이름 보여줌
?>
<tr height="30"><td width="100%" colSpan=3> <strong>가수명 : <?=$view[wr_3]?></strong></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<?}?>
<? if ($trackback_url) { ?>
<tr height=30>
<td>
<a href="javascript:FontPlus();" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/sbtn_txtplus1.gif" border="0" title="글자크게 보기" align="absmiddle"></a>
<a href="javascript:FontMinus();" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/sbtn_txtminus1.gif" border="0" title="글자작게 보기" align="absmiddle"></span></a>
<a href="javascript:GPEN_PRINT();" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/sbtn_print.gif" border="0" title="인쇄하기" align="absmiddle"></span></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/sbtn_smscrap1.gif' border='0' align='absmiddle' title='이 글 스크랩하기'></a> "; }?>
<? if($bo_bbs == "gallery" || $bo_bbs == "thum" || $bo_bbs == "movie"){?>
<img src="<?=$board_skin_path?>/img/sbtn_show.gif" border=0 style="vertical-align: middle;cursor:pointer;" onClick="OpenWin('<?=$board_skin_path?>/slideshow.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>',550,650); return false;" alt="슬라이드 쇼 보기" title="상단 이미지 슬라이드 쇼 보기">
<?}?>
</td>
<td align="right" colSpan=2>
트랙백 주소 : <a href="javascript:clipboard_trackback('<?=$trackback_url?>');" style="letter-spacing:0;" title='이 글을 소개할 때는 이 주소를 사용하세요'><?=$trackback_url?></a>
<script language="JavaScript">
function clipboard_trackback(str) {
if (g4_is_gecko)
prompt("이 글의 고유주소입니다. Ctrl+C를 눌러 복사하세요.", str);
else if (g4_is_ie) {
window.clipboardData.setData("Text", str);
alert("트랙백 주소가 복사되었습니다.\n\n<?=$trackback_url?>");
}
}
</script>
</td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<? } ?>
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {
$cnt++;
echo <<<HEREDOC
<tr height=30><td colSpan=3> FILE #{$cnt} : <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'><b>{$view[file][$i][source]}</b> ({$view[file][$i][size]}), Down:{$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>
<tr><td height="1" background="{$board_skin_path}/img/dot_bg.gif" colSpan=3></td></tr>
HEREDOC;
}
}
if($bo_bbs != "movie") {
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
if ($view[link][$i]) {
$cnt++;
$link = cut_str($view[link][$i], 70);
echo <<<HEREDOC
<tr height=30><td colSpan=3> LINK {$cnt} : <a href="{$view[link_href][$i]}" target="_blank"><b>{$link}</b></a> ({$view[link_hit][$i]})</td></tr>
<tr><td height="1" background="{$board_skin_path}/img/dot_bg.gif" colSpan=3></td></tr>
HEREDOC;
}
}
}// 영화게시판이 아니면 링크를 보여준다.
?>
<?if($bo_bbs == "movie") {?>
<tr>
<td valign="top" style='word-break:break-all; padding:10px;' colSpan=3>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
<td width=30%>
<?
if($view[file][0][file]){ // 첫번째 이미지
$image = $view[file][0][file];
$file1_v= "<img src='$g4[path]/data/file/$board[bo_table]/$image' width='200' height='220' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image')\" border=\"0\">";}
else{echo "<center>메인이미지 지정안함</center>";}
for ($i=0; $i<=count; $i++){
if ($view[file][$i]){echo "<a href='javascript:;'>$file1_v</a>";}
}
?>
</td>
<td width='70%' align=center>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr height=20><td><font color=cf4911>감독</font> : <?=$mov_00?></td></tr>
<tr><td height="2"></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
<tr><td height="2"></td></tr>
<tr height=20><td><font color=cf4911>출연</font> : <?=$mov_01?></td></tr>
<tr><td height="2"></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
<tr><td height="2"></td></tr>
<tr height=20><td><font color=cf4911>장르/기타</font> : <?=$mov_02?> / <?=$mov_03?> 개봉 / <?=$mov_04?> / <?=$list[$i][ca_name]?></td></tr>
<tr><td height="2"></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
<tr><td height="2"></td></tr>
<?if($view[link][$i]){?>
<tr><td><font color=cf4911>공식홈</font> :
<?// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
if ($view[link][$i]) {
$cnt++;
$link = cut_str($view[link][$i], 70);
echo " <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank><strong>{$link}</strong> ({$view[link_hit][$i]})</a>";
}}?>
</td></tr>
<tr><td height="2"></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/win_line1.gif"></td></tr>
<tr><td height="7"></td></tr>
<?}?>
<tr>
<td>
<? // 이미지를 나열해준다.
$image1 = $view[file][1][file];
$image2 = $view[file][2][file];
$image3 = $view[file][3][file];
$image4 = $view[file][4][file];
$file1= "<img src='$g4[path]/data/file/$board[bo_table]/$image1' width='120' height='120' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image1')\" border=\"0\">";
$file2= "<img src='$g4[path]/data/file/$board[bo_table]/$image2' width='120' height='120' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image2')\" border=\"0\">";
$file3= "<img src='$g4[path]/data/file/$board[bo_table]/$image3' width='120' height='120' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image3')\" border=\"0\">";
$file4= "<img src='$g4[path]/data/file/$board[bo_table]/$image4' width='120' height='120' align='center' onclick=\"view('$g4[path]/data/file/$bo_table/$image4')\" border=\"0\">";
if ($view[file][1][view]){echo "<a href='javascript:;'>$file1</a>";}
if ($view[file][2][view]){echo " <a href='javascript:;'>$file2</a>";}
if ($view[file][3][view]){echo " <a href='javascript:;'>$file3</a>";}
if ($view[file][4][view]){echo " <a href='javascript:;'>$file4</a>";}
else if(!$view[file][1][file] && !$view[file][2][file] && !$view[file][3][file] && !$view[file][4][file])
echo "추가이미지없음";
?>
</td>
</tr>
</table>
</td>
</tr>
<tr><td height="7" colspan="2"></td></tr>
<tr><td colspan="2" height="1" background="<?=$board_skin_path?>/img/dotline.gif"></td></tr>
<tr><td height="7" colspan="2"></td></tr>
<tr>
<td width=100% valign="top" style='word-break:break-all;' colSpan=2>
<div id="ContentsLayer">
<span class="ct lh"><?=$view[content];?></span>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
</div>
<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?>
</td>
</tr>
</table>
</td>
</tr>
<?
}else if($bo_bbs == "poll") { // 설문조사이면 - 투표여부 쿠키대신 디비값으로 비교함
$m_ip = $HTTP_SERVER_VARS[REMOTE_ADDR]; // 아이피로 투표여부 대조함 - 비회원참여도 고려해서
$poll_filed = explode("|",$view[wr_5]); // 각 항목별 투표자 수, 참여자아이디, 주제설명 분리
$poll_ck = $poll_filed[0]; // 설문인지 찬반인지 체크
$poll_num = $poll_filed[1]; // 각 항목별 투표자 수
$poll_id = $poll_filed[2]; // 참여자아이피
$poll_notice = $poll_filed[3]; // 주제설명
?>
<tr>
<td valign="top" style='word-break:break-all; padding:10px;' colSpan=3>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<form name=fpollskin method=post action="<?=$board_skin_path?>/poll_answer_update.php" onsubmit="return fpollskin_check(this.form);" target="hiddenframe">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=poll_member value="<?=$m_ip?>">
<input type=hidden name=poll_notice value="<?=$poll_notice?>">
<input type=hidden name=poll_ck value="<?=$poll_ck?>">
<? if ($poll_notice) { // 주제설명이 있으면?><tr><TD><img src="<?=$board_skin_path?>/img/icon_bullet.gif" align="absmiddle"> 설명 : <span class="ct lh"><?=nl2br($poll_notice)?></span></TD></tr><? } ?>
<tr><td height="5"></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dotline.gif"></td></tr>
<tr><td height="5"></td></tr>
<TR>
<TD style='word-break:break-all; padding:10px' height=150>
<img src="<?=$board_skin_path?>/img/icon_bullet.gif" align="absmiddle"> 설문조사 :
<!-- 내용 출력 -->
<?
// 투표한 사람, 자신, 관리자만 결과가 보임
$is_poll = false; // 기본값
$preson = explode(",",$poll_id); // 참여자아이디를 ,로 다시 분리
$s = count($preson);
for ($i=0; $i<count($preson); $i++){
$man = $preson[$i];
if ($man == $m_ip || $is_admin){$is_poll = true;}
}
$max = 1;
$total = 0;
$tmp = explode(",",$poll_num); // 각 항목별 투표자 수를 ,로 다시 분리
for ($i=0; $i<count($tmp); $i++){
$total += (int)$tmp[$i];
if ((int)$tmp[$i] > $max)
$max = (int)$tmp[$i];
}
echo "<table>";
$ans = explode("\n", $view[wr_content]);
for ($i=0; $i<count($ans); $i++){
echo "<tr>";
echo "<td>";
echo "<input type=radio name='ans' id='ans$i' value='$i'><label for='ans$i'>";
echo $ans[$i];
echo "</label>";
if ($is_poll) {
if ($total > 0)
$rate = ((int)$tmp[$i] / $total) * 100;
$bar = number_format($rate,1);
echo "</td>";
echo "<td width=200>";
echo "<table width=100% height=10 cellspacing=0 cellpadding=0 border=0>";
echo "<tr><td><div style='width:100%;height:10px;border:1px solid #8E959B;background-color:#ffffff'><img src='$board_skin_path/img/poll_bar.gif' width='{$bar}%' height='8' title='' border='0'></div></td></tr>";
echo "</table>";
echo "<td width=50 align=right>".number_format($tmp[$i])."명 </td>";
echo "<td width=70 align=right>".number_format($rate,1)."% </td>";
}
echo "</td></tr>";
}
if ($is_poll){
echo "<tr>";
echo "<td></td>";
echo "<td align=right>설문참여자 총 </td>";
echo "<td align=right>".$total."명 </td></tr>";
}
echo "</table>";
?>
<input type=hidden name=max_ans value="<?=$i?>">
<input type=hidden name=is_poll value="<?=$is_poll?>"> <!-- 투표를 했는지 안했는지 판단값 -->
<input type=hidden name=poll_num value="<?=$poll_num?>"> <!-- 투표수 조정하기 위해 필요 -->
<input type=hidden name=poll_id value="<?=$poll_id?>"> <!-- 투표수 조정하기 위해 필요 -->
<?
if ($is_poll){
echo "<p><font color=gray>이미 설문에 참여하셨습니다.</font>";
} else {
echo "<p><input type=submit value=' 설문 참여 '>";
echo "<p><font color=gray>투표하시면 결과가 보입니다.</font>";
}
?>
<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?>
</td>
</tr>
</form>
</table>
</td>
</tr>
<?}else if($bo_bbs == "shop") {
if ($member[mb_level] >= '1') { // 회원만 열람가능
$view[wr_email]; // 이메일
$ex5_filed = explode("|",$view[wr_5]); //전화,핸드폰
$view_TEL = $ex5_filed[0] ."-". $ex5_filed[1] ."-".$ex5_filed[2];
$view_HP = $ex5_filed[3] ."-". $ex5_filed[4] ."-".$ex5_filed[5];
} else {
$view[wr_email] = "Member Only";
$ex5_filed = explode("|",$view[wr_5]);
$view_TEL = "Member Only";
$view_HP = "Member Only";
}
$ex2_filed = explode("|",$view[wr_2]); // 소비자가/판매가/가격절충여부
$ext2_00 = $ex2_filed[0];
$ext2_01 = $ex2_filed[1];
$ext2_02 = $ex2_filed[2];
$ex3_filed = explode("|",$view[wr_3]); // 물품배송/거래상태/판매수량
$ext3_00 = $ex3_filed[0]; // 물품배송
$ext3_01 = $ex3_filed[1]; // 거래상태
$ext3_02 = $ex3_filed[2]; // 판매수량
?>
</table>
<table width="100%" cellspacing="0" cellpadding="0"style="border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-color:rgb(204,204,204); border-right-style:solid; border-bottom-style:solid; border-left-style:solid;">
<tr height="30">
<td width="50%" align=center style='padding-left:10px; padding-top:10px; padding-BOTTOM:10px; padding-right:10px;'>
<? for ($i=0; $i<=4; $i++) {$image[$i] = "$g4[path]/data/file/$bo_table/".$view[file][$i][file];}?>
<table width="220" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;padding-left:10px; padding-top:10px; padding-BOTTOM:10px; padding-right:10px;" align=center>
<tr>
<td width="100%">
<? if ($view[file][0][view]) {?>
<img src="<?=$image[0]?>" name=gallery_img width="200" height="190" border=0 value=0>
<? } else {?>
<img src="<?=$board_skin_path?>/img/no_image.gif" border=0 value=0>
<? } ?>
</td>
</tr>
</table>
<table width="100%">
<tr>
<td align="center">
<? if ($view[file][0][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[0]."','".$image[0]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>><img src="<?=$board_skin_path?>/img/p_1.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][1][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[1]."','".$image[1]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>><img src="<?=$board_skin_path?>/img/p_2.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][2][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[2]."','".$image[2]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_3.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][3][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[3]."','".$image[3]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_4.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][4][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[4]."','".$image[4]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_5.gif" align="absmiddle" border="0"></a><? }?>
</td>
</tr>
</table>
</td>
<td width="50%">
<table width="90%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr height="30">
<td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif" width="11" height="10"> <strong>상품명 : <?=$view[wr_6]?>
<? // 아이콘출력
if ($view[is_notice]) { echo "<img src=\"$board_skin_path/img/icon_level01.gif\" width=15 height=15 align='absmiddle'>"; }
else if ($view[wr_1] == "1") { echo "<img src=\"$board_skin_path/img/icon_level02.gif\" width=15 height=15 align='absmiddle'>"; }
else { echo ""; }
?>
<!-- // 거래관련 아이콘 출력 --//-->
<? if($ext3_01 == "on") {echo "<img src='{$board_skin_path}/img/icon_on.gif' border='0' width='47' height='16' align='absmiddle'>"; } ?>
<? if($ext3_01 == "off") {echo "<img src='{$board_skin_path}/img/icon_off.gif' border='0' width='47' height='16' align='absmiddle'>";} ?>
</td>
</tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>물품수량 : </strong><?=$ext3_02?> 개</td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>소비자가 : <?=number_format($ext2_00)?> 원</td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>판매가 : </strong><?=number_format($ext2_01)?> 원</td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>배송여부 : </strong><?=$ext3_00?></td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>가격절충 : </strong><?=$ext2_02?></td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
</table>
</td>
</tr>
<tr><td height="5" colSpan=2></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dotline.gif" colSpan=2></td></tr>
<tr><td height="5" colSpan=2></td></tr>
<tr>
<td height="150" valign="top" style='word-break:break-all; padding:10px;' colSpan=2>
<div id="ContentsLayer">
<span class="ct lh"><?=$view[content];?></span>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
</div>
</td>
</tr>
</table>
<table width='100%'><tr><td height='5'></td></tr></table>
<table width="100%"><tr><td class="blue"><img src="<?=$board_skin_path?>/img/icon7.gif" align="absmiddle"> <b> 판매자정보</b></td></tr></table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr height="30">
<td width="50%"> <strong>글쓴이 : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?></td>
<td width="50%"><strong>E-Mail : <a href="mailto:<?=$view[wr_email]?>"><?=$view[wr_email]?></a></td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<tr height="30">
<td width="50%">
<strong>전화번호 : <?=$view_TEL?>
</td>
<td width="50%"><strong>핸드폰 : </strong><?=$view_HP?></td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
</table>
<table width='100%'><tr><td height='5'></td></tr></table>
<table width="100%"><tr><td class="blue"><img src="<?=$board_skin_path?>/img/icon7.gif" align="absmiddle"> <b>상품 주문신청하기 - 로그인을 하시면 주문신청란이 나옵니다.</b></td></tr></table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr><td width="100%" style='padding-left:10px; padding-right:10px;'>
<table width='100%'><tr><td height='5'></td></tr></table>
<?}else{?>
<tr>
<td height="150" valign="top" style='word-break:break-all; padding:10px;' colSpan=3>
<?
$n = $view[wr_8]; // 한줄당 출력 이미지수
if ($n > (count($view[file])-1)) {
$i_count = (count($view[file])-1); //원본이미지수가 적으면 적은갯수를..
}
else {
$i_count = $n; //원본이미지수가 많으면 설정갯수를..
}
if ($i_count > 0) {
$wid = (int)($board[bo_image_width]/$i_count); //게시판환경설정->'이미지폭크기'를 갖고 나눈다
$board[bo_image_width] = $wid; //자동이미지폭 조정을 위해 다시 넘겨준다..
$wid = (int)(1/$n*100);
}
echo "<table width='100%' cellpadding=3 cellspacing=0 border=0>";
echo "<tr>";
for ($i=0; $i<=count($view[file]); $i++) {
if (($view[file][$i][view]) && $i>0 && ($i%$n == 0)) {
echo "</tr><tr>";
}
if ($view[file][$i][view]) {
echo "<td align='center' valign='top' style='word-break:break-all'>";
echo "<td align='center' valign='top' style='word-break:break-all'>";
echo "<table cellpadding=10 cellspacing=0 border=0 style='border:1px solid #cccccc;'><tr><td>";
echo "<table cellpadding=0 cellspacing=0 border=0 style='border:1px solid #888888;'><tr><td>";
echo $view[file][$i][view];
echo "</td></tr></table>";
echo "</td></tr></table>";
echo "<br><br>". $view[file][$i][content]; // 이미지 설명글 {게시판 환경설정에서 체크}
}
}
// 부족한 <td> 갯수 맞추는 작업
if ((count($view[file])-1) % $n != 0) {
$td_cnt = $n - ((count($view[file])-1)%$n);
for ($t=0; $t<$td_cnt; $t++) {
echo "<td> </td>";
}
}
echo "</tr></table>";
echo "<br>";
?>
<div id="ContentsLayer">
<span class="ct lh"><?=$view[content];?></span>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
</div>
</td>
</tr>
<? if ($is_signature) { echo "<tr><td colSpan=3>$signature<br><br></td></tr>"; } // 서명 출력 ?>
<?}?>
<tr><td width="100%" colSpan=3 style='padding-left:10px; padding-right:10px;'>
<? include_once("./view_comment.php"); ?>
</td></tr>
<tr><td width="100%" colSpan=3 style='padding-left:10px; padding-right:10px;'>
<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/$bo_color/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/$bo_color/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/$bo_color/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/$bo_color/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
<? if($poll_num == ""){
if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/$bo_color/btn_update.gif' border='0' align='absmiddle'></a> "; }
} // 설문참여자가 있으면 수정이 안되도록 처리 ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/$bo_color/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_bad.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/$bo_color/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>
<? if (($prev_href)or($next_href)) { ?>
<td width=25% align=right>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/$bo_color/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/$bo_color/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
<? } ?>
</tr>
</table>
</td></tr>
</table>
</td></tr></table>
<?if($bo_bbs == "poll") { // 설문조사이면 사용할 스크립트?>
<script language="JavaScript">
function fpollskin_check(f){
var ans = document.getElementsByName('ans');
var chk = false;
for (i=0;i<ans.length;i++) {
if (ans[i].checked) {
chk = true;
break;
}
}
if (!chk) {
alert("투표하실 항목을 선택하십시오.");
return false;
}
return true;
}
</script>
<?}?>
<?if($bo_bbs == "shop") {?>
<script>
function chgImg( imgname, dnimgname, imgdesc ) {
var LureExp = /<br>/gi;
document.gallery_img.src=imgname;
}
</script>
<?}?>
<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;
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;
}
//그누보드 choi5000 님의 글자크기조절 스크립트
// 폰트확대
function FontPlus(){
var l = document.getElementById('ContentsLayer');
var nSize = l.style.fontSize ? l.style.fontSize : '9pt';
var iSize = parseInt(nSize.replace('pt',''));
if (iSize < 20) {
l.style.fontSize = (iSize + 1) + 'pt';
l.style.lineHeight = '140%';
}
}
//폰트축소
function FontMinus() {
var l = document.getElementById('ContentsLayer');
var nSize = l.style.fontSize ? l.style.fontSize : '9pt';
var iSize = parseInt(nSize.replace('pt',''));
if (iSize > 6) {
l.style.fontSize = (iSize - 1) + 'pt';
l.style.lineHeight = '140%';
}
}
function GPEN_PRINT(){
var p = window.open("./print.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>","PrintWin","width=700, height=600, scrollbars=yes");
p.focus();
}
</script>
<script language="JavaScript">
<!--
function OpenWin(url,intWidth,intHeight){
window.open(url, "ReadSlideShow", "scrollbars=no, resizable=no, width="+intWidth+",height="+intHeight+" ");
return;
}
//-->
</script>
<!-- 게시글 보기 끝 -->
댓글 전체