dbms_primeidc/extdbms/lib/Views/dbms/client/coupon/client.php
2025-04-11 15:46:14 +09:00

44 lines
2.6 KiB
PHP

<h3>고객명 : <a href="/serviceDetail.sev?client_code=<?= $this->client->getClientCode() ?>"><?= $this->client->getTitle() ?></a> / 쿠폰발급대상 : <?= count($this->services) ?> 대 / 전체 남은 수량 : <?= $this->total_coupon; ?> 개</h3>
<div class="table-responsive" id="table">
<input type="hidden" id="token">
<table class="table table-bordered table-hover table-striped" style="text-align:center;">
<thead>
<tr>
<th style="text-align:center;">No</th>
<th style="text-align:center;">서비스코드</th>
<th style="text-align:center;">장비명</th>
<th style="text-align:center;">서버IP</th>
<th style="text-align:center;">서비스개시일</th>
<th style="text-align:center;">회선종류</th>
<th style="text-align:center;">쿠폰 누적수</th>
<th style="text-align:center;">쿠폰 잔량수</th>
<th style="text-align:center;">쿠폰 사용수</th>
<th style="text-align:center;">사용</th>
</tr>
</thead>
<tbody>
<?php $i = 0; ?>
<?php foreach ($this->services as $service) { ?>
<?php $num = count($this->services) - $i; ?>
<tr>
<td><?= $num ?></td>
<td><a href="/serviceDetailSolo.sev?client_code=<?= $service->getClientCode() ?>&service_code=<?= $service->getServiceCode() ?>"><?= $service->getServiceCode() ?></td>
<td><?= $service->getServerCode() ?></td>
<td><?= $service->service_ip ?></td>
<td><?= $service->service_open_date ?></td>
<td><?= $service->service_line ?></td>
<td><?= $service->getCoupon() + $service->getUsedCoupon() ?></td>
<td onclick="location.href='/IdcCouponBuyMK.cup?service_code=<?= $service->getServiceCode() ?>&mkid=<?= $this->member->getPK() ?>'" style=" cursor: pointer;"><?= $service->getCoupon() ?></td>
<td><?= $service->getUsedCoupon() ?></td>
<?php if (!$service->getCoupon()) { ?>
<td><a href="/IdcCouponBuyMK.cup?service_code=<?= $service->getServiceCode() ?>&mkid=<?= $this->member->getPK() ?>">사용완료</a></td>
<?php } else { ?>
<td><a href="/IdcCouponBuyMK.cup?service_code=<?= $service->getServiceCode() ?>&mkid=<?= $this->member->getPK() ?>">사용하기</a></td>
<?php } ?>
</tr>
<?php $i++; ?>
<?php } ?>
</tbody>
</table>
</div>
<div align='center'><?= $this->pagination->render(DBMS_SITE_URL . "/IdcCouponUseMK.cup", ['client_code' => $this->client->getClientCode(), 'member_code' => $this->member->getPK(), 'curPage' => $this->curPage, 'perPage' => $this->perPage]) ?></div>