Merge branch 'master' of github.com:gnuboard/yc5
This commit is contained in:
@ -44,32 +44,34 @@ $qstr1 = 'mb_name='.$_GET['mb_name'];
|
|||||||
<input type="text" name="mb_name" id="mb_name" value="<?php echo $mb_name; ?>" class="frm_input required" required size="20">
|
<input type="text" name="mb_name" id="mb_name" value="<?php echo $mb_name; ?>" class="frm_input required" required size="20">
|
||||||
<input type="submit" value="검색" class="btn_frmline">
|
<input type="submit" value="검색" class="btn_frmline">
|
||||||
</div>
|
</div>
|
||||||
<table>
|
<div class="tbl_head01 tbl_wrap">
|
||||||
<caption>검색결과</caption>
|
<table>
|
||||||
<thead>
|
<caption>검색결과</caption>
|
||||||
<tr>
|
<thead>
|
||||||
<th>회원이름</th>
|
<tr>
|
||||||
<th>회원아이디</th>
|
<th>회원이름</th>
|
||||||
<th>선택</th>
|
<th>회원아이디</th>
|
||||||
</tr>
|
<th>선택</th>
|
||||||
</thead>
|
</tr>
|
||||||
<tbody>
|
</thead>
|
||||||
<?php
|
<tbody>
|
||||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
<?php
|
||||||
?>
|
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
<tr>
|
?>
|
||||||
<td class="td_mbname"><?php echo $row['mb_name']; ?></td>
|
<tr>
|
||||||
<td><?php echo $row['mb_id']; ?></td>
|
<td class="td_mbname"><?php echo $row['mb_name']; ?></td>
|
||||||
<td class="scp_find_select"><button type="button" onclick="sel_member_id('<?php echo $row['mb_id']; ?>');">선택</button>
|
<td><?php echo $row['mb_id']; ?></td>
|
||||||
</tr>
|
<td class="scp_find_select"><button type="button" onclick="sel_member_id('<?php echo $row['mb_id']; ?>');">선택</button>
|
||||||
<?php
|
</tr>
|
||||||
}
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
if($i ==0)
|
if($i ==0)
|
||||||
echo '<tr><td colspan="3" class="empty_table">검색된 자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="3" class="empty_table">검색된 자료가 없습니다.</td></tr>';
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?'.$qstr1.'&page='); ?>
|
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?'.$qstr1.'&page='); ?>
|
||||||
|
|||||||
@ -56,9 +56,12 @@ $qstr1 = 'sch_target='.$_GET['sch_target'].'&sch_word='.$_GET['sch_word'];
|
|||||||
<div id="sch_target_frm" class="new_win scp_new_win">
|
<div id="sch_target_frm" class="new_win scp_new_win">
|
||||||
<h1>쿠폰 적용 <?php echo $html_title; ?>선택</h1>
|
<h1>쿠폰 적용 <?php echo $html_title; ?>선택</h1>
|
||||||
|
|
||||||
<p class="new_win_desc">
|
<div class="local_desc01 local_desc">
|
||||||
쿠폰을 적용할 <?php echo $t_desc1; ?> 선택하세요. <?php echo $t_desc2; ?> 많을 경우에는 검색 기능을 이용하세요.
|
<p>
|
||||||
</p>
|
쿠폰을 적용할 <?php echo $t_desc1; ?> 선택하세요.<br>
|
||||||
|
<?php echo $t_desc2; ?> 많을 경우에는 검색 기능을 이용하세요.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<form name="ftarget" method="get">
|
<form name="ftarget" method="get">
|
||||||
<input type="hidden" name="sch_target" value="<?php echo $_GET['sch_target']; ?>">
|
<input type="hidden" name="sch_target" value="<?php echo $_GET['sch_target']; ?>">
|
||||||
@ -69,32 +72,34 @@ $qstr1 = 'sch_target='.$_GET['sch_target'].'&sch_word='.$_GET['sch_word'];
|
|||||||
<input type="submit" value="검색" class="btn_frmline">
|
<input type="submit" value="검색" class="btn_frmline">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table>
|
<div class="tbl_head01 tbl_wrap">
|
||||||
<caption>검색결과</caption>
|
<table>
|
||||||
<thead>
|
<caption>검색결과</caption>
|
||||||
<tr>
|
<thead>
|
||||||
<th><?php echo $t_name; ?></th>
|
<tr>
|
||||||
<th><?php echo $t_id; ?></th>
|
<th scope="col"><?php echo $t_name; ?></th>
|
||||||
<th>선택</th>
|
<th scope="col"><?php echo $t_id; ?></th>
|
||||||
</tr>
|
<th scope="col">선택</th>
|
||||||
</thead>
|
</tr>
|
||||||
<tbody>
|
</thead>
|
||||||
<?php
|
<tbody>
|
||||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
<?php
|
||||||
?>
|
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
<tr>
|
?>
|
||||||
<td><?php echo $row['t_name']; ?></td>
|
<tr>
|
||||||
<td class="scp_target_code"><?php echo $row['t_id']; ?></td>
|
<td><?php echo $row['t_name']; ?></td>
|
||||||
<td class="scp_target_select"><button type="button" class="btn_frmline" onclick="sel_target_id('<?php echo $row['t_id']; ?>');">선택</button>
|
<td class="scp_target_code"><?php echo $row['t_id']; ?></td>
|
||||||
</tr>
|
<td class="scp_target_select"><button type="button" class="btn_frmline" onclick="sel_target_id('<?php echo $row['t_id']; ?>');">선택</button>
|
||||||
<?php
|
</tr>
|
||||||
}
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
if($i ==0)
|
if($i ==0)
|
||||||
echo '<tr><td colspan="3" class="empty_table">검색된 자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="3" class="empty_table">검색된 자료가 없습니다.</td></tr>';
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?'.$qstr1.'&page='); ?>
|
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?'.$qstr1.'&page='); ?>
|
||||||
|
|||||||
@ -595,7 +595,7 @@ $(function(){
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="btn_confirm01 btn_confirm">
|
<div class="btn_confirm02 btn_confirm">
|
||||||
<button type="button" id="option_table_create" class="btn_frmline">옵션목록생성</button>
|
<button type="button" id="option_table_create" class="btn_frmline">옵션목록생성</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -734,7 +734,7 @@ $(function(){
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div id="sit_option_addfrm_btn"><button type="button" id="add_supply_row" class="btn_frmline">옵션추가</button></div>
|
<div id="sit_option_addfrm_btn"><button type="button" id="add_supply_row" class="btn_frmline">옵션추가</button></div>
|
||||||
<div class="btn_confirm01 btn_confirm">
|
<div class="btn_confirm02 btn_confirm">
|
||||||
<button type="button" id="supply_table_create">옵션목록생성</button>
|
<button type="button" id="supply_table_create">옵션목록생성</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -1073,7 +1073,7 @@ $(function(){
|
|||||||
<a href="./itemlist.php?<?php echo $qstr; ?>">목록</a>
|
<a href="./itemlist.php?<?php echo $qstr; ?>">목록</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section id="anc_sitfrm_relation" class="cbox compare_wrap srel">
|
<section id="anc_sitfrm_relation" class="srel">
|
||||||
<h2 class="h2_frm">관련상품</h2>
|
<h2 class="h2_frm">관련상품</h2>
|
||||||
<?php echo $pg_anchor; ?>
|
<?php echo $pg_anchor; ?>
|
||||||
|
|
||||||
@ -1085,245 +1085,249 @@ $(function(){
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section class="compare_left">
|
<div class="compare_wrap">
|
||||||
<h3>등록된 전체상품 목록</h3>
|
<section class="compare_left">
|
||||||
<label for="sch_relation" class="sound_only">상품분류</label>
|
<h3>등록된 전체상품 목록</h3>
|
||||||
<span class="srel_pad">
|
<label for="sch_relation" class="sound_only">상품분류</label>
|
||||||
<select id="sch_relation">
|
<span class="srel_pad">
|
||||||
<option value=''>분류별 상품</option>
|
<select id="sch_relation">
|
||||||
<?php
|
<option value=''>분류별 상품</option>
|
||||||
$sql = " select * from {$g5['g5_shop_category_table']} ";
|
<?php
|
||||||
if ($is_admin != 'super')
|
$sql = " select * from {$g5['g5_shop_category_table']} ";
|
||||||
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
|
if ($is_admin != 'super')
|
||||||
$sql .= " order by ca_id ";
|
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
|
||||||
$result = sql_query($sql);
|
$sql .= " order by ca_id ";
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
$result = sql_query($sql);
|
||||||
{
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
$len = strlen($row['ca_id']) / 2 - 1;
|
{
|
||||||
|
$len = strlen($row['ca_id']) / 2 - 1;
|
||||||
|
|
||||||
$nbsp = "";
|
$nbsp = "";
|
||||||
for ($i=0; $i<$len; $i++)
|
for ($i=0; $i<$len; $i++)
|
||||||
$nbsp .= " ";
|
$nbsp .= " ";
|
||||||
|
|
||||||
echo "<option value=\"{$row['ca_id']}\">$nbsp{$row['ca_name']}</option>\n";
|
echo "<option value=\"{$row['ca_id']}\">$nbsp{$row['ca_name']}</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
<div id="relation" class="srel_list">
|
<div id="relation" class="srel_list">
|
||||||
<p>상품 검색을 위해 상품의 분류를 선택해주십시오.</p>
|
<p>상품 검색을 위해 상품의 분류를 선택해주십시오.</p>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
$("#sch_relation").change(function() {
|
$("#sch_relation").change(function() {
|
||||||
var ca_id = $(this).val();
|
var ca_id = $(this).val();
|
||||||
var $relation = $("#relation");
|
var $relation = $("#relation");
|
||||||
|
|
||||||
if(ca_id == "") {
|
if(ca_id == "") {
|
||||||
$relation.html("<p>상품 검색을 위해 상품의 분류를 선택해주십시오.</p>");
|
$relation.html("<p>상품 검색을 위해 상품의 분류를 선택해주십시오.</p>");
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#relation").load(
|
|
||||||
"./itemformrelation.php",
|
|
||||||
{ it_id: "<?php echo $it_id; ?>", ca_id: ca_id }
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#relation .add_item").live("click", function() {
|
|
||||||
// 이미 등록된 상품인지 체크
|
|
||||||
var $li = $(this).closest("li");
|
|
||||||
var it_id = $li.find("input:hidden").val();
|
|
||||||
var it_id2;
|
|
||||||
var dup = false;
|
|
||||||
$("#reg_relation input[name='re_it_id[]']").each(function() {
|
|
||||||
it_id2 = $(this).val();
|
|
||||||
if(it_id == it_id2) {
|
|
||||||
dup = true;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("#relation").load(
|
||||||
|
"./itemformrelation.php",
|
||||||
|
{ it_id: "<?php echo $it_id; ?>", ca_id: ca_id }
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
if(dup) {
|
$("#relation .add_item").live("click", function() {
|
||||||
alert("이미 선택된 상품입니다.");
|
// 이미 등록된 상품인지 체크
|
||||||
return false;
|
var $li = $(this).closest("li");
|
||||||
}
|
var it_id = $li.find("input:hidden").val();
|
||||||
|
var it_id2;
|
||||||
|
var dup = false;
|
||||||
|
$("#reg_relation input[name='re_it_id[]']").each(function() {
|
||||||
|
it_id2 = $(this).val();
|
||||||
|
if(it_id == it_id2) {
|
||||||
|
dup = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
var cont = "<li>"+$li.html().replace("add_item", "del_item").replace("추가", "삭제")+"</li>";
|
if(dup) {
|
||||||
var count = $("#reg_relation li").size();
|
alert("이미 선택된 상품입니다.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(count > 0) {
|
var cont = "<li>"+$li.html().replace("add_item", "del_item").replace("추가", "삭제")+"</li>";
|
||||||
$("#reg_relation li:last").after(cont);
|
var count = $("#reg_relation li").size();
|
||||||
} else {
|
|
||||||
$("#reg_relation").html("<ul>"+cont+"</ul>");
|
|
||||||
}
|
|
||||||
|
|
||||||
$li.remove();
|
if(count > 0) {
|
||||||
|
$("#reg_relation li:last").after(cont);
|
||||||
|
} else {
|
||||||
|
$("#reg_relation").html("<ul>"+cont+"</ul>");
|
||||||
|
}
|
||||||
|
|
||||||
|
$li.remove();
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#reg_relation .del_item").live("click", function() {
|
||||||
|
if(!confirm("상품을 삭제하시겠습니까?"))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
$(this).closest("li").remove();
|
||||||
|
|
||||||
|
var count = $("#reg_relation li").size();
|
||||||
|
if(count < 1)
|
||||||
|
$("#reg_relation").html("<p>선택된 상품이 없습니다.</p>");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
</script>
|
||||||
|
</section>
|
||||||
|
|
||||||
$("#reg_relation .del_item").live("click", function() {
|
<section class="compare_right">
|
||||||
if(!confirm("상품을 삭제하시겠습니까?"))
|
<h3>선택된 관련상품 목록</h3>
|
||||||
return false;
|
<span class="srel_pad"></span>
|
||||||
|
<div id="reg_relation" class="srel_sel">
|
||||||
|
<?php
|
||||||
|
$str = array();
|
||||||
|
$sql = " select b.ca_id, b.it_id, b.it_name, b.it_price
|
||||||
|
from {$g5['g5_shop_item_relation_table']} a
|
||||||
|
left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id)
|
||||||
|
where a.it_id = '$it_id'
|
||||||
|
order by ir_no asc ";
|
||||||
|
$result = sql_query($sql);
|
||||||
|
for($g=0; $row=sql_fetch_array($result); $g++)
|
||||||
|
{
|
||||||
|
$it_name = get_it_image($row['it_id'], 50, 50).' '.$row['it_name'];
|
||||||
|
|
||||||
$(this).closest("li").remove();
|
if($g==0)
|
||||||
|
echo '<ul>';
|
||||||
|
?>
|
||||||
|
<li>
|
||||||
|
<input type="hidden" name="re_it_id[]" value="<?php echo $row['it_id']; ?>">
|
||||||
|
<?php echo $it_name; ?>
|
||||||
|
<button type="button" class="del_item">삭제</button>
|
||||||
|
</li>
|
||||||
|
<?php
|
||||||
|
$str[] = $row['it_id'];
|
||||||
|
}
|
||||||
|
$str = implode(",", $str);
|
||||||
|
|
||||||
var count = $("#reg_relation li").size();
|
if($g > 0)
|
||||||
if(count < 1)
|
echo '</ul>';
|
||||||
$("#reg_relation").html("<p>선택된 상품이 없습니다.</p>");
|
else
|
||||||
});
|
echo '<p>선택된 상품이 없습니다.</p>';
|
||||||
});
|
?>
|
||||||
</script>
|
</div>
|
||||||
</section>
|
<input type="hidden" name="it_list" value="<?php echo $str; ?>">
|
||||||
|
</section>
|
||||||
|
|
||||||
<section class="compare_right">
|
</div>
|
||||||
<h3>선택된 관련상품 목록</h3>
|
|
||||||
<span class="srel_pad"></span>
|
|
||||||
<div id="reg_relation" class="srel_sel">
|
|
||||||
<?php
|
|
||||||
$str = array();
|
|
||||||
$sql = " select b.ca_id, b.it_id, b.it_name, b.it_price
|
|
||||||
from {$g5['g5_shop_item_relation_table']} a
|
|
||||||
left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id)
|
|
||||||
where a.it_id = '$it_id'
|
|
||||||
order by ir_no asc ";
|
|
||||||
$result = sql_query($sql);
|
|
||||||
for($g=0; $row=sql_fetch_array($result); $g++)
|
|
||||||
{
|
|
||||||
$it_name = get_it_image($row['it_id'], 50, 50).' '.$row['it_name'];
|
|
||||||
|
|
||||||
if($g==0)
|
|
||||||
echo '<ul>';
|
|
||||||
?>
|
|
||||||
<li>
|
|
||||||
<input type="hidden" name="re_it_id[]" value="<?php echo $row['it_id']; ?>">
|
|
||||||
<?php echo $it_name; ?>
|
|
||||||
<button type="button" class="del_item">삭제</button>
|
|
||||||
</li>
|
|
||||||
<?php
|
|
||||||
$str[] = $row['it_id'];
|
|
||||||
}
|
|
||||||
$str = implode(",", $str);
|
|
||||||
|
|
||||||
if($g > 0)
|
|
||||||
echo '</ul>';
|
|
||||||
else
|
|
||||||
echo '<p>선택된 상품이 없습니다.</p>';
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<input type="hidden" name="it_list" value="<?php echo $str; ?>">
|
|
||||||
</section>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="anc_sitfrm_event" class="cbox compare_wrap srel">
|
<section id="anc_sitfrm_event" class="srel">
|
||||||
<h2 class="h2_frm">관련이벤트</h2>
|
<h2 class="h2_frm">관련이벤트</h2>
|
||||||
<?php echo $pg_anchor; ?>
|
<?php echo $pg_anchor; ?>
|
||||||
|
|
||||||
<section class="compare_left">
|
<div class="compare_wrap">
|
||||||
<h3>등록된 전체이벤트 목록</h3>
|
<section class="compare_left">
|
||||||
<div id="event_list" class="srel_list srel_noneimg">
|
<h3>등록된 전체이벤트 목록</h3>
|
||||||
<?php
|
<div id="event_list" class="srel_list srel_noneimg">
|
||||||
$sql = " select ev_id, ev_subject from {$g5['g5_shop_event_table']} order by ev_id desc ";
|
<?php
|
||||||
$result = sql_query($sql);
|
$sql = " select ev_id, ev_subject from {$g5['g5_shop_event_table']} order by ev_id desc ";
|
||||||
for ($g=0; $row=sql_fetch_array($result); $g++) {
|
$result = sql_query($sql);
|
||||||
if($g == 0)
|
for ($g=0; $row=sql_fetch_array($result); $g++) {
|
||||||
echo '<ul>';
|
if($g == 0)
|
||||||
?>
|
echo '<ul>';
|
||||||
<li>
|
?>
|
||||||
<input type="hidden" name="ev_id[]" value="<?php echo $row['ev_id']; ?>">
|
<li>
|
||||||
<?php echo get_text($row['ev_subject']); ?>
|
<input type="hidden" name="ev_id[]" value="<?php echo $row['ev_id']; ?>">
|
||||||
<button type="button" class="add_event">추가</button>
|
<?php echo get_text($row['ev_subject']); ?>
|
||||||
</li>
|
<button type="button" class="add_event">추가</button>
|
||||||
<?php
|
</li>
|
||||||
}
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
if($g > 0)
|
if($g > 0)
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
else
|
else
|
||||||
echo '<p>등록된 이벤트가 없습니다.</p>';
|
echo '<p>등록된 이벤트가 없습니다.</p>';
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
$("#event_list .add_event").live("click", function() {
|
$("#event_list .add_event").live("click", function() {
|
||||||
// 이미 등록된 이벤트인지 체크
|
// 이미 등록된 이벤트인지 체크
|
||||||
var $li = $(this).closest("li");
|
var $li = $(this).closest("li");
|
||||||
var ev_id = $li.find("input:hidden").val();
|
var ev_id = $li.find("input:hidden").val();
|
||||||
var ev_id2;
|
var ev_id2;
|
||||||
var dup = false;
|
var dup = false;
|
||||||
$("#reg_event_list input[name='ev_id[]']").each(function() {
|
$("#reg_event_list input[name='ev_id[]']").each(function() {
|
||||||
ev_id2 = $(this).val();
|
ev_id2 = $(this).val();
|
||||||
if(ev_id == ev_id2) {
|
if(ev_id == ev_id2) {
|
||||||
dup = true;
|
dup = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if(dup) {
|
||||||
|
alert("이미 선택된 이벤트입니다.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var cont = "<li>"+$li.html().replace("add_event", "del_event").replace("추가", "삭제")+"</li>";
|
||||||
|
var count = $("#reg_event_list li").size();
|
||||||
|
|
||||||
|
if(count > 0) {
|
||||||
|
$("#reg_event_list li:last").after(cont);
|
||||||
|
} else {
|
||||||
|
$("#reg_event_list").html("<ul>"+cont+"</ul>");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(dup) {
|
$("#reg_event_list .del_event").live("click", function() {
|
||||||
alert("이미 선택된 이벤트입니다.");
|
if(!confirm("상품을 삭제하시겠습니까?"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
$(this).closest("li").remove();
|
||||||
|
|
||||||
|
var count = $("#reg_event_list li").size();
|
||||||
|
if(count < 1)
|
||||||
|
$("#reg_event_list").html("<p>선택된 이벤트가 없습니다.</p>");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="compare_right">
|
||||||
|
<h3>선택된 관련이벤트 목록</h3>
|
||||||
|
<div id="reg_event_list" class="srel_sel srel_noneimg">
|
||||||
|
<?php
|
||||||
|
$str = "";
|
||||||
|
$comma = "";
|
||||||
|
$sql = " select b.ev_id, b.ev_subject
|
||||||
|
from {$g5['g5_shop_event_item_table']} a
|
||||||
|
left join {$g5['g5_shop_event_table']} b on (a.ev_id=b.ev_id)
|
||||||
|
where a.it_id = '$it_id'
|
||||||
|
order by b.ev_id desc ";
|
||||||
|
$result = sql_query($sql);
|
||||||
|
for ($g=0; $row=sql_fetch_array($result); $g++) {
|
||||||
|
$str .= $comma . $row['ev_id'];
|
||||||
|
$comma = ",";
|
||||||
|
|
||||||
|
if($g == 0)
|
||||||
|
echo '<ul>';
|
||||||
|
?>
|
||||||
|
<li>
|
||||||
|
<input type="hidden" name="ev_id[]" value="<?php echo $row['ev_id']; ?>">
|
||||||
|
<?php echo get_text($row['ev_subject']); ?>
|
||||||
|
<button type="button" class="del_event">삭제</button>
|
||||||
|
</li>
|
||||||
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
var cont = "<li>"+$li.html().replace("add_event", "del_event").replace("추가", "삭제")+"</li>";
|
if($g > 0)
|
||||||
var count = $("#reg_event_list li").size();
|
echo '</ul>';
|
||||||
|
else
|
||||||
if(count > 0) {
|
echo '<p>선택된 이벤트가 없습니다.</p>';
|
||||||
$("#reg_event_list li:last").after(cont);
|
?>
|
||||||
} else {
|
</div>
|
||||||
$("#reg_event_list").html("<ul>"+cont+"</ul>");
|
<input type="hidden" name="ev_list" value="<?php echo $str; ?>">
|
||||||
}
|
</section>
|
||||||
});
|
</div>
|
||||||
|
|
||||||
$("#reg_event_list .del_event").live("click", function() {
|
|
||||||
if(!confirm("상품을 삭제하시겠습니까?"))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
$(this).closest("li").remove();
|
|
||||||
|
|
||||||
var count = $("#reg_event_list li").size();
|
|
||||||
if(count < 1)
|
|
||||||
$("#reg_event_list").html("<p>선택된 이벤트가 없습니다.</p>");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="compare_right">
|
|
||||||
<h3>선택된 관련이벤트 목록</h3>
|
|
||||||
<div id="reg_event_list" class="srel_sel srel_noneimg">
|
|
||||||
<?php
|
|
||||||
$str = "";
|
|
||||||
$comma = "";
|
|
||||||
$sql = " select b.ev_id, b.ev_subject
|
|
||||||
from {$g5['g5_shop_event_item_table']} a
|
|
||||||
left join {$g5['g5_shop_event_table']} b on (a.ev_id=b.ev_id)
|
|
||||||
where a.it_id = '$it_id'
|
|
||||||
order by b.ev_id desc ";
|
|
||||||
$result = sql_query($sql);
|
|
||||||
for ($g=0; $row=sql_fetch_array($result); $g++) {
|
|
||||||
$str .= $comma . $row['ev_id'];
|
|
||||||
$comma = ",";
|
|
||||||
|
|
||||||
if($g == 0)
|
|
||||||
echo '<ul>';
|
|
||||||
?>
|
|
||||||
<li>
|
|
||||||
<input type="hidden" name="ev_id[]" value="<?php echo $row['ev_id']; ?>">
|
|
||||||
<?php echo get_text($row['ev_subject']); ?>
|
|
||||||
<button type="button" class="del_event">삭제</button>
|
|
||||||
</li>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
|
|
||||||
if($g > 0)
|
|
||||||
echo '</ul>';
|
|
||||||
else
|
|
||||||
echo '<p>선택된 이벤트가 없습니다.</p>';
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<input type="hidden" name="ev_list" value="<?php echo $str; ?>">
|
|
||||||
|
|
||||||
</section>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@ -1385,45 +1389,47 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="anc_sitfrm_extra" class="cbox">
|
<section id="anc_sitfrm_extra">
|
||||||
<h2>여분필드 설정</h2>
|
<h2>여분필드 설정</h2>
|
||||||
<?php echo $pg_anchor ?>
|
<?php echo $pg_anchor ?>
|
||||||
|
|
||||||
<table class="frm_tbl">
|
<div class="tbl_frm01 tbl_wrap">
|
||||||
<colgroup>
|
<table>
|
||||||
<col class="grid_3">
|
<colgroup>
|
||||||
<col class="grid_12">
|
<col class="grid_4">
|
||||||
<col class="grid_3">
|
<col>
|
||||||
</colgroup>
|
<col class="grid_3">
|
||||||
<tbody>
|
</colgroup>
|
||||||
<?php for ($i=1; $i<=10; $i++) { ?>
|
<tbody>
|
||||||
<tr>
|
<?php for ($i=1; $i<=10; $i++) { ?>
|
||||||
<th scope="row">여분필드<?php echo $i ?></th>
|
<tr>
|
||||||
<td>
|
<th scope="row">여분필드<?php echo $i ?></th>
|
||||||
<label for="it_<?php echo $i ?>_subj">여분필드 <?php echo $i ?> 제목</label>
|
<td class="td_extra">
|
||||||
<input type="text" name="it_<?php echo $i ?>_subj" id="it_<?php echo $i ?>_subj" value="<?php echo get_text($it['it_'.$i.'_subj']) ?>" class="frm_input">
|
<label for="it_<?php echo $i ?>_subj">여분필드 <?php echo $i ?> 제목</label>
|
||||||
<label for="it_<?php echo $i ?>">여분필드 <?php echo $i ?> 값</label>
|
<input type="text" name="it_<?php echo $i ?>_subj" id="it_<?php echo $i ?>_subj" value="<?php echo get_text($it['it_'.$i.'_subj']) ?>" class="frm_input">
|
||||||
<input type="text" name="it_<?php echo $i ?>" value="<?php echo get_text($it['it_'.$i]) ?>" id="it_<?php echo $i ?>" class="frm_input">
|
<label for="it_<?php echo $i ?>">여분필드 <?php echo $i ?> 값</label>
|
||||||
</td>
|
<input type="text" name="it_<?php echo $i ?>" value="<?php echo get_text($it['it_'.$i]) ?>" id="it_<?php echo $i ?>" class="frm_input">
|
||||||
<td class="group_setting">
|
</td>
|
||||||
<input type="checkbox" name="chk_grp_<?php echo $i ?>" value="1" id="chk_grp_<?php echo $i ?>">
|
<td class="td_grpset">
|
||||||
<label for="chk_grp_<?php echo $i ?>">그룹적용</label>
|
<input type="checkbox" name="chk_grp_<?php echo $i ?>" value="1" id="chk_grp_<?php echo $i ?>">
|
||||||
<input type="checkbox" name="chk_all_<?php echo $i ?>" value="1" id="chk_all_<?php echo $i ?>">
|
<label for="chk_grp_<?php echo $i ?>">그룹적용</label>
|
||||||
<label for="chk_all_<?php echo $i ?>">전체적용</label>
|
<input type="checkbox" name="chk_all_<?php echo $i ?>" value="1" id="chk_all_<?php echo $i ?>">
|
||||||
</td>
|
<label for="chk_all_<?php echo $i ?>">전체적용</label>
|
||||||
</tr>
|
</td>
|
||||||
<?php } ?>
|
</tr>
|
||||||
<?php if ($w == "u") { ?>
|
<?php } ?>
|
||||||
<tr>
|
<?php if ($w == "u") { ?>
|
||||||
<th scope="row">입력일시</th>
|
<tr>
|
||||||
<td colspan="2">
|
<th scope="row">입력일시</th>
|
||||||
<?php echo help("상품을 처음 입력(등록)한 시간입니다."); ?>
|
<td colspan="2">
|
||||||
<?php echo $it['it_time']; ?>
|
<?php echo help("상품을 처음 입력(등록)한 시간입니다."); ?>
|
||||||
</td>
|
<?php echo $it['it_time']; ?>
|
||||||
</tr>
|
</td>
|
||||||
<?php } ?>
|
</tr>
|
||||||
</tbody>
|
<?php } ?>
|
||||||
</table>
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="btn_confirm01 btn_confirm">
|
<div class="btn_confirm01 btn_confirm">
|
||||||
|
|||||||
@ -415,7 +415,6 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<?php
|
<?php
|
||||||
$sql = " select dl_company, dl_url, dl_tel from {$g5['g5_shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
|
$sql = " select dl_company, dl_url, dl_tel from {$g5['g5_shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
|
||||||
$dl = sql_fetch($sql);
|
$dl = sql_fetch($sql);
|
||||||
if ($od['od_settle_case'] == '계좌이체' || $od['od_settle_case'] == '가상계좌') {
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">배송회사</th>
|
<th scope="row">배송회사</th>
|
||||||
|
|||||||
@ -121,11 +121,16 @@ h2.h2_frm {padding-top:15px}
|
|||||||
/* 버튼 */
|
/* 버튼 */
|
||||||
.btn_confirm {margin:0 20px 10px}
|
.btn_confirm {margin:0 20px 10px}
|
||||||
|
|
||||||
.btn_confirm01 {clear:both;margin-bottom:20px;text-align:center}
|
.btn_confirm01 {clear:both;text-align:center}
|
||||||
.btn_confirm01 button {padding:0 15px;height:30px;border:0;background:#617d46;color:#fff;line-height:2.2em;vertical-align:middle;cursor:pointer}
|
.btn_confirm01 button {padding:0 15px;height:30px;border:0;background:#617d46;color:#fff;line-height:2.2em;vertical-align:middle;cursor:pointer}
|
||||||
.btn_confirm01 a {display:inline-block;padding:0 15px;height:30px;background:#617d46;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle}
|
.btn_confirm01 a {display:inline-block;padding:0 15px;height:30px;background:#617d46;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle}
|
||||||
.btn_confirm01 a:focus {background:#555}
|
.btn_confirm01 a:focus {background:#555}
|
||||||
|
|
||||||
|
.btn_confirm02 {clear:both;margin-top:10px;text-align:center}
|
||||||
|
.btn_confirm02 button {padding:0 15px;height:30px;border:0;background:#617d46;color:#fff;line-height:2.2em;vertical-align:middle;cursor:pointer}
|
||||||
|
.btn_confirm02 a {display:inline-block;padding:0 15px;height:30px;background:#617d46;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle}
|
||||||
|
.btn_confirm02 a:focus {background:#555}
|
||||||
|
|
||||||
.btn_submit {background:#ff3061}
|
.btn_submit {background:#ff3061}
|
||||||
.btn_confirm .btn_submit {padding:0 15px;border:0;height:30px;color:#fff}
|
.btn_confirm .btn_submit {padding:0 15px;border:0;height:30px;color:#fff}
|
||||||
.btn_cancel {display:inline-block;padding:0 15px;height:30px;border:0;background:#617d46;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle}
|
.btn_cancel {display:inline-block;padding:0 15px;height:30px;border:0;background:#617d46;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle}
|
||||||
@ -323,8 +328,8 @@ table .tr_bg1 {background:#f9f9f9}
|
|||||||
.td_datetime {width:130px;text-align:center}
|
.td_datetime {width:130px;text-align:center}
|
||||||
.td_delicom {width:100px}
|
.td_delicom {width:100px}
|
||||||
.td_etc {width:80px;text-align:center}
|
.td_etc {width:80px;text-align:center}
|
||||||
.td_extra label {display:inline-block;width:90px}
|
.td_extra label {display:inline-block;width:100px}
|
||||||
.td_extra input {margin-right:5px;width:140px}
|
.td_extra input {margin-right:5px;width:130px}
|
||||||
.td_grid {width:60px;text-align:center}
|
.td_grid {width:60px;text-align:center}
|
||||||
td.td_grpset {width:160px;border-left:1px solid #e9ecee;text-align:center}
|
td.td_grpset {width:160px;border-left:1px solid #e9ecee;text-align:center}
|
||||||
.td_id {width:150px}
|
.td_id {width:150px}
|
||||||
@ -511,7 +516,7 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
|||||||
#sit_option_frm fieldset .frm_input {margin:0 10px 0 5px;background:#fff !important;color:#000}
|
#sit_option_frm fieldset .frm_input {margin:0 10px 0 5px;background:#fff !important;color:#000}
|
||||||
|
|
||||||
#sit_option_addfrm_btn {position:relative}
|
#sit_option_addfrm_btn {position:relative}
|
||||||
#sit_option_addfrm_btn button {position:absolute;top:-38px;right:0}
|
#sit_option_addfrm_btn button {position:absolute;top:-32px;right:0}
|
||||||
|
|
||||||
#sit_option_addfrm .btn_list {margin:0 0 10px}
|
#sit_option_addfrm .btn_list {margin:0 0 10px}
|
||||||
#sit_option_addfrm fieldset {padding:10px;border:1px solid #e9e9e9;background:#f7f7f7;text-align:center}
|
#sit_option_addfrm fieldset {padding:10px;border:1px solid #e9e9e9;background:#f7f7f7;text-align:center}
|
||||||
@ -543,7 +548,7 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
|||||||
.srel section li {position:relative;border-bottom:1px solid #e9e9e9}
|
.srel section li {position:relative;border-bottom:1px solid #e9e9e9}
|
||||||
.srel .srel_list {height:auto !important;height:200px;max-height:200px;border:1px solid #ced9de;background:#f6f6f6;overflow-y:scroll}
|
.srel .srel_list {height:auto !important;height:200px;max-height:200px;border:1px solid #ced9de;background:#f6f6f6;overflow-y:scroll}
|
||||||
.srel .srel_sel {border:1px solid #ced9de;background:#fcfff2}
|
.srel .srel_sel {border:1px solid #ced9de;background:#fcfff2}
|
||||||
.srel .srel_list p, .srel .srel_sel p {text-align:center}
|
.srel .srel_list p, .srel .srel_sel p {padding:10px 0;text-align:center}
|
||||||
.srel .compare_left ul {margin:0;list-style:none}
|
.srel .compare_left ul {margin:0;list-style:none}
|
||||||
.srel button {position:absolute;top:12px;right:0}
|
.srel button {position:absolute;top:12px;right:0}
|
||||||
.srel .srel_noneimg li {padding:7px 0}
|
.srel .srel_noneimg li {padding:7px 0}
|
||||||
@ -553,7 +558,7 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
|||||||
/* 쿠폰관리 */
|
/* 쿠폰관리 */
|
||||||
.scp_new_win .empty_table {padding:30px 0}
|
.scp_new_win .empty_table {padding:30px 0}
|
||||||
|
|
||||||
#scp_list_find {margin:10px auto 20px;padding:20px;width:86%;border:1px solid #e9e9e9;background:#fff}
|
#scp_list_find {margin:10px 20px;padding:20px;border:1px solid #e9e9e9;background:#fff}
|
||||||
#scp_list_find .btn_frmline {line-height:1.5em !important}
|
#scp_list_find .btn_frmline {line-height:1.5em !important}
|
||||||
#scp_list_find label {font-weight:bold}
|
#scp_list_find label {font-weight:bold}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user