dbms_primeidc_init...1
This commit is contained in:
parent
082b941ad6
commit
befb10cda7
@ -103,9 +103,9 @@ class CouponController extends ClientController
|
||||
return $this->redirect->to(DBMS_SITE_URL . "/IdcCouponUseMK.cup?client_code=" . $this->service->getClientCode())->send();
|
||||
} catch (\PDOException $e) {
|
||||
$this->getServiceService()->rollback();
|
||||
return $this->redirect->back()->withInput()->with('error', '쿠폰 사용에 실패하였습니다.:' . $e->getMessage())->send();
|
||||
return $this->redirect->to(DBMS_SITE_URL . "/IdcCouponListMK.cup?client_code=" . $this->service->getClientCode())->withInput()->with('error', '쿠폰 사용에 실패하였습니다.:' . $e->getMessage())->send();
|
||||
} catch (\Exception $e) {
|
||||
return $this->redirect->back()->withInput()->with('error', '쿠폰 사용에 실패하였습니다.:' . $e->getMessage())->send();
|
||||
return $this->redirect->to(DBMS_SITE_URL . "/IdcCouponListMK.cup?client_code=" . $this->service->getClientCode())->withInput()->with('error', '쿠폰 사용에 실패하였습니다.:' . $e->getMessage())->send();
|
||||
}
|
||||
}
|
||||
} //Class
|
||||
|
||||
@ -19,6 +19,10 @@ class Session extends Http
|
||||
mkdir(APP_SESSION_PATH, APP_SESSION_PERMISSION, true);
|
||||
}
|
||||
session_save_path(APP_SESSION_PATH);
|
||||
// session_start() 하기 전에 반드시 세션ID를 세팅해야 함
|
||||
if (isset($_GET['PHPSESSID'])) {
|
||||
session_id($_GET['PHPSESSID']);
|
||||
}
|
||||
session_start();
|
||||
}
|
||||
}
|
||||
|
||||
@ -134,7 +134,6 @@
|
||||
@if ($client)
|
||||
<h3>고객명 : <a href="/serviceDetail.sev?client_code={{$client->getClientCode()}}">{{$client->getTitle()}}</a> / 쿠폰발급대상 : {{count($entities)}} 대</h3>
|
||||
@endif
|
||||
session:{{var_dump($session)}}
|
||||
@if ($session->hasFlash('error'))<div class="alert alert-danger">{{$session->getFlash('error')}}</div>@endif
|
||||
<div class="table-responsive" id="table">
|
||||
<input type="hidden" id="token">
|
||||
@ -173,7 +172,7 @@ session:{{var_dump($session)}}
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="text" name="title" value="" style="width:100%"></td>
|
||||
<td><input type="text" name="coupon" value="@if ($session->old('title')) ?? {{$entity->getCoupon()}}" @endif maxlength="3" size="3">/<input type="text" name="coupon_use" value="{{$entity->getUsedCoupon()}}" maxlength="3" size="3"> <a href="/IdcOnetimeList.sev?service_code={{$entity->getServiceCode()}}">내역</a>
|
||||
<td><input type="text" name="coupon" value="{{($session->old('title')) ?? $entity->getCoupon()}}" maxlength="3" size="3">/<input type="text" name="coupon_use" value="{{$entity->getUsedCoupon()}}" maxlength="3" size="3"> <a href="/IdcOnetimeList.sev?service_code={{$entity->getServiceCode()}}">내역</a>
|
||||
</td>
|
||||
<td>
|
||||
<select name="coupon_select" style="width:100%">
|
||||
|
||||
@ -19,40 +19,6 @@ var tableToExcel = (function(){
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(function()
|
||||
{
|
||||
//사용버튼/삭제
|
||||
$(".useCup").click(function()
|
||||
{
|
||||
var result = $(this).attr("val");
|
||||
if(result>0)
|
||||
window.location = $(this).attr("value")+"&token="+$("#token").val();
|
||||
else
|
||||
alert("사용할 쿠폰이 없습니다.");
|
||||
});
|
||||
//삭제, 수정
|
||||
$(".delBtn").click(function()
|
||||
{
|
||||
var temp= $(this).parents("tr").find("input");
|
||||
var a="&cupon_request_date="+$(temp[0]).val();
|
||||
var b="&cupon_current="+$(temp[1]).val();
|
||||
var c="&cupon_use="+$(temp[2]).val();
|
||||
var d="&cupon_result="+$(temp[3]).val();
|
||||
if($(temp[4]).prop("checked"))
|
||||
{
|
||||
e="&server_upgrade=o"
|
||||
}
|
||||
if($(temp[5]).prop("checked"))
|
||||
{
|
||||
e="&server_upgrade=x"
|
||||
}
|
||||
var f="&cupon_end_date="+$(temp[6]).val();
|
||||
var g="&cupon_note="+$(temp[7]).val();
|
||||
window.location = $(this).attr("value")+"&token="+$("#token").val()+a+b+c+d+e+f+g;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- 여기가 본 페이지이다 -->
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
@ -61,7 +27,9 @@ $(function()
|
||||
<h4><i class="fa fa-desktop fa-fw"></i> 도메인 쿠폰 리스트</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<c:import url="${phpurl}/dbms/client/coupon/index?&member_code=${member_code}&curPage=${curPage}" />
|
||||
<c:import url="${phpurl}/dbms/client/coupon/index?&member_code=${member_code}&curPage=${curPage}">
|
||||
<c:param name="PHPSESSID" value="${cookie.PHPSESSID.value}" />
|
||||
</c:import>
|
||||
</div>
|
||||
<!-- panel-body -->
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user