공통관리자: 너비 가변 변경 작업 중
This commit is contained in:
@ -76,103 +76,87 @@ $result = sql_query($sql);
|
||||
//$qstr = $qstr.'&sca='.$sca.'&page='.$page;
|
||||
$qstr = $qstr.'&sca='.$sca.'&page='.$page.'&save_stx='.$stx;
|
||||
|
||||
$listall = '';
|
||||
if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">전체목록</a>';
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</a>';
|
||||
?>
|
||||
|
||||
<form name="flist">
|
||||
<div class="local_ov01 local_ov">
|
||||
<?php echo $listall; ?>
|
||||
등록된 상품 <?php echo $total_count; ?>건
|
||||
</div>
|
||||
|
||||
<form name="flist" class="local_sch01 local_sch">
|
||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
||||
<input type="hidden" name="save_stx" value="<?php echo $stx; ?>">
|
||||
|
||||
<fieldset>
|
||||
<legend>상품 검색</legend>
|
||||
<label for="sca" class="sound_only">분류선택</label>
|
||||
<select name="sca" id="sca">
|
||||
<option value="">전체분류</option>
|
||||
<?php
|
||||
$sql1 = " select ca_id, ca_name from {$g5['g5_shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=sql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
$nbsp = '';
|
||||
for ($i=0; $i<$len; $i++) $nbsp .= ' ';
|
||||
echo '<option value="'.$row1['ca_id'].'" '.get_selected($sca, $row1['ca_id']).'>'.$nbsp.$row1['ca_name'].'</option>'.PHP_EOL;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
<span>
|
||||
<?php echo $listall; ?>
|
||||
등록된 상품 <?php echo $total_count; ?>건
|
||||
</span>
|
||||
<label for="sfl" class="sound_only">검색대상</label>
|
||||
<select name="sfl" id="sfl">
|
||||
<option value="it_name" <?php echo get_selected($sfl, 'it_name'); ?>>상품명</option>
|
||||
<option value="it_id" <?php echo get_selected($sfl, 'it_id'); ?>>상품코드</option>
|
||||
<option value="it_maker" <?php echo get_selected($sfl, 'it_maker'); ?>>제조사</option>
|
||||
<option value="it_origin" <?php echo get_selected($sfl, 'it_origin'); ?>>원산지</option>
|
||||
<option value="it_sell_email" <?php echo get_selected($sfl, 'it_sell_email'); ?>>판매자 e-mail</option>
|
||||
</select>
|
||||
|
||||
<label for="sca" class="sound_only">분류선택</label>
|
||||
<?php // ##### // 웹 접근성 취약 지점 시작 - 지운아빠 2013-04-12 ?>
|
||||
<select name="sca" id="sca">
|
||||
<option value="">전체분류</option>
|
||||
<?php
|
||||
$sql1 = " select ca_id, ca_name from {$g5['g5_shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=sql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
$nbsp = '';
|
||||
for ($i=0; $i<$len; $i++) $nbsp .= ' ';
|
||||
echo '<option value="'.$row1['ca_id'].'" '.get_selected($sca, $row1['ca_id']).'>'.$nbsp.$row1['ca_name'].'</option>'.PHP_EOL;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php // ##### // 웹 접근성 취약 지점 끝 ?>
|
||||
|
||||
<label for="sfl" class="sound_only">검색대상</label>
|
||||
<select name="sfl" id="sfl">
|
||||
<option value="it_name" <?php echo get_selected($sfl, 'it_name'); ?>>상품명</option>
|
||||
<option value="it_id" <?php echo get_selected($sfl, 'it_id'); ?>>상품코드</option>
|
||||
<option value="it_maker" <?php echo get_selected($sfl, 'it_maker'); ?>>제조사</option>
|
||||
<option value="it_origin" <?php echo get_selected($sfl, 'it_origin'); ?>>원산지</option>
|
||||
<option value="it_sell_email" <?php echo get_selected($sfl, 'it_sell_email'); ?>>판매자 e-mail</option>
|
||||
</select>
|
||||
|
||||
<label for="stx" class="sound_only">검색어</label>
|
||||
<input type="text" name="stx" value="<?php echo $stx; ?>" id="stx" class="frm_input">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</fieldset>
|
||||
<label for="stx" class="sound_only">검색어</label>
|
||||
<input type="text" name="stx" value="<?php echo $stx; ?>" id="stx" class="frm_input">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
|
||||
</form>
|
||||
|
||||
<section class="cbox">
|
||||
<h2>상품 목록</h2>
|
||||
<div class="btn_add">
|
||||
<a href="./itemform.php">상품등록</a>
|
||||
<a href="./itemexcel.php" onclick="return excelform(this.href);" target="_blank">상품일괄등록</a>
|
||||
</div>
|
||||
|
||||
<div class="btn_add sort_with">
|
||||
<a href="./itemform.php">상품등록</a>
|
||||
<a href="./itemexcel.php" onclick="return excelform(this.href);" target="_blank">상품일괄등록</a>
|
||||
</div>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><?php echo subject_sort_link('it_id', 'sca='.$sca); ?>상품코드<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_name', 'sca='.$sca); ?>상품명<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_price', 'sca='.$sca); ?>판매가격<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_cust_price', 'sca='.$sca); ?>시중가격<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_order', 'sca='.$sca); ?>순서<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_use', 'sca='.$sca, 1); ?>판매<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_hit', 'sca='.$sca, 1); ?>조회<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_point', 'sca='.$sca); ?>포인트<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_stock_qty', 'sca='.$sca); ?>재고<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<form name="fitemlistupdate" method="post" action="./itemlistupdate.php" onsubmit="return fitemlist_submit(this);" autocomplete="off">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca; ?>">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst; ?>">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod; ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl; ?>">
|
||||
<input type="hidden" name="stx" value="<?php echo $stx; ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
||||
<form name="fitemlistupdate" method="post" action="./itemlistupdate.php" onsubmit="return fitemlist_submit(this);" autocomplete="off">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca; ?>">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst; ?>">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod; ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl; ?>">
|
||||
<input type="hidden" name="stx" value="<?php echo $stx; ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
||||
|
||||
<div class="tbl_head02 tbl_wrap">
|
||||
<table>
|
||||
<caption><?php echo $g5['title']; ?> 목록</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" rowspan="2">
|
||||
<th scope="col" rowspan="3">
|
||||
<label for="chkall" class="sound_only">상품 전체</label>
|
||||
<input type="checkbox" name="chkall" value="1" id="chkall" onclick="check_all(this.form)">
|
||||
</th>
|
||||
<th scope="col" rowspan="2">상품코드</th>
|
||||
<th scope="col" colspan="2" rowspan="2">분류 및 상품명</th>
|
||||
<th scope="col" id="sit_amt">판매가격</th>
|
||||
<th scope="col" id="sit_camt">시중가격</th>
|
||||
<th scope="col" rowspan="2">순서</th>
|
||||
<th scope="col" rowspan="2">판매</th>
|
||||
<th scope="col" rowspan="2">조회</th>
|
||||
<th scope="col" rowspan="2">관리</th>
|
||||
<th scope="col" rowspan="3"><?php echo subject_sort_link('it_id', 'sca='.$sca); ?>상품코드</a></th>
|
||||
<th scope="col" colspan="4">분류</th>
|
||||
<th scope="col" rowspan="3"><?php echo subject_sort_link('it_order', 'sca='.$sca); ?>순서</a></th>
|
||||
<th scope="col" rowspan="3"><?php echo subject_sort_link('it_use', 'sca='.$sca, 1); ?>판매</a></th>
|
||||
<th scope="col" rowspan="3"><?php echo subject_sort_link('it_hit', 'sca='.$sca, 1); ?>조회</a></th>
|
||||
<th scope="col" rowspan="3">관리</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col" id="sit_pt">포인트</th>
|
||||
<th scope="col" id="sit_qty">재고</th>
|
||||
<th scope="col" rowspan="2" id="th_img">이미지</th>
|
||||
<th scope="col" id="th_pc_title"><?php echo subject_sort_link('it_name', 'sca='.$sca); ?>PC 상품명</a></th>
|
||||
<th scope="col" id="th_amt"><?php echo subject_sort_link('it_price', 'sca='.$sca); ?>판매가격</a></th>
|
||||
<th scope="col" id="th_camt"><?php echo subject_sort_link('it_cust_price', 'sca='.$sca); ?>시중가격</a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col" id="th_mo_title">모바일 상품명</th>
|
||||
<th scope="col" id="th_pt"><?php echo subject_sort_link('it_point', 'sca='.$sca); ?>포인트</a></th>
|
||||
<th scope="col" id="th_qty"><?php echo subject_sort_link('it_stock_qty', 'sca='.$sca); ?>재고</a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -180,32 +164,28 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$href = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
$tr_bg = $i%2 ? 'class="tr_bg1"' : 'class="tr_bg0"';
|
||||
?>
|
||||
<tr>
|
||||
<td rowspan="2">
|
||||
<tr<?php echo ' '.$tr_bg; ?>>
|
||||
<td rowspan="3" class="td_chk">
|
||||
<label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo get_text($row['bo_subject']) ?> 게시판</label>
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i; ?>">
|
||||
</td>
|
||||
<td rowspan="2">
|
||||
<td rowspan="3" class="td_num">
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<?php echo $row['it_id']; ?>
|
||||
</td>
|
||||
<td rowspan="2"><a href="<?php echo $href; ?>"><?php echo get_it_image($row['it_id'], 50, 50); ?></a></td>
|
||||
<td rowspan="2">
|
||||
<td colspan="4">
|
||||
<label for="ca_id_<?php echo $i; ?>" class="sound_only">분류</label>
|
||||
<select name="ca_id[<?php echo $i; ?>]" id="ca_id_<?php echo $i; ?>">
|
||||
<?php echo conv_selected_option($ca_list, $row['ca_id']); ?>
|
||||
</select>
|
||||
<?php echo $tmp_ca_list; ?><br>
|
||||
<input type="text" name="it_name[<?php echo $i; ?>]" value="<?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?>" required class="frm_input frm_sit_title required" size="30"><br>
|
||||
<input type="text" name="it_mobile_name[<?php echo $i; ?>]" value="<?php echo htmlspecialchars2(cut_str($row['it_mobile_name'],250, "")); ?>" class="frm_input frm_sit_title" size="30">
|
||||
</td>
|
||||
<td headers="sit_amt"><input type="text" name="it_price[<?php echo $i; ?>]" value="<?php echo $row['it_price']; ?>" class="frm_input sit_amt" size="7"></td>
|
||||
<td headers="sit_camt"><input type="text" name="it_cust_price[<?php echo $i; ?>]" value="<?php echo $row['it_cust_price']; ?>" class="frm_input sit_camt" size="7"></td>
|
||||
<td rowspan="2"><input type="text" name="it_order[<?php echo $i; ?>]" value="<?php echo $row['it_order']; ?>" class="frm_input sit_odrby" size="3"></td>
|
||||
<td rowspan="2"><input type="checkbox" name="it_use[<?php echo $i; ?>]" <?php echo ($row['it_use'] ? 'checked' : ''); ?> value="1"></td>
|
||||
<td rowspan="2"><?php echo $row['it_hit']; ?></td>
|
||||
<td rowspan="2" class="td_mng">
|
||||
<td rowspan="3" class="td_mngsmall"><input type="text" name="it_order[<?php echo $i; ?>]" value="<?php echo $row['it_order']; ?>" class="frm_input" size="3"></td>
|
||||
<td rowspan="3" class="td_chk"><input type="checkbox" name="it_use[<?php echo $i; ?>]" <?php echo ($row['it_use'] ? 'checked' : ''); ?> value="1"></td>
|
||||
<td rowspan="3" class="td_num"><?php echo $row['it_hit']; ?></td>
|
||||
<td rowspan="3" class="td_mng">
|
||||
<a href="<?php echo $href; ?>"><span class="sound_only"><?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?> </span>보기</a>
|
||||
<a href="./itemcopy.php?it_id=<?php echo $row['it_id']; ?>&ca_id=<?php echo $row['ca_id']; ?>" class="itemcopy" target="_blank"><span class="sound_only"><?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?> </span>복사</a>
|
||||
<a href="./itemform.php?w=u&it_id=<?php echo $row['it_id']; ?>&ca_id=<?php echo $row['ca_id']; ?>&<?php echo $qstr; ?>"><span class="sound_only"><?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?> </span>수정</a>
|
||||
@ -213,29 +193,35 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td headers="sit_pt"><input type="text" name="it_point[<?php echo $i; ?>]" value="<?php echo $row['it_point']; ?>" class="frm_input sit_pt" size="7"></td>
|
||||
<td headers="sit_qty"><input type="text" name="it_stock_qty[<?php echo $i; ?>]" value="<?php echo $row['it_stock_qty']; ?>" class="frm_input sit_qty" size="7"></td>
|
||||
<td rowspan="2" class="td_img"><a href="<?php echo $href; ?>"><?php echo get_it_image($row['it_id'], 50, 50); ?></a></td>
|
||||
<td headers="" class="td_input"><input type="text" name="it_name[<?php echo $i; ?>]" value="<?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?>" required class="frm_input frm_sit_title required" size="30"></td>
|
||||
<td headers="th_amt" class="td_numbig td_input"><input type="text" name="it_price[<?php echo $i; ?>]" value="<?php echo $row['it_price']; ?>" class="frm_input sit_amt" size="7"></td>
|
||||
<td headers="th_camt" class="td_numbig td_input"><input type="text" name="it_cust_price[<?php echo $i; ?>]" value="<?php echo $row['it_cust_price']; ?>" class="frm_input sit_camt" size="7"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td headers="" class="td_input"><input type="text" name="it_mobile_name[<?php echo $i; ?>]" value="<?php echo htmlspecialchars2(cut_str($row['it_mobile_name'],250, "")); ?>" class="frm_input frm_sit_title" size="30"></td>
|
||||
<td headers="th_pt" class="td_numbig td_input"><input type="text" name="it_point[<?php echo $i; ?>]" value="<?php echo $row['it_point']; ?>" class="frm_input sit_pt" size="7"></td>
|
||||
<td headers="th_qty" class="td_numbig td_input"><input type="text" name="it_stock_qty[<?php echo $i; ?>]" value="<?php echo $row['it_stock_qty']; ?>" class="frm_input sit_qty" size="7"></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="20" class="empty_table">자료가 한건도 없습니다.</td></tr>';
|
||||
echo '<tr><td colspan="10" class="empty_table">자료가 한건도 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_list">
|
||||
<input type="submit" name="act_button" value="선택수정" onclick="document.pressed=this.value">
|
||||
<?php if ($is_admin == 'super') { ?>
|
||||
<input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<!-- <div class="btn_confirm">
|
||||
<input type="submit" value="일괄수정" class="btn_submit" accesskey="s">
|
||||
</div> -->
|
||||
</form>
|
||||
|
||||
</section>
|
||||
<div class="btn_list">
|
||||
<input type="submit" name="act_button" value="선택수정" onclick="document.pressed=this.value">
|
||||
<?php if ($is_admin == 'super') { ?>
|
||||
<input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<!-- <div class="btn_confirm">
|
||||
<input type="submit" value="일괄수정" class="btn_submit" accesskey="s">
|
||||
</div> -->
|
||||
</form>
|
||||
|
||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user