141 lines
6.0 KiB
PHP
141 lines
6.0 KiB
PHP
<?= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
|
|
<?= $this->section('content') ?>
|
|
<?php if ($error = session('error')): echo $viewDatas['service']->getHelper()->alert($error) ?><?php endif ?>
|
|
<div class="layout_top"><?= $this->include(LAYOUTS[$viewDatas['layout']]['path'] . '/top'); ?></div>
|
|
<!-- Layout Middle Start -->
|
|
<table class="layout_middle">
|
|
<tr>
|
|
<td class="layout_left">
|
|
<!-- Layout Left Start -->
|
|
<?= $this->include(LAYOUTS[$viewDatas['layout']]['path'] . '/left_menu'); ?>
|
|
<!-- Layout Left End -->
|
|
</td>
|
|
<td class="layout_right">
|
|
<!-- Layout Right Start -->
|
|
<div class="layout_header"><?= $this->include("templates/{$viewDatas['layout']}/index_header"); ?></div>
|
|
<div id="container" class="layout_content">
|
|
<link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<link href="/css/admin/client/detail.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<div class="index_body p-4">
|
|
<!-- index_body -->
|
|
<div class="row align-items-end rounded border border-gray p-2 mt-3">
|
|
<table class="table table-bordered table-hover table-striped">
|
|
<tr class="text-center">
|
|
<th rowspan="2">
|
|
<div><?= $viewDatas['entity']->getTitle() ?></div>
|
|
<div><a href="/admin/customer/payment?clientinfo_uid=<?= $viewDatas['entity']->getPK() ?>">[청구서발행]</a></div>
|
|
</th>
|
|
<th>도코</th>
|
|
<th>치바</th>
|
|
<th>VPN</th>
|
|
<th>일반</th>
|
|
<th>방어</th>
|
|
<th>전용</th>
|
|
<th>이벤트</th>
|
|
<th>테스트</th>
|
|
<th>대체</th>
|
|
<th>쿠폰</th>
|
|
<th>장기할인</th>
|
|
<th>예치금</th>
|
|
<th>전체요금</th>
|
|
<th>전체미납금</th>
|
|
</tr>
|
|
<tr class="text-center">
|
|
<td><?= $viewDatas['totalCounts']['tokyo_total'] ?></td>
|
|
<td><?= $viewDatas['totalCounts']['chiba_total'] ?></td>
|
|
<td><?= $viewDatas['totalCounts']['vpn']['total'] ?></td>
|
|
<td><?= $viewDatas['totalCounts']['normal']['total'] ?></td>
|
|
<td><?= $viewDatas['totalCounts']['defence']['total'] ?></td>
|
|
<td><?= $viewDatas['totalCounts']['dedicated']['total'] ?></td>
|
|
<td><?= $viewDatas['totalCounts']['event']['total'] ?></td>
|
|
<td><?= $viewDatas['totalCounts']['test']['total'] ?></td>
|
|
<td><?= $viewDatas['totalCounts']['alternative']['total'] ?></td>
|
|
<td><?= $viewDatas['entity']->getCouponBalance() ?>%</td>
|
|
<td><?= $viewDatas['entity']->getSaleRate() ?>%</td>
|
|
<td><?= $viewDatas['entity']->getAccountBalance() ?></td>
|
|
<td><?= array_key_exists($viewDatas['entity']->getPK(), $viewDatas['totalAmounts']) ? number_format($viewDatas['totalAmounts'][$viewDatas['entity']->getPK()]) : 0 ?></td>
|
|
<td><?= array_key_exists($viewDatas['entity']->getPK(), $viewDatas['unPaids']) ? number_format($viewDatas['unPaids'][$viewDatas['entity']->getPK()]['amount']) : 0 ?></td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="row align-items-center rounded border border-gray p-2 mt-3">
|
|
<div class="col-1">
|
|
<div class="text-center fw-bold">고객 비고</div>
|
|
</div>
|
|
<div class="col-10">
|
|
<textarea class="form-control note-box"><?= nl2br($viewDatas['entity']->getHistory()) ?></textarea>
|
|
</div>
|
|
<div class="col-1">
|
|
<button class="btn btn-primary">저장</button>
|
|
</div>
|
|
</div>
|
|
<?php foreach ($viewDatas['serviceEntities'] as $serviceEntity): ?>
|
|
<div class="row align-items-end rounded border border-gray p-2 mt-3">
|
|
<table class="table table-bordered table-hover table-striped">
|
|
<tr class="text-center">
|
|
<th><a href="#">[상세정보]</a></th>
|
|
<th>사이트</th>
|
|
<th>위치</th>
|
|
<th>형식</th>
|
|
<th>CPU</th>
|
|
<th>메모리</th>
|
|
<th>저장장치</th>
|
|
<th>OS</th>
|
|
<th>SOFTWARE</th>
|
|
<th>IP주소</th>
|
|
<th>CS</th>
|
|
<th>결제처리</th>
|
|
</tr>
|
|
<tr class="text-center">
|
|
<td rowspan="4">
|
|
<div><?= $serviceEntity->getCode() ?></div>
|
|
<div><?= $serviceEntity->getServerEntity()->getCode() ?></div>
|
|
</td>
|
|
<td><?= $viewDatas['serviceService']->getHelper()->getFieldView('site', $serviceEntity->getSite(), $viewDatas) ?></td>
|
|
<td><?= $viewDatas['serviceService']->getHelper()->getFieldView('location', $serviceEntity->getLocation(), $viewDatas) ?></td>
|
|
<td><?= $viewDatas['serviceService']->getHelper()->getFieldView('type', $serviceEntity->getType(), $viewDatas) ?></td>
|
|
<td>CPU</td>
|
|
<td>메모리</td>
|
|
<td>저장장치</td>
|
|
<td>OS</td>
|
|
<th>SOFTWARE</th>
|
|
<th>IP주소</th>
|
|
<th>CS</th>
|
|
<td rowspan="4">
|
|
<table class="table">
|
|
<tr class="text-center">
|
|
<th class="text-start fw-bold">결제일</th>
|
|
<td>2025-09-11</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-start fw-bold">결제금</th>
|
|
<td class="amount-green">500,000</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-start fw-bold">미납금</th>
|
|
<td class="amount-red">500,000</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th colspan="10">서비스 비고</th>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="10">서비스 비고</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<!-- index_body -->
|
|
</div>
|
|
<div class="layout_footer"><?= $this->include("templates/{$viewDatas['layout']}/index_footer"); ?></div>
|
|
<!-- Layout Right End -->
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- Layout Middle End -->
|
|
<div class="layout_bottom"><?= $this->include(LAYOUTS[$viewDatas['layout']]['path'] . '/bottom'); ?></div>
|
|
<?= $this->endSection() ?>
|