diff --git a/app/Config/Routes.php b/app/Config/Routes.php
index 16326a4..df4f776 100644
--- a/app/Config/Routes.php
+++ b/app/Config/Routes.php
@@ -133,6 +133,9 @@ $routes->group('admin', ['namespace' => 'App\Controllers\Admin', 'filter' => 'au
$routes->get('toggle/(:uuid)/(:hash)', 'OrderController::toggle/$1/$2');
$routes->post('batchjob', 'OrderController::batchjob`');
});
+ $routes->group('payment', static function ($routes) {
+ $routes->get('', 'PaymentController::index');
+ });
});
$routes->group('front', ['namespace' => 'App\Controllers\Front'], function ($routes) {
$routes->group('user', static function ($routes) {
diff --git a/app/Controllers/Admin/PaymentController.php b/app/Controllers/Admin/PaymentController.php
new file mode 100644
index 0000000..0dfdd3e
--- /dev/null
+++ b/app/Controllers/Admin/PaymentController.php
@@ -0,0 +1,46 @@
+_model = new PaymentModel();
+ $this->_viewDatas['className'] = 'Payment';
+ parent::initController($request, $response, $logger);
+ $this->_viewPath .= strtolower($this->_viewDatas['className']);
+ }
+
+ final public function getFields(string $action = ""): array
+ {
+ switch ($action) {
+ case 'insert':
+ return ["TID", "ORDERNO", "AMOUNT", "QUOTA", "ACCEPTNO", "ACCEPTDATE", "RESULTCODE", "created_at"];
+ break;
+ case "index":
+ case "excel":
+ case "view":
+ return ["ORDERNO", "AMOUNT", "QUOTA", "ACCEPTNO", "ACCEPTDATE", "RESULTCODE", "created_at"];
+ break;
+ default:
+ return [];
+ break;
+ }
+ }
+ final public function getFieldFilters(): array
+ {
+ return [];
+ }
+ final public function getFieldBatchFilters(): array
+ {
+ return [];
+ }
+
+ //추가기능
+}
diff --git a/app/Helpers/Category_helper.php b/app/Helpers/Category_helper.php
index 317953c..40f3ad3 100644
--- a/app/Helpers/Category_helper.php
+++ b/app/Helpers/Category_helper.php
@@ -137,9 +137,6 @@ function getFieldIndex_Row_CategoryHelper_Admin($field, $entity, array $viewData
{
$value = $entity->$field ?: DEFAULTS['EMPTY'];
switch ($field) {
- case 'linkurl':
- return sprintf("
%s %s | ", $entity->getFileImage('middle', 'photo'), $value);
- break;
case 'title':
case 'name':
$depth = " ";
@@ -158,6 +155,9 @@ function getFieldIndex_Row_CategoryHelper_Admin($field, $entity, array $viewData
);
return sprintf("%s%s %s | ", $depth, $reply, $view);
break;
+ case 'linkurl':
+ return sprintf("%s %s | ", $entity->getFileImage('middle', 'photo'), $value);
+ break;
default:
if (in_array($field, $viewDatas['fieldFilters'])) {
$attributes["onChange"] = sprintf(
diff --git a/app/Helpers/Sitepage_helper.php b/app/Helpers/Sitepage_helper.php
index 6d2f662..2336ad0 100644
--- a/app/Helpers/Sitepage_helper.php
+++ b/app/Helpers/Sitepage_helper.php
@@ -128,6 +128,7 @@ function getFieldIndex_Row_SitepageHelper($field, $entity, array $viewDatas): st
{
switch ($field) {
default:
+ //front쪽은 table을 사용하지 않음 주의
return getFieldView_SitepageHelper($field, $entity, $viewDatas);
break;
}
@@ -148,7 +149,7 @@ function getFieldIndex_Row_SitepageHelper_Admin($field, $entity, array $viewData
);
return sprintf("%s | ", getFieldForm_SitepageHelper($field, $entity->$field, $viewDatas, $attributes));
}
- return getFieldIndex_Row_SitepageHelper($field, $entity, $viewDatas);
+ return sprintf("%s | ", getFieldIndex_Row_SitepageHelper($field, $entity, $viewDatas));
break;
}
} //
\ No newline at end of file
diff --git a/app/Views/admin/payment/index.php b/app/Views/admin/payment/index.php
new file mode 100644
index 0000000..4f56a59
--- /dev/null
+++ b/app/Views/admin/payment/index.php
@@ -0,0 +1,32 @@
+= $this->extend('layouts/admin') ?>
+= $this->section('content') ?>
+
+
+
+ = $this->include('templates/admin/index_head') ?>
+
+
+
+
+ | 번호 |
+ = getFieldIndex_Column_PaymentHelper($field, $viewDatas) ?>
+
+
+
+
+
+ status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
+ |
+ = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt) ?>
+ |
+
+ = getFieldIndex_Row_PaymentHelper_Admin($field, $entity, $viewDatas) ?>
+
+
+
+
+
+
+
= $viewDatas['pagination'] ?>
+
+= $this->endSection() ?>
\ No newline at end of file
diff --git a/public/css/admin.css b/public/css/admin.css
index 29d3790..d56dc02 100644
--- a/public/css/admin.css
+++ b/public/css/admin.css
@@ -4,6 +4,13 @@
* Created : 2016/9/11 Tri-aBility by Junheum,Choi
* Updated :
------------------------------------------------------------ */
+ * {
+ margin:0px;
+ padding:0px;
+ border:0px;
+ font-size:12px;
+ font: Arial;
+}
/* #head{
border:1px solid blue;
diff --git a/public/css/empty.css b/public/css/empty.css
index f6fb3ad..2decc0b 100644
--- a/public/css/empty.css
+++ b/public/css/empty.css
@@ -3,4 +3,12 @@
* Desc : Admin StyleSheet
* Created : 2016/9/11 Tri-aBility by Junheum,Choi
* Updated :
- ------------------------------------------------------------ */
\ No newline at end of file
+ ------------------------------------------------------------ */
+
+ * {
+ margin:0px;
+ padding:0px;
+ border:0px;
+ font-size:14px;
+ font: Arial;
+}
diff --git a/public/css/front.css b/public/css/front.css
index ccf6396..469f91a 100644
--- a/public/css/front.css
+++ b/public/css/front.css
@@ -4,6 +4,13 @@
* Created : 2016/9/11 Tri-aBility by Junheum,Choi
* Updated :
------------------------------------------------------------ */
+ * {
+ margin:0px;
+ padding:0px;
+ border:0px;
+ font-size:14px;
+ font: Arial;
+}
/* #head{
border:1px solid blue;
diff --git a/public/css/style.css b/public/css/style.css
index 5aa35c2..8b0ccdd 100644
--- a/public/css/style.css
+++ b/public/css/style.css
@@ -6,14 +6,6 @@
------------------------------------------------------------ */
@charset "utf-8";
-* {
- margin:0px;
- padding:0px;
- border:0px;
- font-size:14px;
- font: Arial;
-}
-
body {
background-color: white;
}