묻고답하기
"적용" 버튼 클릭시 레이아웃이 바뀝니다.
2013.05.08 16:42
XE 1.5.4.2 버전이구요.
N스토어 쇼핑몰솔루션을 이용하여 홈페이지를 제작하고 있는데, 거의 다 왔습니다.
그런데, 제가 만든 레이아웃을 입고 나온 N스토어쇼핑몰 관리자 페이지 상태에서
특정 페이지의 "적용"이나 "등록" 버튼을 누르면 갑자기 XE관리자 레이아웃으로 갈아입고 나옵니다.
옷 갈아입지 않고 제가 만든 레이아웃을 계속 입고 나오게 코드를 어디서 어떻게 수정해야 하는지 모르겠습니다.
아래는 /xe/modules/nstore/tpl의 ordermanagement.html 입니다.
도와주세요;;;;;;
문제가 되는 버튼 부분을 빨간색으로 표시해놓겠습니다.
<load target="css/style.css" />
<load target="css/button.css" />
<load target="css/btn.css" />
<load target="js/script.js" />
<load target="js/escrow.js" />
<load target="js/ordermanagement.js" />
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<div class="order_menu">
<ul>
<li cond="0"><a href="{getUrl('status','0')}" class="active"|cond="$status=='0'">장바구니</a></li>
<li><a href="{getUrl('status','1')}" class="active"|cond="$status=='1'">입금대기</a></li>
<li><a href="{getUrl('status','2')}" class="active"|cond="$status=='2'">입금완료</a></li>
<li><a href="{getUrl('status','3')}" class="active"|cond="$status=='3'">배송준비</a></li>
<li><a href="{getUrl('status','4')}" class="active"|cond="$status=='4'">배송중</a></li>
<li><a href="{getUrl('status','5')}" class="active"|cond="$status=='5'">배송완료</a></li>
<li><a href="{getUrl('status','6')}" class="active"|cond="$status=='6'">거래완료</a></li>
<li><a href="{getUrl('status','A')}" class="active"|cond="$status=='A'">취소</a></li>
<li><a href="{getUrl('status','B')}" class="active"|cond="$status=='B'">반품</a></li>
<li><a href="{getUrl('status','C')}" class="active"|cond="$status=='C'">교환</a></li>
<li><a href="{getUrl('status','D')}" class="active"|cond="$status=='D'">환불</a></li>
</ul>
</div>
<form id="searchForm" action="./" method="get" class="fg form" style="clear:both;">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input type="hidden" name="status" value="{$status}" />
<input type="hidden" name="error_return_url" value="" />
<select name="search_key">
<option value="email_address" selected="selected"|cond="$search_key=='email_address'">{$lang->email_address}</option>
<option value="nick_name" selected="selected"|cond="$search_key=='nick_name'">{$lang->nick_name}</option>
<option value="email_id" selected="selected"|cond="$search_key=='email_id'">{$lang->user_id}</option>
<option value="user_name" selected="selected"|cond="$search_key=='user_name'">{$lang->user_name}</option>
<option value="purchaser_cellphone" selected="selected"|cond="$search_key=='purchaser_cellphone'">{$lang->mobile_phone}</option>
</select>
<input type="text" name="search_value" value="{$search_value}" />
<span class="kso_btn"><input type="submit" value="{$lang->cmd_find}" /></span>
</form>
<form action="./" method="post" id="fo_orderlist">
<input type="hidden" name="module" value="nstore" />
<input type="hidden" name="act" value="procNstoreAdminUpdateStatus" />
<input type="hidden" name="status" value="{$status}"/>
<div id="orderlist" class="table even easyList">
<table style="margin-bottom:20px;">
<caption style="text-align:right;">
<a href="{getUrl('act','dispNstoreAdminOrderExcelDownload')}" class="kso_btn"><span>엑셀파일다운</span></a>
</caption>
<thead>
<tr>
<th><input type="checkbox" title="Check All" id="check_all" /></th>
<th>주문일</th>
<th>상품명</th>
<th>품목</th>
<th>결제금액</th>
<th>구매자</th>
<th>배송정보</th>
<th cond="$module_config->escrow_yn=='Y'">에스크로</th>
<th></th>
</tr>
</thead>
{@$total_price=0}
<tbody>
<tr loop="$list=>$no,$order">
<th><input type="hidden" name="order_srls[]" value="{$order->order_srl}" /><input type="checkbox" name="cart[]" value="{$order->order_srl}" /></th>
<td>
<div>{zdate($order->regdate,'Y-m-d')}</div>
<div>(<a href="{getUrl('act','dispNstoreAdminOrderDetail','order_srl',$order->order_srl)}">{$order->order_srl}</a>)</div>
</td>
<td><span>{$order->title}</span></td>
<td>{number_format($order->item_count)}</td>
<td>{nstoreItem::formatMoney($order->total_price)}</td>
<td cond="!$order->nick_name">{$order->purchaser_name}</td>
<td cond="$order->nick_name">{$order->nick_name}</td>
<td>
<select name="express_id[]"><option loop="$delivery_companies=>$key,$val" value="{$key}" selected="selected"|cond="$order->express_id==$key">{$val}</option></select>
<input type="text" name="invoice_no[]" value="{$order->invoice_no}" placeholder="운송장번호" />
<a cond="$order->invoice_no" href="{$delivery_inquiry_urls[$order->express_id]}{$order->invoice_no}" class="kso_btn" target="_blank"><span>배송추적</span></a>
</td>
<td cond="$module_config->escrow_yn=='Y'" class="escrow" data-order-srl="{$order->order_srl}">
<a cond="$status!='0'" href="#" id="escrow_{$order->order_srl}" onclick="window.open('{getUrl('act','dispNstoreAdminEscrowDelivery','order_srl',$order->order_srl)}', 'popup', 'left=50, top=20, width=700, scrollbars=yes, height=700, toolbars=no'); return false;" data-order-srl="{$order->order_srl}"><img src="./img/loading.gif" /></a>
</td>
<td>
<a cond="0" href="#" class="kso_btn blue" onclick="window.open('{getUrl('act','dispNstoreAdminReceipt','order_srl',$order->order_srl)}', 'addressbook_popup', 'left=50, top=20, width=480, scrollbars=yes, height=540, toolbars=no'); return false;"><span>영수증</span></a>
<a cond="$status!='0'" href="#" class="kso_btn blue" onclick="window.open('{getUrl('act','dispNstoreAdminOrderSheet','order_srl',$order->order_srl)}', 'addressbook_popup', 'left=50, top=20, width=700, scrollbars=yes, height=700, toolbars=no'); return false;"><span>주문서출력</span></a>
</td>
{@$total_price+=$order->price}
</tr>
<tr cond="!count($list)">
<td colspan="9">주문 내역이 없습니다.</td>
</tr>
</tbody>
</table>
<div>
선택한 주문을
{@unset($order_status['0'])}
<select name="order_status">
<option value="2" selected="selected"|cond="$status=='1'">입금완료</option>
<option value="3" selected="selected"|cond="$status=='2'">배송준비</option>
<option value="4" selected="selected"|cond="$status=='3'">배송중</option>
<option value="5" selected="selected"|cond="$status=='4'">배송완료</option>
<option value="6" selected="selected"|cond="$status=='5'">거래완료</option>
<option value="A" selected="selected"|cond="$status=='6'">취소</option>
<option value="B" selected="selected"|cond="$status=='A'">반품</option>
<option value="C" selected="selected"|cond="$status=='B'">교환</option>
<option value="D" selected="selected"|cond="$status=='C'">환불</option>
<option value="Z">삭제</option>
</select>
</div>
</div>
<div class="btnArea">
<a href="#" class="kso_btn green" onclick="update_status();return false;"><span> {$lang->cmd_apply} </span></a>
</div>
</form>
<div class="search">
<form action="" class="pagination" method="post">
<input type="hidden" name="error_return_url" value="" />
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input cond="$order_target" type="hidden" name="order_target" value="{$order_target}" />
<input cond="$order_type" type="hidden" name="order_type" value="{$order_type}" />
<input cond="$category_srl" type="hidden" name="category_srl" value="{$category_srl}" />
<input cond="$childrenList" type="hidden" name="childrenList" value="{$childrenList}" />
<input cond="$search_keyword" type="hidden" name="search_keyword" value="{$search_keyword}" />
<a href="{getUrl('page', '')}" class="direction">« FIRST</a>
<block cond="$page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page && $page_navigation->page_count != $page_navigation->total_page">
{@$isGoTo = true}
<a href="{getUrl('page', '')}">1</a>
<a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
</block>
<!--@while($page_no = $page_navigation->getNextPage())-->
{@$last_page = $page_no}
<strong cond="$page_no == $page">{$page_no}</strong>
<a cond="$page_no != $page" href="{getUrl('page', $page_no)}">{$page_no}</a>
<!--@end-->
<block cond="$last_page != $page_navigation->last_page">
{@$isGoTo = true}
<a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
<a href="{getUrl('page', $page_navigation->last_page)}">{$page_navigation->last_page}</a>
</block>
<a href="{getUrl('page', $page_navigation->last_page)}" class="direction">LAST »</a>
<span cond="$isGoTo" id="goTo" class="tgContent">
<input name="page" title="{$lang->cmd_go_to_page}" />
<button type="submit">Go</button>
</span>
</form>
<form cond="0" action="" method="post">
<select name="search_target">
<option value="">{$lang->search_target}</option>
{@$lang->search_target_list = array_merge($lang->search_target_list, $usedIdentifiers)}
<option value="{$key}" loop="$lang->search_target_list=>$key,$val" selected="selected"|cond="$search_target==$key">{$val}</option>
</select>
<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" />
<input type="submit" value="{$lang->cmd_search}" />
<a href="{getUrl('search_target', '', 'search_keyword', '')}">{$lang->cmd_cancel}</a>
</form>
</div>
<div class="modal" id="deleteOrders">
<form action="./" class="fg form" method="post">
<input type="hidden" name="module" value="nstore" />
<input type="hidden" name="act" value="procNstoreAdminDeleteOrders" />
<input type="hidden" name="module_srl" value="{$module_srl}" />
<input type="hidden" name="status" value="{$status}" />
<input type="hidden" name="success_return_url" value="{getUrl('act', $act)}" />
<div id="deleteForm">
</div>
</form>
</div>
<span style="display:none;"><a href="#deleteOrders" class="modalAnchor deleteOrders">Hidden Button For Delete</a></span>
<script>
function update_status() {
var order_status = jQuery('select[name=order_status]').val();
if (order_status == 'Z') {
jQuery('a.modalAnchor.deleteOrders').trigger('open.mw');
} else {
var $fo = jQuery('#fo_orderlist');
$fo.submit();
}
}
(function($){
$('#check_all')
.bind('click', function(e){
if (this.checked){
$('input[name=cart\\[\\]]').attr('checked', 'checked');
}else{
$('input[name=cart\\[\\]]').removeAttr('checked');
}
});
$('.escrow').escrow();
})(jQuery);
/*
function update_status(stat) {
var order_srls = makeList();
//var str = order_srls.join(',');
var params = new Array();
params['order_srls'] = order_srls;
params['order_status'] = stat;
exec_xml('store', 'procNstoreUpdateStatus', params, function(ret_obj) { alert(ret_obj['message']); });
}
*/
</script>
nstore 에서 구매한 제품인데 레이아웃과의 css 충돌이 있다고 하면 nurigo에 문의할만한 내용이라고 생각됩니다.
한번 문의해 보세요.