목록에서 내용보기 링크가 안되요 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

목록에서 내용보기 링크가 안되요 정보

목록에서 내용보기 링크가 안되요

본문

http://3rparts.co.kr/bbs/board.php?bo_table=test


지금 쓰고 있는 게시판인데요 권한을 1을 줘도 내용을 볼수가 없어요

리스트 부분 소스 입니다

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

// 관리자 가로이미지 수
$colspan = 5;

if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;

// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>

<!-- 게시판 리스트 header 시작 -->
<style type="text/css">
#board_header    { font:normal 11px '돋움'; }
#board_header .b { font-weight:bold;  color:#3f3f3f; } /* 강조타입 */
#board_header .n { font-weight:normal; color:#969696; } /* 일반타입 */
#board_header .d { font-weight:normal; color:#ddd; font-size:10px; margin:0px 4px; } /* 구분자 | */
</style>

<table width="<?=$width?>" cellpadding="0" cellspacing="0" border="0" id="board_header">
<tr><td align="right" style="padding:10px;">
<!-- 분류 -->
<?
if ($is_category) {
if(!$sca) // 분류를 선택하지 않은 경우
echo "<a href='$category_location' class='b'>전체($total_count)</a>";
else
echo "<a href='$category_location' class='n'>전체</a>";
echo "<span class='d'>|</span>";
$category_text = explode("|", $board[bo_category_list]);
for ($i=0; $i<count($category_text); $i++) {
if (trim($category_text[$i])) {
echo "<a href='$category_location";
echo strtolower($g4[charset])=="utf8" ? encodeURIComponent($category_text[$i]) : $category_text[$i];
echo "' ";
if(trim($category_text[$i])==$sca)
echo "class='b'>$category_text[$i]($total_count)";
else
echo "class='n'>$category_text[$i]";
echo "</a>";
}
if ($i<count($category_text)-1)
echo "<span class='d'>|</span>";
}
}
else {
echo "<span class='n'>&nbsp;&nbsp;전체 : $total_count"."건</span>"; // 게시물수
}
?>
</td>
</tr>
</table>

<!-- 게시판 리스트 header 끝 -->

<!-- 게시판 정보 -->
<form name="fboardlist" method="post">
<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="">

<!-- 게시판 리스트 contents 시작 -->
<style type="text/css">
#board_contents     { margin:4px 0px; }
#board_contents th  { font:normal 11px '돋움';  color:#3f3f3f; height:30px; border-top:1px solid #d6d3d6; border-bottom:1px solid #e7e7e7; background-color:#f7f7f7; }
#board_contents th a { font:normal 11px '돋움';  color:#3f3f3f; }
#board_contents td  { font:normal 11px '돋움';  color:#969696; text-align:center; line-height:30px; border-bottom:1px solid #e7e7e7; }
#board_contents a  { font:normal 11px '돋움';  color:#969696; }
#board_contents p  { font:normal 11px '돋움';  color:#969696; } /* 공지사항 내용 */
#board_contents .n  { font:normal  9px 'Tahoma'; color:#969696; } /* 숫자타입 */
</style>

<table width="<?=$width?>" cellpadding="0" cellspacing="0" border="0" id="board_contents">

<? if ($is_checkbox) { ?><col width="40" /><? } ?>
<col width="20%" />
<col width="60%" />
<col width="20%" />

<tr><? if ($is_checkbox) { ?><th><input onclick="if (this.checked) all_checked(true); else all_checked(false);" type="checkbox"></th><?}?>
<th>분류</th>
<th>모델명</th>
<th>다운로드</th>

</tr>

<?
for ($i=0; $i<count($list); $i++) {
?>
<? if ($list[$i][is_notice]) echo "<tr bgcolor='#f7f7f7'>"; else echo "<tr>"; ?>
<!-- 체크박스 -->
<? if ($is_checkbox) { ?>
<td><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i][wr_id]?>"></td>
<? } ?>

<!-- 분류 -->
<td>
<?
if ($is_category && $list[$i][ca_name]) {
echo "&nbsp;<a href='{$list[$i][ca_name_href]}' style='color:#f74601;font-weight:bold'>{$list[$i][ca_name]}</a>&nbsp;";
} else {
echo "&nbsp;";
}
?>
</td>

<!-- 제목 -->
<td style="text-align:left;padding-left:20px;">
<?
echo $nobr_begin;
$list[$i][subject] = cut_str($list[$i][subject],50,"...");
if($is_admin) {
echo "<a href='{$list[$i][href]}' style='cursor:hand;'>{$list[$i][subject]}</a>";
} else {
echo "{$list[$i][subject]}";
}
// 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_hot];
echo $nobr_end;
?>

</td>


<!-- 다운로드 -->
<td align="center">
<?

$file_ext_name = strtolower(substr(str_replace(".","",substr($list[$i][file][0][source],-4)),0,3));

if ($file_ext_name=="pdf"||$file_ext_name=="hwp"||$file_ext_name=="doc"||$file_ext_name=="xls"||$file_ext_name=="ppt"||$file_ext_name=="zip") {
$file_ext = "$board_skin_path" . "/img/icon_" . $file_ext_name . ".gif" ;
} else {
$file_ext = "$board_skin_path" . "/img/icon_etc.gif" ;
}

echo "<a href=\"javascript:file_download('{$list[$i][file][0][href]}', '{$list[$i][file][0][source]}');\">";
echo "<img src='$file_ext' border='0' align='absmiddle'>";
//echo "&nbsp;<span style=\"color:#888;\">{$list[$i][file][0][source]}</span>";
echo "</a>";
?>
</td>

<!-- 다운로드횟수 -->


    </tr>

<? } // end for ?>

<? if (count($list) == 0) { ?>
<tr><td colspan="<?=$colspan?>" height="100" align="center">게시물이 없습니다.</td></tr>
<? } ?>

</table>
</form>


<!-- 게시판 리스트 contents 시작 -->
<style type="text/css">
#board_footer { margin:10px 0px; }
#board_footer td { height:30px; font:normal 11px '돋움';  color:#969696; }
</style>

<table width="<?=$width?>" cellpadding="0" cellspacing="0" border="0" id="board_footer">
<tr><td align="left" width="40%">

<? if ($list_href) { ?>
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" align="absmiddle" border='0'></a>
<? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" align="absmiddle" border='0'></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" align="absmiddle" border='0'></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" align="absmiddle" border='0'></a>
<? } ?>
   
</td>
<td align="center" width="40%">

<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/page_search_prev.gif' border='0' align=absmiddle title='이전검색'></a>"; } ?>
        <?
        // 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
        //echo $write_pages;
        $write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
        $write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
        $write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
        $write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
        //$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "$1", $write_pages);
        $write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\"color:#4D6185; font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
        ?>
        <?=$write_pages?>
        <? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/page_search_next.gif' border='0' align=absmiddle title='다음검색'></a>"; } ?>

</td>

<td align="right" width="20%">
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border='0'></a><? } ?>

</td>

</tr>

<tr><td colspan="3" align="right" style="padding:8px;">
<img src="<?=$board_skin_path?>/img/viewer.gif" align="absmiddle" border="0" title="뷰어다운로드"> |
<a href="http://www.hancom.co.kr/downLoad.downPU.do?mcd=002" target="_blank"><img src="<?=$board_skin_path?>/img/hwp_viewer.gif" align="absmiddle" border="0" title="한글뷰어다운"></a>
<a href="http://download.microsoft.com/download/0/5/6/056852b5-6849-498b-b88a-20d8e0ea3a54/wordview_ko-kr.exe" target="_blank"><img src="<?=$board_skin_path?>/img/doc_viewer.gif" align="absmiddle" border="0" title="워드뷰어다운"></a>
<a href="http://download.microsoft.com/download/7/C/C/7CCCCD9E-1F70-459B-9C74-948E479357D3/ExcelViewer.exe" target="_blank"><img src="<?=$board_skin_path?>/img/xls_viewer.gif" align="absmiddle" border="0" title="엑셀뷰어다운"></a>
<a href="http://download.microsoft.com/download/d/3/c/d3ca22cd-a775-48cd-88dd-97cbfbb2f9ad/PowerPointViewer.exe" target="_blank"><img src="<?=$board_skin_path?>/img/ppt_viewer.gif" align="absmiddle" border="0" title="파워포인트다운"></a>
<a href="http://download.adobe.com/pub/adobe/acrobatreader/win/5.x/ar505kor.exe" target="_blank"><img src="<?=$board_skin_path?>/img/pdf_viewer.gif" align="absmiddle" border="0" title="아크로뱃다운"></a>
</td>
</tr>

<tr><td colspan="3" align="center">
<!-- 검색 -->
<!--
<form name="fsearch" method="get">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sca"      value="<?=$sca?>">
<input type="hidden" name="sfl" value="wr_subject">
<input name="stx" class="stx" maxlength="15" itemname="검색어" required value='<?=$stx?>'>
<input type="image" src="<?=$board_skin_path?>/img/btn_search.gif" border='0' align="absmiddle">
<input type="hidden" name="sop" value="and">
</form>
-->
</td>
</tr>

</table>


<script language="JavaScript">
// bbs/download.php 링크방지코드 주석요망!!
function file_download(link, file) {
    <? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
    document.location.href = link;
}
</script>


<? 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=500, height=550, scrollbars=1");

    f.sw.value = sw;
    f.target = "move";
    f.action = "./move.php";
    f.submit();
}
</script>
<? } ?>

댓글 전체

전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT