소스 관련 재문의 요청좀 드리겠습니다 ㅠㅠ
본문
위링크 내용대로 따라해봤는데요
뷰페이지에서 아예 하얀색 하면이 나오는데 왜그런걸까요 ㅠㅠ?
소스코드도 다 똑같이 해서 넣어놨습니다.
http://smdade.cafe24.com/bbs/board.php?bo_table=free
문제 되는 해당 사이트 입니다.
뷰페이지
<?php if($is_admin == 'super') { ?>
<div class="tbl_frm01 tbl_wrap">
<table>
<tbody>
<form name="update_wr5" action="<?php echo $board_skin_url; ?>/update_wr5.php" method="post" style="padding:0; margin:0;">
<input type="hidden" name="bo_table" value="<?php echo $bo_table; ?>">
<input type="hidden" name="page" value="<?php echo $page; ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id; ?>">
<input type="hidden" name="location" value="next">
<tr>
<th>wr_1 변경</th>
<td>
<input type="radio" name="wr_5" value="완료"<?php if(view["wr_5"]=="완료") { echo " checked"; } ?>>완료
<input type="radio" name="wr_5" value="대기"<?php if(view["wr_5"]=="대기" || $view["wr_5"] =="") { echo " checked"; } ?>>대기
<input type="submit" value=" 변경 " style="width:50px; height:24px;">
</td>
</tr>
</tbody>
</form>
</table>
</div>
<?php } ?>
update_wr5.php 페이지
<?php
include_once "_common.php";
if($is_admin == 'super') {
$write_table = $g5['write_prefix'].$_POST['bo_table'];
sql_query("update ".$write_table." set wr_5 = ".$wr_5." where wr_id= '".$wr_id."' " );
//exit;
}
?>
<script>
location.href="<?php echo G5_BBS_URL."/board.php?bo_table=".$_POST['bo_table']."&page=".$_POST['page']; ?>" ;
</script>
_common.php 파일
<?php
include_once('../../../common.php');
?>
!-->!-->!-->
답변 1
admin 아이디를 알려주셔야 게시글을 확인 할 수 있을것같습니다..
그리고 앞에 질문글에 답변드린바와 같이 일단
<?php if($is_admin == 'super') { ?> <div class="tbl_frm01 tbl_wrap"> <table> <tbody> <form name="update_wr5" action="<?php echo $board_skin_url; ?>/update_wr5.php" method="post" style="padding:0; margin:0;"> <input type="hidden" name="bo_table" value="<?php echo $bo_table; ?>"> <input type="hidden" name="page" value="<?php echo $page; ?>"> <input type="hidden" name="wr_id" value="<?php echo $wr_id; ?>"> <input type="hidden" name="location" value="next"> <tr> <th>wr_1 변경</th> <td> <input type="radio" name="wr_5" value="완료"<?php if($view["wr_5"]=="완료") { echo " checked"; } ?>>완료 <input type="radio" name="wr_5" value="대기"<?php if($view["wr_5"]=="대기" || $view["wr_5"] =="") { echo " checked"; } ?>>대기 <input type="submit" value=" 변경 " style="width:50px; height:24px;"> </td> </tr> </tbody> </form> </table> </div> <?php } ?>
저 view 변수 사용할때 $표시 붙여주셔야 합니다
답변을 작성하시기 전에 로그인 해주세요.