XpressEngine에 관련 내용에 대해서 이야기 합니다.
답변 너무 감사했습니다.
알려주신데로 한번 시도 해봤습니다.
하지만 정상작동을 안하네요... 한번 봐주실수 있을까요? 감사합니다 ㅜㅜ
스킨에서 수정한것은 빨간색 글씨입니다.
아래 덧글은 클래스 파일입니다..;;;
<!--#include("_header.html")-->
<!--#include("../classfile/Class_actCDN.class")-->
<!--%import("../../tpl/js/shopxe.js")-->
<!--%load_js_plugin("ui.datepicker")-->
<div class="titleBox">
<div class="subject"><h3><span>주문목록</span></h3></div>
<div class="memo">
<span>주문내역을 조회할 수 있고, 취소/교환/반품 신청 내역을 확인하실 수 있습니다.</span>
</div>
</div>
<div class="lineClear"></div>
<table width="100%" cellpadding="0" cellspacing="0" class="e_point_seacher">
<tr>
<th>기간별 조회 : </th>
<td>
<input type="hidden" name="created_at" id="created_at" value="{$created_at}" />
<input type="text" value="{$v_created_at}" readonly="readonly" class="inputDate inputTypeText font_numeric" />
~
<input type="hidden" name="created_at_end" id="created_at_end" value="{$created_at_end}" />
<input type="text" value="{$v_created_at_end}" readonly="readonly" class="inputDate inputTypeText font_numeric" />
<a href="#" onClick="location.href="current_url.setQuery('created_at',jQuery('#created_at').val()).setQuery('created_at_end',jQuery('#created_at_end').val());" class="button white"><span>조회</span></a>
</td>
</tr>
</table>
<table class="shopList" summary="주문 목록리스트">
<caption>주문 목록리스트</caption>
<colgroup>
<col width="7%">
<col width="25%">
<col width="20%">
<col width="10%">
<col width="8%">
<col width="10%">
<col width="10%">
<col width="10%">
</colgroup>
<thead>
<tr>
<th>주문일자</th>
<th>상품명</th>
<th>주문총액</th>
<th>배송비</th>
<th>결제총액</th>
<th>주문상태</th>
<th>기타</th>
</tr>
</thead>
<tbody>
<!--@if( $purchase_list == null )-->
<tr height="25">
<td colspan="7"> 주문내역이 없습니다. </td>
</tr>
<!--@else-->
<!--@foreach($purchase_list as $no => $val)-->
<tr height="25">
<td>
{zdate($val->created_at,"Y-m-d")}
<br/>
({$val->purchase_srl})
</td>
<td>
<purchase_items">!--@foreach($val->purchase_items as $no1 => $val1)-->
{@$output_item = $val1->get('item')}
<div class="cartProduct">
<!--@if( $val->step > 0 )-->
{@
$classinfo=new class_actCDN();
$newone = classinfo->actCDN($output_item->get('title');
}
<a href="{$newone}">
<!--@else-->
<a href="{getUrl('act','dispShopxeInsertPurchase','purchase_srl',$val->purchase_srl)}" >
<!--@end-->
<getThumbnail(70,40,'crop'">!--@if($output_item->getThumbnail(70,40,'crop') == null)-->
<img src="img/common/img_blank.gif" width="70" height="40" />
<!--@else-->
<img src="{$output_item->getThumbnail(70,40,'crop')}" width="70" height="40" />
<!--@end-->
{$output_item->get('title')}
</a>
</div>
<!--@end-->
</td>
<td>{number_format($val->order_amount)} {$lang->money_unit}</td>
<td>{number_format($val->delivery_amount)} {$lang->money_unit}</td>
<td>{number_format($val->order_amount+$val->delivery_amount-$val->discount_amount)} {$lang->money_unit}</td>
<td>{$paymentState[$val->step]}</td>
<td>
<div>
<a href="{getUrl(','act','dispShopxePurchaseResult','purchase_srl',$val->purchase_srl)}" class="button white" ><span>주문확인</span></a>
<!--@if( $val->step == 0 )-->
<!--@if( $val->payment_call != "BK" )-->
<a href="{getUrl('act','dispShopxeInsertPurchase','purchase_srl',$val->purchase_srl)}" class="button white" ><span>결제하기</span></a>
<!--@end-->
<a href="{getUrl('act','dispShopxeDeletePurchase','purchase_srl',$val->purchase_srl)}" class="button white"><span>주문취소</span></a>
<!--@elseif( $val->step == 1 )-->
<a href="{getUrl(','mid',$module_info->mid,'act','dispShopxeUpdatePurchaseStep','purchase_srl',$val->purchase_srl,'step',8)}" class="button white"><span>환불신청</span></a>
<!--@elseif( $val->step == 3 )-->
<a href="{getUrl(','mid',$module_info->mid,'act','dispShopxeUpdatePurchaseStep','purchase_srl',$val->purchase_srl,'step',4)}" class="button white"><span>수령확인</span></a>
<a href="{getUrl(','mid',$module_info->mid,'act','dispShopxeUpdatePurchaseStep','purchase_srl',$val->purchase_srl,'step',11)}" class="button white"><span>반품신청</span></a>
<a href="{getUrl(','mid',$module_info->mid,'act','dispShopxeUpdatePurchaseStep','purchase_srl',$val->purchase_srl,'step',13)}" class="button white"><span>교환신청</span></a>
<!--@end-->
</div>
</td>
</tr>
<!--@end-->
<!--@end-->
</tbody>
</table>
<!--@if( $purchase_list != null )--> <script type="text/javascript"> $(this).prev('input[type="hidden"]').val(this.value.replace(/-/g,""))}
<!-- 페이지 네비게이션 -->
<div class="shopPaginate">
<a href="{getUrl('page','','module_srl','')}" class="prevEnd"><</a>
<!--@while($page_no = $page_navigation->getNextPage())-->
<!--@if($page == $page_no)-->
<strong>{$page_no}</strong>
<!--@else-->
<a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a>
<!--@end-->
<!--@end-->
<a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="nextEnd">></a>
</div>
<<script ">!--@end-->
(function($){
$(function(){
var option = { gotoCurrent: false,yearRange:'-100:+10', onSelect:function(){
};
$.extend(option,$.datepicker.regional['{$lang_type}']);
$(".inputDate").datepicker(option);
});
})(jQuery);
</script>
<!--#include("_footer.html")-->
라르게덴
- 2010.11.30
- 20:45:23
- (*.6.196.189)
<!--#include("../classfile/Class_actCDN.class")-->
왜 ../ 이거죠? 스킨 상위에 다른스킨 이름의 classfile을 찾기될텐데요?
<!--#include("./classfile/Class_actCDN.class")-->
{@
$classinfo=new class_actCDN();
$newone = classinfo->actCDN($output_item->get('title');
}
classinfo->actCDN() <- 변수 $ 안쓰신거 오타인가요? 끝에 )도 한번 더 넣어주셔야 하는데요.
{@
$classinfo=new class_actCDN();
$newone = $classinfo->actCDN($output_item->get('title'));
}
여기에 적는 과정에서 실수하신건지 원래소스를 저리 하신건지 잘 모르겠습니다만 여기에만 실수하신거라면 특별히 문제가 될 만한 요소는 없어보입니다.
<?php
class class_actCDN
{
function class_actCDN()
{
$a=100;
}
function actCDN($mms_Url)
{
$Url = "mms://ez-study.nefficient.jp/ez-study/" + $mms_Url + ".wmv";
$id = "eztest";
$cmd=exec("/keygen".$Url." ".$id." ".$REMOTE_ADDR);
$mediakey= $cmd;
$fullurl = $Url + "?key=" + $mediakey;
return $fullurl;
}
function returnTest()
{
return 100;
}
}
?>