Merge branch 'master' of github.com:gnuboard/yc4s
This commit is contained in:
@ -215,9 +215,23 @@ $pg_anchor ='<ul class="anchor">
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="it_name">상품명</label></th>
|
<th scope="row"><label for="it_name">상품명</label></th>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
|
<?php echo help("HTML 입력이 불가합니다."); ?>
|
||||||
<input type="text" name="it_name" value="<?php echo get_text(cut_str($it['it_name'], 250, "")); ?>" id="it_name" required class="frm_input required" size="95">
|
<input type="text" name="it_name" value="<?php echo get_text(cut_str($it['it_name'], 250, "")); ?>" id="it_name" required class="frm_input required" size="95">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><label for="it_basic">기본설명</label></th>
|
||||||
|
<td>
|
||||||
|
<?php echo help("상품명 하단에 상품에 대한 추가적인 설명이 필요한 경우에 입력합니다. HTML 입력도 가능합니다."); ?>
|
||||||
|
<input type="text" name="it_basic" value="<?php echo get_text($it['it_basic']); ?>" id="it_basic" class="frm_input" size="95">
|
||||||
|
</td>
|
||||||
|
<td class="td_grpset">
|
||||||
|
<input type="checkbox" name="chk_ca_it_basic" value="1" id="chk_ca_it_basic">
|
||||||
|
<label for="chk_ca_it_basic">분류적용</label>
|
||||||
|
<input type="checkbox" name="chk_all_it_basic" value="1" id="chk_all_it_basic">
|
||||||
|
<label for="chk_all_it_basic">전체적용</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="it_mobile_name">모바일 상품명</label></th>
|
<th scope="row"><label for="it_mobile_name">모바일 상품명</label></th>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
@ -338,19 +352,6 @@ $pg_anchor ='<ul class="anchor">
|
|||||||
<label for="chk_all_it_use">전체적용</label>
|
<label for="chk_all_it_use">전체적용</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="it_basic">기본설명</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("상품상세페이지의 상품설명 상단에 표시되는 설명입니다. HTML 입력도 가능합니다."); ?>
|
|
||||||
<input type="text" name="it_basic" value="<?php echo get_text($it['it_basic']); ?>" id="it_basic" class="frm_input" size="80">
|
|
||||||
</td>
|
|
||||||
<td class="td_grpset">
|
|
||||||
<input type="checkbox" name="chk_ca_it_basic" value="1" id="chk_ca_it_basic">
|
|
||||||
<label for="chk_ca_it_basic">분류적용</label>
|
|
||||||
<input type="checkbox" name="chk_all_it_basic" value="1" id="chk_all_it_basic">
|
|
||||||
<label for="chk_all_it_basic">전체적용</label>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">상품설명</th>
|
<th scope="row">상품설명</th>
|
||||||
<td colspan="2"> <?php echo editor_html('it_explan', $it['it_explan']); ?></td>
|
<td colspan="2"> <?php echo editor_html('it_explan', $it['it_explan']); ?></td>
|
||||||
|
|||||||
@ -256,6 +256,10 @@ $it_info_value = serialize($value_array);
|
|||||||
if($it_point_type == 1 && $it_point > 99)
|
if($it_point_type == 1 && $it_point > 99)
|
||||||
alert("포인트 비율을 0과 99 사이의 값으로 입력해 주십시오.");
|
alert("포인트 비율을 0과 99 사이의 값으로 입력해 주십시오.");
|
||||||
|
|
||||||
|
$it_name = strip_tags(trim($_POST['it_name']));
|
||||||
|
if ($it_name == "")
|
||||||
|
alert("상품명을 입력해 주십시오.");
|
||||||
|
|
||||||
$sql_common = " ca_id = '$ca_id',
|
$sql_common = " ca_id = '$ca_id',
|
||||||
ca_id2 = '$ca_id2',
|
ca_id2 = '$ca_id2',
|
||||||
ca_id3 = '$ca_id3',
|
ca_id3 = '$ca_id3',
|
||||||
|
|||||||
@ -77,6 +77,7 @@ class item_list
|
|||||||
protected $view_it_id = false; // 상품코드
|
protected $view_it_id = false; // 상품코드
|
||||||
protected $view_it_img = true; // 상품이미지
|
protected $view_it_img = true; // 상품이미지
|
||||||
protected $view_it_name = true; // 상품명
|
protected $view_it_name = true; // 상품명
|
||||||
|
protected $view_it_basic = true; // 기본설명
|
||||||
protected $view_it_price = true; // 판매가격
|
protected $view_it_price = true; // 판매가격
|
||||||
protected $view_it_cust_price = false; // 소비자가
|
protected $view_it_cust_price = false; // 소비자가
|
||||||
protected $view_it_icon = false; // 아이콘
|
protected $view_it_icon = false; // 아이콘
|
||||||
|
|||||||
@ -32,6 +32,7 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
|
|||||||
$list->set_view('it_img', true);
|
$list->set_view('it_img', true);
|
||||||
$list->set_view('it_id', false);
|
$list->set_view('it_id', false);
|
||||||
$list->set_view('it_name', true);
|
$list->set_view('it_name', true);
|
||||||
|
$list->set_view('it_basic', true);
|
||||||
$list->set_view('it_cust_price', false);
|
$list->set_view('it_cust_price', false);
|
||||||
$list->set_view('it_price', true);
|
$list->set_view('it_price', true);
|
||||||
$list->set_view('it_icon', true);
|
$list->set_view('it_icon', true);
|
||||||
@ -52,6 +53,7 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
|
|||||||
$list->set_type(2);
|
$list->set_type(2);
|
||||||
$list->set_view('it_id', false);
|
$list->set_view('it_id', false);
|
||||||
$list->set_view('it_name', true);
|
$list->set_view('it_name', true);
|
||||||
|
$list->set_view('it_basic', true);
|
||||||
$list->set_view('it_cust_price', false);
|
$list->set_view('it_cust_price', false);
|
||||||
$list->set_view('it_price', true);
|
$list->set_view('it_price', true);
|
||||||
$list->set_view('it_icon', true);
|
$list->set_view('it_icon', true);
|
||||||
@ -72,6 +74,7 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
|
|||||||
$list->set_type(3);
|
$list->set_type(3);
|
||||||
$list->set_view('it_id', false);
|
$list->set_view('it_id', false);
|
||||||
$list->set_view('it_name', true);
|
$list->set_view('it_name', true);
|
||||||
|
$list->set_view('it_basic', true);
|
||||||
$list->set_view('it_cust_price', false);
|
$list->set_view('it_cust_price', false);
|
||||||
$list->set_view('it_price', true);
|
$list->set_view('it_price', true);
|
||||||
$list->set_view('it_icon', true);
|
$list->set_view('it_icon', true);
|
||||||
@ -92,6 +95,7 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
|
|||||||
$list->set_type(4);
|
$list->set_type(4);
|
||||||
$list->set_view('it_id', false);
|
$list->set_view('it_id', false);
|
||||||
$list->set_view('it_name', true);
|
$list->set_view('it_name', true);
|
||||||
|
$list->set_view('it_basic', true);
|
||||||
$list->set_view('it_cust_price', false);
|
$list->set_view('it_cust_price', false);
|
||||||
$list->set_view('it_price', true);
|
$list->set_view('it_price', true);
|
||||||
$list->set_view('it_icon', true);
|
$list->set_view('it_icon', true);
|
||||||
@ -112,6 +116,7 @@ include_once(G5_SHOP_PATH.'/shop.head.php');
|
|||||||
$list->set_type(5);
|
$list->set_type(5);
|
||||||
$list->set_view('it_id', false);
|
$list->set_view('it_id', false);
|
||||||
$list->set_view('it_name', true);
|
$list->set_view('it_name', true);
|
||||||
|
$list->set_view('it_basic', true);
|
||||||
$list->set_view('it_cust_price', false);
|
$list->set_view('it_cust_price', false);
|
||||||
$list->set_view('it_price', true);
|
$list->set_view('it_price', true);
|
||||||
$list->set_view('it_icon', true);
|
$list->set_view('it_icon', true);
|
||||||
|
|||||||
@ -97,6 +97,7 @@ var itemlist_ca_id = "<?php echo $ca_id; ?>";
|
|||||||
$list->set_view('it_img', true);
|
$list->set_view('it_img', true);
|
||||||
$list->set_view('it_id', false);
|
$list->set_view('it_id', false);
|
||||||
$list->set_view('it_name', true);
|
$list->set_view('it_name', true);
|
||||||
|
$list->set_view('it_basic', true);
|
||||||
$list->set_view('it_cust_price', false);
|
$list->set_view('it_cust_price', false);
|
||||||
$list->set_view('it_price', true);
|
$list->set_view('it_price', true);
|
||||||
$list->set_view('it_icon', true);
|
$list->set_view('it_icon', true);
|
||||||
|
|||||||
@ -83,9 +83,9 @@ $total_count = $row['cnt'];
|
|||||||
$save['it_id'][$save['cnt']] = $row['it_id'];
|
$save['it_id'][$save['cnt']] = $row['it_id'];
|
||||||
$save[cnt]++;
|
$save[cnt]++;
|
||||||
}
|
}
|
||||||
|
mysql_free_result($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
mysql_free_result($result);
|
|
||||||
write_search_save($save);
|
write_search_save($save);
|
||||||
|
|
||||||
function write_search_save($save)
|
function write_search_save($save)
|
||||||
@ -106,7 +106,7 @@ $total_count = $row['cnt'];
|
|||||||
?>
|
?>
|
||||||
<div class="tbl_head01 tbl_wrap">
|
<div class="tbl_head01 tbl_wrap">
|
||||||
<table>
|
<table>
|
||||||
<caption><?php echo $ca_temp?><a href="./list.php?ca_id=<?php echo $save['ca_id']; ?>"><?php echo $row['ca_name']; ?></a> 상품<?php echo $save['cnt']; ?>개</caption>
|
<caption><?php echo $ca_temp?><a href="./list.php?ca_id=<?php echo $save['ca_id']; ?>"><?php echo $row['ca_name']; ?></a> 상품<?php echo (int)$save['cnt']; ?>개</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">이미지</td>
|
<th scope="col">이미지</td>
|
||||||
|
|||||||
@ -41,6 +41,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
|||||||
echo "<b>".stripslashes($row['it_name'])."</b>\n";
|
echo "<b>".stripslashes($row['it_name'])."</b>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->view_it_basic) {
|
||||||
|
echo "<b>".stripslashes($row['it_basic'])."</b>\n";
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->view_it_cust_price) {
|
if ($this->view_it_cust_price) {
|
||||||
echo "<span class=\"sct_cost\">".display_price($row['it_cust_price'])."</span>\n";
|
echo "<span class=\"sct_cost\">".display_price($row['it_cust_price'])."</span>\n";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,6 +41,10 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
|||||||
echo "<b>".stripslashes($row['it_name'])."</b>\n";
|
echo "<b>".stripslashes($row['it_name'])."</b>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->view_it_basic) {
|
||||||
|
echo "<b>".stripslashes($row['it_basic'])."</b>\n";
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->view_it_cust_price) {
|
if ($this->view_it_cust_price) {
|
||||||
echo "<span class=\"sct_cost\">".display_price($row['it_cust_price'])."</span>\n";
|
echo "<span class=\"sct_cost\">".display_price($row['it_cust_price'])."</span>\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user