ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/skin/board/co_ucc/ |
Upload File : |
<? if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 // 게시판 환경 - bo_1 / bo_2 미설정시 기본값지정 if (($board[bo_1_subj] != "썸네일설정 가로|세로") || !$board[bo_1]) { sql_query("update $g4[board_table] set bo_1_subj='썸네일설정 가로|세로', bo_1='120|90' where bo_table='$bo_table'", false); alert("리스트화면에 출력될 이미지 크기설정\\n\\n ★ 여유필드1 설정방법(가로|세로) : 120|90", $admin_href); } if (($board[bo_2_subj] != "썸네일 퀄리티") || !$board[bo_2]) { sql_query("update $g4[board_table] set bo_2_subj='썸네일 퀄리티', bo_2='90' where bo_table='$bo_table'", false); alert("게시판 설정 : 여유필드2 에 목록에서 보여질 이미지의 질(quality)을\\n 비율로 설정하십시오. (100 이하)", $admin_href); } ?> <? if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다."); list($thu_width, $thu_height) = explode("|", $board[bo_1]); $thu_quality = $board[bo_2]; //썸네일 퀄리티 '99' 이하 $data_path = $g4[path]."/data/file/$bo_table"; $thumb_path = $data_path.'/thumb'; @mkdir($thumb_path, 0707); @chmod($thumb_path, 0707); ?> <div class="location"> <dl> <dt class="blind">현재위치</dt> <dd><img src="/img/common/location_home.gif" width="11" height="11" alt="Home" /> <span>|</span> 커뮤니티 <span>|</span> <span class="lc">고객UCC동영상 게시판</span></dd> </dl> </div> <p class="title"><img src="/img/sub/title_06_04.gif" width="750" height="55" alt="고객 UCC 동영상-CUSTOMER UCC VIDEO" /></p> <? $view1[content] = " - 여러 지피님들께 지피님의 실력을 뽐내주세요! - 현장에서 찍으셨던 동영상 및 각종 관련된 동영상을 올려주세요."; ?> <p style="display:none;">여러 지피님들께 지피님의 실력을 뽐내주세요! - 현장에서 찍으셨던 동영상 및 각종 관련된 동영상을 올려주세요</p> <p><img src="/img/sub/visual_06_04.jpg" width="750" height="175" alt="여러 지피님들께 지피님의 실력을 뽐내주세요! - 현장에서 찍으셨던 동영상 및 각종 관련된 동영상을 올려주세요" /></p> <!-- S: 서브 내용 --> <div id="gallery" class="sub_common"> <? if ($is_checkbox) { ?><div style="float:left; position:relative; top:2px; *top:10px; *left:10px;">전체 선택<input onclick="if (this.checked) all_checked(true); else all_checked(false);" type="checkbox" style="float:left; position:relative; *top:-19px; left:70px; *left:50px; border:none; background:#fff;" /></div><?}?> <!-- S: 검색 --> <div class="search_box"> <form name="fsearch" method="get" action="" > <input type="hidden" name="bo_table" value="<?=$bo_table?>" /> <input type="hidden" name="sca" value="<?=$sca?>" /> <select name="sfl"> <option value="wr_subject">제목글</option> <option value="wr_content">내용</option> <option value="wr_subject||wr_content">제목+내용</option> </select> <input name="stx" maxlength="15" size="10" title="검색어" class="required" value="<?=$stx?>" /> <select name="sop"> <option value="and">and</option> <option value="or">or</option> </select> <input type="image" src="<?=$board_skin_path?>/img/btn_search.gif" style="vertical-align:middle;" /> </form> </div> <!-- E: 검색 --> <!-- S : 목록 시작 --> <div class="list_box" > <form name="fboardlist" method="post" action="" > <input type='hidden' name='bo_table' value='<?=$bo_table?>' /> <input type='hidden' name='sfl' value='<?=$sfl?>' /> <input type='hidden' name='stx' value='<?=$stx?>' /> <input type='hidden' name='spt' value='<?=$spt?>' /> <input type='hidden' name='page' value='<?=$page?>' /> <input type='hidden' name='sw' value='' /> <table width='100%' cellspacing="0" cellpadding="0" border="0"> <caption></caption> <thead> <tr> <th></th> </tr> </thead> <tbody> <tr> <!-- 목록 --> <? for ($i=0; $i<count($list); $i++) { ?> <? // 이미지 관련설정 $no_img = "<img src='$board_skin_path/img/no_image.gif' width='147' height='122' alt='이미지 없음' />"; $thumb = $thumb_path.'/'.$list[$i][wr_id]; if (!file_exists($thumb)){ $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file]; if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)){ $size = @getimagesize($file); if ($size[2] == 1) $src = imagecreatefromgif($file); else if ($size[2] == 2) $src = imagecreatefromjpeg($file); else if ($size[2] == 3) $src = imagecreatefrompng($file); else continue; $rate = $thu_width / $size[0]; $height = (int)($size[1] * $rate); if ($height < $thu_height) $dst = imagecreatetruecolor($thu_width, $height); else $dst = imagecreatetruecolor($thu_width, $thu_height); imagecopyresampled($dst, $src, 0, 0, 0, 0, $thu_width, $height, $size[0], $size[1]); imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $thu_quality); chmod($thumb_path.'/'.$list[$i][wr_id], 0707); } } if (file_exists($thumb)) $img = "<img src='$thumb' width='$thu_width' height='$thu_height' alt='이미지' />"; else $img = $no_img; //썸네일 미등록시, no이미지파일출력 ?> <? // 이미지 가로갯수에 의한 칸나누기 01 $tr = ""; if ($i && $i%$board[bo_gallery_cols]==0) $tr = "</tr><tr>"; echo "$tr"; ?> <td align='center' > <table width='100%' class="board_list" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="img_thum" > <? if ($list[$i][wr_link1]) { ?> <a href="/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>"><?=$img?></a> <? } else if ($list[$i][wr_link2]) { ?> <a href="/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>"><?=$img?></a> <? } else if ($list[$i][wr_3]) { ?> <!-- <a href="javascript:" onclick="window.open('<?=$board_skin_path?>/movie3.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>', '', 'left=100,top=100,width=650,height=520,scrollbars=1,resizable=1');" title='동영상보기'> --><a href="/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>"><?=$img?></a> <? }else { ?> <?=$img?> <? } ?> </td> </tr> <!-- 제목글 테이블 --> <?$list[$i][subject] = cut_str(strip_tags($list[$i][subject]), 25, '..');?> <tr> <td class="subject"> <? if ($is_checkbox) { ?><input type="checkbox" class="checkbox" name="chk_wr_id[]" value="<?=$list[$i][wr_id]?>"> <? } ?> <? echo "<a href='{$list[$i][href]}'>"; if ($list[$i][is_notice]) echo "{$list[$i][subject]}"; else echo "{$list[$i][subject]}"; echo "</a>"; if ($list[$i][comment_cnt]) echo " <a href=\"{$list[$i][comment_href]}\"><span class='etc'>{$list[$i][comment_cnt]}</span></a>"; ?> </td> </tr> <!-- 제목글 테이블 끝 --> </table> </td> <? } ?> <? // 이미지 가로갯수에 의한 칸나누기 02 (나머지 td를 채움) if (($cnt = $i%$board[bo_page_rows]) != 0) for ($k=$cnt; $k<$$board[bo_page_rows]; $k++) echo "<td> </td>\n"; if ($i == 0) { echo "<td colspan='$board[bo_gallery_cols]' height=50 align=center>게시물이 없습니다.</td>"; }?> </tr> </tbody> </table> </form> <br> <? include_once("$g4[path]/sns.php"); ?> </div> <!-- E : 목록 끝 --> <!-- S : 페이징 시작 --> <div class="board_page"> <? if ($prev_part_href) { echo "<a href=\"$prev_part_href\" title=\"이전검색 합니다\" ><img src=\"$board_skin_path/img/page_search_prev.gif\" alt=\"이전검색\"/></a>"; } ?> <? $write_pages = str_replace("처음", "<img src=\"$board_skin_path/img/page_begin.gif\" title=\"처음으로 이동할까요?\" width=\"17\" height=\"14\" alt=\"처음\"/>", $write_pages); $write_pages = str_replace("이전", "<img src=\"$board_skin_path/img/page_prev.gif\" title=\"이전\" width=\"14\" height=\"14\" alt=\"이전\"/>", $write_pages); $write_pages = str_replace("다음", "<img src=\"$board_skin_path/img/page_next.gif\" title=\"다음\" width=\"14\" height=\"14\" alt=\"다음\"/>", $write_pages); $write_pages = str_replace("맨끝", "<img src=\"$board_skin_path/img/page_end.gif\" title=\"맨끝으로 이동할까요?\" width=\"17\" height=\"14\" alt=\"맨끝\"/>", $write_pages); $write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "$1", $write_pages); $write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<span class=\"pages_w2\">$1</span>", $write_pages); ?> <?=$write_pages?> <? if ($next_part_href) { echo "<a href=\"$next_part_href\" title=\"다음검색 합니다\" ><img src=\"$board_skin_path/img/page_search_next.gif\" alt=\"다음검색\"/></a>"; } ?> </div> <!-- E : 페이징 시작 --> <!-- S : 버튼 시작 --> <div class="board_button"> <? if ($list_href) { ?><a href="<?=$list_href?>" title="목록보기" ><img src="<?=$board_skin_path?>/img/btn_list.gif" alt="목록보기"/></a><? } ?> <!-- <? if ($admin_href) { ?> <a href="<?=$write_href?>" title="글쓰기, 글을 쓰시겠습니까?"><img src="<?=$board_skin_path?>/img/btn_write.gif" alt="글쓰기"/></a><? } ?> --><? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border='0' alt="글쓰기" /></a><? } ?> <? if ($is_checkbox) { ?> <img class="cursor_hand" src="<?=$board_skin_path?>/img/btn_select_delete.gif" onclick="select_delete();" title="선택삭제" alt="선택삭제"/> <img class="cursor_hand" src="<?=$board_skin_path?>/img/btn_select_copy.gif" onclick="select_copy('copy');" title="선택복사" alt="선택복사"/> <img class="cursor_hand" src="<?=$board_skin_path?>/img/btn_select_move.gif" onclick="select_copy('move');" title="선택이동" alt="선택이동"/> <? } ?> </div> <!-- E : 버튼 끝 --> </div> <script type="text/javascript"> if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>'; if ('<?=$stx?>') { document.fsearch.sfl.value = '<?=$sfl?>'; if ('<?=$sop?>' == 'and') document.fsearch.sop[0].checked = true; if ('<?=$sop?>' == 'or') document.fsearch.sop[1].checked = true; } else { document.fsearch.sop[0].checked = true; } </script> <? if ($is_checkbox) { ?> <script type="text/javascript"> function all_checked(sw) { var f = document.fboardlist; for (var i=0; i<f.length; i++) { if (f.elements[i].name == "chk_wr_id[]") f.elements[i].checked = sw; } } function check_confirm(str) { var f = document.fboardlist; var chk_count = 0; for (var i=0; i<f.length; i++) { if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked) chk_count++; } if (!chk_count) { alert(str + "할 게시물을 하나 이상 선택하세요."); return false; } return true; } // 선택한 게시물 삭제 function select_delete() { var f = document.fboardlist; str = "삭제"; if (!check_confirm(str)) return; if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다")) return; f.action = "./delete_all.php"; f.submit(); } // 선택한 게시물 복사 및 이동 function select_copy(sw) { var f = document.fboardlist; if (sw == "copy") str = "복사"; else str = "이동"; if (!check_confirm(str)) return; var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1"); f.sw.value = sw; f.target = "move"; f.action = "./move.php"; f.submit(); } </script> <? } ?> <!-- 게시판 목록 끝 -->