view페이지에서 내용수정 도와주

view페이지에서 내용수정 도와주

QA

view페이지에서 내용수정 도와주

본문

view.skin.php 코드를 아래처럼 수정

 

<form name="fwrite" id="fwrite" action="<?php echo $board_skin_url?>/view_update.php" onsubmit="return fwrite_submit(this);" method="post">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<div class="write_div" style="margin-top:12px;">

<div style="margin-bottom:20px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #ccc;">
  <tr>
    <td style="background-color:#fbfbfb; line-height:16px; padding:10px;">구매수수료</td>
    <td style="text-align:left; padding:10px;"><input type="text" name="wr_21" value="<?php echo $wr_21 ?>" id="wr_21" class="frm_input full_input" size="5" maxlength="255"></td>
    <td style="background-color:#fbfbfb; line-height:16px; padding:10px;">현지배송비</td>
    <td style="text-align:left; padding:10px;"><input type="text" name="wr_22" value="<?php echo $wr_22 ?>" id="wr_22" class="frm_input full_input" size="5" maxlength="255"></td>
    <td style="background-color:#fbfbfb; line-height:16px; padding:10px;">현지세금</td>
    <td style="text-align:left; padding:10px;"><input type="text" name="wr_23" value="<?php echo $wr_23 ?>" id="wr_23" class="frm_input full_input" size="5" maxlength="255"></td>
  </tr>
  <tr>
    <td style="background-color:#fbfbfb; line-height:16px; padding:10px;">송금수수료</td>
    <td style="text-align:left; padding:10px;"><input type="text" name="wr_24" value="<?php echo $wr_24 ?>" id="wr_24" class="frm_input full_input" size="5" maxlength="255"></td>
    <td style="background-color:#fbfbfb; line-height:16px; padding:10px;">기타금액</td>
    <td style="text-align:left; padding:10px;"><input type="text" name="wr_25" value="<?php echo $wr_25 ?>" id="wr_25" class="frm_input full_input" size="5" maxlength="255"></td>
    <td style="background-color:#fbfbfb; line-height:16px; padding:10px;">적용환율</td>
    <td style="text-align:left; padding:10px;"><input type="text" name="wr_26" value="<?php echo $wr_26 ?>" id="wr_26" class="frm_input full_input" size="5" maxlength="255"></td>
  </tr>
  
  <tr>
    <td style="background-color:#fbfbfb; line-height:16px; padding:10px;">제품가격</td>
    <td style="text-align:left; padding:10px;"><input type="text" name="wr_27" value="<?php echo $wr_27 ?>" id="wr_27" class="frm_input full_input" size="5" maxlength="255"></td>
    <td style="background-color:#fbfbfb; line-height:16px; padding:10px;">물류비</td>
    <td style="text-align:left; padding:10px;"><input type="text" name="wr_28" value="<?php echo $wr_28 ?>" id="wr_28" class="frm_input full_input" size="5" maxlength="255"></td>
    <td style="background-color:#fbfbfb; line-height:16px; padding:10px;">총결제금액</td>
    <td style="text-align:left; padding:10px;"><input type="text" name="wr_29" value="<?php echo $wr_29 ?>" id="wr_29" class="frm_input full_input" size="5" maxlength="255"></td>
  </tr>
  
  <tr>
    <td style="background-color:#fbfbfb; line-height:16px; padding:10px;">송장번호</td>
    <td style="text-align:left; padding:10px;"><input type="text" name="wr_30" value="<?php echo $wr_30 ?>" id="wr_30" class="frm_input full_input" size="5" maxlength="255"></td>
    <td style="background-color:#fbfbfb; line-height:16px; padding:10px;">결제일</td>
    <td style="text-align:left; padding:10px;"><?php echo date("y-m-d H:i", strtotime($view['wr_20']))?></td>
    <td style="background-color:#fbfbfb; line-height:16px; padding:10px;">구매일</td>
    <td style="text-align:left; padding:10px;"><?php echo date("y-m-d H:i", strtotime($view['wr_datetime']))?></td>
  </tr>
</table>
</div>
<button type='submit' id='btn_submit' accesskey='s' class='btn_submit btn' style='margin:-8px 0 0 5px'>상태변경</button>
</div>
</form>

 

 

 

 

view.update.php 코드를 아래처럼 수정

<?php
include_once('../../common.php');

$update_sql     = " update $write_table 
                 set wr_19  = '$wr_19',
                     wr_20  = '$wr_20',
                     wr_21  = '$wr_21',
                      wr_22  = '$wr_22',
                      wr_23  = '$wr_23',
                      wr_24  = '$wr_24',
                      wr_25  = '$wr_25',
                      wr_26  = '$wr_26',
                      wr_27  = '$wr_27',
                      wr_28  = '$wr_28',
                      wr_29  = '$wr_29',
                      wr_30  = '$wr_30'
                where wr_id = '$wr_id' ";
sql_query($update_sql);

goto_url(G5_URL.'/'.$write_table.'/'.$wr_id);
?>

 

위에철 햇는데 작동이 않됩니다.

고수님 도와주세요 감사합니다.

 

이 질문에 댓글 쓰기 :

답변 2

답변을 작성하시기 전에 로그인 해주세요.
전체 10,632
QA 내용 검색

회원로그인

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