#325 선호도->평점 ... 10점->5점 ... 검색에 평점 높은순 정렬 추가

This commit is contained in:
gnuboard
2013-11-14 11:28:32 +09:00
parent daf1606cee
commit ecaf18964d
12 changed files with 86 additions and 45 deletions

View File

@ -1427,6 +1427,13 @@ $(function(){
<?php echo $it['it_time']; ?>
</td>
</tr>
<tr>
<th scope="row">수정일시</th>
<td colspan="2">
<?php echo help("상품을 최종 수정한 시간입니다."); ?>
<?php echo $it['it_update_time']; ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>

View File

@ -300,7 +300,6 @@ $sql_common = " ca_id = '$ca_id',
it_tail_html = '$it_tail_html',
it_mobile_head_html = '$it_mobile_head_html',
it_mobile_tail_html = '$it_mobile_tail_html',
it_time = '".G5_TIME_YMDHIS."',
it_ip = '{$_SERVER['REMOTE_ADDR']}',
it_order = '$it_order',
it_tel_inq = '$it_tel_inq',
@ -350,6 +349,8 @@ if ($w == "")
if($t_it_id)
alert('상품 코드는 영문자, 숫자, -, _ 만 사용할 수 있습니다.');
$sql_common .= " , it_time = '".G5_TIME_YMDHIS."' ";
$sql_common .= " , it_update_time = '".G5_TIME_YMDHIS."' ";
$sql = " insert {$g5['g5_shop_item_table']}
set it_id = '$it_id',
$sql_common ";
@ -357,6 +358,7 @@ if ($w == "")
}
else if ($w == "u")
{
$sql_common .= " , it_update_time = '".G5_TIME_YMDHIS."' ";
$sql = " update {$g5['g5_shop_item_table']}
set $sql_common
where it_id = '$it_id' ";

View File

@ -26,7 +26,8 @@ if ($_POST['act_button'] == "선택수정") {
it_point = '{$_POST['it_point'][$k]}',
it_stock_qty = '{$_POST['it_stock_qty'][$k]}',
it_use = '{$_POST['it_use'][$k]}',
it_order = '{$_POST['it_order'][$k]}'
it_order = '{$_POST['it_order'][$k]}',
it_update_time = '".G5_TIME_YMDHIS."'
where it_id = '{$_POST['it_id'][$k]}' ";
sql_query($sql);
}

View File

@ -52,8 +52,8 @@ $qstr = 'page='.$page.'&amp;sort1='.$sort1.'&amp;sort2='.$sort2;
<td><?php echo $name; ?></td>
</tr>
<tr>
<th scope="row">점</th>
<td><?php echo stripslashes($is['is_score']); ?> 점</td>
<th scope="row">점</th>
<td><img src="<?php echo G5_URL; ?>/shop/img/s_star<?php echo $is['is_score']; ?>.png"> (<?php echo $is['is_score']; ?>점)</td>
</tr>
<tr>
<th scope="row"><label for="is_subject">제목</label></th>

View File

@ -112,7 +112,7 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
<th scope="col"><?php echo subject_sort_link("it_name"); ?>상품명</a></th>
<th scope="col"><?php echo subject_sort_link("mb_name"); ?>이름</a></th>
<th scope="col"><?php echo subject_sort_link("is_subject"); ?>제목</a></th>
<th scope="col"><?php echo subject_sort_link("is_score"); ?>점</a></th>
<th scope="col"><?php echo subject_sort_link("is_score"); ?>점</a></th>
<th scope="col"><?php echo subject_sort_link("is_confirm"); ?>확인</a></th>
<th scope="col">관리</th>
</tr>
@ -143,7 +143,15 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
<?php echo $is_content; ?>
</div>
</td>
<td class="td_num"><?php echo $row['is_score']; ?></td>
<td class="td_num">
<select name="is_score[<?php echo $i; ?>]">
<option value="5" <?php echo get_selected($row['is_score'], "5"); ?>>매우만족</option>
<option value="4" <?php echo get_selected($row['is_score'], "4"); ?>>만족</option>
<option value="3" <?php echo get_selected($row['is_score'], "3"); ?>>보통</option>
<option value="2" <?php echo get_selected($row['is_score'], "2"); ?>>불만</option>
<option value="1" <?php echo get_selected($row['is_score'], "1"); ?>>매우불만</option>
</select>
</td>
<td class="td_chk"><input type="checkbox" name="is_confirm[<?php echo $i; ?>]" <?php echo ($row['is_confirm'] ? 'checked' : ''); ?> value="1"></td>
<td class="td_mngsmall">
<a href="./itemuseform.php?w=u&amp;is_id=<?php echo $row['is_id']; ?>&amp;<?php echo $qstr; ?>"><span class="sound_only"><?php echo $row['is_subject']; ?> </span>수정</a>

View File

@ -23,7 +23,8 @@ for ($i=0; $i<count($_POST['chk']); $i++)
if ($_POST['act_button'] == "선택수정")
{
$sql = "update {$g5['g5_shop_item_use_table']}
set is_confirm = '{$_POST['is_confirm'][$k]}'
set is_score = '{$_POST['is_score'][$k]}',
is_confirm = '{$_POST['is_confirm'][$k]}'
where is_id = '{$_POST['is_id'][$k]}' ";
sql_query($sql);
}
@ -34,6 +35,7 @@ for ($i=0; $i<count($_POST['chk']); $i++)
}
update_use_cnt($_POST['it_id'][$k]);
update_use_avg($_POST['it_id'][$k]);
}
goto_url("./itemuselist.php?sca=$sca&amp;sst=$sst&amp;sod=$sod&amp;sfl=$sfl&amp;stx=$stx&amp;page=$page");