dbms_primeidc/extdbms/writeable/cache/dbms.client.point.index_f85f411dc6d56670566d372bcb2f7bc835cf6017.bladec
2025-04-23 16:34:53 +09:00

42 lines
2.5 KiB
Plaintext

<?php $_shouldextend[1]=1; ?>
<?php $this->startSection('title', 'Point 관리리'); ?>
<?php $this->startSection('content'); ?>
<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;">현재금액</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 $__currentLoopData = $entities; $this->addLoop($__currentLoopData);$this->getFirstLoop();
foreach($__currentLoopData as $entity): $loop = $this->incrementLoopIndices(); ?>
<tr>
<td><?php echo \htmlentities($total-(($curPage-1)*$perPage+$i)??'', ENT_QUOTES, 'UTF-8', false); ?></td>
<td><?php echo \htmlentities($entity->getTitle()??'', ENT_QUOTES, 'UTF-8', false); ?></td>
<td><?php echo \htmlentities($clients[$entity->getClientCode()]->getTitle()??'', ENT_QUOTES, 'UTF-8', false); ?></td>
<td><?php echo \htmlentities(number_format($clients[$entity->getClientCode()]->getPoint())??'', ENT_QUOTES, 'UTF-8', false); ?></td>
<td><?php echo \htmlentities(number_format($entity->getType() == 'deposit' ? $entity->getAmount() : 0)??'', ENT_QUOTES, 'UTF-8', false); ?></td>
<td><?php echo \htmlentities(number_format($entity->getType() == 'withdrawal' ? $entity->getAmount() : 0)??'', ENT_QUOTES, 'UTF-8', false); ?></td>
<td><?php echo \htmlentities(date('Y-m-d',strtotime($entity->getCreatedAt()))??'', ENT_QUOTES, 'UTF-8', false); ?></td>
<td><?php echo \htmlentities($entity->getNote()??'', ENT_QUOTES, 'UTF-8', false); ?></td>
</tr>
<?php $i++ ?>
<?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
</tbody>
</table>
<div style="text-align:center;"><?php echo $pagination->render(DBMS_SITE_URL . "/IdcClientPointList.cli", ['client_code' => $client_code, 'curPage' => $curPage, 'perPage' => $perPage]); ?></div>
<?php $insert_url = DBMS_SITE_URL . "/IdcClientPointInsert.cli?client_code=" . $client_code ?>
<div style="text-align:center;"><button type="button" class="btn btn-primary" onclick="location.href='<?php echo \htmlentities($insert_url??'', ENT_QUOTES, 'UTF-8', false); ?>'">포인트 추가</button></div>
</div>
<?php $this->stopSection(); ?>
<?php if (isset($_shouldextend[1])) { echo $this->runChild('layout'); } ?>