Files
firstgarden-web-gnu/adm/shop_admin/itemqaform.php

71 lines
2.3 KiB
PHP

<?
$sub_menu = '400660';
include_once('./_common.php');
auth_check($auth[$sub_menu], "w");
$sql = " select *
from {$g4['shop_item_qa_table']} a
left join {$g4['member_table']} b on (a.mb_id = b.mb_id)
where iq_id = '$iq_id' ";
$iq = sql_fetch($sql);
if (!$iq['iq_id']) alert('등록된 자료가 없습니다.');
$name = get_sideview($is['mb_id'], $iq['iq_name'], $is['mb_email'], $is['mb_homepage']);
$g4['title'] = '상품문의';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$qstr = 'page='.$page.'&amp;sort1='.$sort1.'&amp;sort2='.$sort2;
?>
<?//=subtitle($g4['title'])?>
<section class="cbox">
<h2>상품문의 수정/답변</h2>
<p>상품에 대한 문의에 답변하실 수 있습니다. 상품 문의 내용의 수정도 가능합니다.</p>
<form name="frmitemqaform" action="./itemqaformupdate.php" method="post">
<input type="hidden" name="w" value="<?=$w ?>">
<input type="hidden" name="iq_id" value="<?=$iq_id ?>">
<input type="hidden" name="page" value="<?=$page ?>">
<input type="hidden" name="sort1" value="<?=$sort1 ?>">
<input type="hidden" name="sort2" value="<?=$sort2 ?>">
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row">이름</th>
<td><?=$name?></td>
</tr>
<tr>
<th scope="row"><label for="iq_subject">제목</label></th>
<td><input type="text" name="iq_subject" value="<?=conv_subject($iq['iq_subject'],120)?>" id="iq_subject" required class="frm_input required" size="95"></td>
</tr>
<tr>
<th scope="row"><label for="iq_question">질문</label></th>
<td><textarea name="iq_question" id="iq_question" rows="7" required class="required"><?=get_text($iq['iq_question'])?></textarea></td>
</tr>
<tr>
<th scope="row"><label for="iq_answer">답변</label></th>
<td><textarea name="iq_answer" id="iq_answer" rows="7"><?=get_text($iq['iq_answer'])?></textarea></td>
</tr>
</tbody>
</table>
<div class="btn_confirm">
<input type="submit" accesskey='s' value="확인" class="btn_submit">
<a href="./itemqalist.php?<?=$qstr?>">목록</a>
</div>
</form>
</section>
<?
include_once (G4_ADMIN_PATH.'/admin.tail.php');
?>