링크 클릭시 경고창 한번만 띄우기 > 그누4 질문답변

그누4 질문답변

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

링크 클릭시 경고창 한번만 띄우기 정보

링크 클릭시 경고창 한번만 띄우기

본문

고수님들 문의 드립니다..

게시판 열람(제목클릭)시 경고 메세지를 띄우고 싶어서(한번만 나오게 그리고 관리자는 안나오게 처리) 이것저것 봐가면서 적용해보고는 있는데 잘 안되네요..ㅜ.ㅜ


아래는 게시판 검색중 "송이씨닷컴"님께서 올려주신대로 적용을 해 보았는데 전 링크를 클릭하면 에러가 나더라구요..


list.skin.php 중 제목부분을 아래와 같이 수정하고..

echo "<tr><td align=center><a href=javascript:confirm_view('{$list[$i][href]}')>$subject</a>{$comment_cnt}</td></tr>";

하단 <script language="JavaScript"> 아래에..

function confirm_view(vurl){
  if(g4_is_admin){
    location.href=vurl;
  }else{
    if(confirm("게시물을 열람하겠습니까?"))
    location.href=vurl;
  }
}


포인트가 많이 없어서 조금밖에 못드려요..ㅜ.ㅜ혹시 다른방법이 있다면 제시해주시면 감솨하겠습니다..ㅡ.ㅡ

댓글 전체

아래는 리스트 스킨 내용입니다...한번 봐주세요..ㅜ.ㅜ

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

// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 7;
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>
//여분필드추가시 wr_번호
if ($fadmin =='fok') {
 if ($is_admin =='super') {
//시작할번호 wr_추가시작할 번호
$af = 11;
//마지막번호 생성할 마지막번호+1
$bf = 50;
for ($di=$af; $di<$bf; $di++) {
$g4memoup ="ALTER TABLE $g4[write_prefix]$bo_table ADD wr_{$di} VARCHAR(255) NOT NULL";
$resultup = @mysql_query($g4memoup) or mysql_error();
if ($resultup) {
  echo "$bo_table 게시판에 wr_{$di} 필드생성 성공 하였습니다......ㅊㅋ<br><br>";
} else {
  echo "$bo_table 게시판에 wr_{$di} 필드가 이미 존재 하거나 생성실패......ㅠㅠ<br><br>";
 }
 }
 } else {
 alert_close("관리자로 로그인 후 실행해 주세요.");
 }
 //exit;
}

//여분필드삭제시
if ($fadmin =='fdel') {
 if ($is_admin =='super') {
//필드삭제를 시작할번호 wr_삭제시작 번호
$adf = 11;
//필드삭제할 마지막번호 +1
$bdf = 101;
for ($di=$adf; $di<$bdf; $di++) {
$g4memoups ="ALTER TABLE $g4[write_prefix]$bo_table DROP wr_{$di}";
$resultups = @mysql_query($g4memoups) or mysql_error();
if ($resultups) {
  echo "$bo_table 게시판에 wr_{$di} 필드삭제를 성공 하였습니다......ㅊㅋ<br><br>";
} else {
  echo "$bo_table 게시판에 wr_{$di} 필드가 존재 하지않거나 삭제실패......ㅠㅠ<br><br>";
 }
 }
 } else {
 alert_close("관리자로 로그인 후 실행해 주세요.");
 }
// exit;
}
?>

<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>

<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="25">
    <? if ($is_category) { ?><form name="fcategory" method="get"><td width="50%"><select name=sca onchange="location='<?=$category_location?>'+this.value;"><option value=''>전체</option><?=$category_option?></select></td></form><? } ?>
    <td align="right">
        게시물 <?=number_format($total_count)?>건
        <? if ($admin_href) { ?><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>
<tr><td height=5></td></tr>
</table>

<!-- 제목 -->
<form name="fboardlist" method="post" style="margin:0px;">
<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% cellpadding=0 cellspacing=0 border=0>
<tr><td colspan=<?=$colspan?> height=2 bgcolor=#B0ADF5></td></tr>
<tr bgcolor=#F8F8F9 height=30 align=center>
    <td width=40>번호</td>
    <? if ($is_category) { ?><td width=70>분류</td><?}?>
    <? if ($is_checkbox) { ?><td width=40><INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox></td><?}?>
    <td align=center>상담제목</td>
    <td width=80>지역</td>
<td width=50>실평수</td>
<td width=70>예산</td>
    <td width=70>마감일</a></td>
<td width=60>진행상황</td>
</tr>
<tr><td colspan=<?=$colspan?> height=1 bgcolor=#B0ADF5></td></tr>

<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<?
$ex1_filed = explode("|",$list[$i][wr_1]);
$ext1_00  = $ex1_filed[0];
$ext1_01  = $ex1_filed[1];
$ext1_02  = $ex1_filed[2];
$ext1_03  = $ex1_filed[3];
$ext1_04  = $ex1_filed[4];
$ext1_05  = $ex1_filed[5];
$ext1_06  = $ex1_filed[6];
$ext1_07  = $ex1_filed[7];
$ext1_08  = $ex1_filed[8];
$ext1_09  = $ex1_filed[9];

$ex2_filed = explode("|",$list[$i][wr_2]);
$ext2_00  = $ex2_filed[0];
$ext2_01  = $ex2_filed[1];
$ext2_02  = $ex2_filed[2];
$ext2_03  = $ex2_filed[3];
$ext2_04  = $ex2_filed[4];
$ext2_05  = $ex2_filed[5];
$ext2_06  = $ex2_filed[6];
$ext2_07  = $ex2_filed[7];
$ext2_08  = $ex2_filed[8];
$ext2_09  = $ex2_filed[9];

$ex3_filed = explode("|",$list[$i][wr_3]);
$ext3_00  = $ex3_filed[0];
$ext3_01  = $ex3_filed[1];
$ext3_02  = $ex3_filed[2];
$ext3_03  = $ex3_filed[3];
$ext3_04  = $ex3_filed[4];
$ext3_05  = $ex3_filed[5];
$ext3_06  = $ex3_filed[6];
$ext3_07  = $ex3_filed[7];
$ext3_08  = $ex3_filed[8];
$ext3_09  = $ex3_filed[9];

$ex4_filed = explode("|",$list[$i][wr_4]);
$ext4_00  = $ex4_filed[0];
$ext4_01  = $ex4_filed[1];
$ext4_02  = $ex4_filed[2];
$ext4_03  = $ex4_filed[3];
$ext4_04  = $ex4_filed[4];
$ext4_05  = $ex4_filed[5];
$ext4_06  = $ex4_filed[6];
$ext4_07  = $ex4_filed[7];
$ext4_08  = $ex4_filed[8];
$ext4_09  = $ex4_filed[9];

$ex5_filed = explode("|",$list[$i][wr_5]);
$ext5_00  = $ex5_filed[0];
$ext5_01  = $ex5_filed[1];
$ext5_02  = $ex5_filed[2];
$ext5_03  = $ex5_filed[3];
$ext5_04  = $ex5_filed[4];
$ext5_05  = $ex5_filed[5];
$ext5_06  = $ex5_filed[6];
$ext5_07  = $ex5_filed[7];
$ext5_08  = $ex5_filed[8];
$ext5_09  = $ex5_filed[9];

$ex6_filed = explode("|",$list[$i][wr_6]);
$ext6_00  = $ex6_filed[0];
$ext6_01  = $ex6_filed[1];
$ext6_02  = $ex6_filed[2];
$ext6_03  = $ex6_filed[3];
$ext6_04  = $ex6_filed[4];
$ext6_05  = $ex6_filed[5];
$ext6_06  = $ex6_filed[6];
$ext6_07  = $ex6_filed[7];
$ext6_08  = $ex6_filed[8];
$ext6_09  = $ex6_filed[9];

$ex7_filed = explode("|",$list[$i][wr_7]);
$ext7_00  = $ex7_filed[0];
$ext7_01  = $ex7_filed[1];
$ext7_02  = $ex7_filed[2];
$ext7_03  = $ex7_filed[3];
$ext7_04  = $ex7_filed[4];
$ext7_05  = $ex7_filed[5];
$ext7_06  = $ex7_filed[6];
$ext7_07  = $ex7_filed[7];
$ext7_08  = $ex7_filed[8];
$ext7_09  = $ex7_filed[9];

$ex8_filed = explode("|",$list[$i][wr_8]);
$ext8_00  = $ex8_filed[0];
$ext8_01  = $ex8_filed[1];
$ext8_02  = $ex8_filed[2];
$ext8_03  = $ex8_filed[3];
$ext8_04  = $ex8_filed[4];
$ext8_05  = $ex8_filed[5];
$ext8_06  = $ex8_filed[6];
$ext8_07  = $ex8_filed[7];
$ext8_08  = $ex8_filed[8];
$ext8_09  = $ex8_filed[9];

$ex9_filed = explode("|",$list[$i][wr_9]);
$ext9_00  = $ex9_filed[0];
$ext9_01  = $ex9_filed[1];
$ext9_02  = $ex9_filed[2];
$ext9_03  = $ex9_filed[3];
$ext9_04  = $ex9_filed[4];
$ext9_05  = $ex9_filed[5];
$ext9_06  = $ex9_filed[6];
$ext9_07  = $ex9_filed[7];
$ext9_08  = $ex9_filed[8];
$ext9_09  = $ex9_filed[9];



$ex10_filed = explode("|",$list[$i][wr_10]);
$ext10_00  = $ex10_filed[0];
$ext10_01  = $ex10_filed[1];
$ext10_02  = $ex10_filed[2];
$ext10_03  = $ex10_filed[3];
$ext10_04  = $ex10_filed[4];
$ext10_05  = $ex10_filed[5];
$ext10_06  = $ex10_filed[6];
$ext10_07  = $ex10_filed[7];
$ext10_08  = $ex10_filed[8];
$ext10_09  = $ex10_filed[9];

$ex10_filed = explode("|",$list[$i][wr_10]);
$ext10_00  = $ex10_filed[0];
$ext10_01  = $ex10_filed[1];
$ext10_02  = $ex10_filed[2];
$ext10_03  = $ex10_filed[3];
$ext10_04  = $ex10_filed[4];
$ext10_05  = $ex10_filed[5];
$ext10_06  = $ex10_filed[6];
$ext10_07  = $ex10_filed[7];
$ext10_08  = $ex10_filed[8];
$ext10_09  = $ex10_filed[9];

$ex11_filed = explode("|",$list[$i][wr_11]);
$ext11_00  = $ex11_filed[0];
$ext11_01  = $ex11_filed[1];
$ext11_02  = $ex11_filed[2];
$ext11_03  = $ex11_filed[3];
$ext11_04  = $ex11_filed[4];
$ext11_05  = $ex11_filed[5];
$ext11_06  = $ex11_filed[6];
$ext11_07  = $ex11_filed[7];
$ext11_08  = $ex11_filed[8];
$ext11_09  = $ex11_filed[9];


$ex12_filed = explode("|",$list[$i][wr_12]);
$ext12_00  = $ex12_filed[0];
$ext12_01  = $ex12_filed[1];
$ext12_02  = $ex12_filed[2];
$ext12_03  = $ex12_filed[3];
$ext12_04  = $ex12_filed[4];
$ext12_05  = $ex12_filed[5];
$ext12_06  = $ex12_filed[6];
$ext12_07  = $ex12_filed[7];
$ext12_08  = $ex12_filed[8];
$ext12_09  = $ex12_filed[9];

$ex13_filed = explode("|",$list[$i][wr_13]);
$ext13_00  = $ex13_filed[0];
$ext13_01  = $ex13_filed[1];
$ext13_02  = $ex13_filed[2];
$ext13_03  = $ex13_filed[3];
$ext13_04  = $ex13_filed[4];
$ext13_05  = $ex13_filed[5];
$ext13_06  = $ex13_filed[6];
$ext13_07  = $ex13_filed[7];
$ext13_08  = $ex13_filed[8];
$ext13_09  = $ex13_filed[9];

$ex14_filed = explode("|",$list[$i][wr_14]);
$ext14_00  = $ex14_filed[0];
$ext14_01  = $ex14_filed[1];
$ext14_02  = $ex14_filed[2];
$ext14_03  = $ex14_filed[3];
$ext14_04  = $ex14_filed[4];
$ext14_05  = $ex14_filed[5];
$ext14_06  = $ex14_filed[6];
$ext14_07  = $ex14_filed[7];
$ext14_08  = $ex14_filed[8];
$ext14_09  = $ex14_filed[9];


$ex15_filed = explode("|",$list[$i][wr_15]);
$ext15_00  = $ex15_filed[0];
$ext15_01  = $ex15_filed[1];
$ext15_02  = $ex15_filed[2];
$ext15_03  = $ex15_filed[3];
$ext15_04  = $ex15_filed[4];
$ext15_05  = $ex15_filed[5];
$ext15_06  = $ex15_filed[6];
$ext15_07  = $ex15_filed[7];
$ext15_08  = $ex15_filed[8];
$ext15_09  = $ex15_filed[9];

$ex16_filed = explode("|",$list[$i][wr_16]);
$ext16_00  = $ex16_filed[0];
$ext16_01  = $ex16_filed[1];
$ext16_02  = $ex16_filed[2];
$ext16_03  = $ex16_filed[3];
$ext16_04  = $ex16_filed[4];
$ext16_05  = $ex16_filed[5];
$ext16_06  = $ex16_filed[6];
$ext16_07  = $ex16_filed[7];
$ext16_08  = $ex16_filed[8];
$ext16_09  = $ex16_filed[9];

$ex17_filed = explode("|",$list[$i][wr_17]);
$ext17_00  = $ex17_filed[0];
$ext17_01  = $ex17_filed[1];
$ext17_02  = $ex17_filed[2];
$ext17_03  = $ex17_filed[3];
$ext17_04  = $ex17_filed[4];
$ext17_05  = $ex17_filed[5];
$ext17_06  = $ex17_filed[6];
$ext17_07  = $ex17_filed[7];
$ext17_08  = $ex17_filed[8];
$ext17_09  = $ex17_filed[9];

$ex18_filed = explode("|",$list[$i][wr_18]);
$ext18_00  = $ex18_filed[0];
$ext18_01  = $ex18_filed[1];
$ext18_02  = $ex18_filed[2];
$ext18_03  = $ex18_filed[3];
$ext18_04  = $ex18_filed[4];
$ext18_05  = $ex18_filed[5];
$ext18_06  = $ex18_filed[6];
$ext18_07  = $ex18_filed[7];
$ext18_08  = $ex18_filed[8];
$ext18_09  = $ex18_filed[9];

$ex19_filed = explode("|",$list[$i][wr_19]);
$ext19_00  = $ex19_filed[0];
$ext19_01  = $ex19_filed[1];
$ext19_02  = $ex19_filed[2];
$ext19_03  = $ex19_filed[3];
$ext19_04  = $ex19_filed[4];
$ext19_05  = $ex19_filed[5];
$ext19_06  = $ex19_filed[6];
$ext19_07  = $ex19_filed[7];
$ext19_08  = $ex19_filed[8];
$ext19_09  = $ex19_filed[9];

$ex20_filed = explode("|",$list[$i][wr_20]);
$ext20_00  = $ex20_filed[0];
$ext20_01  = $ex20_filed[1];
$ext20_02  = $ex20_filed[2];
$ext20_03  = $ex20_filed[3];
$ext20_04  = $ex20_filed[4];
$ext20_05  = $ex20_filed[5];
$ext20_06  = $ex20_filed[6];
$ext20_07  = $ex20_filed[7];
$ext20_08  = $ex20_filed[8];
$ext20_09  = $ex20_filed[9];

$ex21_filed = explode("|",$list[$i][wr_21]);
$ext21_00  = $ex21_filed[0];
$ext21_01  = $ex21_filed[1];
$ext21_02  = $ex21_filed[2];
$ext21_03  = $ex21_filed[3];
$ext21_04  = $ex21_filed[4];
$ext21_05  = $ex21_filed[5];
$ext21_06  = $ex21_filed[6];
$ext21_07  = $ex21_filed[7];
$ext21_08  = $ex21_filed[8];
$ext21_09  = $ex21_filed[9];

$ex22_filed = explode("|",$list[$i][wr_22]);
$ext22_00  = $ex22_filed[0];
$ext22_01  = $ex22_filed[1];
$ext22_02  = $ex22_filed[2];
$ext22_03  = $ex22_filed[3];
$ext22_04  = $ex22_filed[4];
$ext22_05  = $ex22_filed[5];
$ext22_06  = $ex22_filed[6];
$ext22_07  = $ex22_filed[7];
$ext22_08  = $ex22_filed[8];
$ext22_09  = $ex22_filed[9];

$ex23_filed = explode("|",$list[$i][wr_23]);
$ext23_00  = $ex23_filed[0];
$ext23_01  = $ex23_filed[1];
$ext23_02  = $ex23_filed[2];
$ext23_03  = $ex23_filed[3];
$ext23_04  = $ex23_filed[4];
$ext23_05  = $ex23_filed[5];
$ext23_06  = $ex23_filed[6];
$ext23_07  = $ex23_filed[7];
$ext23_08  = $ex23_filed[8];
$ext23_09  = $ex23_filed[9];

$ex24_filed = explode("|",$list[$i][wr_24]);
$ext24_00  = $ex24_filed[0];
$ext24_01  = $ex24_filed[1];
$ext24_02  = $ex24_filed[2];
$ext24_03  = $ex24_filed[3];
$ext24_04  = $ex24_filed[4];
$ext24_05  = $ex24_filed[5];
$ext24_06  = $ex24_filed[6];
$ext24_07  = $ex24_filed[7];
$ext24_08  = $ex24_filed[8];
$ext24_09  = $ex24_filed[9];

$ex25_filed = explode("|",$list[$i][wr_25]);
$ext25_00  = $ex25_filed[0];
$ext25_01  = $ex25_filed[1];
$ext25_02  = $ex25_filed[2];
$ext25_03  = $ex25_filed[3];
$ext25_04  = $ex25_filed[4];
$ext25_05  = $ex25_filed[5];
$ext25_06  = $ex25_filed[6];
$ext25_07  = $ex25_filed[7];
$ext25_08  = $ex25_filed[8];
$ext25_09  = $ex25_filed[9];
?>
<tr height=28 align=center>
    <td>
        <?
        if ($list[$i][is_notice]) // 공지사항
            echo "<img src=\"$board_skin_path/img/notice_icon.gif\" width=30 height=16>";
        else if ($wr_id == $list[$i][wr_id]) // 현재위치
            echo "<font color='#2C8CB9'><strong>{$list[$i][num]}</strong>";
        else
            echo "{$list[$i][num]}";
        ?></td>
    <? if ($is_category) { ?><td><a href="<?=$list[$i][ca_name_href]?>"><font color=gray><span class=small><?=$list[$i][ca_name]?></span></font></a></td><? } ?>
    <? if ($is_checkbox) { ?><td><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td><? } ?>
    <td align=left style='word-break:break-all;'>
        <?
        echo $nobr_begin;
        echo $list[$i][reply];
        echo $list[$i][icon_reply];
        echo "<a href='{$list[$i][href]}'>";
        if ($list[$i][is_notice])
            echo "<font color='#FF6600'><strong>{$list[$i][subject]}</strong></font>";
        else
        {
            $style1 = $style2 = "";
            if ($list[$i][icon_new]) // 최신글은 검정
                $style1 = "color:#112222;";
            if (!$list[$i][comment_cnt]) // 코멘트 없는것만 굵게
                $style2 = "";
            echo "<span style='$style1 $style2'>{$list[$i][subject]}</span>";
        }
        echo "</a>";

        if ($list[$i][comment_cnt])
            echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></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><a href='<?=$list[$i][href]?>'><?=conv_subject($ext1_08, 13, "")?></a></td>
    <td><a href='<?=$list[$i][href]?>'><?=$ext2_06?> 평</a></td>
<td><a href='<?=$list[$i][href]?>'><?=number_format($ext2_02)?> 만원</a></td>
<td><a href='<?=$list[$i][href]?>'><?=substr($ext3_00,0,4)?>-<?=substr($ext3_00,4,2)?>-<?=substr($ext3_00,6,2)?></a></td>
<td><a href='<?=$list[$i][href]?>'><?=$ext4_00?></a></td>
</tr>
<tr><td colspan=<?=$colspan?> height=1 bgcolor=#E7E7E7></td></tr>
<?}?>

<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
<tr><td colspan=<?=$colspan?> bgcolor=#5C86AD height=1>
</table>
</form>

<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
    <td width="100%" align="center" height=30 valign=bottom>
        <? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' 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>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:#797979\">$1</font></b>", $write_pages);
        $write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font></b>", $write_pages);
        ?>
        <?=$write_pages?>
        <? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
    </td>
</tr>
</table>

<!-- 버튼 링크 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca      value="<?=$sca?>">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
    <td width="50%" height="40">
        <? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
        <? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
        <? if ($is_checkbox) { ?>
            <a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
            <a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
            <a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
        <? } ?>
    </td>
    <td width="50%" align="right">
        <select name=sfl>
            <option value='wr_subject||wr_content'>상담제목+내용</option>
            <option value='wr_subject'>상담제목</option>
            <option value='wr_content'>상세설명</option>
            <option value='wr_name,1'>신청인</option>
        </select><input name=stx maxlength=15 size=10 itemname="검색어" 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/search_btn.gif" border=0 align=absmiddle></td>
</tr>
</table>
</form>

</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>
<? } ?>
<!-- 게시판 목록 끝 -->
본문이라 하시면?..;;..리스트스킨내용말고 또 어떤것을 보여드려야하는지요..

위의 소스중

echo "<a href='{$list[$i][href]}'>"; 대신

게코타님께서 알려주신<a href=\"javascript:confirm_view('{$list[$i][href]}');\">
이걸로 넣고

<script language="JavaScript"> 아래에..

function confirm_view(vurl){
  if(g4_is_admin){
    document.location.href=vurl;
  }else{
    if(confirm("게시물을 열람하겠습니까?"))
    document.location.href=vurl;
  }
}

이렇게 고치면 되는거 아니였는지요..;;지송..
다음과 같이 하시면 될 것 같네요.




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

// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 7;
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>
//여분필드추가시 wr_번호
if ($fadmin =='fok') {
 if ($is_admin =='super') {
//시작할번호 wr_추가시작할 번호
$af = 11;
//마지막번호 생성할 마지막번호+1
$bf = 50;
for ($di=$af; $di<$bf; $di++) {
$g4memoup ="ALTER TABLE $g4[write_prefix]$bo_table ADD wr_{$di} VARCHAR(255) NOT NULL";
$resultup = @mysql_query($g4memoup) or mysql_error();
if ($resultup) {
  echo "$bo_table 게시판에 wr_{$di} 필드생성 성공 하였습니다......ㅊㅋ<br><br>";
} else {
  echo "$bo_table 게시판에 wr_{$di} 필드가 이미 존재 하거나 생성실패......ㅠㅠ<br><br>";
 }
 }
 } else {
 alert_close("관리자로 로그인 후 실행해 주세요.");
 }
 //exit;
}

//여분필드삭제시
if ($fadmin =='fdel') {
 if ($is_admin =='super') {
//필드삭제를 시작할번호 wr_삭제시작 번호
$adf = 11;
//필드삭제할 마지막번호 +1
$bdf = 101;
for ($di=$adf; $di<$bdf; $di++) {
$g4memoups ="ALTER TABLE $g4[write_prefix]$bo_table DROP wr_{$di}";
$resultups = @mysql_query($g4memoups) or mysql_error();
if ($resultups) {
  echo "$bo_table 게시판에 wr_{$di} 필드삭제를 성공 하였습니다......ㅊㅋ<br><br>";
} else {
  echo "$bo_table 게시판에 wr_{$di} 필드가 존재 하지않거나 삭제실패......ㅠㅠ<br><br>";
 }
 }
 } else {
 alert_close("관리자로 로그인 후 실행해 주세요.");
 }
// exit;
}
?>

<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>

<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="25">
    <? if ($is_category) { ?><form name="fcategory" method="get"><td width="50%"><select name=sca onchange="location='<?=$category_location?>'+this.value;"><option value=''>전체</option><?=$category_option?></select>& lt;/td></form><? } ?>
    <td align="right">
        게시물 <?=number_format($total_count)?>건
        <? if ($admin_href) { ?><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>
<tr><td height=5></td></tr>
</table>

<!-- 제목 -->
<form name="fboardlist" method="post" style="margin:0px;">
<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% cellpadding=0 cellspacing=0 border=0>
<tr><td colspan=<?=$colspan?> height=2 bgcolor=#B0ADF5></td></tr>
<tr bgcolor=#F8F8F9 height=30 align=center>
    <td width=40>번호</td>
    <? if ($is_category) { ?><td width=70>분류</td><?}?>
    <? if ($is_checkbox) { ?><td width=40><INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox></td><?}?>
    <td align=center>상담제목</td>
    <td width=80>지역</td>
<td width=50>실평수</td>
<td width=70>예산</td>
    <td width=70>마감일</a></td>
<td width=60>진행상황</td>
</tr>
<tr><td colspan=<?=$colspan?> height=1 bgcolor=#B0ADF5></td></tr>

<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<?
$ex1_filed = explode("|",$list[$i][wr_1]);
$ext1_00  = $ex1_filed[0];
$ext1_01  = $ex1_filed[1];
$ext1_02  = $ex1_filed[2];
$ext1_03  = $ex1_filed[3];
$ext1_04  = $ex1_filed[4];
$ext1_05  = $ex1_filed[5];
$ext1_06  = $ex1_filed[6];
$ext1_07  = $ex1_filed[7];
$ext1_08  = $ex1_filed[8];
$ext1_09  = $ex1_filed[9];

$ex2_filed = explode("|",$list[$i][wr_2]);
$ext2_00  = $ex2_filed[0];
$ext2_01  = $ex2_filed[1];
$ext2_02  = $ex2_filed[2];
$ext2_03  = $ex2_filed[3];
$ext2_04  = $ex2_filed[4];
$ext2_05  = $ex2_filed[5];
$ext2_06  = $ex2_filed[6];
$ext2_07  = $ex2_filed[7];
$ext2_08  = $ex2_filed[8];
$ext2_09  = $ex2_filed[9];

$ex3_filed = explode("|",$list[$i][wr_3]);
$ext3_00  = $ex3_filed[0];
$ext3_01  = $ex3_filed[1];
$ext3_02  = $ex3_filed[2];
$ext3_03  = $ex3_filed[3];
$ext3_04  = $ex3_filed[4];
$ext3_05  = $ex3_filed[5];
$ext3_06  = $ex3_filed[6];
$ext3_07  = $ex3_filed[7];
$ext3_08  = $ex3_filed[8];
$ext3_09  = $ex3_filed[9];

$ex4_filed = explode("|",$list[$i][wr_4]);
$ext4_00  = $ex4_filed[0];
$ext4_01  = $ex4_filed[1];
$ext4_02  = $ex4_filed[2];
$ext4_03  = $ex4_filed[3];
$ext4_04  = $ex4_filed[4];
$ext4_05  = $ex4_filed[5];
$ext4_06  = $ex4_filed[6];
$ext4_07  = $ex4_filed[7];
$ext4_08  = $ex4_filed[8];
$ext4_09  = $ex4_filed[9];

$ex5_filed = explode("|",$list[$i][wr_5]);
$ext5_00  = $ex5_filed[0];
$ext5_01  = $ex5_filed[1];
$ext5_02  = $ex5_filed[2];
$ext5_03  = $ex5_filed[3];
$ext5_04  = $ex5_filed[4];
$ext5_05  = $ex5_filed[5];
$ext5_06  = $ex5_filed[6];
$ext5_07  = $ex5_filed[7];
$ext5_08  = $ex5_filed[8];
$ext5_09  = $ex5_filed[9];

$ex6_filed = explode("|",$list[$i][wr_6]);
$ext6_00  = $ex6_filed[0];
$ext6_01  = $ex6_filed[1];
$ext6_02  = $ex6_filed[2];
$ext6_03  = $ex6_filed[3];
$ext6_04  = $ex6_filed[4];
$ext6_05  = $ex6_filed[5];
$ext6_06  = $ex6_filed[6];
$ext6_07  = $ex6_filed[7];
$ext6_08  = $ex6_filed[8];
$ext6_09  = $ex6_filed[9];

$ex7_filed = explode("|",$list[$i][wr_7]);
$ext7_00  = $ex7_filed[0];
$ext7_01  = $ex7_filed[1];
$ext7_02  = $ex7_filed[2];
$ext7_03  = $ex7_filed[3];
$ext7_04  = $ex7_filed[4];
$ext7_05  = $ex7_filed[5];
$ext7_06  = $ex7_filed[6];
$ext7_07  = $ex7_filed[7];
$ext7_08  = $ex7_filed[8];
$ext7_09  = $ex7_filed[9];

$ex8_filed = explode("|",$list[$i][wr_8]);
$ext8_00  = $ex8_filed[0];
$ext8_01  = $ex8_filed[1];
$ext8_02  = $ex8_filed[2];
$ext8_03  = $ex8_filed[3];
$ext8_04  = $ex8_filed[4];
$ext8_05  = $ex8_filed[5];
$ext8_06  = $ex8_filed[6];
$ext8_07  = $ex8_filed[7];
$ext8_08  = $ex8_filed[8];
$ext8_09  = $ex8_filed[9];

$ex9_filed = explode("|",$list[$i][wr_9]);
$ext9_00  = $ex9_filed[0];
$ext9_01  = $ex9_filed[1];
$ext9_02  = $ex9_filed[2];
$ext9_03  = $ex9_filed[3];
$ext9_04  = $ex9_filed[4];
$ext9_05  = $ex9_filed[5];
$ext9_06  = $ex9_filed[6];
$ext9_07  = $ex9_filed[7];
$ext9_08  = $ex9_filed[8];
$ext9_09  = $ex9_filed[9];



$ex10_filed = explode("|",$list[$i][wr_10]);
$ext10_00  = $ex10_filed[0];
$ext10_01  = $ex10_filed[1];
$ext10_02  = $ex10_filed[2];
$ext10_03  = $ex10_filed[3];
$ext10_04  = $ex10_filed[4];
$ext10_05  = $ex10_filed[5];
$ext10_06  = $ex10_filed[6];
$ext10_07  = $ex10_filed[7];
$ext10_08  = $ex10_filed[8];
$ext10_09  = $ex10_filed[9];

$ex10_filed = explode("|",$list[$i][wr_10]);
$ext10_00  = $ex10_filed[0];
$ext10_01  = $ex10_filed[1];
$ext10_02  = $ex10_filed[2];
$ext10_03  = $ex10_filed[3];
$ext10_04  = $ex10_filed[4];
$ext10_05  = $ex10_filed[5];
$ext10_06  = $ex10_filed[6];
$ext10_07  = $ex10_filed[7];
$ext10_08  = $ex10_filed[8];
$ext10_09  = $ex10_filed[9];

$ex11_filed = explode("|",$list[$i][wr_11]);
$ext11_00  = $ex11_filed[0];
$ext11_01  = $ex11_filed[1];
$ext11_02  = $ex11_filed[2];
$ext11_03  = $ex11_filed[3];
$ext11_04  = $ex11_filed[4];
$ext11_05  = $ex11_filed[5];
$ext11_06  = $ex11_filed[6];
$ext11_07  = $ex11_filed[7];
$ext11_08  = $ex11_filed[8];
$ext11_09  = $ex11_filed[9];


$ex12_filed = explode("|",$list[$i][wr_12]);
$ext12_00  = $ex12_filed[0];
$ext12_01  = $ex12_filed[1];
$ext12_02  = $ex12_filed[2];
$ext12_03  = $ex12_filed[3];
$ext12_04  = $ex12_filed[4];
$ext12_05  = $ex12_filed[5];
$ext12_06  = $ex12_filed[6];
$ext12_07  = $ex12_filed[7];
$ext12_08  = $ex12_filed[8];
$ext12_09  = $ex12_filed[9];

$ex13_filed = explode("|",$list[$i][wr_13]);
$ext13_00  = $ex13_filed[0];
$ext13_01  = $ex13_filed[1];
$ext13_02  = $ex13_filed[2];
$ext13_03  = $ex13_filed[3];
$ext13_04  = $ex13_filed[4];
$ext13_05  = $ex13_filed[5];
$ext13_06  = $ex13_filed[6];
$ext13_07  = $ex13_filed[7];
$ext13_08  = $ex13_filed[8];
$ext13_09  = $ex13_filed[9];

$ex14_filed = explode("|",$list[$i][wr_14]);
$ext14_00  = $ex14_filed[0];
$ext14_01  = $ex14_filed[1];
$ext14_02  = $ex14_filed[2];
$ext14_03  = $ex14_filed[3];
$ext14_04  = $ex14_filed[4];
$ext14_05  = $ex14_filed[5];
$ext14_06  = $ex14_filed[6];
$ext14_07  = $ex14_filed[7];
$ext14_08  = $ex14_filed[8];
$ext14_09  = $ex14_filed[9];


$ex15_filed = explode("|",$list[$i][wr_15]);
$ext15_00  = $ex15_filed[0];
$ext15_01  = $ex15_filed[1];
$ext15_02  = $ex15_filed[2];
$ext15_03  = $ex15_filed[3];
$ext15_04  = $ex15_filed[4];
$ext15_05  = $ex15_filed[5];
$ext15_06  = $ex15_filed[6];
$ext15_07  = $ex15_filed[7];
$ext15_08  = $ex15_filed[8];
$ext15_09  = $ex15_filed[9];

$ex16_filed = explode("|",$list[$i][wr_16]);
$ext16_00  = $ex16_filed[0];
$ext16_01  = $ex16_filed[1];
$ext16_02  = $ex16_filed[2];
$ext16_03  = $ex16_filed[3];
$ext16_04  = $ex16_filed[4];
$ext16_05  = $ex16_filed[5];
$ext16_06  = $ex16_filed[6];
$ext16_07  = $ex16_filed[7];
$ext16_08  = $ex16_filed[8];
$ext16_09  = $ex16_filed[9];

$ex17_filed = explode("|",$list[$i][wr_17]);
$ext17_00  = $ex17_filed[0];
$ext17_01  = $ex17_filed[1];
$ext17_02  = $ex17_filed[2];
$ext17_03  = $ex17_filed[3];
$ext17_04  = $ex17_filed[4];
$ext17_05  = $ex17_filed[5];
$ext17_06  = $ex17_filed[6];
$ext17_07  = $ex17_filed[7];
$ext17_08  = $ex17_filed[8];
$ext17_09  = $ex17_filed[9];

$ex18_filed = explode("|",$list[$i][wr_18]);
$ext18_00  = $ex18_filed[0];
$ext18_01  = $ex18_filed[1];
$ext18_02  = $ex18_filed[2];
$ext18_03  = $ex18_filed[3];
$ext18_04  = $ex18_filed[4];
$ext18_05  = $ex18_filed[5];
$ext18_06  = $ex18_filed[6];
$ext18_07  = $ex18_filed[7];
$ext18_08  = $ex18_filed[8];
$ext18_09  = $ex18_filed[9];

$ex19_filed = explode("|",$list[$i][wr_19]);
$ext19_00  = $ex19_filed[0];
$ext19_01  = $ex19_filed[1];
$ext19_02  = $ex19_filed[2];
$ext19_03  = $ex19_filed[3];
$ext19_04  = $ex19_filed[4];
$ext19_05  = $ex19_filed[5];
$ext19_06  = $ex19_filed[6];
$ext19_07  = $ex19_filed[7];
$ext19_08  = $ex19_filed[8];
$ext19_09  = $ex19_filed[9];

$ex20_filed = explode("|",$list[$i][wr_20]);
$ext20_00  = $ex20_filed[0];
$ext20_01  = $ex20_filed[1];
$ext20_02  = $ex20_filed[2];
$ext20_03  = $ex20_filed[3];
$ext20_04  = $ex20_filed[4];
$ext20_05  = $ex20_filed[5];
$ext20_06  = $ex20_filed[6];
$ext20_07  = $ex20_filed[7];
$ext20_08  = $ex20_filed[8];
$ext20_09  = $ex20_filed[9];

$ex21_filed = explode("|",$list[$i][wr_21]);
$ext21_00  = $ex21_filed[0];
$ext21_01  = $ex21_filed[1];
$ext21_02  = $ex21_filed[2];
$ext21_03  = $ex21_filed[3];
$ext21_04  = $ex21_filed[4];
$ext21_05  = $ex21_filed[5];
$ext21_06  = $ex21_filed[6];
$ext21_07  = $ex21_filed[7];
$ext21_08  = $ex21_filed[8];
$ext21_09  = $ex21_filed[9];

$ex22_filed = explode("|",$list[$i][wr_22]);
$ext22_00  = $ex22_filed[0];
$ext22_01  = $ex22_filed[1];
$ext22_02  = $ex22_filed[2];
$ext22_03  = $ex22_filed[3];
$ext22_04  = $ex22_filed[4];
$ext22_05  = $ex22_filed[5];
$ext22_06  = $ex22_filed[6];
$ext22_07  = $ex22_filed[7];
$ext22_08  = $ex22_filed[8];
$ext22_09  = $ex22_filed[9];

$ex23_filed = explode("|",$list[$i][wr_23]);
$ext23_00  = $ex23_filed[0];
$ext23_01  = $ex23_filed[1];
$ext23_02  = $ex23_filed[2];
$ext23_03  = $ex23_filed[3];
$ext23_04  = $ex23_filed[4];
$ext23_05  = $ex23_filed[5];
$ext23_06  = $ex23_filed[6];
$ext23_07  = $ex23_filed[7];
$ext23_08  = $ex23_filed[8];
$ext23_09  = $ex23_filed[9];

$ex24_filed = explode("|",$list[$i][wr_24]);
$ext24_00  = $ex24_filed[0];
$ext24_01  = $ex24_filed[1];
$ext24_02  = $ex24_filed[2];
$ext24_03  = $ex24_filed[3];
$ext24_04  = $ex24_filed[4];
$ext24_05  = $ex24_filed[5];
$ext24_06  = $ex24_filed[6];
$ext24_07  = $ex24_filed[7];
$ext24_08  = $ex24_filed[8];
$ext24_09  = $ex24_filed[9];

$ex25_filed = explode("|",$list[$i][wr_25]);
$ext25_00  = $ex25_filed[0];
$ext25_01  = $ex25_filed[1];
$ext25_02  = $ex25_filed[2];
$ext25_03  = $ex25_filed[3];
$ext25_04  = $ex25_filed[4];
$ext25_05  = $ex25_filed[5];
$ext25_06  = $ex25_filed[6];
$ext25_07  = $ex25_filed[7];
$ext25_08  = $ex25_filed[8];
$ext25_09  = $ex25_filed[9];
?>
<tr height=28 align=center>
    <td>
        <?
        if ($list[$i][is_notice]) // 공지사항
            echo "<img src=\"$board_skin_path/img/notice_icon.gif\" width=30 height=16>";
        else if ($wr_id == $list[$i][wr_id]) // 현재위치
            echo "<font color='#2C8CB9'><strong>{$list[$i][num]}</strong>";
        else
            echo "{$list[$i][num]}";
        ?></td>
    <? if ($is_category) { ?><td><a href="<?=$list[$i][ca_name_href]?>"><font color=gray><span class=small><?=$list[$i][ca_name]?></span></font></a></td><? } ?>
    <? if ($is_checkbox) { ?><td><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td><? } ?>
    <td align=left style='word-break:break-all;'>
        <?
        echo $nobr_begin;
        echo $list[$i][reply];
        echo $list[$i][icon_reply];
        echo "<a href=\"javascript:thisView('".$list[$i]['wr_id']."');\">";
        if ($list[$i][is_notice])
            echo "<font color='#FF6600'><strong>{$list[$i][subject]}</strong></font>";
        else
        {
            $style1 = $style2 = "";
            if ($list[$i][icon_new]) // 최신글은 검정
                $style1 = "color:#112222;";
            if (!$list[$i][comment_cnt]) // 코멘트 없는것만 굵게
                $style2 = "";
            echo "<span style='$style1 $style2'>{$list[$i][subject]}</span>";
        }
        echo "</a>";

        if ($list[$i][comment_cnt])
            echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></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><a href='<?=$list[$i][href]?>'><?=conv_subject($ext1_08, 13, "")?></a></td>
    <td><a href='<?=$list[$i][href]?>'><?=$ext2_06?> 평</a></td>
<td><a href='<?=$list[$i][href]?>'><?=number_format($ext2_02)?> 만원</a></td>
<td><a href='<?=$list[$i][href]?>'><?=substr($ext3_00,0,4)?>-<?=substr($ext3_00,4,2)?>-<?=substr($ext3_00,6,2)?></a></td>
<td><a href='<?=$list[$i][href]?>'><?=$ext4_00?></a></td>
</tr>
<tr><td colspan=<?=$colspan?> height=1 bgcolor=#E7E7E7></td></tr>
<?}?>

<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
<tr><td colspan=<?=$colspan?> bgcolor=#5C86AD height=1>
</table>
</form>

<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
    <td width="100%" align="center" height=30 valign=bottom>
        <? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' 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>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:#797979\">$1</font></b>", $write_pages);
        $write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font></b>", $write_pages);
        ?>
        <?=$write_pages?>
        <? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
    </td>
</tr>
</table>

<!-- 버튼 링크 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca      value="<?=$sca?>">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
    <td width="50%" height="40">
        <? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
        <? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
        <? if ($is_checkbox) { ?>
            <a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
            <a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
            <a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
        <? } ?>
    </td>
    <td width="50%" align="right">
        <select name=sfl>
            <option value='wr_subject||wr_content'>상담제목+내용</option>
            <option value='wr_subject'>상담제목</option>
            <option value='wr_content'>상세설명</option>
            <option value='wr_name,1'>신청인</option>
        </select><input name=stx maxlength=15 size=10 itemname="검색어" 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/search_btn.gif" border=0 align=absmiddle></td>
</tr>
</table>
</form>

</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>
<? } ?>

<script type="text/javascript">
function thisView(wr_id)
{

    if (!g4_is_admin) {

        if (!confirm("게시물을 열람하겠습니까?")) {
   
            return;
   
        }

    }

    document.location.href = "./board.php?bo_table=<?=$bo_table?>&wr_id="+wr_id;

}
</script>
<!-- 게시판 목록 끝 -->
일단은 제목에만 되게 해 놓았습니다.

위 소스를 보면 평, 만원 등 해당 부분에도 링크가 걸려있으니

<a href=\"javascript:thisView('".$list[$i]['wr_id']."');\"> 으로 고치시면 될 것 같네요.
혹시근데요..클릭할때마다 계속 나오던데 한번 클릭된거는 안나오게 처리도 가능한가요?..또한 자신이 쓴 글도 안나오게도요..^^..

자꾸 욕심이 생기네요..지송요..
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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