제가 짜집기좀 하려는데 도저히 몰라서.. 정보
제가 짜집기좀 하려는데 도저히 몰라서..본문
제가 짜집기좀 하려는데 도저히 몰라서..
즐겨찾기 스킨인데..
(http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=482)
저는 스크린샷을 넣을려고하는데..
도저히 안되네요..고수님 의 도움바랍니다..
제가 무지해서..ㅠ.ㅠ
짜집기 시작에서 짜집기 끝까지 좀 보아주세요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 9;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<style type="text/css">
<!--
.w_fixed { table-layout:fixed; }
.w_font { font-family:돋움; font-size:9pt; color:#5E5E5E; }
.w_title { font-family:돋움; font-size:9pt; color:#5E5E5E; }
.w_num { font-family:돋움; font-size:9pt; color:#7BB2D6; }
.w_list { font-family:돋움; font-size:9pt; color:#6A6A6A; }
.w_notice { font-family:돋움; font-size:9pt; color:#2C88B9; }
.w_comment_cnt { font-family:돋움; font-size:8pt; color:#9A9A9A; }
.w_padding { PADDING-LEFT: 15px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.w_padding2 { PADDING-LEFT: 15px; PADDING-TOP: 5px; }
.w_text { BORDER: #D3D3D3 1px solid; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff; }
.w_textarea { BORDER: #D3D3D3 1px solid; BACKGROUND-COLOR: #ffffff; WIDTH: 100%; WORD-BREAK: break-all; }
.w_message { font-family:돋움; font-size:9pt; color:#4B4B4B; }
.w_norobot { font-family:돋움; font-size:9pt; color:#BB4681; }
.w_subject {font-family:돋움; font-size:9pt; color:#696969; }
.w_fixed1 {table-layout:fixed; }
.w_fixed11 {table-layout:fixed; }
.w_fixed111 {table-layout:fixed; }
.w_fixed1111 {table-layout:fixed; }
-->
</style>
<script language=JavaScript>
var favorwin = null;
function favorite(type,url){
if(type == "link") { favorwin = window.open('', 'favor', 'toolbar=yes,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600');}
favorwin.focus();
return;
}
</script>
<!-- 목록에서 링크 적용을 위한 소스 -->
<?
for ($k=1; $k<=$cfg[link_count]; $k++) {
if ($row["wr_link".$k]) {
$link[$i]["link".$k] = set_http(get_text(cut_str($row["wr_link".$k], 255)));
$link[$i]["link_href".$k] = "./?doc=bbs/gblink.php&$qstr&wr_id=$row[wr_id]&index=$k";
$link[$i][hit] = $row[wr_link1."_hit"];
}
}
?>
<!-- 목록에서 링크 적용을 위한 소스 끝 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="41" align="right"><img src="<?=$board_skin_path?>/img/top_left.gif" width="41" height="62"></td>
<td width="100%" valign="middle" background="<?=$board_skin_path?>/img/top_back.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle"><a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>'><font class=w_subject><strong>
<?=$board[bo_subject]?>
</strong></font></a><span class="w_padding"><font style="font-family:돋움; font-size:9pt; color:#7D7D7D"><?=$title_msg?></span></td>
<td width="313" align="left" valign="middle"><img src="<?=$board_skin_path?>/img/basic_link_logo.gif" width="313" height="29" align="middle">
</td>
<td width="63" align="left" valign="middle">
<? if ($admin_href) { ?>
<table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td height=25 align=right><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" width="63" height="22" border="0" align="absmiddle"></a></td>
</tr>
</table>
<? } ?>
</td>
</tr>
</table></td>
<td width="8" align="left"><img src="<?=$board_skin_path?>/img/top_right.gif" width="8" height="62"></td>
</tr>
</table>
<table width="<?=$width?>" border="0" align="center" cellpadding="0" cellspacing="0" cellspcing="0">
<tr>
<td width="80%" align="center" valign="top"><!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10%" height="16" align="left"></td>
<td width="40%" align="left" valign="bottom"></td>
<td width="50%" align="right" valign="bottom"> </td>
</tr>
</table>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 끝 -->
<!-- 여백 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="w_fixed1111">
<!--DWLayoutTable-->
<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="">
<!-- 게시판 제목 시작 -->
<!-- 게시물 리스트 시작 -->
<tr>
<td width="5" height="33" align="center" valign="middle" bgcolor="#EEEEEE"><img src="<?=$board_skin_path?>/img/list_top_03.gif" width="5" height="33"></td>
<? if ($is_category) { ?>
<td width="69" align="center" valign="middle" bgcolor="#EEEEEE"><font class=w_title><strong>분류</strong></font></td>
<? } ?>
<? if ($is_checkbox) { ?>
<td width="39" align="center" valign="middle" bgcolor="#EEEEEE"><INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox></td>
<? } ?>
<? if (!$is_checkbox) { ?>
<td width="39" align="center" valign="middle" bgcolor="#EEEEEE"></td>
<? } ?>
<td width="370" align="left" valign="middle" bgcolor="#EEEEEE"><font class=w_title><strong>제목</strong></font></td>
<td width="100" align="left" valign="middle" bgcolor="#EEEEEE"><font class=w_title><strong>스크린샷</strong></font></td>
<td width="32" align="center" valign="middle" bgcolor="#EEEEEE"><font class=w_title> </font></td>
<td width="32" align="center" valign="middle" bgcolor="#EEEEEE"> </td>
<td width="19" align="center" valign="middle" bgcolor="#EEEEEE"><font class=w_title> </font></td>
<? if ($is_good) { ?>
<td width="3" align="center" valign="middle" bgcolor="#EEEEEE"><font style="font-family:돋움; font-size:9pt; color:#7993AF"> </font></td>
<? } ?>
<? if ($is_nogood) { ?>
<td width="3" align="center" valign="middle" bgcolor="#EEEEEE"><font style="font-family:돋움; font-size:9pt; color:#A07C7C"> </font></td>
<? } ?>
<td width="8" bgcolor="#EEEEEE"><img src="<?=$board_skin_path?>/img/list_top_04.gif" width="4" height="33"></td>
</tr>
<!-- 게시판 제목 끝 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<tr <? if ($list[$i][is_notice]) { ?>bgcolor="#F9FBFB"<? } ?>>
<td width="5" height="68" align="center" valign="middle"> </td>
<? //if ($is_category) { ?>
<td width="69" align="right" valign="middle"><font class=w_font><a href="<?=$list[$i][ca_name_href]?>">
<?=$list[$i][ca_name]?>
</a></font></td>
<? //} ?>
<? if ($is_checkbox) { ?>
<td width="39" align="center" valign="middle"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td>
<? } ?>
<? if (!$is_checkbox) { ?>
<td width="39" align="center" valign="middle"><img src="<?=$board_skin_path?>/img/arrowl.gif" width="9" height="9" border="0"></td>
<? } ?>
<td align="left" valign="middle">
<!-- torry 구현 못한 것 :<제목 누르면 새 창으로 뜨기> -->
<?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
//echo "<a href='{$list[$i][href]}'>"; // 이 링크로 새 창에서 열기를 구현해야 할텐데.....
//echo "<a href='{$list[$i][wr_link1]}' target=_blank>";
//torry 적용 예정 -- 새 창에서 열기
echo "<a onfocus='this.blur()' href='".set_http($list[$i][wr_link1])."' target='favor' onClick=favorite('link')>";
if ($list[$i][is_notice])
echo "<font class=w_notice><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font class=w_list>{$list[$i][subject]}</font>";
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"javascript:{$list[$i][comment_href]}\"><span class=w_comment_cnt>{$list[$i][comment_cnt]}</a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i][icon_new];
// echo " " . $list[$i][icon_file];
// echo " " . $list[$i][icon_link];
// echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
echo $nobr_end;
?>
</td>
<!--제가여기서부터 짜집기 하려다가 포기 시작 -->
<td>
<?
for ($i=0; $i<count($list); $i++)
{
$title = "클릭하시면 해당 사이트로 이동합니다.";
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$board_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/link.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}&no=1";
$view_href = "";
if ($is_admin)
$view_href = "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>";
$tr = "";
if ($i && $i%$board[bo_gallery_cols]==0)
$tr = "</tr><tr>";
echo "$tr";
echo <<<HEREDOC
<td width="{$td_width}%" valign="top" align="center">
<table width="210" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="270"><a href="{$href}" target=_blank><img src="{$img}" width="170" height="128" border="0" title="$title"></a></td>
</tr>
</table>
</td>
HEREDOC;
}
// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
for ($k=$cnt; $k<$list_mod; $k++)
echo "<tr><td> </td></tr>\n";
if ($i == 0)
echo "<td colspan='$board[bo_gallery_cols]' height=50 align=center>게시물이 없습니다.</td>";
?>
</td>
<!--제가여기서부터 짜집기 하려다가 포기 시작 끝-->
<!-- torry 구현 못한 것 :<수정> 링크-->
<td width="32" align="center" valign="middle">
<? if ($admin_href) { ?>
<a href="<?=$write_href?>&w=u&wr_id=<?=$list[$i][wr_id]?> &page=<?=$page?>"><img src="<?=$board_skin_path?>/img/btn_modify01.gif" alt="수정" border="0" align="absmiddle" title="수정하기"></a>
<? } ?>
</td>
<td width="32" align="center" valign="middle">
<? if ($admin_href) { ?>
<a href="javascript:if (confirm('삭제하시겠습니까?')) { location='./delete.php?w=d&bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>&page=<?=$page?>';}"><img src="<?=$board_skin_path?>/img/btn_delete01.gif" alt="삭제" border="0" align="absmiddle" title="삭제하기"></a>
<? } ?>
</td>
<td width="19" align="center" valign="middle">
<? if ($admin_href) { ?>
<? echo "<a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=".$list[$i][wr_id]."&wr_subject=".$list[$i][subject]."');\"><img src='$board_skin_path/img/btn_scrap01.gif' border='0' title='스크랩' border='0' align='absmiddle'></a> "; ?>
<? } ?>
</td>
<td align="center" valign="middle"> </td>
<td align="center" valign="middle"> </td>
<td width="8"> </td>
</tr>
<tr>
<td height="0"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<? } ?>
</form>
</table>
<!-- 게시물 리스트 끝 -->
<!-- 페이지 표시 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="37" align="center" valign="middle" background="<?=$board_skin_path?>/img/number_line.gif"><table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center"><? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' width=50 height=20 border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<font style=\"font-family:돋움; font-size:9pt; color:#797979\">$1</font>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font>", $write_pages);
?>
<strong>
<?=$write_pages?>
</strong>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' width=50 height=20 border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table></td>
</tr>
</table>
<!-- 페이지 표시 끝 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="middle">
<td width="50%" height="40"><? if ($list_href) { ?>
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0" align="absmiddle"></a>
<? } ?>
<? if ($write_href) { ?>
<a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0" align="absmiddle"></a>
<? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0" align="absmiddle"></a> <a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0" align="absmiddle"></a> <a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0" align="absmiddle"></a>
<? } ?>
</td>
<form name=fsearch method=get>
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<td width="50%" align="right"><select name=sfl>
<!-->
<option value='wr_subject'>제목</option>
<option value='wr_content'>내용</option>
<option value='mb_id'>회원아이디</option>
<option value='wr_name'>이름</option>
<!-->
</select>
<INPUT maxLength=15 size=10 name=stx itemname="검색어" required value="<?=$stx?>">
<SELECT name=sop>
<OPTION value=and>And</OPTION>
<OPTION value=or>Or</OPTION>
</SELECT>
</td>
<td width="10%" align="center"><INPUT type=image width="53" height="18" src="<?=$board_skin_path?>/img/search_btn.gif" border=0></td>
</form>
</tr>
<? if (count($list) == 0) { echo "<tr><td height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</table></td>
<td width="20" align="center" valign="top"><IMG SRC="img/dot_1px.gif" WIDTH="20" HEIGHT="1" BORDER="0"></td>
<td width="150" align="center" valign="top"><table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="22" colspan="3"> </td>
</tr>
<tr align="center" valign="top">
<td height="4" colspan="3"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><img src="<?=$board_skin_path?>/img/border01.gif"></td>
<td width="100%" background="<?=$board_skin_path?>/img/back01.gif"></td>
<td align="right"><img src="<?=$board_skin_path?>/img/border02.gif"></td>
</tr>
<tr>
<td align="left" background="<?=$board_skin_path?>/img/back02.gif"></td>
<td width="100%"><!-- torry 추가: 카테고리를 박스로 시작-->
<? include $board_skin_path."/category.php"; ?>
<!-- torry 추가: 카테고리를 박스로 끝-->
</td>
<td align="right" background="<?=$board_skin_path?>/img/back03.gif"></td>
</tr>
<tr>
<td align="left"><img src="<?=$board_skin_path?>/img/border03.gif"></td>
<td width="100%" background="<?=$board_skin_path?>/img/back04.gif"></td>
<td align="right"><img src="<?=$board_skin_path?>/img/border04.gif"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<script language="JavaScript">
//if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="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=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
즐겨찾기 스킨인데..
(http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=482)
저는 스크린샷을 넣을려고하는데..
도저히 안되네요..고수님 의 도움바랍니다..
제가 무지해서..ㅠ.ㅠ
짜집기 시작에서 짜집기 끝까지 좀 보아주세요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 9;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<style type="text/css">
<!--
.w_fixed { table-layout:fixed; }
.w_font { font-family:돋움; font-size:9pt; color:#5E5E5E; }
.w_title { font-family:돋움; font-size:9pt; color:#5E5E5E; }
.w_num { font-family:돋움; font-size:9pt; color:#7BB2D6; }
.w_list { font-family:돋움; font-size:9pt; color:#6A6A6A; }
.w_notice { font-family:돋움; font-size:9pt; color:#2C88B9; }
.w_comment_cnt { font-family:돋움; font-size:8pt; color:#9A9A9A; }
.w_padding { PADDING-LEFT: 15px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.w_padding2 { PADDING-LEFT: 15px; PADDING-TOP: 5px; }
.w_text { BORDER: #D3D3D3 1px solid; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff; }
.w_textarea { BORDER: #D3D3D3 1px solid; BACKGROUND-COLOR: #ffffff; WIDTH: 100%; WORD-BREAK: break-all; }
.w_message { font-family:돋움; font-size:9pt; color:#4B4B4B; }
.w_norobot { font-family:돋움; font-size:9pt; color:#BB4681; }
.w_subject {font-family:돋움; font-size:9pt; color:#696969; }
.w_fixed1 {table-layout:fixed; }
.w_fixed11 {table-layout:fixed; }
.w_fixed111 {table-layout:fixed; }
.w_fixed1111 {table-layout:fixed; }
-->
</style>
<script language=JavaScript>
var favorwin = null;
function favorite(type,url){
if(type == "link") { favorwin = window.open('', 'favor', 'toolbar=yes,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600');}
favorwin.focus();
return;
}
</script>
<!-- 목록에서 링크 적용을 위한 소스 -->
<?
for ($k=1; $k<=$cfg[link_count]; $k++) {
if ($row["wr_link".$k]) {
$link[$i]["link".$k] = set_http(get_text(cut_str($row["wr_link".$k], 255)));
$link[$i]["link_href".$k] = "./?doc=bbs/gblink.php&$qstr&wr_id=$row[wr_id]&index=$k";
$link[$i][hit] = $row[wr_link1."_hit"];
}
}
?>
<!-- 목록에서 링크 적용을 위한 소스 끝 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="41" align="right"><img src="<?=$board_skin_path?>/img/top_left.gif" width="41" height="62"></td>
<td width="100%" valign="middle" background="<?=$board_skin_path?>/img/top_back.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle"><a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>'><font class=w_subject><strong>
<?=$board[bo_subject]?>
</strong></font></a><span class="w_padding"><font style="font-family:돋움; font-size:9pt; color:#7D7D7D"><?=$title_msg?></span></td>
<td width="313" align="left" valign="middle"><img src="<?=$board_skin_path?>/img/basic_link_logo.gif" width="313" height="29" align="middle">
</td>
<td width="63" align="left" valign="middle">
<? if ($admin_href) { ?>
<table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td height=25 align=right><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" width="63" height="22" border="0" align="absmiddle"></a></td>
</tr>
</table>
<? } ?>
</td>
</tr>
</table></td>
<td width="8" align="left"><img src="<?=$board_skin_path?>/img/top_right.gif" width="8" height="62"></td>
</tr>
</table>
<table width="<?=$width?>" border="0" align="center" cellpadding="0" cellspacing="0" cellspcing="0">
<tr>
<td width="80%" align="center" valign="top"><!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10%" height="16" align="left"></td>
<td width="40%" align="left" valign="bottom"></td>
<td width="50%" align="right" valign="bottom"> </td>
</tr>
</table>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 끝 -->
<!-- 여백 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="w_fixed1111">
<!--DWLayoutTable-->
<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="">
<!-- 게시판 제목 시작 -->
<!-- 게시물 리스트 시작 -->
<tr>
<td width="5" height="33" align="center" valign="middle" bgcolor="#EEEEEE"><img src="<?=$board_skin_path?>/img/list_top_03.gif" width="5" height="33"></td>
<? if ($is_category) { ?>
<td width="69" align="center" valign="middle" bgcolor="#EEEEEE"><font class=w_title><strong>분류</strong></font></td>
<? } ?>
<? if ($is_checkbox) { ?>
<td width="39" align="center" valign="middle" bgcolor="#EEEEEE"><INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox></td>
<? } ?>
<? if (!$is_checkbox) { ?>
<td width="39" align="center" valign="middle" bgcolor="#EEEEEE"></td>
<? } ?>
<td width="370" align="left" valign="middle" bgcolor="#EEEEEE"><font class=w_title><strong>제목</strong></font></td>
<td width="100" align="left" valign="middle" bgcolor="#EEEEEE"><font class=w_title><strong>스크린샷</strong></font></td>
<td width="32" align="center" valign="middle" bgcolor="#EEEEEE"><font class=w_title> </font></td>
<td width="32" align="center" valign="middle" bgcolor="#EEEEEE"> </td>
<td width="19" align="center" valign="middle" bgcolor="#EEEEEE"><font class=w_title> </font></td>
<? if ($is_good) { ?>
<td width="3" align="center" valign="middle" bgcolor="#EEEEEE"><font style="font-family:돋움; font-size:9pt; color:#7993AF"> </font></td>
<? } ?>
<? if ($is_nogood) { ?>
<td width="3" align="center" valign="middle" bgcolor="#EEEEEE"><font style="font-family:돋움; font-size:9pt; color:#A07C7C"> </font></td>
<? } ?>
<td width="8" bgcolor="#EEEEEE"><img src="<?=$board_skin_path?>/img/list_top_04.gif" width="4" height="33"></td>
</tr>
<!-- 게시판 제목 끝 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<tr <? if ($list[$i][is_notice]) { ?>bgcolor="#F9FBFB"<? } ?>>
<td width="5" height="68" align="center" valign="middle"> </td>
<? //if ($is_category) { ?>
<td width="69" align="right" valign="middle"><font class=w_font><a href="<?=$list[$i][ca_name_href]?>">
<?=$list[$i][ca_name]?>
</a></font></td>
<? //} ?>
<? if ($is_checkbox) { ?>
<td width="39" align="center" valign="middle"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td>
<? } ?>
<? if (!$is_checkbox) { ?>
<td width="39" align="center" valign="middle"><img src="<?=$board_skin_path?>/img/arrowl.gif" width="9" height="9" border="0"></td>
<? } ?>
<td align="left" valign="middle">
<!-- torry 구현 못한 것 :<제목 누르면 새 창으로 뜨기> -->
<?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
//echo "<a href='{$list[$i][href]}'>"; // 이 링크로 새 창에서 열기를 구현해야 할텐데.....
//echo "<a href='{$list[$i][wr_link1]}' target=_blank>";
//torry 적용 예정 -- 새 창에서 열기
echo "<a onfocus='this.blur()' href='".set_http($list[$i][wr_link1])."' target='favor' onClick=favorite('link')>";
if ($list[$i][is_notice])
echo "<font class=w_notice><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font class=w_list>{$list[$i][subject]}</font>";
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"javascript:{$list[$i][comment_href]}\"><span class=w_comment_cnt>{$list[$i][comment_cnt]}</a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i][icon_new];
// echo " " . $list[$i][icon_file];
// echo " " . $list[$i][icon_link];
// echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
echo $nobr_end;
?>
</td>
<!--제가여기서부터 짜집기 하려다가 포기 시작 -->
<td>
<?
for ($i=0; $i<count($list); $i++)
{
$title = "클릭하시면 해당 사이트로 이동합니다.";
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$board_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/link.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}&no=1";
$view_href = "";
if ($is_admin)
$view_href = "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>";
$tr = "";
if ($i && $i%$board[bo_gallery_cols]==0)
$tr = "</tr><tr>";
echo "$tr";
echo <<<HEREDOC
<td width="{$td_width}%" valign="top" align="center">
<table width="210" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="270"><a href="{$href}" target=_blank><img src="{$img}" width="170" height="128" border="0" title="$title"></a></td>
</tr>
</table>
</td>
HEREDOC;
}
// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
for ($k=$cnt; $k<$list_mod; $k++)
echo "<tr><td> </td></tr>\n";
if ($i == 0)
echo "<td colspan='$board[bo_gallery_cols]' height=50 align=center>게시물이 없습니다.</td>";
?>
</td>
<!--제가여기서부터 짜집기 하려다가 포기 시작 끝-->
<!-- torry 구현 못한 것 :<수정> 링크-->
<td width="32" align="center" valign="middle">
<? if ($admin_href) { ?>
<a href="<?=$write_href?>&w=u&wr_id=<?=$list[$i][wr_id]?> &page=<?=$page?>"><img src="<?=$board_skin_path?>/img/btn_modify01.gif" alt="수정" border="0" align="absmiddle" title="수정하기"></a>
<? } ?>
</td>
<td width="32" align="center" valign="middle">
<? if ($admin_href) { ?>
<a href="javascript:if (confirm('삭제하시겠습니까?')) { location='./delete.php?w=d&bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>&page=<?=$page?>';}"><img src="<?=$board_skin_path?>/img/btn_delete01.gif" alt="삭제" border="0" align="absmiddle" title="삭제하기"></a>
<? } ?>
</td>
<td width="19" align="center" valign="middle">
<? if ($admin_href) { ?>
<? echo "<a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=".$list[$i][wr_id]."&wr_subject=".$list[$i][subject]."');\"><img src='$board_skin_path/img/btn_scrap01.gif' border='0' title='스크랩' border='0' align='absmiddle'></a> "; ?>
<? } ?>
</td>
<td align="center" valign="middle"> </td>
<td align="center" valign="middle"> </td>
<td width="8"> </td>
</tr>
<tr>
<td height="0"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<? } ?>
</form>
</table>
<!-- 게시물 리스트 끝 -->
<!-- 페이지 표시 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="37" align="center" valign="middle" background="<?=$board_skin_path?>/img/number_line.gif"><table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center"><? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' width=50 height=20 border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<font style=\"font-family:돋움; font-size:9pt; color:#797979\">$1</font>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font>", $write_pages);
?>
<strong>
<?=$write_pages?>
</strong>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' width=50 height=20 border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table></td>
</tr>
</table>
<!-- 페이지 표시 끝 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="middle">
<td width="50%" height="40"><? if ($list_href) { ?>
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0" align="absmiddle"></a>
<? } ?>
<? if ($write_href) { ?>
<a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0" align="absmiddle"></a>
<? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0" align="absmiddle"></a> <a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0" align="absmiddle"></a> <a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0" align="absmiddle"></a>
<? } ?>
</td>
<form name=fsearch method=get>
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<td width="50%" align="right"><select name=sfl>
<!-->
<option value='wr_subject'>제목</option>
<option value='wr_content'>내용</option>
<option value='mb_id'>회원아이디</option>
<option value='wr_name'>이름</option>
<!-->
</select>
<INPUT maxLength=15 size=10 name=stx itemname="검색어" required value="<?=$stx?>">
<SELECT name=sop>
<OPTION value=and>And</OPTION>
<OPTION value=or>Or</OPTION>
</SELECT>
</td>
<td width="10%" align="center"><INPUT type=image width="53" height="18" src="<?=$board_skin_path?>/img/search_btn.gif" border=0></td>
</form>
</tr>
<? if (count($list) == 0) { echo "<tr><td height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</table></td>
<td width="20" align="center" valign="top"><IMG SRC="img/dot_1px.gif" WIDTH="20" HEIGHT="1" BORDER="0"></td>
<td width="150" align="center" valign="top"><table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="22" colspan="3"> </td>
</tr>
<tr align="center" valign="top">
<td height="4" colspan="3"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><img src="<?=$board_skin_path?>/img/border01.gif"></td>
<td width="100%" background="<?=$board_skin_path?>/img/back01.gif"></td>
<td align="right"><img src="<?=$board_skin_path?>/img/border02.gif"></td>
</tr>
<tr>
<td align="left" background="<?=$board_skin_path?>/img/back02.gif"></td>
<td width="100%"><!-- torry 추가: 카테고리를 박스로 시작-->
<? include $board_skin_path."/category.php"; ?>
<!-- torry 추가: 카테고리를 박스로 끝-->
</td>
<td align="right" background="<?=$board_skin_path?>/img/back03.gif"></td>
</tr>
<tr>
<td align="left"><img src="<?=$board_skin_path?>/img/border03.gif"></td>
<td width="100%" background="<?=$board_skin_path?>/img/back04.gif"></td>
<td align="right"><img src="<?=$board_skin_path?>/img/border04.gif"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<script language="JavaScript">
//if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="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=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
댓글 전체