쇼핑몰관리자: #55 쇼핑몰관리 상품문의 목록 표준화 및 스타일 완료
This commit is contained in:
@ -49,18 +49,27 @@ $sql = " select *
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
//$qstr = "page=$page&sst=$sst&sod=$sod&stx=$stx";
|
||||
$qstr = "$qstr&sca=$sca&save_stx=$stx";
|
||||
//$qstr = 'page='.$page.'&sst='.$sst.'&sod='.$sod.'&stx='.$stx;
|
||||
$qstr = $qstr.'&sca='.$sca.'&save_stx='.$stx;
|
||||
|
||||
$listall = '';
|
||||
if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">전체목록</a>';
|
||||
?>
|
||||
<style type="text/css">
|
||||
.itemqalist{text-align:center}
|
||||
</style>
|
||||
|
||||
<form name="flist">
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<p><a href="<?=$_SERVER['PHP_SELF']?>">처음</a></p>
|
||||
<fieldset>
|
||||
<input type="hidden" name="save_stx" value="<?=$stx?>">
|
||||
|
||||
<fieldset>
|
||||
<legend>상품문의 검색</legend>
|
||||
|
||||
<span>
|
||||
<?=$listall?>
|
||||
전체 문의내역 <?=$total_count ?>건
|
||||
</span>
|
||||
|
||||
<? // ##### // 웹 접근성 취약 지점 시작 - 지운아빠 2013-04-12 ?>
|
||||
<select name="sca">
|
||||
<option value='' title="검색분류">전체분류</option>
|
||||
<?
|
||||
@ -70,11 +79,11 @@ $qstr = "$qstr&sca=$sca&save_stx=$stx";
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
$nbsp = "";
|
||||
for ($i=0; $i<$len; $i++) $nbsp .= " ";
|
||||
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
|
||||
echo '<option value="'.$row1['ca_id'].'">'.$nbsp.$row1['ca_name'].'</option>'.PHP_EOL;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<script> document.flist.sca.value = '<?=$sca?>';</script>
|
||||
<? // ##### // 웹 접근성 취약 지점 끝 ?>
|
||||
|
||||
<select name="sfl">
|
||||
<option value="it_name">상품명</option>
|
||||
@ -82,68 +91,60 @@ $qstr = "$qstr&sca=$sca&save_stx=$stx";
|
||||
</select>
|
||||
<? if ($sfl) echo "<script> document.flist.sfl.value = '$sfl';</script>"; ?>
|
||||
|
||||
<input type="hidden" name="save_stx" value="<?=$stx?>">
|
||||
<input type="text" name="stx" value="<?=$stx?>" class="frm_input">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</fieldset>
|
||||
<p>건수 : <? echo $total_count ?></p>
|
||||
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
|
||||
<section class="cbox">
|
||||
<h2>상품문의 관리</h2>
|
||||
<h2>상품문의 목록</h2>
|
||||
|
||||
<table class="frm_basic">
|
||||
<colgroup>
|
||||
<col class="grid_8">
|
||||
<col class="grid_2">
|
||||
<col class="grid_5">
|
||||
<col class="grid_1">
|
||||
<col class="grid_2">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?=subject_sort_link("it_name"); ?>상품명</a></th>
|
||||
<th scope="col"><?=subject_sort_link("mb_name"); ?>이름</a></th>
|
||||
<th scope="col"><?=subject_sort_link("iq_subject"); ?>질문</a></th>
|
||||
<th scope="col"><?=subject_sort_link("iq_answer"); ?>답변</a></th>
|
||||
<th scope="col"><?=subject_sort_link('it_name'); ?>상품명<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><?=subject_sort_link('mb_name'); ?>이름<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><?=subject_sort_link('iq_subject'); ?>질문<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><?=subject_sort_link('iq_answer'); ?>답변<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$row['iq_subject'] = cut_str($row['iq_subject'], 30, "...");
|
||||
|
||||
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
|
||||
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
$name = get_sideview($row['mb_id'], $row['iq_name'], $row['mb_email'], $row['mb_homepage']);
|
||||
|
||||
$s_mod = icon("수정", "./itemqaform.php?w=u&iq_id={$row['iq_id']}&$qstr");
|
||||
$s_del = icon("삭제", "javascript:del('./itemqaformupdate.php?w=d&iq_id={$row['iq_id']}&$qstr');");
|
||||
|
||||
$answer = $row['iq_answer'] ? "Y" : " ";
|
||||
|
||||
$list = $i%2;
|
||||
$answer = $row['iq_answer'] ? 'Y' : ' ';
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="$href"><?=get_it_image($row['it_id'].'_s', 50, 50)?><?=cut_str($row['it_name'],30)?></a></td>
|
||||
<td class="itemqalist"><?=$name?></td>
|
||||
<td><?=$row['iq_subject']?></td>
|
||||
<td class="itemqalist"><?=$answer?></td>
|
||||
<td class="itemqalist"><a href="./itemqaform.php?w=u&iq_id=<?=$row['iq_id']?>&<?=$qstr?>">수정</a> <a href="./itemqaformupdate.php?w=d&iq_id=<?=$row['iq_id']?>&<?=$qstr?>">삭제</a></td>
|
||||
<td><a href="<?=$href?>"><?=get_it_image($row['it_id'].'_s', 50, 50)?><?=cut_str($row['it_name'],30)?></a></td>
|
||||
<td class="td_name"><?=$name?></td>
|
||||
<td class="sit_qa_subject"><?=$row['iq_subject']?></td>
|
||||
<td class="sit_qa_answer"><?=$answer?></td>
|
||||
<td class="td_smallmng">
|
||||
<a href="./itemqaform.php?w=u&iq_id=<?=$row['iq_id']?>&<?=$qstr?>">수정</a>
|
||||
<a href="javascript:del('./itemqaformupdate.php?w=d&iq_id=<?=$row['iq_id']?>&$qstr');">삭제</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="5" class="empty_table"><span>자료가 한건도 없습니다.</span></td></tr>';;
|
||||
echo '<tr><td colspan="5" class="empty_table"><span>자료가 없습니다.</span></td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
|
||||
|
||||
</section>
|
||||
|
||||
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
|
||||
|
||||
<?
|
||||
include_once (G4_ADMIN_PATH.'/admin.tail.php');
|
||||
?>
|
||||
|
||||
@ -346,6 +346,10 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
|
||||
.sit_pt,
|
||||
.sit_qty {text-align:right}
|
||||
|
||||
/* 상품문의 */
|
||||
.sit_qa_subject {width:300px}
|
||||
.sit_qa_answer {width:30px;text-align:center}
|
||||
|
||||
/* 배송일괄처리 */
|
||||
#sdeli_proc {text-align:center}
|
||||
#sdeli_proc_fs {padding:20px 0;border-bottom:1px solid #f7f7f7;text-align:center}
|
||||
|
||||
Reference in New Issue
Block a user