선택삭제가 안되네요 그리고 버튼을 누르면 http404 메시지 뜨네요 > 그누4 질문답변

그누4 질문답변

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

선택삭제가 안되네요 그리고 버튼을 누르면 http404 메시지 뜨네요 정보

선택삭제가 안되네요 그리고 버튼을 누르면 http404 메시지 뜨네요

본문

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

if (!$board[bo_1]) alert("게시판 설정 : 여분 필드 1 에 목록에서 보여질 이미지의 폭을 설정하십시오. (픽셀 단위)");
if (!$board[bo_2]) alert("게시판 설정 : 여분 필드 2 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';

@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);

$mod = $board[bo_gallery_cols];
$td_width = (int)(100 / $mod);

// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 5;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;

?>
<? include "si_top.htm"; ?>
   <div class="board">


<?if($bo_table=='si_db11'){?>
<p style="margin-left:0px">     
가평군시설관리공단과 관련된 민원사항을 접수하는 곳입니다.<br/>사실확인을 위하여 실명인증 후 시설명을 지정하여 글을 작성하여 주십시오.<br/>
<strong class="red">다른 이용자에게 불쾌감을 줄 수 있는 욕설이나 실명거론, 비난성 등이 포함된 내용과 <br/>게시판 성격에 맞지 않는 글은 동의없이 삭제되오니 양지해 주시기 바랍니다. </strong>

</p>

<?}elseif($bo_table=='si_db111'){?>

<p style="margin-left:0px">     
가평군시설관리공단의 시설물이용 문의사항이 있으신 고객님께서는 시설물이용 게시판에 글을 남겨주세요. <br>신속하고 친절하게 답변해 드리도록 하겠습니다.<br/>
<strong class="red">게시판 성격에 맞지 않는 글은 동의없이 삭제되오니 양지해 주시기 바랍니다.</strong>

</p>
<?}elseif($bo_table=='si_db16'){?>


<?}?>
<p align=right style="margin-left:0px"><a href="/ik_ct/bbs/board.php?bo_table=old_db1" target="_blank"  title="새창으로 이동"><img src='/siseol/img/bbs_view_b.gif' width=156 height=36 alt="이전게시판보기"></a> </p>


<? if ($is_category) { ?>
<form name="fcategory" method="get">
 <label for="select_siseol" class="hd">의견남길시설물선택</label>
 <select id="select_siseol" name=sca onchange="location='<?=$category_location?>'+this.value;"><option value=''>전체</option><?=$category_option?></select>
</form><? } ?>   

<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 summary="게시글목록">
      <caption>
      게시글목록
      </caption>
      <thead>
       <tr>
        <th scope="col" class="head_no">No</th>
        <th scope="col" class="head_subject">Subject</th>
        <th scope="col" class="head_name">Name</th>
        <th scope="col" class="head_date">Date</th>
        <th scope="col" class="head_hit">Hit</th>
       </tr>
      </thead>
      <tbody>
<? for ($i=0; $i<count($list); $i++) { ?>       
       <tr>
        <td class="body_no">
        
        <?
       
       
        if ($list[$i][is_notice]) // 공지사항
            echo "<img src=\"$board_skin_path/img/notice_icon.gif\" width=28 height=16 alt='공지'>";
        else if ($wr_id == $list[$i][wr_id]) // 현재위치
            echo "<img src='$board_skin_path/img/list_arrow.gif' width='7' height='7' border='0' align='absmiddle' alt=''>";
        else
            echo "{$list[$i][num]}";
        ?>        
        
        </td>
        <td class="body_subject">
        <?
        if ($is_checkbox) echo "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'>";       
        ?>
        <? if ($is_category) { ?><a href='<?=$list[$i][href]?>'><strong class="gray">[<?=$list[$i][ca_name]?>]</strong><? } ?>
       
        <?           
        echo $nobr_begin;
        echo $list[$i][reply];
        echo $list[$i][icon_reply];
       
        if ($list[$i][is_notice])
            echo "<strong>{$list[$i][subject]}</strong>";
        else
        {
            $style1 = $style2 = "";
            if ($list[$i][icon_new]) // 최신글은 검정
                $style1 = "color:#1682BC;";
            if (!$list[$i][comment_cnt]) // 코멘트 없는것만 굵게
                $style2 = "font-weight:bold;";
            echo "<strong>{$list[$i][subject]}</strong>";
        }
        echo "</a> ";

        if ($list[$i][comment_cnt])
           echo " <a href=\"{$list[$i][comment_href]}\"><span style='color:FF0000;'>{$list[$i][comment_cnt]}</span></a> ";


        echo " " . $list[$i][icon_new];
        echo " " . $list[$i][icon_file];

        echo $nobr_end;
        ?>        
        
        
        </td>
        <td class="body_name"><?=$list[$i][name]?></td>
        <td class="body_date"><?=$list[$i][datetime2]?></td>
        <td class="body_hit"><?=$list[$i][wr_hit]?></td>
       </tr>
<?}?>       
<? if (count($list) == 0) { ?>
       <tr>        
        <td class="list_subject" colspan=5>게시물이 없습니다.</td>             
       </tr>
<?} ?>

 

      </tbody>
     </table>
 </form>     
     <div class="page">
     <? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 align=absmiddle alt='이전검색' title='이전검색'></a> "; } ?>
         <?
         // 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
         //echo $write_pages;
         $write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' alt='처음' title='처음'>", $write_pages);
         $write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' alt='이전'title='이전'>", $write_pages);
         $write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' alt='다음'title='다음'>", $write_pages);
         $write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' alt='맨끝'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 alt='다음검색' title='다음검색'></a> "; } ?>
        </div>
     <div class="func">
      <div class="left">
<form name="fregister" method="POST" action="/siseol/page/name.php"><!-- action="javascript:fregister_submit(document.fregister);" autocomplete="off">           -->
      <? if ($list_href) { ?><a href="<?=$list_href?>"><img src="/jojong/img/board8.gif" alt="글목록" title="글목록"></a> <? } ?>      
<?if($is_admin or $member[mb_id] == "admin"){?>      
      <? if ($write_href) { ?><a href="<?=$write_href?>"><img src="/jojong/img/board9.gif" alt="글쓰기" title="새창이열립니다"></a> <? } ?> 
      <a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0" alt="글복사"></a>
<?}else{?>
      <? if ($write_href) { ?>
      <input type=hidden name=bo_table value="<?=$bo_table?>"><input type="image" src="/jojong/img/board9.gif" alt="글쓰기" title="글쓰기" style='cursor: hand'>
      <? } ?>      
<?}?>      
      <? if ($is_checkbox) { ?><a href="javascript:select_delete();"><img src="/jojong/img/board10.gif"  alt="글삭제"></a> <? } ?>
      </form> 
      </div>
      <div class="right">       
       <form name=fsearch method=get style="margin:0px;" title="키필드">
       <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 type=hidden name=sop      value="and">
       <input name=stx maxlength=15 size=10 itemname="검색어" required value="<?=$stx?>" style='border:1px solid #e4e4e4;' title="키워드">
       <input type=image src="/jojong/img/board14.gif" border=0 align=absmiddle alt="검색" title="검색"></td>
       </form>   
      
      </div>
     </div>
   
   </div>


<? include "si_bottom.htm"; ?>

<script language="javascript">
function fregister_submit(f)
{
   

  gpinAuth();
    //f.action = "./jo_register_form.php";
    //f.submit();
}

function gpinAuth() {
    wWidth = 360;
    wHight = 120;
   
    wX = (window.screen.width - wWidth) / 2;
    wY = (window.screen.height - wHight) / 2;
   
    // Request Page Call

<? if ($bo_table == si_db11) { ?>     
    var w = window.open("../gpin/bo_AuthRequest.php?bo_table=<?=$bo_table?>", "gPinLoginWin", "directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHight);
<? }elseif ($bo_table == si_db111) { ?> 
    var w = window.open("../gpin/bo_AuthRequest.php?bo_table=<?=$bo_table?>", "gPinLoginWin", "directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHight);
<? } ?> 

}

if (typeof(document.fregister.mb_name) != "undefined")
    document.fregister.mb_name.focus();
</script>


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

  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로