dbms_primeidc_init...1

This commit is contained in:
최준흠 2025-04-17 19:09:50 +09:00
parent d6124f2d68
commit 325dab6b32
43 changed files with 479 additions and 593 deletions

View File

@ -2,90 +2,69 @@
namespace lib\Configs; namespace lib\Configs;
use lib\Controllers\DBMS\Client\ClientController;
use lib\Controllers\DBMS\Client\CouponController; use lib\Controllers\DBMS\Client\CouponController;
use lib\Controllers\DBMS\Client\MemoController; use lib\Controllers\DBMS\Client\MemoController;
use lib\Controllers\DBMS\Client\OnetimeController;
use lib\Controllers\DBMS\Client\PaymentController; use lib\Controllers\DBMS\Client\PaymentController;
use lib\Controllers\DBMS\DashboardController; use lib\Controllers\DBMS\DashboardController;
use lib\Controllers\DBMS\DefenceController; use lib\Controllers\DBMS\DefenceController;
use lib\Controllers\DBMS\GearlistController; use lib\Controllers\DBMS\GearlistController;
use lib\Controllers\DBMS\NavigatorController; use lib\Controllers\DBMS\NavigatorController;
use lib\Controllers\DBMS\ServerController;
use lib\Controllers\DBMS\ServiceController; use lib\Controllers\DBMS\ServiceController;
use lib\Core\Router; use lib\Core\Router;
$router->group('dbms/client/dashboard', function (Router $router) { //Client관련련
// 동적 파라미터 없이 기본 path에 추가 파라미터를 받아 key/value 형식으로 처리 $router->group('dbms/client', function (Router $router) {
$router->add('GET', 'totalcount', function ($params) { $router->add('GET', 'totalcount', function ($params) {
$controller = new \lib\Controllers\DBMS\Client\DashboardController(); $controller = new ClientCOntroller($params);
return $controller->totalcount($params); return $controller->totalcount();
// Response::view($result); // Response::view($result);
}); });
//메모관련
$router->group('memo', function (Router $router) {
$router->add('GET', 'update_form', function ($params) {
$controller = new MemoCOntroller($params);
return $controller->update_form();
// Response::view($result);
});
$router->add('POST', 'update', function ($params) {
$controller = new MemoCOntroller($params);
return $controller->update();
// Response::view($result);
});
});
//쿠폰관련
$router->group('coupon', function (Router $router) {
$router->add('GET', 'index', function ($params) {
$controller = new CouponCOntroller($params);
return $controller->index();
// Response::view($result);
});
$router->add('GET', 'insert_form', function ($params) {
$controller = new CouponCOntroller($params);
return $controller->insert_form();
// Response::view($result);
});
$router->add('POST', 'insert', function ($params) {
$controller = new CouponCOntroller($params);
return $controller->insert();
// Response::view($result);
});
});
//결제관련
$router->group('payment', function (Router $router) {
$router->add('GET', 'index', function ($params) {
$controller = new PaymentCOntroller($params);
return $controller->index();
// Response::view($result);
});
$router->add('GET', 'billpaper', function ($params) {
$controller = new PaymentCOntroller($params);
return $controller->billpaper();
// Response::view($result);
});
});
}); });
$router->group('dbms/client/memo', function (Router $router) {
$router->add('GET', 'update_form', function ($params) {
$controller = new MemoController();
return $controller->update_form($params);
// Response::view($result);
});
$router->add('POST', 'update', function ($params) {
$controller = new MemoController();
return $controller->update($params);
// Response::view($result);
});
});
$router->group('dbms/client/onetime', function (Router $router) {
$router->add('GET', 'coupon', function ($params) {
$controller = new OnetimeController();
return $controller->coupon($params);
// Response::view($result);
});
// $router->add('POST', 'buy', function ($params) {
// $controller = new OnetimeController();
// return $controller->update($params);
// // Response::view($result);
// });
// $router->add('POST', 'use', function ($params) {
// $controller = new OnetimeController();
// return $controller->update($params);
// // Response::view($result);
// });
});
$router->group('dbms/client/coupon', function (Router $router) {
$router->add('GET', 'index', function ($params) {
$controller = new CouponController();
return $controller->index($params);
// Response::view($result);
});
$router->add('GET', 'client', function ($params) {
$controller = new CouponController();
return $controller->client($params);
// Response::view($result);
});
$router->add('GET', 'insert_form', function ($params) {
$controller = new CouponController();
return $controller->insert_form($params);
// Response::view($result);
});
$router->add('POST', 'insert', function ($params) {
$controller = new CouponController();
return $controller->insert($params);
// Response::view($result);
});
});
$router->group('dbms/client/payment', function (Router $router) {
$router->add('GET', 'billpaper', function ($params) {
$controller = new PaymentController();
return $controller->billpaper($params);
// Response::view($result);
});
$router->add('GET', 'nonpayment', function ($params) {
$controller = new PaymentController();
return $controller->nonpayment($params);
// Response::view($result);
});
});
// 예제 라우트 그룹: dbms/dashboard/index 이후에 key/value 파라미터 허용 // 예제 라우트 그룹: dbms/dashboard/index 이후에 key/value 파라미터 허용
$router->group('dbms/dashboard', function (Router $router) { $router->group('dbms/dashboard', function (Router $router) {
@ -98,33 +77,33 @@ $router->group('dbms/dashboard', function (Router $router) {
// }); // });
// 동적 파라미터 없이 기본 path에 추가 파라미터를 받아 key/value 형식으로 처리 // 동적 파라미터 없이 기본 path에 추가 파라미터를 받아 key/value 형식으로 처리
$router->add('GET', 'topboard', function ($params) { $router->add('GET', 'topboard', function ($params) {
$controller = new DashboardController(); $controller = new DashboardCOntroller($params);
return $controller->topboard(); return $controller->topboard();
// Response::view($result); // Response::view($result);
}); });
$router->add('GET', 'totalcount', function ($params) { $router->add('GET', 'totalcount', function ($params) {
$controller = new DashboardController(); $controller = new DashboardCOntroller($params);
return $controller->totalcount($params); return $controller->totalcount();
// Response::view($result); // Response::view($result);
}); });
$router->add('GET', 'latest_service', function ($params) { $router->add('GET', 'latest_service', function ($params) {
$controller = new DashboardController(); $controller = new DashboardCOntroller($params);
return $controller->latest_service($params); return $controller->latest_service();
// Response::view($result); // Response::view($result);
}); });
$router->add('GET', 'latest_history', function ($params) { $router->add('GET', 'latest_history', function ($params) {
$controller = new DashboardController(); $controller = new DashboardCOntroller($params);
return $controller->latest_history($params); return $controller->latest_history();
// Response::view($result); // Response::view($result);
}); });
$router->add('GET', 'cscount', function ($params) { $router->add('GET', 'cscount', function ($params) {
$controller = new DashboardController(); $controller = new DashboardCOntroller($params);
return $controller->cscount($params); return $controller->cscount();
// Response::view($result); // Response::view($result);
}); });
$router->add('GET', 'coupon', function ($params) { $router->add('GET', 'coupon', function ($params) {
$controller = new DashboardController(); $controller = new DashboardCOntroller($params);
return $controller->coupon($params); return $controller->coupon();
// Response::view($result); // Response::view($result);
}); });
}); });
@ -132,8 +111,8 @@ $router->group('dbms/dashboard', function (Router $router) {
$router->group('dbms/navigator', function (Router $router) { $router->group('dbms/navigator', function (Router $router) {
// 동적 파라미터 없이 기본 path에 추가 파라미터를 받아 key/value 형식으로 처리 // 동적 파라미터 없이 기본 path에 추가 파라미터를 받아 key/value 형식으로 처리
$router->add('GET', 'ipsearch', function ($params) { $router->add('GET', 'ipsearch', function ($params) {
$controller = new NavigatorController(); $controller = new NavigatorCOntroller($params);
return $controller->ipsearch($params); return $controller->ipsearch();
// Response::view($result); // Response::view($result);
}); });
}); });
@ -141,8 +120,8 @@ $router->group('dbms/navigator', function (Router $router) {
$router->group('dbms/defence', function (Router $router) { $router->group('dbms/defence', function (Router $router) {
// 동적 파라미터 없이 기본 path에 추가 파라미터를 받아 key/value 형식으로 처리 // 동적 파라미터 없이 기본 path에 추가 파라미터를 받아 key/value 형식으로 처리
$router->add('GET', 'mk', function ($params) { $router->add('GET', 'mk', function ($params) {
$controller = new DefenceController(); $controller = new DefenceCOntroller($params);
return $controller->mk($params); return $controller->mk();
// Response::view($result); // Response::view($result);
}); });
}); });
@ -150,25 +129,16 @@ $router->group('dbms/defence', function (Router $router) {
$router->group('dbms/service', function (Router $router) { $router->group('dbms/service', function (Router $router) {
// 동적 파라미터 없이 기본 path에 추가 파라미터를 받아 key/value 형식으로 처리 // 동적 파라미터 없이 기본 path에 추가 파라미터를 받아 key/value 형식으로 처리
$router->add('GET', 'extra', function ($params) { $router->add('GET', 'extra', function ($params) {
$controller = new ServiceController(); $controller = new ServiceCOntroller($params);
return $controller->extra($params); return $controller->extra();
// Response::view($result); // Response::view($result);
}); });
}); });
$router->group('dbms/gearlist', function (Router $router) { $router->group('dbms/gearlist', function (Router $router) {
$router->add('GET', 'index', function ($params) { $router->add('GET', 'index', function ($params) {
$controller = new GearlistController(); $controller = new GearlistCOntroller($params);
return $controller->index($params); return $controller->index();
// Response::view($result);
});
});
$router->group('dbms/server', function (Router $router) {
$router->add('GET', 'index', function ($params) {
$controller = new ServerController();
return $controller->index($params);
// Response::view($result); // Response::view($result);
}); });
}); });

View File

@ -6,8 +6,8 @@ use lib\Core\Controller as Core;
class CommonController extends Core class CommonController extends Core
{ {
protected function __construct() protected function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
} // } //
} //Class } //Class

View File

@ -5,14 +5,14 @@ namespace lib\Controllers\DBMS\Client;
use lib\Services\ClientService; use lib\Services\ClientService;
use lib\Controllers\DBMS\DBMSController; use lib\Controllers\DBMS\DBMSController;
abstract class ClientController extends DBMSController class ClientController extends DBMSController
{ {
private ?ClientService $_clientService = null; private ?ClientService $_clientService = null;
public function __construct() public function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
$this->getView()->setPath('client'); $this->getView()->setPath('client');
} // } //
final public function getClientService(): ClientService final public function getClientService(): ClientService
@ -22,4 +22,41 @@ abstract class ClientController extends DBMSController
} }
return $this->_clientService; return $this->_clientService;
} }
//서비스카운팅 , total_counting_customer.php
//CLI 접속방법 : php index.php site/client/totalcount/client_code/코드번호
//WEB 접속방법 : http://localhost/site/client/totalcount/client_code/코드번호
public function totalcount()
{
//사용자정보
$client_code = $this->request->get('client_code');
// echo "client_code:" . $client_code;
if ($client_code) {
$client = $this->getClientService()->getEntityByCode($client_code);
if (!$client) {
throw new \Exception("[$client_code]에 해당하는 사용자정보가 존재하지 않습니다.");
}
$this->client = $client;
}
//서비스위치별(치바,도쿄등)
$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 (DBMS_SERVICE_LINE as $service_line => $label) {
$dashboard[$service_line] = $this->getServiceService()->getServiceLineCountByClient($client_code, $service_line);
} //foreach
//서비스상태별(정상,정지,해지등)
$dashboard['coupon'] = intval($this->getServiceService()->getCouponTotalCountByClient($client_code));
$this->dashboard = $dashboard;
$this->client_code = $client_code;
return $this->render(__FUNCTION__);
}
} //Class } //Class

View File

@ -12,9 +12,9 @@ class CouponController extends ClientController
private ?OnetimeService $_onetimeService = null; private ?OnetimeService $_onetimeService = null;
private ?HistoryService $_historyService = null; private ?HistoryService $_historyService = null;
private ?MemberService $_memberService = null; private ?MemberService $_memberService = null;
public function __construct() public function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
$this->getView()->setPath('coupon'); $this->getView()->setPath('coupon');
} // } //
public function getMemberService(): MemberService public function getMemberService(): MemberService
@ -42,12 +42,32 @@ class CouponController extends ClientController
//IdcCouponListMK.jsp -> domain_coupon.php //IdcCouponListMK.jsp -> domain_coupon.php
//CLI 접속방법 : php index.php site/client/counpon/index //CLI 접속방법 : php index.php site/client/counpon/index
//WEB 접속방법 : http://localhost/site/client/coupon/index //WEB 접속방법 : http://localhost/site/client/coupon/index
public function index(array $params) public function index()
{ {
//사용자정보
$client_code = $this->request->get('client_code');
echo "client_code:" . is_null($client_code) ? "NULL" : $client_code;
if ($client_code) {
$client = $this->getClientService()->getEntityByCode($client_code);
if (!$client) {
throw new \Exception("[$client_code]에 해당하는 사용자정보가 존재하지 않습니다.");
}
$this->client = $client;
}
//관리자정보(등록자)
$member_code = $this->request->get('mkid');
// echo "member_code:" . $member_code;
if ($member_code) {
$member = $this->getMemberService()->getEntityByCode($member_code);
if (!$member) {
throw new \Exception("[$member_code]에 해당하는 관리자정보가 존재하지 않습니다.");
}
$this->member = $member;
}
//쿠폰내역 //쿠폰내역
$this->curPage = intval($params['curPage'] ?? $this->request->get('curPage') ?? 1); $this->curPage = intval($this->request->get('curPage', 1));
$this->perPage = intval($params['perPage'] ?? $this->request->get('perPage') ?? VIEW_LIST_PERPAGE); $this->perPage = intval($this->request->get('perPage', VIEW_LIST_PERPAGE));
[$this->total, $this->services] = $this->getServiceService()->getEntitiesForCoupon($this->curPage, $this->perPage); [$this->total, $this->services] = $this->getServiceService()->getEntitiesByClient($this->curPage, $this->perPage, $client_code);
$this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage); $this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage);
$total_coupon = 0; $total_coupon = 0;
foreach ($this->services as $service) { foreach ($this->services as $service) {
@ -57,52 +77,15 @@ class CouponController extends ClientController
return $this->render(__FUNCTION__); return $this->render(__FUNCTION__);
} }
//IdcCouponUseMK.jsp -> domain_coupon_use.php
//CLI 접속방법 : php index.php site/client/counpon/client/client_code/코드
//WEB 접속방법 : http://localhost/site/client/coupon/client/client_code/코드
public function client(array $params)
{
//사용자정보
if (!array_key_exists('client_code', $params)) {
throw new \Exception("client_code 값이 정의되지 않았습니다.");
}
$client_code = $params['client_code'];
$client = $this->getClientService()->getEntityByCode($client_code);
if (!$client) {
throw new \Exception("[$client_code]에 해당하는 사용자정보가 존재하지 않습니다.");
}
$this->client = $client;
//전체 관리자정보(등록자)
if (!array_key_exists('mkid', $params)) {
throw new \Exception("mkid 값이 정의되지 않았습니다.");
}
$member_code = $params['mkid'];
$member = $this->getMemberService()->getEntityByCode($member_code);
if (!$member) {
throw new \Exception("[$member_code]에 해당하는 관리자정보가 존재하지 않습니다.");
}
$this->member = $member;
//쿠폰내역
$this->curPage = intval($params['curPage'] ?? $this->request->get('curPage') ?? 1);
$this->perPage = intval($params['perPage'] ?? $this->request->get('perPage') ?? VIEW_LIST_PERPAGE);
[$this->total, $this->services] = $this->getServiceService()->getEntitiesForCoupon($this->curPage, $this->perPage, $client_code);
$this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage);
$total_coupon = 0;
foreach ($this->services as $service) {
$total_coupon += $service->getCoupon();
}
$this->total_coupon = $total_coupon;
return $this->render(__FUNCTION__);
}
//IdcCouponBuyMK.jsp -> domain_coupon_buy.php //IdcCouponBuyMK.jsp -> domain_coupon_buy.php
//CLI 접속방법 : php index.php site/client/counpon/insert_form //CLI 접속방법 : php index.php site/client/counpon/insert_form
//WEB 접속방법 : http://localhost/site/client/coupon/insert_form //WEB 접속방법 : http://localhost/site/client/coupon/insert_form
public function insert_form(array $params) public function insert_form()
{ {
if (!array_key_exists('service_code', $params)) { $service_code = $this->request->get('service_code');
if (!$service_code) {
throw new \Exception("service_code 값이 정의되지 않았습니다."); throw new \Exception("service_code 값이 정의되지 않았습니다.");
} }
$service_code = $params['service_code'];
$service = $this->getServiceService()->getEntityByCode($service_code); $service = $this->getServiceService()->getEntityByCode($service_code);
if (!$service) { if (!$service) {
throw new \Exception("[$service_code]에 해당하는 서비스정보가 존재하지 않습니다."); throw new \Exception("[$service_code]에 해당하는 서비스정보가 존재하지 않습니다.");
@ -114,14 +97,15 @@ class CouponController extends ClientController
throw new \Exception("[{$service->getClientCode()}]에 해당하는 사용자정보가 존재하지 않습니다."); throw new \Exception("[{$service->getClientCode()}]에 해당하는 사용자정보가 존재하지 않습니다.");
} }
$this->client = $client; $this->client = $client;
//전체 관리자정보(등록자) //관리자정보(등록자)
if (!array_key_exists('mkid', $params)) { $member_code = $this->request->get('mkid');
throw new \Exception("mkid 값이 정의되지 않았습니다."); // echo "member_code:" . $member_code;
} if ($member_code) {
$member_code = $params['mkid']; $member = $this->getMemberService()->getEntityByCode($member_code);
$member = $this->getMemberService()->getEntityByCode($member_code); if (!$member) {
if (!$member) { throw new \Exception("[$member_code]에 해당하는 관리자정보가 존재하지 않습니다.");
throw new \Exception("[$member_code]에 해당하는 관리자정보가 존재하지 않습니다."); }
$this->member = $member;
} }
$this->member = $member; $this->member = $member;
$this->today = date("Y-m-d"); $this->today = date("Y-m-d");
@ -131,12 +115,12 @@ class CouponController extends ClientController
//IdcCouponBuyMK.jsp -> domain_coupon_buy.php //IdcCouponBuyMK.jsp -> domain_coupon_buy.php
//CLI 접속방법 : php index.php site/client/counpon/insert_form //CLI 접속방법 : php index.php site/client/counpon/insert_form
//WEB 접속방법 : http://localhost/site/client/coupon/insert_form //WEB 접속방법 : http://localhost/site/client/coupon/insert_form
public function insert(array $params) public function insert()
{ {
if (!array_key_exists('service_code', $params)) { $service_code = $this->request->get('service_code');
if (!$service_code) {
throw new \Exception("service_code 값이 정의되지 않았습니다."); throw new \Exception("service_code 값이 정의되지 않았습니다.");
} }
$service_code = $params['service_code'];
$service = $this->getServiceService()->getEntityByCode($service_code); $service = $this->getServiceService()->getEntityByCode($service_code);
if (!$service) { if (!$service) {
throw new \Exception("[$service_code]에 해당하는 서비스정보가 존재하지 않습니다."); throw new \Exception("[$service_code]에 해당하는 서비스정보가 존재하지 않습니다.");
@ -146,16 +130,15 @@ class CouponController extends ClientController
if (!$client) { if (!$client) {
throw new \Exception("[{$service->getClientCode()}]에 해당하는 사용자정보가 존재하지 않습니다."); throw new \Exception("[{$service->getClientCode()}]에 해당하는 사용자정보가 존재하지 않습니다.");
} }
//전체 관리자정보(등록자) //관리자정보(등록자)
if (!array_key_exists('mkid', $params)) { $member_code = $this->request->get('mkid');
if (!$member_code) {
throw new \Exception("mkid 값이 정의되지 않았습니다."); throw new \Exception("mkid 값이 정의되지 않았습니다.");
} }
$member_code = $params['mkid'];
$member = $this->getMemberService()->getEntityByCode($member_code); $member = $this->getMemberService()->getEntityByCode($member_code);
if (!$member) { if (!$member) {
throw new \Exception("[$member_code]에 해당하는 관리자정보가 존재하지 않습니다."); throw new \Exception("[$member_code]에 해당하는 관리자정보가 존재하지 않습니다.");
} }
//onetime_sub 도메인 구매 수량 //onetime_sub 도메인 구매 수량
$coupon = $this->request->get('coupon'); $coupon = $this->request->get('coupon');
if (! $coupon || $coupon < 1) { if (! $coupon || $coupon < 1) {
@ -167,7 +150,7 @@ class CouponController extends ClientController
throw new \Exception("도메인 리스트 값이 정의되지 않았습니다."); throw new \Exception("도메인 리스트 값이 정의되지 않았습니다.");
} }
//onetime_case 사용용도 //onetime_case 사용용도
$onetime_case = $this->request->get('onetime_case') ?? 'domain'; $onetime_case = $this->request->get('onetime_case', 'domain');
//onetime_request_date 사용일 //onetime_request_date 사용일
$onetime_request_date = $this->request->get('onetime_request_date') ?? date("Y-m-d"); $onetime_request_date = $this->request->get('onetime_request_date') ?? date("Y-m-d");
try { try {

View File

@ -1,45 +0,0 @@
<?php
namespace lib\Controllers\DBMS\Client;
use lib\Services\ClientService;
class DashboardController extends ClientController
{
public function __construct()
{
parent::__construct();
$this->getView()->setPath('dashboard');
} //
//서비스카운팅 , total_counting_customer.php
//CLI 접속방법 : php index.php site/client/dashboard/totalcount/client_code/코드번호
//WEB 접속방법 : http://localhost/site/client/dashboard/totalcount/client_code/코드번호
public function totalcount(array $params)
{
if (!array_key_exists('client_code', $params)) {
throw new \Exception("client_code 값이 정의되지 않았습니다.");
}
$client_code = $params['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 (DBMS_SERVICE_LINE as $service_line => $label) {
$dashboard[$service_line] = $this->getServiceService()->getServiceLineCountByClient($client_code, $service_line);
} //foreach
//서비스상태별(정상,정지,해지등)
$dashboard['coupon'] = intval($this->getServiceService()->getCouponTotalCountByClient($client_code));
$this->dashboard = $dashboard;
$this->client_code = $client_code;
return $this->render(__FUNCTION__);
}
} //Class

View File

@ -6,21 +6,21 @@ use lib\Helpers\ServiceHelper;
class MemoController extends ClientController class MemoController extends ClientController
{ {
public function __construct() public function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
$this->getView()->setPath('memo'); $this->getView()->setPath('memo');
$this->helper = new ServiceHelper(); $this->helper = new ServiceHelper();
} // } //
//사용자용메모장 , customer_memo.php //사용자용메모장 , customer_memo.php
//CLI 접속방법 : php index.php site/client/memo/update_form/client_code/코드번호 //CLI 접속방법 : php index.php site/client/memo/update_form/client_code/코드번호
//WEB 접속방법 : http://localhost/site/client/memo/update_form/client_code/코드번호 //WEB 접속방법 : http://localhost/site/client/memo/update_form/client_code/코드번호
public function update_form(array $params) public function update_form()
{ {
if (!array_key_exists('client_code', $params)) { $client_code = $this->request->get('client_code');
if (!$client_code) {
throw new \Exception("client_code 값이 정의되지 않았습니다."); throw new \Exception("client_code 값이 정의되지 않았습니다.");
} }
$client_code = $params['client_code'];
$entity = $this->getClientService()->getEntityByCode($client_code); $entity = $this->getClientService()->getEntityByCode($client_code);
if (!$entity) { if (!$entity) {
throw new \Exception("[$client_code]에 해당하는 사용자정보가 존재하지 않습니다."); throw new \Exception("[$client_code]에 해당하는 사용자정보가 존재하지 않습니다.");
@ -29,12 +29,12 @@ class MemoController extends ClientController
return $this->render(__FUNCTION__); return $this->render(__FUNCTION__);
} }
public function update(array $params) public function update()
{ {
if (!array_key_exists('client_code', $params)) { $client_code = $this->request->get('client_code');
if (!$client_code) {
throw new \Exception("client_code 값이 정의되지 않았습니다."); throw new \Exception("client_code 값이 정의되지 않았습니다.");
} }
$client_code = $params['client_code'];
$entity = $this->getClientService()->getEntityByCode($client_code); $entity = $this->getClientService()->getEntityByCode($client_code);
if (!$entity) { if (!$entity) {
throw new \Exception("[$client_code]에 해당하는 사용자정보가 존재하지 않습니다."); throw new \Exception("[$client_code]에 해당하는 사용자정보가 존재하지 않습니다.");

View File

@ -1,49 +0,0 @@
<?php
namespace lib\Controllers\DBMS\Client;
use lib\Services\MemberService;
use lib\Services\OnetimeService;
use lib\Utils\Pagination;
class OnetimeController extends ClientController
{
private ?OnetimeService $_onetimeService = null;
private ?MemberService $_memberService = null;
public function __construct()
{
parent::__construct();
$this->getView()->setPath('onetime');
} //
public function getOnetimeService(): OnetimeService
{
if ($this->_onetimeService === null) {
$this->_onetimeService = new OnetimeService();
}
return $this->_onetimeService;
}
public function getMemberService(): MemberService
{
if ($this->_memberService === null) {
$this->_memberService = new MemberService();
}
return $this->_memberService;
}
//domain_buy_list.php
//CLI 접속방법 : php index.php site/counpon
//WEB 접속방법 : http://localhost/site/coupon
public function coupon()
{
//쿠폰내역
$this->curPage = intval($params['curPage'] ?? $this->request->get('curPage') ?? 1);
$this->perPage = intval($params['perPage'] ?? $this->request->get('perPage') ?? VIEW_LIST_PERPAGE);
[$this->total, $this->entities] = $this->getOnetimeService()->getEntitiesForDomainCoupon($this->curPage, $this->perPage);
$this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage);
//전체 고객정보
$this->clients = $this->getClientService()->getEntities();
//전체 관리자정보(등록자)
$this->members = $this->getMemberService()->getEntities();
return $this->render(__FUNCTION__);
}
} //Class

View File

@ -6,29 +6,29 @@ use lib\Utils\Pagination;
class PaymentController extends ClientController class PaymentController extends ClientController
{ {
public function __construct() public function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
$this->getView()->setPath('payment'); $this->getView()->setPath('payment');
} // } //
//청구서, depositbillpaper.php //청구서, depositbillpaper.php
//CLI 접속방법 : php index.php site/client/payment/billpaper //CLI 접속방법 : php index.php site/client/payment/billpaper
//WEB 접속방법 : http://localhostsite/client/payment/billpaper //WEB 접속방법 : http://localhostsite/client/payment/billpaper
public function billpaper(array $params): string public function billpaper(): string
{ {
//사이트 정보 가져오기 //사이트 정보 가져오기
if (!array_key_exists('sitekey', $params)) { $sitekey = $this->request->get('sitekey');
if (!$sitekey) {
throw new \Exception("sitekey 값이 정의되지 않았습니다."); throw new \Exception("sitekey 값이 정의되지 않았습니다.");
} }
$sitekey = $params['sitekey'];
$this->siteInfo = DBMS_SITEINFOS[$sitekey]; $this->siteInfo = DBMS_SITEINFOS[$sitekey];
if (!array_key_exists($sitekey, DBMS_SITEINFOS)) { if (!array_key_exists($sitekey, DBMS_SITEINFOS)) {
throw new \Exception("[{$sitekey}]에 해당하는 사이트정보가 없습니다."); throw new \Exception("[{$sitekey}]에 해당하는 사이트정보가 없습니다.");
} }
//사용자정보가져오기 //사용자정보가져오기
$client_code = $params['client_code']; $client_code = $this->request->get('client_code');
if (!array_key_exists('client_code', $params)) { if (!$client_code) {
throw new \Exception("client_code 값이 정의되지 않았습니다."); throw new \Exception("client_code 값이 정의되지 않았습니다.");
} }
$client = $this->getClientService()->getEntityByCode($client_code); $client = $this->getClientService()->getEntityByCode($client_code);
@ -38,17 +38,16 @@ class PaymentController extends ClientController
$this->client = $client; $this->client = $client;
return $this->render(__FUNCTION__); return $this->render(__FUNCTION__);
} }
//미납리스트트, NonPaymentList.php
//청구서, NonPaymentList.php //CLI 접속방법 : php index.php site/client/payment/index
//CLI 접속방법 : php index.php site/client/payment/unpaid //WEB 접속방법 : http://localhostsite/client/payment/index
//WEB 접속방법 : http://localhostsite/client/payment/unpaid public function index(): string
public function nonpayment(array $params): string
{ {
//Client_Code = ["C219"=>WinIDC,"C116"=>IDC-JP"] -> 미지급금계산 제외 Client_Code //Client_Code = ["C219"=>WinIDC,"C116"=>IDC-JP"] -> 미지급금계산 제외 Client_Code
$exclude_clients = ['C116', 'C219']; $exclude_clients = ['C116', 'C219'];
//mode 당일,1일전,2일전,3일전,custom //mode 당일,1일전,2일전,3일전,custom
$today = date("Y-m-d");; $today = date("Y-m-d");;
$mode = $params['mode'] ?? $this->request->get('mode') ?? 'all'; $mode = $this->request->get('mode', 'all');
switch ($mode) { switch ($mode) {
case 'today': case 'today':
$this->message = "[{$today} 기준 당일 "; $this->message = "[{$today} 기준 당일 ";
@ -71,8 +70,8 @@ class PaymentController extends ClientController
break; break;
} }
$this->mode = $mode; $this->mode = $mode;
$this->curPage = intval($params['curPage'] ?? $this->request->get('curPage') ?? 1); $this->curPage = intval($this->request->get('curPage', 1));
$this->perPage = intval($params['perPage'] ?? $this->request->get('perPage') ?? VIEW_LIST_PERPAGE); $this->perPage = intval($this->request->get('perPage', VIEW_LIST_PERPAGE));
[$this->total, $this->entities] = $this->getServiceService()->getEntitiesForNonPayment($this->curPage, $this->perPage, $mode, $exclude_clients); [$this->total, $this->entities] = $this->getServiceService()->getEntitiesForNonPayment($this->curPage, $this->perPage, $mode, $exclude_clients);
$this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage); $this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage);
return $this->render(path: __FUNCTION__); return $this->render(path: __FUNCTION__);

View File

@ -12,9 +12,9 @@ class PointController extends ClientController
private ?OnetimeService $_onetimeService = null; private ?OnetimeService $_onetimeService = null;
private ?HistoryService $_historyService = null; private ?HistoryService $_historyService = null;
private ?MemberService $_memberService = null; private ?MemberService $_memberService = null;
public function __construct() public function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
$this->getView()->setPath('point'); $this->getView()->setPath('point');
} // } //
public function getMemberService(): MemberService public function getMemberService(): MemberService
@ -42,7 +42,7 @@ class PointController extends ClientController
//IdcCouponListMK.jsp -> IdcPointListMK.jsp 신규추가가 //IdcCouponListMK.jsp -> IdcPointListMK.jsp 신규추가가
//CLI 접속방법 : php index.php site/client/point/index //CLI 접속방법 : php index.php site/client/point/index
//WEB 접속방법 : http://localhost/site/client/point/index //WEB 접속방법 : http://localhost/site/client/point/index
public function index(array $params) public function index()
{ {
//쿠폰내역 //쿠폰내역
$this->curPage = intval($params['curPage'] ?? $this->request->get('curPage') ?? 1); $this->curPage = intval($params['curPage'] ?? $this->request->get('curPage') ?? 1);
@ -60,31 +60,31 @@ class PointController extends ClientController
//IdcCouponUseMK.jsp -> domain_coupon_use.php //IdcCouponUseMK.jsp -> domain_coupon_use.php
//CLI 접속방법 : php index.php site/client/counpon/client/client_code/코드 //CLI 접속방법 : php index.php site/client/counpon/client/client_code/코드
//WEB 접속방법 : http://localhost/site/client/coupon/client/client_code/코드 //WEB 접속방법 : http://localhost/site/client/coupon/client/client_code/코드
public function client(array $params) public function client()
{ {
//사용자정보 //사용자정보
if (!array_key_exists('client_code', $params)) { $client_code = $this->request->get('client_code');
if (!$client_code) {
throw new \Exception("client_code 값이 정의되지 않았습니다."); throw new \Exception("client_code 값이 정의되지 않았습니다.");
} }
$client_code = $params['client_code'];
$client = $this->getClientService()->getEntityByCode($client_code); $client = $this->getClientService()->getEntityByCode($client_code);
if (!$client) { if (!$client) {
throw new \Exception("[$client_code]에 해당하는 사용자정보가 존재하지 않습니다."); throw new \Exception("[$client_code]에 해당하는 사용자정보가 존재하지 않습니다.");
} }
$this->client = $client; $this->client = $client;
//전체 관리자정보(등록자) //전체 관리자정보(등록자)
if (!array_key_exists('mkid', $params)) { $member_code = $this->request->get('mkid');
throw new \Exception("mkid 값이 정의되지 않았습니다."); if (!$member_code) {
throw new \Exception("member_code 값이 정의되지 않았습니다.");
} }
$member_code = $params['mkid'];
$member = $this->getMemberService()->getEntityByCode($member_code); $member = $this->getMemberService()->getEntityByCode($member_code);
if (!$member) { if (!$member) {
throw new \Exception("[$member_code]에 해당하는 관리자정보가 존재하지 않습니다."); throw new \Exception("[$member_code]에 해당하는 관리자정보가 존재하지 않습니다.");
} }
$this->member = $member; $this->member = $member;
//쿠폰내역 //쿠폰내역
$this->curPage = intval($params['curPage'] ?? $this->request->get('curPage') ?? 1); $this->curPage = intval($this->request->get('curPage', 1));
$this->perPage = intval($params['perPage'] ?? $this->request->get('perPage') ?? VIEW_LIST_PERPAGE); $this->perPage = intval($this->request->get('perPage', VIEW_LIST_PERPAGE));
[$this->total, $this->services] = $this->getServiceService()->getEntitiesForCoupon($this->curPage, $this->perPage, $client_code); [$this->total, $this->services] = $this->getServiceService()->getEntitiesForCoupon($this->curPage, $this->perPage, $client_code);
$this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage); $this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage);
return $this->render(__FUNCTION__); return $this->render(__FUNCTION__);
@ -92,12 +92,12 @@ class PointController extends ClientController
//IdcCouponBuyMK.jsp -> domain_coupon_buy.php //IdcCouponBuyMK.jsp -> domain_coupon_buy.php
//CLI 접속방법 : php index.php site/client/counpon/insert_form //CLI 접속방법 : php index.php site/client/counpon/insert_form
//WEB 접속방법 : http://localhost/site/client/coupon/insert_form //WEB 접속방법 : http://localhost/site/client/coupon/insert_form
public function insert_form(array $params) public function insert_form()
{ {
if (!array_key_exists('service_code', $params)) { $service_code = $this->request->get('service_code');
throw new \Exception("service_code 값이 정의되지 않았습니다."); if (!$service_code) {
throw new \Exception("client_code 값이 정의되지 않았습니다.");
} }
$service_code = $params['service_code'];
$service = $this->getServiceService()->getEntityByCode($service_code); $service = $this->getServiceService()->getEntityByCode($service_code);
if (!$service) { if (!$service) {
throw new \Exception("[$service_code]에 해당하는 서비스정보가 존재하지 않습니다."); throw new \Exception("[$service_code]에 해당하는 서비스정보가 존재하지 않습니다.");
@ -110,10 +110,10 @@ class PointController extends ClientController
} }
$this->client = $client; $this->client = $client;
//전체 관리자정보(등록자) //전체 관리자정보(등록자)
if (!array_key_exists('mkid', $params)) { $member_code = $this->request->get('mkid');
throw new \Exception("mkid 값이 정의되지 않았습니다."); if (!$member_code) {
throw new \Exception("member_code 값이 정의되지 않았습니다.");
} }
$member_code = $params['mkid'];
$member = $this->getMemberService()->getEntityByCode($member_code); $member = $this->getMemberService()->getEntityByCode($member_code);
if (!$member) { if (!$member) {
throw new \Exception("[$member_code]에 해당하는 관리자정보가 존재하지 않습니다."); throw new \Exception("[$member_code]에 해당하는 관리자정보가 존재하지 않습니다.");
@ -126,31 +126,32 @@ class PointController extends ClientController
//IdcCouponBuyMK.jsp -> domain_coupon_buy.php //IdcCouponBuyMK.jsp -> domain_coupon_buy.php
//CLI 접속방법 : php index.php site/client/counpon/insert_form //CLI 접속방법 : php index.php site/client/counpon/insert_form
//WEB 접속방법 : http://localhost/site/client/coupon/insert_form //WEB 접속방법 : http://localhost/site/client/coupon/insert_form
public function insert(array $params) public function insert()
{ {
if (!array_key_exists('service_code', $params)) { $service_code = $this->request->get('service_code');
if (!$service_code) {
throw new \Exception("service_code 값이 정의되지 않았습니다."); throw new \Exception("service_code 값이 정의되지 않았습니다.");
} }
$service_code = $params['service_code'];
$service = $this->getServiceService()->getEntityByCode($service_code); $service = $this->getServiceService()->getEntityByCode($service_code);
if (!$service) { if (!$service) {
throw new \Exception("[$service_code]에 해당하는 서비스정보가 존재하지 않습니다."); throw new \Exception("[$service_code]에 해당하는 서비스정보가 존재하지 않습니다.");
} }
$this->service = $service;
//사용자정보 //사용자정보
$client = $this->getClientService()->getEntityByCode($service->getClientCode()); $client = $this->getClientService()->getEntityByCode($service->getClientCode());
if (!$client) { if (!$client) {
throw new \Exception("[{$service->getClientCode()}]에 해당하는 사용자정보가 존재하지 않습니다."); throw new \Exception("[{$service->getClientCode()}]에 해당하는 사용자정보가 존재하지 않습니다.");
} }
$this->client = $client;
//전체 관리자정보(등록자) //전체 관리자정보(등록자)
if (!array_key_exists('mkid', $params)) { $member_code = $this->request->get('mkid');
throw new \Exception("mkid 값이 정의되지 않았습니다."); if (!$member_code) {
throw new \Exception("member_code 값이 정의되지 않았습니다.");
} }
$member_code = $params['mkid'];
$member = $this->getMemberService()->getEntityByCode($member_code); $member = $this->getMemberService()->getEntityByCode($member_code);
if (!$member) { if (!$member) {
throw new \Exception("[$member_code]에 해당하는 관리자정보가 존재하지 않습니다."); throw new \Exception("[$member_code]에 해당하는 관리자정보가 존재하지 않습니다.");
} }
//onetime_sub 도메인 구매 수량 //onetime_sub 도메인 구매 수량
$coupon = $this->request->get('coupon'); $coupon = $this->request->get('coupon');
if (! $coupon || $coupon < 1) { if (! $coupon || $coupon < 1) {

View File

@ -8,9 +8,9 @@ use lib\Services\ServiceService;
abstract class DBMSController extends CommonController abstract class DBMSController extends CommonController
{ {
private ?ServiceService $_service = null; private ?ServiceService $_service = null;
public function __construct() protected function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
//View의 추가디렉토리 //View의 추가디렉토리
$this->getView()->setPath('dbms'); $this->getView()->setPath('dbms');
} // } //

View File

@ -17,9 +17,9 @@ class DashboardController extends DBMSController
private ?KCSService $_kcsService = null; private ?KCSService $_kcsService = null;
private ?HistoryService $_historyService = null; private ?HistoryService $_historyService = null;
public function __construct() public function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
$this->getView()->setPath('dashboard'); $this->getView()->setPath('dashboard');
$this->helper = new ServiceHelper(); $this->helper = new ServiceHelper();
} // } //
@ -80,16 +80,12 @@ class DashboardController extends DBMSController
//서비스카운팅 , total_counting.php //서비스카운팅 , total_counting.php
//CLI 접속방법 : php index.php site/dashboard/totalcount/sitekey/도메인 //CLI 접속방법 : php index.php site/dashboard/totalcount/sitekey/도메인
//WEB 접속방법 : http://localhost/site/dashboard/totalcount/sitekey/도메인 //WEB 접속방법 : http://localhost/site/dashboard/totalcount/sitekey/도메인
public function totalcount(array $params) public function totalcount()
{ {
if (!array_key_exists('sitekey', $params)) { $sitekey = $this->request->get('sitekey');
if (!$sitekey) {
throw new \Exception("sitekey 값이 정의되지 않았습니다."); throw new \Exception("sitekey 값이 정의되지 않았습니다.");
} }
$sitekey = $params['sitekey'];
//사이트 정보 가져오기
if (!array_key_exists($sitekey, DBMS_SITEINFOS)) {
throw new \Exception("[{$sitekey}]에 해당하는 사이트정보가 없습니다.");
}
$this->siteInfo = DBMS_SITEINFOS[$sitekey]; $this->siteInfo = DBMS_SITEINFOS[$sitekey];
$this->totalcount = $this->getServiceService()->getTotalCountForDashboard($this->siteInfo); $this->totalcount = $this->getServiceService()->getTotalCountForDashboard($this->siteInfo);
$summary = array(); $summary = array();
@ -117,11 +113,10 @@ class DashboardController extends DBMSController
//신규서버현황 new_server_list.php //신규서버현황 new_server_list.php
//CLI 접속방법 : php index.php site/dashboard/latest_service/limit/5 //CLI 접속방법 : php index.php site/dashboard/latest_service/limit/5
//WEB 접속방법 : http://localhost/site/dashboard/latest_service/limit/5 //WEB 접속방법 : http://localhost/site/dashboard/latest_service/limit/5
public function latest_service(array $params) public function latest_service()
{ {
$limit = array_key_exists('limit', $params) ? $params['limit'] : 5;
//신규서버정보 //신규서버정보
$this->limit = intval($limit); $this->limit = intval($this->request->get('limit', 5));
$this->entities = $this->getServiceService()->getLatest($this->limit); $this->entities = $this->getServiceService()->getLatest($this->limit);
// echo $this->getServiceervice()->getModel()->getLastQuery(); // echo $this->getServiceervice()->getModel()->getLastQuery();
//전체 관리자정보(등록자) //전체 관리자정보(등록자)
@ -152,11 +147,10 @@ class DashboardController extends DBMSController
} }
//CLI 접속방법 : php index.php site/dashboard/latest_history/limit/5 //CLI 접속방법 : php index.php site/dashboard/latest_history/limit/5
//WEB 접속방법 : http://localhost/site/dashboard/latest_history/limit/5 //WEB 접속방법 : http://localhost/site/dashboard/latest_history/limit/5
public function latest_history(array $params): string public function latest_history(): string
{ {
$limit = array_key_exists('limit', $params) ? $params['limit'] : 5;
//신규서버정보 //신규서버정보
$this->limit = intval($limit); $this->limit = intval($this->request->get('limit', 5));
$this->entitys = $this->getHistoryService()->getLatest($this->limit); $this->entitys = $this->getHistoryService()->getLatest($this->limit);
//전체 서비스정보 //전체 서비스정보
$this->services = $this->getServiceService()->getEntities(); $this->services = $this->getServiceService()->getEntities();
@ -167,44 +161,37 @@ class DashboardController extends DBMSController
//service_list_cs_count.php //service_list_cs_count.php
//CLI 접속방법 : php index.php site/dashboard/cscount/service_code/서비스코드/client_code/고객코드 //CLI 접속방법 : php index.php site/dashboard/cscount/service_code/서비스코드/client_code/고객코드
//WEB 접속방법 : http://localhost/site/dashboard/cscount/service_code/서비스코드/client_code/고객코드 //WEB 접속방법 : http://localhost/site/dashboard/cscount/service_code/서비스코드/client_code/고객코드
public function cscount(array $params): string public function cscount(): string
{ {
if (!array_key_exists('service_code', $params)) { $service_code = $this->request->get('service_code');
if (!$service_code) {
throw new \Exception("service_code 값이 정의되지 않았습니다."); throw new \Exception("service_code 값이 정의되지 않았습니다.");
} }
if (!array_key_exists('client_code', $params)) { $service = $this->getServiceService()->getEntityByCode($service_code);
throw new \Exception("client_code 값이 정의되지 않았습니다."); if (!$service) {
throw new \Exception("[$service_code]에 해당하는 서비스정보가 존재하지 않습니다.");
} }
$serviceCode = $params['service_code']; $this->service = $service;
$clientCode = $params['client_code'];
$this->service_code = $serviceCode;
$this->client_code = $clientCode;
//VPC정보갯수 //VPC정보갯수
$this->vpc = $this->getVPCService()->getCountByServiceCode($serviceCode); $this->vpc = $this->getVPCService()->getCountByServiceCode($service->getServiceCode());
//KCS정보갯수 //KCS정보갯수
$this->kcs = $this->getKCSService()->getCountByServiceCode($serviceCode); $this->kcs = $this->getKCSService()->getCountByServiceCode($service->getServiceCode());
return $this->render(__FUNCTION__); return $this->render(__FUNCTION__);
} }
//service_list_cs_count.php //service_list_cs_count.php
//CLI 접속방법 : php index.php site/dashboard/cscount/service_code/서비스코드/client_code/고객코드 //CLI 접속방법 : php index.php site/dashboard/cscount/service_code/서비스코드/client_code/고객코드
//WEB 접속방법 : http://localhost/site/dashboard/cscount/service_code/서비스코드/client_code/고객코드 //WEB 접속방법 : http://localhost/site/dashboard/cscount/service_code/서비스코드/client_code/고객코드
public function coupon(array $params): string public function coupon(): string
{ {
if (!array_key_exists('service_code', $params)) { $service_code = $this->request->get('service_code');
if (!$service_code) {
throw new \Exception("service_code 값이 정의되지 않았습니다."); throw new \Exception("service_code 값이 정의되지 않았습니다.");
} }
if (!array_key_exists('client_code', $params)) { $service = $this->getServiceService()->getEntityByCode($service_code);
throw new \Exception("client_code 값이 정의되지 않았습니다."); if (!$service) {
throw new \Exception("[$service_code]에 해당하는 서비스정보가 존재하지 않습니다.");
} }
$serviceCode = $params['service_code']; $this->entity = $service;
$clientCode = $params['client_code'];
$entity = $this->getServiceService()->getEntityByCode($serviceCode);
if (!$entity) {
throw new \Exception("{$serviceCode}에 해당하는 서비스정보가 존재하지 않습니다.");
}
$this->entity = $entity;
$this->service_code = $serviceCode;
$this->client_code = $clientCode;
return $this->render(__FUNCTION__); return $this->render(__FUNCTION__);
} }
} //Class } //Class

View File

@ -7,9 +7,9 @@ use lib\Services\DefenceService;
class DefenceController extends DBMSController class DefenceController extends DBMSController
{ {
private ?DefenceService $_clientService = null; private ?DefenceService $_clientService = null;
public function __construct() public function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
$this->getView()->setPath('defence'); $this->getView()->setPath('defence');
} // } //
public function getDefenceService(): DefenceService public function getDefenceService(): DefenceService
@ -23,12 +23,13 @@ class DefenceController extends DBMSController
//방어 defense_index.php //방어 defense_index.php
//CLI 접속방법 : php index.php site/defence/mk/zone/존/parent/부모키/child/자식키 //CLI 접속방법 : php index.php site/defence/mk/zone/존/parent/부모키/child/자식키
//WEB 접속방법 : http://localhostsite/defence/mk/zone/존/parent/부모키/child/자식키 //WEB 접속방법 : http://localhostsite/defence/mk/zone/존/parent/부모키/child/자식키
public function mk(array $params): string public function mk(): string
{ {
if (!array_key_exists('zone', $params)) { $zone = $this->request->get('zone');
if (!$zone) {
throw new \Exception("zone 값이 정의되지 않았습니다."); throw new \Exception("zone 값이 정의되지 않았습니다.");
} }
$zone = urldecode($params['zone']); $zone = urldecode($zone);
$this->entities = $this->getDefenceService()->getMKList($zone); $this->entities = $this->getDefenceService()->getMKList($zone);
$this->zone = $zone; $this->zone = $zone;
return $this->render(__FUNCTION__); return $this->render(__FUNCTION__);

View File

@ -11,9 +11,9 @@ class GearlistController extends DBMSController
{ {
private ?GearlistService $_gearlistServicerService = null; private ?GearlistService $_gearlistServicerService = null;
private ?ServerService $_serverService = null; private ?ServerService $_serverService = null;
public function __construct() public function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
$this->getView()->setPath('gearlist'); $this->getView()->setPath('gearlist');
} // } //
public function getGearlistService(): GearlistService public function getGearlistService(): GearlistService
@ -44,7 +44,7 @@ class GearlistController extends DBMSController
$entity->format = $this->getServerService()->getCountByMode("format", $cpu, $spec); $entity->format = $this->getServerService()->getCountByMode("format", $cpu, $spec);
return $entity; return $entity;
} }
public function index(array $params): string public function index(): string
{ {
$gearlistEntities = $this->getGearlistService()->getEntitiesForLineUp(); $gearlistEntities = $this->getGearlistService()->getEntitiesForLineUp();
//DB에 넣지않는 이유가 뭘까? DB에 넣으면 관리가 힘들어서? //DB에 넣지않는 이유가 뭘까? DB에 넣으면 관리가 힘들어서?

View File

@ -10,9 +10,9 @@ class NavigatorController extends DBMSController
{ {
private ?ClientService $_clientService = null; private ?ClientService $_clientService = null;
public function __construct() public function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
$this->getView()->setPath('navigator'); $this->getView()->setPath('navigator');
$this->helper = new ServiceHelper(); $this->helper = new ServiceHelper();
} // } //
@ -27,17 +27,14 @@ class NavigatorController extends DBMSController
//부가서비스 : 닷디펜더,딥파인더 등, deepfinder_list.php,dotdefender_list.php //부가서비스 : 닷디펜더,딥파인더 등, deepfinder_list.php,dotdefender_list.php
//CLI 접속방법 : php index.php site/navigator/ipsearch //CLI 접속방법 : php index.php site/navigator/ipsearch
//WEB 접속방법 : http://localhost/site/navigator/ipsearch //WEB 접속방법 : http://localhost/site/navigator/ipsearch
public function ipsearch(array $params): string public function ipsearch(): string
{ {
$ip = array_key_exists('ip', $params) ?? null; $ip = $this->request->get('ip');
if (!$ip) {
$ip = $this->request->get('ip') ?? null;
}
//전체 고객정보 //전체 고객정보
$this->clients = $this->getClientService()->getEntities(); $this->clients = $this->getClientService()->getEntities();
//IP형식이 ipv4인지 확인 후 값가져오기 //IP형식이 ipv4인지 확인 후 값가져오기
$this->curPage = intval($params['curPage'] ?? $this->request->get('curPage') ?? 1); $this->curPage = intval($this->request->get('curPage', 1));
$this->perPage = intval($params['perPage'] ?? $this->request->get('perPage') ?? VIEW_LIST_PERPAGE); $this->perPage = intval($this->request->get('perPage', VIEW_LIST_PERPAGE));
[$this->total, $this->entities] = $this->getServiceService()->getEntitiesForIpSearch($this->curPage, $this->perPage, $ip, $this->helper->isIPAddress($ip)); [$this->total, $this->entities] = $this->getServiceService()->getEntitiesForIpSearch($this->curPage, $this->perPage, $ip, $this->helper->isIPAddress($ip));
$this->ip = $ip; $this->ip = $ip;
$this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage); $this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage);

View File

@ -2,14 +2,17 @@
namespace lib\Controllers\DBMS; namespace lib\Controllers\DBMS;
use lib\Services\ClientService;
use lib\Services\ServerService; use lib\Services\ServerService;
use lib\Utils\Pagination;
class ServerController extends DBMSController class ServerController extends DBMSController
{ {
private ?ServerService $_serverService = null; private ?ServerService $_serverService = null;
public function __construct() private ?ClientService $_clientService = null;
public function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
$this->getView()->setPath('server'); $this->getView()->setPath('server');
} // } //
public function getServerService(): ServerService public function getServerService(): ServerService
@ -19,4 +22,38 @@ class ServerController extends DBMSController
} }
return $this->_serverService; return $this->_serverService;
} }
public function getClientService(): ClientService
{
if ($this->_clientService === null) {
$this->_clientService = new ClientService();
}
return $this->_clientService;
}
//IdcCouponListMK.jsp -> domain_coupon.php
//CLI 접속방법 : php index.php site/client/counpon/index
//WEB 접속방법 : http://localhost/site/client/coupon/index
public function index()
{
//사용자정보
$client_code = $this->request->get('client_code');
// echo "client_code:" . $client_code;
if ($client_code) {
$client = $this->getClientService()->getEntityByCode($client_code);
if (!$client) {
throw new \Exception("[$client_code]에 해당하는 사용자정보가 존재하지 않습니다.");
}
$this->client = $client;
}
//쿠폰내역
$this->curPage = intval($this->request->get('curPage', 1));
$this->perPage = intval($this->request->get('perPage', VIEW_LIST_PERPAGE));
[$this->total, $this->services] = $this->getServerService()->getEntitiesByClient($this->curPage, $this->perPage, $client_code);
$this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage);
$total_coupon = 0;
foreach ($this->services as $service) {
$total_coupon += $service->getCoupon();
}
$this->total_coupon = $total_coupon;
return $this->render(__FUNCTION__);
}
} //Class } //Class

View File

@ -12,9 +12,9 @@ class ServiceController extends DBMSController
private ?ClientService $_clientService = null; private ?ClientService $_clientService = null;
private ?AddDbService $_addDbService = null; private ?AddDbService $_addDbService = null;
public function __construct() public function __construct(array $params = [])
{ {
parent::__construct(); parent::__construct($params);
$this->getView()->setPath('service'); $this->getView()->setPath('service');
} // } //
public function getClientService(): ClientService public function getClientService(): ClientService
@ -35,12 +35,13 @@ class ServiceController extends DBMSController
//부가서비스 : 닷 디펜더,딥 파인더 ,M307-1,M394-2등, deepfinder_list.php,dotdefender_list.php //부가서비스 : 닷 디펜더,딥 파인더 ,M307-1,M394-2등, deepfinder_list.php,dotdefender_list.php
//CLI 접속방법 : php index.php site/service//extra/adddb_code/코드번호 //CLI 접속방법 : php index.php site/service//extra/adddb_code/코드번호
//WEB 접속방법 : http://localhost/site/service/extra/adddb_code/코드번호 //WEB 접속방법 : http://localhost/site/service/extra/adddb_code/코드번호
public function extra(array $params): string public function extra(): string
{ {
if (!array_key_exists('adddb_code', $params)) { $adddb_code = $this->request->get('adddb_code');
if (!$adddb_code) {
throw new \Exception("adddb_code 값이 정의되지 않았습니다."); throw new \Exception("adddb_code 값이 정의되지 않았습니다.");
} }
$this->adddb_code = urldecode($params['adddb_code']); $this->adddb_code = urldecode($adddb_code);
//해당 부가서비스의 services_code 목록 가져오기 //해당 부가서비스의 services_code 목록 가져오기
//segment의 값이 한글인경우 urldecode가 필요 //segment의 값이 한글인경우 urldecode가 필요
$addDbEntities = $this->getAddDbService()->getEntitiesByCode($this->adddb_code); $addDbEntities = $this->getAddDbService()->getEntitiesByCode($this->adddb_code);
@ -54,8 +55,8 @@ class ServiceController extends DBMSController
//전체 사용자정보 //전체 사용자정보
$this->clients = $this->getClientService()->getEntities(); $this->clients = $this->getClientService()->getEntities();
//부가서비스용 서비스목록 가져오기 //부가서비스용 서비스목록 가져오기
$this->curPage = intval($params['curPage'] ?? $this->request->get('curPage') ?? 1); $this->curPage = intval($this->request->get('curPage', 1));
$this->perPage = intval($params['perPage'] ?? $this->request->get('perPage') ?? VIEW_LIST_PERPAGE); $this->perPage = intval($this->request->get('perPage', VIEW_LIST_PERPAGE));
[$this->total, $this->entities] = $this->getServiceService()->getEntitiesForExtra($this->curPage, $this->perPage, $service_codes); [$this->total, $this->entities] = $this->getServiceService()->getEntitiesForExtra($this->curPage, $this->perPage, $service_codes);
$this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage); $this->pagination = new Pagination($this->total, (int)$this->curPage, (int)$this->perPage);
return $this->render(__FUNCTION__); return $this->render(__FUNCTION__);

View File

@ -2,7 +2,7 @@
namespace lib\Controllers; namespace lib\Controllers;
use lib\Core\Response; use lib\Http\Response;
class HomeController class HomeController
{ {

View File

@ -17,12 +17,12 @@ abstract class Controller
protected ?Session $session = null; protected ?Session $session = null;
protected ?Redirect $redirect = null; protected ?Redirect $redirect = null;
protected ?Request $request = null; protected ?Request $request = null;
protected function __construct() protected function __construct(array $params = [])
{ {
$this->url = new Url(); $this->url = new Url();
$this->session = new Session(); $this->session = new Session();
$this->redirect = new Redirect($this->session); $this->redirect = new Redirect($this->session);
$this->request = new Request(); $this->request = new Request($params);
} // } //
final public function __get($name) final public function __get($name)
{ {

View File

@ -56,10 +56,10 @@ class QueryBuilder
if (!empty($this->order)) { if (!empty($this->order)) {
$sql .= " ORDER BY " . implode(', ', $this->order); $sql .= " ORDER BY " . implode(', ', $this->order);
} }
if ($this->limit !== null) { if ($this->limit) {
$sql .= " LIMIT {$this->limit}"; $sql .= " LIMIT {$this->limit}";
} }
if ($this->offset !== null) { if ($this->offset) {
$sql .= " OFFSET {$this->offset}"; $sql .= " OFFSET {$this->offset}";
} }
return $sql; return $sql;

View File

@ -14,4 +14,12 @@ class ServerEntity extends Entity
{ {
parent::__construct($datas); parent::__construct($datas);
} // } //
public function getServerCode(): string
{
return $this->server_code;
}
public function getServiceCode(): string
{
return $this->service_code;
}
} //Class } //Class

View File

@ -4,22 +4,16 @@ namespace lib\Http;
class Request extends Http class Request extends Http
{ {
protected array $get; private array $_datas = [];
protected array $post; public function __construct(array $params = [])
protected array $data;
public function __construct()
{ {
parent::__construct(); parent::__construct();
$this->_datas = array_merge($_GET, $_POST, $params);
$this->get = $_GET;
$this->post = $_POST;
$this->data = array_merge($_GET, $_POST);
} }
public function all(): array public function all(): array
{ {
return $this->data; return $this->_datas;
} }
public function get(?string $key = null, $default = null): mixed public function get(?string $key = null, $default = null): mixed
@ -27,17 +21,17 @@ class Request extends Http
if ($key === null) { if ($key === null) {
return $this->all(); return $this->all();
} }
return $this->data[$key] ?? $default; return $this->_datas[$key] ?? $default;
} }
public function only(array $keys): array public function only(array $keys): array
{ {
return array_intersect_key($this->data, array_flip($keys)); return array_intersect_key($this->_datas, array_flip($keys));
} }
public function has(string $key): bool public function has(string $key): bool
{ {
return array_key_exists($key, $this->data); return array_key_exists($key, $this->_datas);
} }
/** /**

View File

@ -30,7 +30,7 @@ class DefenceService extends CommonService
public function getMKList(mixed $zone = null): array public function getMKList(mixed $zone = null): array
{ {
if ($zone !== null) { if ($zone) {
$this->getModel()->where(['zone' => $zone]); $this->getModel()->where(['zone' => $zone]);
} }
$this->getModel()->orderBy(['zone' => 'asc', 'parents' => 'asc', 'child' => 'asc']); $this->getModel()->orderBy(['zone' => 'asc', 'parents' => 'asc', 'child' => 'asc']);

View File

@ -57,4 +57,19 @@ class ServerService extends CommonService
} }
return $this->getCount(); return $this->getCount();
} }
//사용자별 서비스리스트트
public function getEntitiesByClient(int $curPage, int $perPage, ?string $client_code = null): array
{
if ($client_code) {
$this->getModel()->where("client_code", $client_code);
}
//Query문 Rest여부 -> 같은조건에 Count 받고, 결과값을 받고 싶을때는 continue()
$this->getModel()->setContinue(true);
$total = $this->getCount();
//limit, offset 설정
$this->getModel()->limit($perPage);
$this->getModel()->offset(($curPage - 1) * $perPage);
return [$total, $this->getEntities()];
}
} }

View File

@ -38,9 +38,9 @@ class ServiceService extends CommonService
} }
//사용자별 서비스리스트트 //사용자별 서비스리스트트
public function getEntitiesForCoupon(int $curPage, int $perPage, ?string $client_code = null): array public function getEntitiesByClient(int $curPage, int $perPage, ?string $client_code = null): array
{ {
if ($client_code !== null) { if ($client_code) {
$this->getModel()->where("client_code", $client_code); $this->getModel()->where("client_code", $client_code);
} }
$this->getModel()->whereNotIn("service_line", ['vpn', 'test', 'solo', 'substitution', 'event']); $this->getModel()->whereNotIn("service_line", ['vpn', 'test', 'solo', 'substitution', 'event']);

View File

@ -1,44 +0,0 @@
<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>

View File

@ -1,3 +1,6 @@
<?php if ($this->client) { ?>
<h3>고객명 : <a href="/serviceDetail.sev?client_code=<?= $this->client->getClientCode() ?>"><?= $this->client->getTitle() ?></a> / 쿠폰발급대상 : <?= count($this->services) ?> 대 / 전체 남은 수량 : <?= $this->total_coupon; ?> 개</h3>
<?php } ?>
<div class="table-responsive" id="table"> <div class="table-responsive" id="table">
<input type="hidden" id="token"> <input type="hidden" id="token">
<table class="table table-bordered table-hover table-striped" style="text-align:center;"> <table class="table table-bordered table-hover table-striped" style="text-align:center;">
@ -12,6 +15,7 @@
<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> </tr>
</thead> </thead>
<tbody> <tbody>
@ -26,12 +30,13 @@
<td><?= $service->service_open_date ?></td> <td><?= $service->service_open_date ?></td>
<td><?= $service->service_line ?></td> <td><?= $service->service_line ?></td>
<td><?= $service->getCoupon() + $service->getUsedCoupon() ?></td> <td><?= $service->getCoupon() + $service->getUsedCoupon() ?></td>
<td><?= $service->getCoupon() ?></td> <td onclick="location.href='/IdcCouponBuyMK.cup?service_code=<?= $service->getServiceCode() ?>" style=" cursor: pointer;"><?= $service->getCoupon() ?></td>
<td><?= $service->getUsedCoupon() ?></td> <td><?= $service->getUsedCoupon() ?></td>
<td><a href="/IdcCouponBuyMK.cup?service_code=<?= $service->getServiceCode() ?>&mkid=<?= $this->member ? $this->member->getPK() : "" ?>"><?= !$service->getCoupon() ? "사용완료" : "사용하기" ?></a></td>
</tr> </tr>
<?php $i++; ?> <?php $i++; ?>
<?php } ?> <?php } ?>
</tbody> </tbody>
</table> </table>
</div> </div>
<div align='center'><?= $this->pagination->render(DBMS_SITE_URL . "/IdcCouponListMK.cup", ['curPage' => $this->curPage, 'perPage' => $this->perPage]) ?></div> <div align='center'><?= $this->pagination->render(DBMS_SITE_URL . "/IdcCouponUseMK.cup", ['client_code' => $this->client ? $this->client->getClientCode() : "", 'mkid' => $this->member ? $this->member->getPK() : "", 'curPage' => $this->curPage, 'perPage' => $this->perPage]) ?></div>

View File

@ -1,5 +1,7 @@
<div class="table-responsive"> <div class="table-responsive">
<form method="post" action="<?= DBMS_SITE_HOST ?>/dbms/client/coupon/insert/service_code/<?= $this->service->getServiceCode() ?>/mkid/<?= $this->member->getPK() ?>"> <form method="post" action="<?= DBMS_SITE_HOST ?>/dbms/client/coupon/insert">
<input type="hidden" name="service_code" value="<?= $this->service->getServiceCode() ?>">
<input type="hidden" name="mkid" value="<?= $this->member ? $this->member->getPK() : "" ?>">
<table class="table table-bordered table-hover table-striped"> <table class="table table-bordered table-hover table-striped">
<thead></thead> <thead></thead>
<tbody> <tbody>

View File

@ -1,35 +0,0 @@
전체구매건수 : <?= count($this->entities) ?>
<br>
<div class="table-responsive" id="table">
<table class="table table-bordered table-hover table-striped">
<thead>
<tr>
<th style="width:120px;text-align:center;">고객명</th>
<th style="width:130px;text-align:center;">서비스코드</th>
<th style="width:40px;text-align:center;">수량</th>
<th style="width:100px;text-align:center;">결제금액</th>
<th style="width:100px;text-align:center;">미납금액</th>
<th style="width:100px;text-align:center;">신청일</th>
<td style="width:100px;text-align:center;">결제일</td>
<th style="text-align:center;"> </th>
<th style="width:80px;text-align:center;">담당자</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->entities as $entity) { ?>
<tr>
<td style="text-align:center;"><?= $this->clients[$entity->getClientCode()]->getTitle() ?></td>
<td style="text-align:center;"><a href="/IdcDepositNonPaymentList.dep?searchContent=<?= $entity->getServiceCode() ?>"><?= $entity->getServiceCode() ?></a></td>
<td style="text-align:center;"><?= $entity->getTitle() ?></td>
<td style="text-align:center;"><?= $entity->getAmount() ?></td>
<td style="text-align:center;"><?= $entity->getNonPayment() ?></td>
<td style="text-align:center;"><?= $entity->getRequestDate() ?></td>
<td style="text-align:center;"><?= $entity->getPaymentDate() ?></td>
<td><?= $entity->getNote() ?></td>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<div align='center'><?= $this->pagination->render(DBMS_SITE_URL . "/IdcDomainBuyListMK.cup", ['curPage' => $this->curPage, 'perPage' => $this->perPage]) ?></div>

View File

@ -20,8 +20,7 @@
<th style="text-align:center;width:100px;">서비스 가격</th> <th style="text-align:center;width:100px;">서비스 가격</th>
<th style="text-align:center;width:100px;">과금상태</th> <th style="text-align:center;width:100px;">과금상태</th>
<th style="text-align:center;width:100px;">미납과금</th> <th style="text-align:center;width:100px;">미납과금</th>
<!--<th>청구서 발행 대상</th>--> <th style="text-align:center;width:200px;">비고</th>
<th style="text-align:center;">비고</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -38,7 +37,6 @@
<td style="text-align:center;"><?= $entity->addDB_accountStatus ?></td> <td style="text-align:center;"><?= $entity->addDB_accountStatus ?></td>
<td style="text-align:center;"><?= $entity->addDB_nonpayment ?></td> <td style="text-align:center;"><?= $entity->addDB_nonpayment ?></td>
<!--<td><?= $entity->addDB_accountStatus ?></td>--> <!--<td><?= $entity->addDB_accountStatus ?></td>-->
<!--<td></td>-->
<td><?= $entity->service_note ?></td> <td><?= $entity->service_note ?></td>
</td> </td>
</tr> </tr>

View File

@ -113,6 +113,11 @@
background-color: #24a2e0; background-color: #24a2e0;
color: #fff; color: #fff;
} }
.mk1123 {
opacity: 0.4;
filter: alpha(opacity=40);
}
</style> </style>
<ul class="table-ul"> <ul class="table-ul">
<?php foreach ($this->entities as $entity) { ?> <?php foreach ($this->entities as $entity) { ?>
@ -120,18 +125,3 @@
<li class="icon-<?= $zone ?>" id='<?= $zone == $this->zone ? "active" : "" ?> onclick="location.href=' /DefenseInfoMK.sev?zone=<?= $zone ?>'"><?= $zone ?></li> <li class="icon-<?= $zone ?>" id='<?= $zone == $this->zone ? "active" : "" ?> onclick="location.href=' /DefenseInfoMK.sev?zone=<?= $zone ?>'"><?= $zone ?></li>
<?php } ?> <?php } ?>
</ul> </ul>
<style>
.123img {
width: 800px;
height: 300px;
}
.123mk1 {
border: 10px solid red;
}
.mk1123 {
opacity: 0.4;
filter: alpha(opacity=40);
}
</style>

View File

@ -0,0 +1,42 @@
<?php if ($this->client) { ?>
<h3>고객명 : <a href="/serverDetail.sev?client_code=<?= $this->client->getClientCode() ?>"><?= $this->client->getTitle() ?></a> / 쿠폰발급대상 : <?= count($this->servers) ?> 대 / 전체 남은 수량 : <?= $this->total_coupon; ?> 개</h3>
<?php } ?>
<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->servers as $server) { ?>
<?php $num = count($this->servers) - $i; ?>
<tr>
<td><?= $num ?></td>
<td><a href="/serviceDetailSolo.sev?client_code=<?= $server->getClientCode() ?>&server_code=<?= $server->getServiceCode() ?>"><?= $server->getServiceCode() ?></td>
<td><?= $server->getServerCode() ?></td>
<td><?= $server->server_ip ?></td>
<td><?= $server->server_open_date ?></td>
<td><?= $server->server_line ?></td>
<td><?= $server->getCoupon() + $server->getUsedCoupon() ?></td>
<td onclick="location.href='/IdcCouponBuyMK.cup?server_code=<?= $server->getServiceCode() ?>" style=" cursor: pointer;"><?= $server->getCoupon() ?></td>
<td><?= $server->getUsedCoupon() ?></td>
<td><a href="/IdcCouponBuyMK.cup?server_code=<?= $server->getServiceCode() ?>&mkid=<?= $this->member ? $this->member->getPK() : "" ?>"><?= !$server->getCoupon() ? "사용완료" : "사용하기" ?></a></td>
</tr>
<?php $i++; ?>
<?php } ?>
</tbody>
</table>
</div>
<div align='center'><?= $this->pagination->render(DBMS_SITE_URL . "/IdcCouponUseMK.cup", ['client_code' => $this->client ? $this->client->getClientCode() : "", 'mkid' => $this->member ? $this->member->getPK() : "", 'curPage' => $this->curPage, 'perPage' => $this->perPage]) ?></div>

View File

@ -379,7 +379,6 @@ $(document).ready(function(){
</div> </div>
<!-- /.navbar-header --> <!-- /.navbar-header -->
<ul class="nav navbar-top-links navbar-right"> <ul class="nav navbar-top-links navbar-right">
<li class="dropdown"> <li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> <a class="dropdown-toggle" data-toggle="dropdown" href="#">
@ -457,79 +456,76 @@ $(document).ready(function(){
<!-- /.navbar-top-links --> <!-- /.navbar-top-links -->
<div class="navbar-default sidebar" role="navigation" style="position: absolute;"> <div class="navbar-default sidebar" role="navigation" style="position: absolute;">
<div class="sidebar-nav navbar-collapse"> <div class="sidebar-nav navbar-collapse">
<div class="menu_button menu_hidden" style="position: absolute; left: 220px; height: 180px; width: 25px; cursor: ew-resize; border-radius: 0px 5px 5px 0px; border: #e7e7e7 1px solid; background-color: #eeeeee;"> <div class="menu_button menu_hidden" style="position: absolute; left: 220px; height: 180px; width: 25px; cursor: ew-resize; border-radius: 0px 5px 5px 0px; border: #e7e7e7 1px solid; background-color: #eeeeee;">
<div class="text_ch text-center " style="padding-top: 20px;">메뉴열기</div> <div class="text_ch text-center " style="padding-top: 20px;">메뉴열기</div>
</div> </div>
<ul class="nav" id="side-menu"> <ul class="nav" id="side-menu">
<li><a class="active" href="DefaultPage.main"><i class="fa fa-home fa-fw"></i> Main</a></li> <li><a class="active" href="DefaultPage.main"><i class="fa fa-home fa-fw"></i> Main</a></li>
<li><a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 장비 관리 <span class="fa arrow"></span></a> <li><a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 장비 관리 <span class="fa arrow"></span></a>
<ul class="nav nav-second-level"> <ul class="nav nav-second-level">
<li><a href="serverWriteForm.ser">신규 장비 등록</a></li> <li><a href="serverWriteForm.ser">신규 장비 등록</a></li>
<li><a href="serverList.ser">전체 장비 목록</a></li> <li><a href="serverList.ser">전체 장비 목록</a></li>
<li><a href="usableServerList.ser">가용 장비 현황</a></li> <li><a href="usableServerList.ser">가용 장비 현황</a></li>
</ul> </ul>
</li> </li>
<li><a href="#"><i class="fa fa-users fa-fw"></i> 고객 관리 <span class="fa arrow"></span></a> <li><a href="#"><i class="fa fa-users fa-fw"></i> 고객 관리 <span class="fa arrow"></span></a>
<ul class="nav nav-second-level"> <ul class="nav nav-second-level">
<li><a href="IdcClientDBWriteForm.cli">신규 고객 등록</a></li> <li><a href="IdcClientDBWriteForm.cli">신규 고객 등록</a></li>
<li><a href="IdcClientDBList.cli">고객 리스트</a></li> <li><a href="IdcClientDBList.cli">고객 리스트</a></li>
</ul> </ul>
</li> </li>
<li><a href="#"><i class="fa fa-desktop fa-fw"></i> 서비스 관리<span class="fa arrow"></span></a> <li><a href="#"><i class="fa fa-desktop fa-fw"></i> 서비스 관리<span class="fa arrow"></span></a>
<ul class="nav nav-second-level"> <ul class="nav nav-second-level">
<li><a href="serviceList.sev">서비스 정보</a></li> <li><a href="serviceList.sev">서비스 정보</a></li>
<li><a href="vpcInfo.sev?referer=">CS 정보</a></li> <li><a href="vpcInfo.sev?referer=">CS 정보</a></li>
<li> <a href="deffenceInfo.sev">방어 라인 정보</a> </li> <li> <a href="deffenceInfo.sev">방어 라인 정보</a> </li>
<li><a href="etcList.sev">부가 서비스</a></li> <li><a href="etcList.sev">부가 서비스</a></li>
<li><a href="${phpurl}/dbms/service/extra/adddb_code/닷 디펜더" target="_blank">닷디펜더</a></li> <li><a href="${phpurl}/dbms/service/extra?adddb_code=닷 디펜더" target="_blank">닷디펜더</a></li>
<li><a href="${phpurl}/dbms/service/extra/adddb_code/딥파인더" target="_blank">딥파인더</a></li> <li><a href="${phpurl}/dbms/service/extra?adddb_code=딥파인더" target="_blank">딥파인더</a></li>
</ul> </ul>
</li> </li>
<li><a href="IdcCouponListMK.cup">도메인 쿠폰 정보</a> <li><a href="#"><i class="fa fa-calculator fa-fw"></i> 과금관리<span class="fa arrow"></span></a>
<ul class="nav nav-second-level"></ul> <ul class="nav nav-second-level">
</li> <li><a id="a_non" href="IdcDepositNonPaymentListMK.dep">미납리스트</a></li>
<li><a href="#"><i class="fa fa-calculator fa-fw"></i> 과금관리<span class="fa arrow"></span></a> <li><a id="a_dep" href="IdcDepositList.dep">입금리스트</a></li>
<ul class="nav nav-second-level"> <li><a href="#">고객별통계</a>
<li><a id="a_non" href="IdcDepositNonPaymentListMK.dep">미납리스트</a></li> <ul class="nav nav-third-level">
<li><a id="a_dep" href="IdcDepositList.dep">입금리스트</a></li> <li><a href="IdcWeeklyNonpayment.dep">주간 및 월간 미납리스트</a></li>
<li><a href="#">고객별통계</a> <li><a href="IdcDetailList.dep">15일간 내역리스트</a></li>
<ul class="nav nav-third-level"> </ul>
<li><a href="IdcWeeklyNonpayment.dep">주간 및 월간 미납리스트</a></li> </li>
<li><a href="IdcDetailList.dep">15일간 내역리스트</a></li> <li><a id="a_reSend" href="IdcReSendMailList.dep">보낸 청구서</a></li>
</ul> </ul>
</li> </li>
<li><a id="a_reSend" href="IdcReSendMailList.dep">보낸 청구서</a></li>
</ul>
</li>
<li><a href="#"><i class="fa fa-line-chart fa-fw"></i> IP관리 <span class="fa arrow"></span></a> <li><a href="#"><i class="fa fa-line-chart fa-fw"></i> IP관리 <span class="fa arrow"></span></a>
<ul class="nav nav-second-level"> <ul class="nav nav-second-level">
<li><a href="IdcLineWriteForm.lin">회선 등록</a></li> <li><a href="IdcLineWriteForm.lin">회선 등록</a></li>
<li><a href="IdcIPListForm.lin">IP 리스트</a></li> <li><a href="IdcIPListForm.lin">IP 리스트</a></li>
<li><a href="IdcLineListForm.lin">회선 정보</a></li> <li><a href="IdcLineListForm.lin">회선 정보</a></li>
</ul> </ul>
</li> </li>
<li><a href="IdcShareBoardListForm.main"><i class="fa fa-save fa-fw"></i> 공동자료실</a></li> <!--<li><a href="IdcShareBoardListForm.main"><i class="fa fa-save fa-fw"></i> 공동자료실</a></li>-->
<li><a href="#"><i class="fa fa-line-chart fa-fw"></i> 통계 <span class="fa arrow"></span></a> <li><a href="#"><i class="fa fa-line-chart fa-fw"></i> 통계 <span class="fa arrow"></span></a>
<ul class="nav nav-second-level"> <ul class="nav nav-second-level">
<li><a href="IdcClientAllServerList.cli">전체 서버 현황</a></li> <li><a href="IdcClientAllServerList.cli">전체 서버 현황</a></li>
</ul> </ul>
</li> </li>
<li><a href="#"><i class="fa fa-tasks fa-fw"></i> My Page <span class="fa arrow"></span></a> <li><a href="#"><i class="fa fa-tasks fa-fw"></i> My Page <span class="fa arrow"></span></a>
<ul class="nav nav-second-level"> <ul class="nav nav-second-level">
<li><a href="boardSearch.bor?searchOption=name&searchWord=${member.name }">개인게시판</a></li> <li><a href="boardSearch.bor?searchOption=name&searchWord=${member.name }">개인게시판</a></li>
<li><a href="commentList.cm#receive">메세지</a></li> <li><a href="commentList.cm#receive">메세지</a></li>
</ul> </ul>
</li> </li>
<c:if test="${member.power==1 }"> <c:if test="${member.power==1 }">
<li><a href="#"><i class="fa fa-line-chart fa-fw"></i> 환경 설정<span class="fa arrow"></span></a> <li><a href="#"><i class="fa fa-line-chart fa-fw"></i> 환경 설정<span class="fa arrow"></span></a>
<ul class="nav nav-second-level"> <ul class="nav nav-second-level">
<li><a href="IdcMemberListForm.main">권한설정</a></li> <li><a href="IdcMemberListForm.main">권한설정</a></li>
</ul> </ul>
</li> </li>
</c:if> </c:if>
</ul> </ul>
</div> </div>
<!-- /.sidebar-collapse --> <!-- /.sidebar-collapse -->
</div> </div>
<!-- /.navbar-static-side --> <!-- /.navbar-static-side -->
</nav> </nav>

View File

@ -34,7 +34,7 @@
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<div class="table-responsive"> <div class="table-responsive">
<c:import url="${phpurl}/dbms/dashboard/totalcount/sitekey/${host}" /> <c:import url="${phpurl}/dbms/dashboard/totalcount?sitekey=${host}" />
</div> </div>
<!-- /.table-responsive --> <!-- /.table-responsive -->
</div> </div>

View File

@ -15,9 +15,7 @@
<a class="btn btn-outline btn-info" href="IdcClientDBList.cli" >고객리스트</a> <a class="btn btn-outline btn-info" href="IdcClientDBList.cli" >고객리스트</a>
</div> </div>
<div class="table-responsive"> <div class="table-responsive">
<c:import url="${phpurl}/interact/dashboard/statistics" /> <table class="table table-bordered table-hover table-striped">
<!--
<table class="table table-bordered table-hover table-striped">
<thead> <thead>
<tr> <tr>
<td rowspan="2">고객명</td> <td rowspan="2">고객명</td>
@ -91,7 +89,6 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
-->
</div><!-- table-responsive --> </div><!-- table-responsive -->
</div> </div>
<!-- panel-body --> <!-- panel-body -->

View File

@ -22,7 +22,7 @@
<h4><i class="fa fa-desktop fa-fw"></i> 도메인 쿠폰 사용하기</h4> <h4><i class="fa fa-desktop fa-fw"></i> 도메인 쿠폰 사용하기</h4>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<c:import url="${phpurl}/dbms/client/coupon/insert_form/service_code/${mk_service_code}/mkid/${mk_id}" /> <c:import url="${phpurl}/dbms/client/coupon/insert_form?service_code=${mk_service_code}&mkid=${mk_id}" />
</div> </div>
<!-- panel-body --> <!-- panel-body -->
</div> </div>

View File

@ -11,7 +11,7 @@
<h4><i class="fa fa-desktop fa-fw"></i> 도메인 쿠폰 사용하기</h4> <h4><i class="fa fa-desktop fa-fw"></i> 도메인 쿠폰 사용하기</h4>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<c:import url="${phpurl}/dbms/client/coupon/client/client_code/${mk_client_code}/mkid/${member.id}" /> <c:import url="${phpurl}/dbms/client/coupon/index?client_code=${mk_client_code}&mkid=${member.id}&curPage=${curPage}" />
</div> </div>
<!-- panel-body --> <!-- panel-body -->
</div> </div>

View File

@ -11,7 +11,7 @@
<h4><i class="fa fa-desktop fa-fw"></i> 도메인 구매 목록</h4> <h4><i class="fa fa-desktop fa-fw"></i> 도메인 구매 목록</h4>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<c:import url="${phpurl}/dbms/client/onetime/coupon" /> <c:import url="${phpurl}/dbms/client/coupon/index?client_code=${mk_client_code}" />
</div> </div>
<!-- panel-body --> <!-- panel-body -->
</div> </div>

View File

@ -12,7 +12,7 @@
<h4><i class="fa fa-desktop fa-fw"></i> 미납리스트</h4> <h4><i class="fa fa-desktop fa-fw"></i> 미납리스트</h4>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<c:import url="${phpurl}/dbms/client/payment/nonpayment?mode=${mode}&ea=${ea}&curPage=${curPage}" /> <c:import url="${phpurl}/dbms/client/payment/index?mode=${mode}&ea=${ea}&curPage=${curPage}" />
</div> </div>
<!-- panel-body --> <!-- panel-body -->
</div> </div>

View File

@ -84,7 +84,7 @@ $(function()
<h4><i class="fa fa-desktop fa-fw"></i>방어라인 정보</h4> <h4><i class="fa fa-desktop fa-fw"></i>방어라인 정보</h4>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<c:import url="${phpurl}/dbms/defence/mk/zone/${zone}/parents/${parents}/child/{child}" /> <c:import url="${phpurl}/dbms/defence/mk?zone=${zone}&parents=${parents}&child={child}" />
</div> </div>
<!-- panel-body --> <!-- panel-body -->
</div> </div>

View File

@ -948,7 +948,7 @@ $(function()
<select class="btn btn-outline btn-default" id="bill"> <select class="btn btn-outline btn-default" id="bill">
<option value="">개통안내서</option> <option value="">개통안내서</option>
<c:forEach items="${detail}" var="dto"> <c:forEach items="${detail}" var="dto">
<option value="${dto.service_code }">${dto.service_code }</option> <option value="${dto.service_code}">${dto.service_code }</option>
</c:forEach> </c:forEach>
</select> </select>
<a class="btn btn-outline btn-default" onclick="tableToExcel('table','name')">엑셀</a> <a class="btn btn-outline btn-default" onclick="tableToExcel('table','name')">엑셀</a>
@ -969,11 +969,11 @@ $(function()
<div class="row" style="max-width:1200px; padding:10px; border-radius:10px; border:1px #c1c1c1 dotted; margin-top:5px; "> <div class="row" style="max-width:1200px; padding:10px; border-radius:10px; border:1px #c1c1c1 dotted; margin-top:5px; ">
<div class="col-lg-2 col-md-3 col-xs-12" style="padding:3px"> <div class="col-lg-2 col-md-3 col-xs-12" style="padding:3px">
<h4><center><strong>${iusc.client_name}</strong><br><br> <h4><center><strong>${iusc.client_name}</strong><br><br>
[<a href="/IdcDepositNonPaymentList.dep?searchContent=${iusc.client_name }">청구서발행</a>]</center> [<a href="/IdcDepositNonPaymentList.dep?searchContent=${iusc.client_name}">청구서발행</a>]</center>
</h4> </h4>
</div> </div>
<!-- 사용정보 시작--> <!-- 사용정보 시작-->
<c:import url="${phpurl}/dbms/client/dashboard/totalcount/client_code/${client_code }" /> <c:import url="${phpurl}/dbms/client/totalcount?client_code=${client_code}" />
<!-- end 사용정보 --> <!-- end 사용정보 -->
<c:if test="${member.power5 eq 'o'}"> <c:if test="${member.power5 eq 'o'}">
<div class="col-lg-4 col-md-12" style="padding:3px"> <div class="col-lg-4 col-md-12" style="padding:3px">
@ -1003,7 +1003,7 @@ $(function()
<div class="col-lg-12"> <div class="col-lg-12">
<div class="row" style="max-width:1200px; padding:10px; border-radius:10px; border:1px #c1c1c1 dotted; margin-top:5px; "> <div class="row" style="max-width:1200px; padding:10px; border-radius:10px; border:1px #c1c1c1 dotted; margin-top:5px; ">
<c:import url="${phpurl}/dbms/client/memo/update_form/client_code/${client_code}" /> <c:import url="${phpurl}/dbms/client/memo/update_form?client_code=${client_code}" />
</div> </div>
</div> </div>
<!-- 수정사항 끝 --> <!-- 수정사항 끝 -->
@ -1055,22 +1055,22 @@ $(function()
<input type="hidden" value="${dto.cs_total}"/> <input type="hidden" value="${dto.cs_total}"/>
<input type="hidden" value="${dto.kcs_total}"/> <input type="hidden" value="${dto.kcs_total}"/>
<input type="hidden" value="${dto.service_deduction}"/> <input type="hidden" value="${dto.service_deduction}"/>
<input type="hidden" value="${dto.service_united }"> <input type="hidden" value="${dto.service_united}">
<input type="hidden" value="${dto.service_nonAmount }"> <input type="hidden" value="${dto.service_nonAmount}">
<input type="hidden" value="${dto.amount_defence_discount }"> <input type="hidden" value="${dto.amount_defence_discount}">
<input type="hidden" value="${dto.amount_sub_discount }"> <input type="hidden" value="${dto.amount_sub_discount}">
<input type="hidden" value="${dto.amount_one }"> <input type="hidden" value="${dto.amount_one}">
<input type="hidden" value="${dto.amount_etc }"> <input type="hidden" value="${dto.amount_etc}">
<input type="hidden" value="${dto.server_ram1}"> <input type="hidden" value="${dto.server_ram1}">
<input type="hidden" value="${dto.server_ram2 }"> <input type="hidden" value="${dto.server_ram2}">
<input type="hidden" value="${dto.server_ram3 }"> <input type="hidden" value="${dto.server_ram3}">
<input type="hidden" value="${dto.server_ram4 }"> <input type="hidden" value="${dto.server_ram4}">
<input type="hidden" value="${dto.server_ram5 }"> <input type="hidden" value="${dto.server_ram5}">
<input type="hidden" value="${dto.server_hdd1 }"> <input type="hidden" value="${dto.server_hdd1}">
<input type="hidden" value="${dto.server_hdd2 }"> <input type="hidden" value="${dto.server_hdd2}">
<input type="hidden" value="${dto.server_hdd3 }"> <input type="hidden" value="${dto.server_hdd3}">
<input type="hidden" value="${dto.server_hdd4 }"> <input type="hidden" value="${dto.server_hdd4}">
<input type="hidden" value="${dto.server_hdd5 }"> <input type="hidden" value="${dto.server_hdd5}">
</a> </a>
</c:if> </c:if>
<c:if test="${dto.service_line eq 'vpn'}"> <c:if test="${dto.service_line eq 'vpn'}">
@ -1255,12 +1255,12 @@ $(function()
<input type="hidden" value="${dto.kcs_total}"> <input type="hidden" value="${dto.kcs_total}">
<input type="hidden" value="${dto.amount_note}"> <input type="hidden" value="${dto.amount_note}">
<input type="hidden" value="${dto.service_deduction}"/> <input type="hidden" value="${dto.service_deduction}"/>
<input type="hidden" value="${dto.service_united }"> <input type="hidden" value="${dto.service_united}">
<input type="hidden" value="${dto.service_nonAmount }"> <input type="hidden" value="${dto.service_nonAmount}">
<input type="hidden" value="${dto.amount_defence_discount }"> <input type="hidden" value="${dto.amount_defence_discount}">
<input type="hidden" value="${dto.amount_sub_discount }"> <input type="hidden" value="${dto.amount_sub_discount}">
<input type="hidden" value="${dto.amount_one }"> <input type="hidden" value="${dto.amount_one}">
<input type="hidden" value="${dto.amount_etc }"> <input type="hidden" value="${dto.amount_etc}">
</a> </a>
</c:if> </c:if>
</c:if> </c:if>
@ -1304,7 +1304,7 @@ $(function()
<tr> <tr>
<td colspan="2" align="center"> <td colspan="2" align="center">
<c:if test="${member.power5 eq 'o'}"> <c:if test="${member.power5 eq 'o'}">
<button class="btn btn-default btn-sm payment" data-toggle="modal" data-target="#payment_divModal" value="${dto.service_code }"><i class="fa fa-list-alt"></i> 결제내역 <button class="btn btn-default btn-sm payment" data-toggle="modal" data-target="#payment_divModal" value="${dto.service_code}"><i class="fa fa-list-alt"></i> 결제내역
</button> </button>
</c:if> </c:if>
<c:if test="${member.power5 eq 'o'}"> <c:if test="${member.power5 eq 'o'}">
@ -1437,7 +1437,7 @@ $(function()
<i class="fa fa-angle-left"></i> <i class="fa fa-angle-left"></i>
</a> </a>
</li> </li>
<c:forEach var="i" begin="${firstPage }" end="${endPage}"> <c:forEach var="i" begin="${firstPage}" end="${endPage}">
<li> <li>
<a class="btn btn-outline btn-defualt" href="serviceDetail.sev?client_code=${client_code}&curPage=${i}">${i}</a> <a class="btn btn-outline btn-defualt" href="serviceDetail.sev?client_code=${client_code}&curPage=${i}">${i}</a>
</li> </li>
@ -1857,7 +1857,7 @@ $(function()
<!-- table-responsive --> <!-- table-responsive -->
<div class="modal-footer"> <div class="modal-footer">
<input type="hidden" name="mkworker" value="${member.name }"> <input type="hidden" name="mkworker" value="${member.name}">
<button type="button" class="btn btn-default" data-dismiss="modal">취소</button> <button type="button" class="btn btn-default" data-dismiss="modal">취소</button>
<input type="submit" class="btn btn-primary" id="save_btn"> <input type="submit" class="btn btn-primary" id="save_btn">
</div> </div>
@ -2065,7 +2065,7 @@ $(function()
<!-- table-responsive --> <!-- table-responsive -->
<div class="modal-footer"> <div class="modal-footer">
<input type="hidden" name="mkworker" value="${member.name }"> <input type="hidden" name="mkworker" value="${member.name}">
<button type="button" class="btn btn-default" data-dismiss="modal">취소</button> <button type="button" class="btn btn-default" data-dismiss="modal">취소</button>
<input type="submit" class="btn btn-primary" id="save_btn"> <input type="submit" class="btn btn-primary" id="save_btn">
</div> </div>

View File

@ -987,7 +987,7 @@ $(function()
</h4> </h4>
</div> </div>
<!-- 사용정보 시작--> <!-- 사용정보 시작-->
<c:import url="${phpurl}/dbms/client/dashboard/totalcount/client_code/${client_code }" /> <c:import url="${phpurl}/dbms/client/totalcount/client_code/${client_code }" />
<!-- end 사용정보 --> <!-- end 사용정보 -->
<c:if test="${member.power5 eq 'o'}"> <c:if test="${member.power5 eq 'o'}">
<div class="col-lg-4 col-md-12" style="padding:3px"> <div class="col-lg-4 col-md-12" style="padding:3px">
@ -1503,7 +1503,6 @@ $(function()
<input type="text" name="client_code" id="client_code" maxlength="50" size="50" value="${client_code}" readonly="readonly"> <input type="text" name="client_code" id="client_code" maxlength="50" size="50" value="${client_code}" readonly="readonly">
</td> </td>
</tr> </tr>
<tr> <tr>
<td>서비스 코드</td> <td>서비스 코드</td>
<td colspan="5"> <td colspan="5">

View File

@ -91,7 +91,7 @@ public class IdcCuponFrontController extends HttpServlet {
} }
//NEW 도메인 구매 목록 조회 - MK //NEW 도메인 구매 목록 조회 - MK
if(cmdURI.equals("/.cup")) if(cmdURI.equals("/IdcDomainBuyListMK.cup"))
{ {
cmd = new IdcCuponListCmd(); cmd = new IdcCuponListCmd();
cmd.execute(request, response); cmd.execute(request, response);