dbms_primeidc_init...1
This commit is contained in:
parent
779f46b513
commit
d3a8a6943a
@ -46,3 +46,40 @@ define('DBMS_SITEINFOS', [
|
||||
],
|
||||
]
|
||||
]);
|
||||
define('DBMS_SERVICE_SWITCHCODE', [
|
||||
'Chiba' => ['begin' => 'C00%', 'end' => 'C64%'],
|
||||
'Tokyo' => ['begin' => 'C80%', 'end' => 'C99%']
|
||||
]);
|
||||
define('DBMS_SERVICE_LINE', [
|
||||
'normal' => '일반',
|
||||
'defence' => '방어',
|
||||
'solo' => '전용',
|
||||
'substitution' => '대체',
|
||||
'test' => '테스트',
|
||||
'vpn' => 'VPN',
|
||||
'event' => '이벤트',
|
||||
]);
|
||||
define('DBMS_SERVICE_STATUS', [
|
||||
'o' => '정상',
|
||||
'x' => '정지',
|
||||
's' => '정지예정',
|
||||
'c' => '취소',
|
||||
]);
|
||||
define('DBMS_SERVICE_STATUS_COLOR', [
|
||||
'o' => 'success',
|
||||
'x' => 'danger',
|
||||
's' => 'warning',
|
||||
'c' => 'info',
|
||||
]);
|
||||
define('DBMS_SERVICE_STATUS_TEXT', [
|
||||
'o' => '정상',
|
||||
'x' => '정지',
|
||||
's' => '정지예정',
|
||||
'c' => '취소',
|
||||
]);
|
||||
define('DBMS_SERVICE_STATUS_TEXT_COLOR', [
|
||||
'o' => 'success',
|
||||
'x' => 'danger',
|
||||
's' => 'warning',
|
||||
'c' => 'info',
|
||||
]);
|
||||
|
||||
@ -10,9 +10,8 @@ class CouponController extends BaseController
|
||||
$this->getView()->setPath('coupon');
|
||||
} //
|
||||
|
||||
//Dashboard , default_alert.php
|
||||
//CLI 접속방법 : php index.php SiteController/dashboard
|
||||
//WEB 접속방법 : http://localhost/SiteController/dashboard
|
||||
//CLI 접속방법 : php index.php site/counpon
|
||||
//WEB 접속방법 : http://localhost/site/coupon
|
||||
public function index()
|
||||
{
|
||||
return $this->render(__FUNCTION__);
|
||||
|
||||
@ -61,15 +61,15 @@ class DashboardController extends BaseController
|
||||
return $this->_historyService;
|
||||
}
|
||||
//Dashboard , default_alert.php
|
||||
//CLI 접속방법 : php index.php SiteController/dashboard
|
||||
//WEB 접속방법 : http://localhost/SiteController/dashboard
|
||||
//CLI 접속방법 : php index.php site/dashboard/topboard
|
||||
//WEB 접속방법 : http://localhost/site/dashboard/topboard
|
||||
public function topboard()
|
||||
{
|
||||
// 최근7일 신규서버수
|
||||
//예외,service_line = "test","substitution"
|
||||
$excepts = ["test", "substitution"];
|
||||
$this->day = intval($_ENV['SITE_DASHBOARD_DAY'] ?? $_SERVER['SITE_DASHBOARD_DAY'] ?? 7);
|
||||
$this->newServers = $this->getServiceService()->getNewServerCount($this->day, $excepts);
|
||||
$this->newServers = $this->getServiceService()->getLatestCount($this->day, $excepts);
|
||||
// 금일기준 미납서버수
|
||||
//예외,service_line = "test","substitution",C012:게임윙,C116:WinIDC,C219:IDC-JP
|
||||
$excepts = ["test", "substitution", 'C116', 'C012', 'C219'];
|
||||
@ -78,8 +78,8 @@ class DashboardController extends BaseController
|
||||
}
|
||||
|
||||
//서비스카운팅 , total_counting.php
|
||||
//CLI 접속방법 : php index.php site/totalcount/sitekey/dbms.prime-idc.jp
|
||||
//WEB 접속방법 : http://localhost/site/totalcount/sitekey/dbms.prime-idc.jp
|
||||
//CLI 접속방법 : php index.php site/dashboard/totalcount/sitekey/도메인
|
||||
//WEB 접속방법 : http://localhost/site/dashboard/totalcount/sitekey/도메인
|
||||
public function totalcount(mixed $sitekey = null)
|
||||
{
|
||||
if ($sitekey === null) {
|
||||
@ -90,7 +90,7 @@ class DashboardController extends BaseController
|
||||
}
|
||||
//사이트 정보 가져오기
|
||||
$this->siteInfo = DBMS_SITEINFOS[$sitekey];
|
||||
$this->totalcount = $this->getServiceService()->getTotalCount($this->siteInfo);
|
||||
$this->totalcount = $this->getServiceService()->getTotalCountForDashboard($this->siteInfo);
|
||||
$summary = array();
|
||||
foreach ($this->siteInfo['totalcount_types'] as $type) {
|
||||
$summary[$type] = array("Tokyo" => 0, "Chiba" => 0);
|
||||
@ -114,13 +114,13 @@ class DashboardController extends BaseController
|
||||
return $this->render(__FUNCTION__);
|
||||
}
|
||||
//신규서버현황 new_server_list.php
|
||||
//CLI 접속방법 : php index.php SiteController/newservices/limit/5
|
||||
//WEB 접속방법 : http://localhost/SiteController/newservices/limit/5
|
||||
//CLI 접속방법 : php index.php site/dashboard/latest_service/limit/5
|
||||
//WEB 접속방법 : http://localhost/site/dashboard/latest_service/limit/5
|
||||
public function latest_service(mixed $limit = 5)
|
||||
{
|
||||
//신규서버정보
|
||||
$this->limit = intval($limit);
|
||||
$this->entities = $this->getServiceService()->getNews($this->limit);
|
||||
$this->entities = $this->getServiceService()->getLatest($this->limit);
|
||||
// echo $this->getServiceervice()->getModel()->getLastQuery();
|
||||
//전체 관리자정보(등록자)
|
||||
$this->users = $this->getMemberService()->getEntities();
|
||||
@ -148,13 +148,13 @@ class DashboardController extends BaseController
|
||||
$this->kcss = $kcss;
|
||||
return $this->render(__FUNCTION__);
|
||||
}
|
||||
//CLI 접속방법 : php index.php SiteController/newhistorys/limit/5
|
||||
//WEB 접속방법 : http://localhost/SiteController/newhistorys/limit/5
|
||||
//CLI 접속방법 : php index.php site/dashboard/latest_history/limit/5
|
||||
//WEB 접속방법 : http://localhost/site/dashboard/latest_history/limit/5
|
||||
public function latest_history(mixed $limit = 5): string
|
||||
{
|
||||
//신규서버정보
|
||||
$this->limit = intval($limit);
|
||||
$this->entitys = $this->getHistoryService()->getNews($this->limit);
|
||||
$this->entitys = $this->getHistoryService()->getLatest($this->limit);
|
||||
//전체 서비스정보
|
||||
$this->services = $this->getServiceService()->getEntities();
|
||||
//services 고객정보
|
||||
|
||||
@ -24,8 +24,8 @@ class NavigatorController extends BaseController
|
||||
}
|
||||
|
||||
//부가서비스 : 닷디펜더,딥파인더 등, deepfinder_list.php,dotdefender_list.php
|
||||
//CLI 접속방법 : php index.php SiteController/extraservice/client_code/코드번호
|
||||
//WEB 접속방법 : http://localhost/SiteController/extraservice/sitekey/dbms.prime-idc.jp/client_code/코드번호
|
||||
//CLI 접속방법 : php index.php site/navigator//ipsearch
|
||||
//WEB 접속방법 : http://localhost/site/navigator/ipsearch
|
||||
public function ipsearch(): string
|
||||
{
|
||||
//전체 고객정보
|
||||
|
||||
@ -20,9 +20,9 @@ class PaymentController extends BaseController
|
||||
return $this->_clientService;
|
||||
}
|
||||
|
||||
//부가서비스 : 닷디펜더,딥파인더 등, deepfinder_list.php,dotdefender_list.php
|
||||
//CLI 접속방법 : php index.php SiteController/extraservice/client_code/코드번호
|
||||
//WEB 접속방법 : http://localhost/SiteController/extraservice/sitekey/dbms.prime-idc.jp/client_code/코드번호
|
||||
//청구서
|
||||
//CLI 접속방법 : php index.php site/payment/billpaper/sitekey/도메인/client_code/코드번호
|
||||
//WEB 접속방법 : http://localhost/site/payment/billpaper/sitekey/도메인/client_code/코드번호
|
||||
public function billpaper(mixed $sitekey = null, mixed $client_code = null): string
|
||||
{
|
||||
if ($sitekey === null) {
|
||||
|
||||
@ -31,9 +31,38 @@ class ServiceController extends BaseController
|
||||
return $this->_addDbService;
|
||||
}
|
||||
|
||||
//서비스카운팅 , total_counting_customer.php
|
||||
//CLI 접속방법 : php index.php site/service/totalcount/client_code/코드번호
|
||||
//WEB 접속방법 : http://localhost/site/service/totalcount/client_code/코드번호
|
||||
public function dashboard(mixed $client_code = null)
|
||||
{
|
||||
if ($client_code === null) {
|
||||
$client_code = $this->getSegments('client_code');
|
||||
if ($client_code === null) {
|
||||
throw new \Exception("client_code 값이 정의되지 않았습니다.");
|
||||
}
|
||||
}
|
||||
$this->client_code = $client_code;
|
||||
$dashboard = [];
|
||||
foreach (DBMS_SERVICE_SWITCHCODE as $district => $switchcodes) {
|
||||
$switchcode_begin = $switchcodes['begin'];
|
||||
$switchcode_end = $switchcodes['end'];
|
||||
$dashboard[$district] = $this->getServiceService()->getDistrictCountByClient(
|
||||
$client_code,
|
||||
$switchcode_begin,
|
||||
$switchcode_end
|
||||
);
|
||||
} //foreach
|
||||
foreach (array_keys(DBMS_SERVICE_LINE) as $service_line) {
|
||||
$dashboard[$service_line] = $this->getServiceService()->getServiceLineCountByClient($client_code, $service_line);
|
||||
} //foreach
|
||||
$dashboard['coupon'] = $this->getServiceService()->getCouponCountByClient($client_code);
|
||||
$this->dashboard = $dashboard;
|
||||
return $this->render(__FUNCTION__);
|
||||
}
|
||||
//부가서비스 : 닷디펜더,딥파인더 등, deepfinder_list.php,dotdefender_list.php
|
||||
//CLI 접속방법 : php index.php SiteController/extraservice/client_code/코드번호
|
||||
//WEB 접속방법 : http://localhost/SiteController/extraservice/sitekey/dbms.prime-idc.jp/client_code/코드번호
|
||||
//CLI 접속방법 : php index.php site/service//extra/adddb_code/코드번호
|
||||
//WEB 접속방법 : http://localhost/site/service/extra/adddb_code/코드번호
|
||||
public function extra(mixed $adddb_code = null): string
|
||||
{
|
||||
if ($adddb_code === null) {
|
||||
|
||||
@ -27,7 +27,7 @@ class HistoryService extends CommonService
|
||||
{
|
||||
return Entity::class;
|
||||
}
|
||||
public function getNews(int $limit = 5): array
|
||||
public function getLatest(int $limit = 5): array
|
||||
{
|
||||
$this->getModel()->orderBy($this->getModel()->getPKField(), 'DESC');
|
||||
$this->getModel()->limit($limit);
|
||||
|
||||
@ -4,6 +4,7 @@ namespace lib\Services;
|
||||
|
||||
use lib\Entities\ServiceEntity as Entity;
|
||||
use lib\Models\ServiceModel as Model;
|
||||
use PDO;
|
||||
|
||||
class ServiceService extends CommonService
|
||||
{
|
||||
@ -32,7 +33,8 @@ class ServiceService extends CommonService
|
||||
$this->getModel()->where('service_code', $key);
|
||||
return $this->getEntity();
|
||||
}
|
||||
public function getNewServerCount(int $day, array $excepts): int|string
|
||||
//최근 $day일간 신규서비스 카운트
|
||||
public function getLatestCount(int $day, array $excepts): int|string
|
||||
{
|
||||
$this->getModel()->where("service_open_date > DATE_ADD(now(), INTERVAL -{$day} DAY)");
|
||||
$this->getModel()->where("service_status", 'o');
|
||||
@ -41,6 +43,7 @@ class ServiceService extends CommonService
|
||||
// echo __FUNCTION__ . ":" . $this->getModel()->getLastQuery();
|
||||
return $count;
|
||||
}
|
||||
//미지급서비스 카운트
|
||||
public function getUnPaymentCount(array $excepts): int|string
|
||||
{
|
||||
$this->getModel()->where("service_payment_date > now()");
|
||||
@ -50,34 +53,71 @@ class ServiceService extends CommonService
|
||||
// echo __FUNCTION__ . ":" . $this->getModel()->getLastQuery();
|
||||
return $count;
|
||||
}
|
||||
|
||||
private function getTotalCountByDistriction(string $where, string $type, string $switch_code1, string $switch_code2): int
|
||||
{
|
||||
$this->getModel()->where($where);
|
||||
$this->getModel()->where(["service_line" => $type, "service_status" => 'o']);
|
||||
$this->getModel()->where("service_sw BETWEEN '{$switch_code1}' AND '{$switch_code2}'");
|
||||
$count = $this->getModel()->countAllResults();
|
||||
// echo "<BR>" . $this->getModel()->getLastQuery();
|
||||
return $count;
|
||||
}
|
||||
final public function getTotalCount(array $siteinfo): array
|
||||
{
|
||||
$temps = array();
|
||||
foreach ($siteinfo['totalcount_customers'] as $customer => $where) {
|
||||
$temps[$customer] = [];
|
||||
foreach ($siteinfo['totalcount_types'] as $type) {
|
||||
$temps[$customer][$type]['Chiba'] = $this->getTotalCountByDistriction($where, $type, 'C00%', 'C64%');
|
||||
$temps[$customer][$type]['Tokyo'] = $this->getTotalCountByDistriction($where, $type, 'C80%', 'C99%');
|
||||
} //foreach
|
||||
// echo var_dump($temps);
|
||||
} //foreach
|
||||
return $temps;
|
||||
}
|
||||
|
||||
public function getNews(int $limit): array
|
||||
//최근신규서비스정보 리스트 limit갯수만큼큼
|
||||
public function getLatest(int $limit): array
|
||||
{
|
||||
$this->getModel()->orderBy($this->getModel()->getPKField(), 'DESC');
|
||||
$this->getModel()->limit($limit);
|
||||
return $this->getEntities();
|
||||
}
|
||||
//지역(치바,도쿄등)에 따른 DASHBOARD용 서비스 카운트
|
||||
private function getDistrictCountForDashboard(string $where, string $type, array $switchcodes): int
|
||||
{
|
||||
$switchcode_begin = $switchcodes['begin'];
|
||||
$switchcode_end = $switchcodes['end'];
|
||||
$this->getModel()->where($where);
|
||||
$this->getModel()->where(["service_line" => $type, "service_status" => 'o']);
|
||||
$this->getModel()->where("service_sw BETWEEN '{$switchcode_begin}' AND '$switchcode_end'");
|
||||
$count = $this->getModel()->countAllResults();
|
||||
// echo "<BR>" . $this->getModel()->getLastQuery();
|
||||
return $count;
|
||||
}
|
||||
final public function getTotalCountForDashboard(array $siteinfo): array
|
||||
{
|
||||
$temps = array();
|
||||
foreach ($siteinfo['totalcount_customers'] as $customer => $where) {
|
||||
$temps[$customer] = [];
|
||||
foreach ($siteinfo['totalcount_types'] as $type) {
|
||||
foreach (DBMS_SERVICE_SWITCHCODE as $district => $switchcodes) {
|
||||
$temps[$customer][$type][$district] = $this->getDistrictCountForDashboard($where, $type, $switchcodes);
|
||||
}
|
||||
} //foreach
|
||||
// echo var_dump($temps);
|
||||
} //foreach
|
||||
return $temps;
|
||||
}
|
||||
//지역(치바,도쿄등)에 따른 사용자별용 서비스 카운트
|
||||
public function getDistrictCountByClient(string $client_code, string $switchcode_begin, string $switchcode_end): int
|
||||
{
|
||||
$this->getModel()->where("client_code", "{$client_code}");
|
||||
$this->getModel()->where("service_sw BETWEEN '{$switchcode_begin}' AND '{$switchcode_end}'");
|
||||
$this->getModel()->where("service_status", "o");
|
||||
$this->getModel()->whereNotIn("service_line", ['normal', 'defence', 'solo', 'test', 'event', 'substitution']);
|
||||
return $this->getCount();
|
||||
// $sql = "SELECT (SELECT COUNT(*) FROM servicedb WHERE service_line = 'normal' AND service_status = 'o' AND service_sw BETWEEN '{$switchcode_begin}' AND '{$switchcode_end}' AND Client_Code = '{$client_code}') AS normal,
|
||||
// (SELECT COUNT(*) FROM servicedb WHERE service_line = 'defence' AND service_status = 'o' AND service_sw BETWEEN '{$switchcode_begin}' AND '{$switchcode_end}' AND Client_Code = '{$client_code}') AS defence,
|
||||
// (SELECT COUNT(*) FROM servicedb WHERE service_line = 'solo' AND service_status = 'o' AND Client_Code = '{$client_code}') AS solo,
|
||||
// (SELECT COUNT(*) FROM servicedb WHERE service_line = 'test' AND service_status = 'o' AND service_sw BETWEEN '{$switchcode_begin}' AND '{$switchcode_end}' AND Client_Code = '{$client_code}') AS test,
|
||||
// (SELECT COUNT(*) FROM servicedb WHERE service_line = 'event' AND service_status = 'o' AND service_sw BETWEEN '{$switchcode_begin}' AND '{$switchcode_end}' AND Client_Code = '{$client_code}') AS event,
|
||||
// (SELECT COUNT(*) FROM servicedb WHERE service_line = 'substitution' AND service_status = 'o' AND service_sw BETWEEN '{$switchcode_begin}' AND '{$switchcode_end}' AND Client_Code = '{$client_code}') AS substitution";
|
||||
// $stmt = $this->getModel()->execute($sql);
|
||||
// // echo "<BR>" . $this->getModel()->getLastQuery();
|
||||
// return $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
}
|
||||
//사용자별용 ServieLine별 카운트
|
||||
public function getServiceLineCountByClient(string $client_code, string $service_line): int
|
||||
{
|
||||
$this->getModel()->where("client_code", "{$client_code}");
|
||||
$this->getModel()->where("service_line", "{$service_line}");
|
||||
$this->getModel()->where("service_status", 'o');
|
||||
return $this->getCount();
|
||||
}
|
||||
//사용자별용 서비스 쿠폰
|
||||
public function getCouponCountByClient(string $client_code): int
|
||||
{
|
||||
$this->getModel()->select("SUM(coupon) as coupon");
|
||||
$this->getModel()->where("client_code", "{$client_code}");
|
||||
$this->getModel()->whereNotIn("service_line", ['vpn', 'test', 'solo', 'substitution', 'event']);
|
||||
return $this->getModel()->getResult()['coupon'];
|
||||
}
|
||||
}
|
||||
|
||||
@ -41,15 +41,15 @@
|
||||
<tbody>
|
||||
<?php foreach ($this->totalcount as $company => $service) { ?>
|
||||
<tr>
|
||||
<td><?php echo $company ?></td>
|
||||
<td><?= $company ?></td>
|
||||
<?php foreach ($service as $name => $location) { ?>
|
||||
<td><?php echo $location['Tokyo']; ?></td>
|
||||
<td><?php echo $location['Chiba']; ?></td>
|
||||
<td><?= $location['Tokyo']; ?></td>
|
||||
<td><?= $location['Chiba']; ?></td>
|
||||
<?php } ?>
|
||||
<td><?php echo $service['test']['Tokyo'] + $service['test']['Chiba']; ?></td>
|
||||
<td><?php echo $this->summary[$company]['Tokyo'] - $service['test']['Tokyo']; ?></td>
|
||||
<td><?php echo $this->summary[$company]['Chiba'] - $service['test']['Chiba']; ?></td>
|
||||
<td><?php echo $this->summary[$company]['Tokyo'] - $service['test']['Tokyo'] + $this->summary[$company]['Chiba'] - $service['test']['Chiba']; ?></td>
|
||||
<td><?= $service['test']['Tokyo'] + $service['test']['Chiba']; ?></td>
|
||||
<td><?= $this->summary[$company]['Tokyo'] - $service['test']['Tokyo']; ?></td>
|
||||
<td><?= $this->summary[$company]['Chiba'] - $service['test']['Chiba']; ?></td>
|
||||
<td><?= $this->summary[$company]['Tokyo'] - $service['test']['Tokyo'] + $this->summary[$company]['Chiba'] - $service['test']['Chiba']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
@ -57,13 +57,13 @@
|
||||
<tr>
|
||||
<td>총합계</td>
|
||||
<?php foreach ($this->siteInfo['totalcount_types'] as $type) { ?>
|
||||
<td><?php echo $this->summary[$type]['Tokyo']; ?></td>
|
||||
<td><?php echo $this->summary[$type]['Chiba']; ?></td>
|
||||
<td><?= $this->summary[$type]['Tokyo']; ?></td>
|
||||
<td><?= $this->summary[$type]['Chiba']; ?></td>
|
||||
<?php } ?>
|
||||
<td><?php echo $this->summary['test']['Tokyo'] + $this->summary['test']['Chiba']; ?></td>
|
||||
<td><?php echo $this->total['Tokyo'] - $this->summary['test']['Tokyo']; ?></td>
|
||||
<td><?php echo $this->total['Chiba'] - $this->summary['test']['Chiba']; ?></td>
|
||||
<td><?php echo $this->total['Tokyo'] - $this->summary['test']['Tokyo'] + $this->total['Chiba'] - $this->summary['test']['Chiba']; ?></td>
|
||||
<td><?= $this->summary['test']['Tokyo'] + $this->summary['test']['Chiba']; ?></td>
|
||||
<td><?= $this->total['Tokyo'] - $this->summary['test']['Tokyo']; ?></td>
|
||||
<td><?= $this->total['Chiba'] - $this->summary['test']['Chiba']; ?></td>
|
||||
<td><?= $this->total['Tokyo'] - $this->summary['test']['Tokyo'] + $this->total['Chiba'] - $this->summary['test']['Chiba']; ?></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
56
extdbms/lib/Views/dbms/service/dashboard.php
Normal file
56
extdbms/lib/Views/dbms/service/dashboard.php
Normal file
@ -0,0 +1,56 @@
|
||||
<div class="col-lg-2 col-md-2 col-xs-4" style="padding:3px">
|
||||
<table width="100%" border="0" align="left" class="table table-bordered table-condensed info_table" style="margin-bottom:0px">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>도쿄</th>
|
||||
<th class=" ">치바</th>
|
||||
<th class=" ">VPN</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?= $this->totalcount['Tokyo'] ?></td>
|
||||
<td><?= $this->totalcount['Chiba'] ?></td>
|
||||
<td><?= $this->totalcount['vpn'] ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-4 col-xs-5" style="padding:3px">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table table-bordered table-condensed info_table" style="margin-bottom:0px">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>일반</th>
|
||||
<th class=" ">방어</th>
|
||||
<th class=" ">전용</th>
|
||||
<th class=" ">이벤트</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?= $this->totalcount['normal'] ?></td>
|
||||
<td class=" "><?= $this->totalcount['defence'] ?></td>
|
||||
<td class=" "><?= $this->totalcount['solo'] ?></td>
|
||||
<td class=" "><?= $this->totalcount['event'] ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-3 col-xs-3" style="padding:3px">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table table-bordered table-condensed info_table" style="margin-bottom:0px">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>테스트</th>
|
||||
<th>대체</th>
|
||||
<th>쿠폰</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?= $this->totalcount['test'] ?></td>
|
||||
<td class=" "><?= $this->totalcount['substitution'] ?></td>
|
||||
<td onclick="location.href='/IdcCouponUseMK.cup?client_code=<?= $this->client_code ?>'" style="cursor: pointer;"><?= $this->totalcount['coupon'] ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@ -1,6 +1,7 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<% pageContext.setAttribute("phpurl",request.getScheme()+"://"+request.getServerName()); %>
|
||||
<% pageContext.setAttribute("host",request.getServerName()); %>
|
||||
|
||||
<script type="text/javascript" src="IDC/js/left_menu.js"></script>
|
||||
<link href="IDC/css/left_menu.css" media="screen" rel="stylesheet" type="text/css" />
|
||||
@ -98,79 +99,79 @@ $(function()
|
||||
|
||||
});
|
||||
|
||||
//사이트 Logo 출력용
|
||||
function getSiteID(){
|
||||
switch(location.hostname){
|
||||
case 'dbms.prime-idc.jp':
|
||||
return 'PrimeIDC';
|
||||
break;
|
||||
case 'dbms.itsolution-idc.jp':
|
||||
return 'ITSolution';
|
||||
break;
|
||||
case 'dbms.gdidc.jp':
|
||||
return 'GDIDC';
|
||||
break;
|
||||
default:
|
||||
alert("getSiteID 오류:"+location.hostname);
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
};
|
||||
//사이트 메일 출력용
|
||||
function getSiteSupport(){
|
||||
switch(location.hostname){
|
||||
case 'dbms.prime-idc.jp':
|
||||
return 'support@prime-idc.jp';
|
||||
break;
|
||||
case 'dbms.itsolution-idc.jp':
|
||||
return 'support@itsolution-idc.jp';
|
||||
break;
|
||||
case 'dbms.gdidc.jp':
|
||||
return 'support@gdidc.jp';
|
||||
break;
|
||||
default:
|
||||
alert("getSiteSupport 오류:"+location.hostname);
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
};
|
||||
//입금은행 출력용
|
||||
function getSiteBank(){
|
||||
switch(location.hostname){
|
||||
case 'dbms.prime-idc.jp':
|
||||
return '<select name="deposit_bank" id="deposit_bank"><option value="국민">국민</option><option value="농협">농협</option><option value="우리">우리</option><option value="신한">신한</option><option value="PRIMEIDC">작업용 입금의 경우 Primeidc</option></select>';
|
||||
break;
|
||||
case 'dbms.itsolution-idc.jp':
|
||||
return '<select name="deposit_bank" id="deposit_bank"><option value="우리">우리</option><option value="새마을">새마을</option><option value="농협">농협</option><option value="국민">국민</option><option value="ITSOLUTION">작업용 입금의 경우 Itsolution</option></select>';
|
||||
break;
|
||||
case 'dbms.gdidc.jp':
|
||||
return '<select name="deposit_bank" id="deposit_bank"><option value="우리">우리</option><option value="GDIDC">작업용 입금의 경우 GDIDC</option></select>';
|
||||
break;
|
||||
default:
|
||||
alert("getSiteBank 오류:"+location.hostname);
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
// //사이트 Logo 출력용
|
||||
// function getSiteID(){
|
||||
// switch(location.hostname){
|
||||
// case 'dbms.prime-idc.jp':
|
||||
// return 'PrimeIDC';
|
||||
// break;
|
||||
// case 'dbms.itsolution-idc.jp':
|
||||
// return 'ITSolution';
|
||||
// break;
|
||||
// case 'dbms.gdidc.jp':
|
||||
// return 'GDIDC';
|
||||
// break;
|
||||
// default:
|
||||
// alert("getSiteID 오류:"+location.hostname);
|
||||
// return false;
|
||||
// break;
|
||||
// }
|
||||
// };
|
||||
// //사이트 메일 출력용
|
||||
// function getSiteSupport(){
|
||||
// switch(location.hostname){
|
||||
// case 'dbms.prime-idc.jp':
|
||||
// return 'support@prime-idc.jp';
|
||||
// break;
|
||||
// case 'dbms.itsolution-idc.jp':
|
||||
// return 'support@itsolution-idc.jp';
|
||||
// break;
|
||||
// case 'dbms.gdidc.jp':
|
||||
// return 'support@gdidc.jp';
|
||||
// break;
|
||||
// default:
|
||||
// alert("getSiteSupport 오류:"+location.hostname);
|
||||
// return false;
|
||||
// break;
|
||||
// }
|
||||
// };
|
||||
// //입금은행 출력용
|
||||
// function getSiteBank(){
|
||||
// switch(location.hostname){
|
||||
// case 'dbms.prime-idc.jp':
|
||||
// return '<select name="deposit_bank" id="deposit_bank"><option value="국민">국민</option><option value="농협">농협</option><option value="우리">우리</option><option value="신한">신한</option><option value="PRIMEIDC">작업용 입금의 경우 Primeidc</option></select>';
|
||||
// break;
|
||||
// case 'dbms.itsolution-idc.jp':
|
||||
// return '<select name="deposit_bank" id="deposit_bank"><option value="우리">우리</option><option value="새마을">새마을</option><option value="농협">농협</option><option value="국민">국민</option><option value="ITSOLUTION">작업용 입금의 경우 Itsolution</option></select>';
|
||||
// break;
|
||||
// case 'dbms.gdidc.jp':
|
||||
// return '<select name="deposit_bank" id="deposit_bank"><option value="우리">우리</option><option value="GDIDC">작업용 입금의 경우 GDIDC</option></select>';
|
||||
// break;
|
||||
// default:
|
||||
// alert("getSiteBank 오류:"+location.hostname);
|
||||
// return false;
|
||||
// break;
|
||||
// }
|
||||
|
||||
};
|
||||
// };
|
||||
|
||||
//Loading이 완료후 필요한 작업 실행용
|
||||
window.onload = function(){
|
||||
site_id = getSiteID();
|
||||
site_support = getSiteSupport();
|
||||
site_bank = getSiteBank();
|
||||
// //Loading이 완료후 필요한 작업 실행용
|
||||
// window.onload = function(){
|
||||
// site_id = getSiteID();
|
||||
// site_support = getSiteSupport();
|
||||
// site_bank = getSiteBank();
|
||||
|
||||
if(document.getElementById('SiteLogo')){
|
||||
document.getElementById('SiteLogo').innerHTML=site_id;
|
||||
}
|
||||
if(document.getElementById('SiteSupport')){
|
||||
document.getElementById('SiteSupport').innerHTML=site_support;
|
||||
document.getElementById('SiteSupportTitle').innerHTML=site_id;
|
||||
}
|
||||
if(document.getElementById('SiteBank')){
|
||||
document.getElementById('SiteBank').innerHTML=site_bank;
|
||||
}
|
||||
}
|
||||
// if(document.getElementById('SiteLogo')){
|
||||
// document.getElementById('SiteLogo').innerHTML=site_id;
|
||||
// }
|
||||
// if(document.getElementById('SiteSupport')){
|
||||
// document.getElementById('SiteSupport').innerHTML=site_support;
|
||||
// document.getElementById('SiteSupportTitle').innerHTML=site_id;
|
||||
// }
|
||||
// if(document.getElementById('SiteBank')){
|
||||
// document.getElementById('SiteBank').innerHTML=site_bank;
|
||||
// }
|
||||
// }
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
||||
<% pageContext.setAttribute("phpurl",request.getScheme()+"://"+request.getServerName()); %>
|
||||
<% pageContext.setAttribute("host",request.getServerName()); %>
|
||||
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
@ -987,7 +988,7 @@ $(function()
|
||||
</div>
|
||||
<!-- 사용정보 시작-->
|
||||
|
||||
<c:import url="${phpurl}/total_counting_customer.php?client_code=${client_code }" />
|
||||
<c:import url="${phpurl}/DBMS/service/totalcount/client_code/${client_code}" />
|
||||
|
||||
|
||||
|
||||
@ -1164,10 +1165,10 @@ $(function()
|
||||
<div class="sv_info_content">
|
||||
<div class="list-group" style="line-height:12px; margin-bottom:10px;">
|
||||
<c:if test="${dto.service_line ne 'vpn'}">
|
||||
<a href="vpcInfo.sev?client_code=${client_code }&csInfoFlag=true&service_code=${dto.service_code}" class="list-group-item">
|
||||
<a href="vpcInfo.sev?client_code=${client_code}&csInfoFlag=true&service_code=${dto.service_code}" class="list-group-item">
|
||||
<span class="badge">${dto.cs_count}</span>VPC CS
|
||||
</a>
|
||||
<a href="vpcInfo.sev?client_code=${client_code }&csInfoFlag=false&service_code=${dto.service_code}" class="list-group-item">
|
||||
<a href="vpcInfo.sev?client_code=${client_code}&csInfoFlag=false&service_code=${dto.service_code}" class="list-group-item">
|
||||
<span class="badge">${dto.kcs_count }</span>KT CS
|
||||
</a>
|
||||
</c:if>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user