상품후기 확인 버튼 추가

This commit is contained in:
chicpro
2013-04-15 15:20:22 +09:00
parent 4379341f1b
commit 2fca798d9e
2 changed files with 5 additions and 1 deletions

View File

@ -30,6 +30,7 @@ $qstr = "page=$page&sort1=$sort1&sort2=$sort2";
<input type="hidden" name="page" value="<? echo $page ?>">
<input type="hidden" name="sort1" value="<? echo $sort1 ?>">
<input type="hidden" name="sort2" value="<? echo $sort2 ?>">
<input type="hidden" name="is_confirm" value="<? echo $is['is_confirm']?>">
<section class="cbox">
<h2>사용후기 수정</h2>
@ -62,7 +63,7 @@ $qstr = "page=$page&sort1=$sort1&sort2=$sort2";
</tr>
<tr>
<th scope="row">확인</th>
<td><input type="checkbox" name="is_confirm" value="1" <?=($is['is_confirm']?"checked":"")?> id="is_confirm"><label for="is_confirm">확인하였습니다</label></td>
<td><input type="submit" name="btn_confirm" value="확인하였습니다"></td>
</tr>
</tbody>
</table>

View File

@ -17,6 +17,9 @@ $qstr = "page=$page&sort1=$sort1&sort2=$sort2";
if ($w == "u")
{
if($btn_confirm)
$is_confirm = 1;
$sql = "update {$g4['shop_item_ps_table']}
set is_subject = '$is_subject',
is_content = '$is_content',