servermgrv2 init...

This commit is contained in:
최준흠git config git config --helpgit config --global user.name 최준흠 2023-07-30 14:41:55 +09:00
parent a27e059e43
commit a7436fcb2e
49 changed files with 625 additions and 656 deletions

View File

@ -99,6 +99,7 @@ define('LAYOUTS', [
'stylesheets' => [
'<link rel="icon" href="/favicon.ico">',
'<link href="//cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">',
'<link rel="stylesheet" href="css/style.css" />',
],
'javascripts' => [
'<script src="//cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>',
@ -113,6 +114,7 @@ define('LAYOUTS', [
'<link href="//cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">',
'<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css">',
'<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.3.0/dist/select2-bootstrap-5-theme.min.css" />',
'<link rel="stylesheet" href="css/style.css" />',
],
'javascripts' => [
'<script src="//cdn.jsdelivr.net/npm/jquery@3.7.0/dist/jquery.min.js"></script>',
@ -131,6 +133,7 @@ define('LAYOUTS', [
'<link href="//cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">',
'<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css">',
'<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.3.0/dist/select2-bootstrap-5-theme.min.css" />',
'<link rel="stylesheet" href="css/style.css" />',
],
'javascripts' => [
'<script src="//cdn.jsdelivr.net/npm/jquery@3.7.0/dist/jquery.min.js"></script>',

View File

@ -32,7 +32,7 @@ class Filters extends BaseConfig
public array $globals = [
'before' => [
// 'honeypot',
// 'csrf',
'csrf',
// 'invalidchars',
],
'after' => [

View File

@ -7,7 +7,7 @@ use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;
class AdminController extends BASEController
abstract class AdminController extends BASEController
{
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{

View File

@ -6,6 +6,7 @@ use App\Libraries\Adapter\Auth\Adapter;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;
use App\Models\UserModel;
class AuthController extends BaseController
{
@ -14,10 +15,6 @@ class AuthController extends BaseController
{
parent::initController($request, $response, $logger);
helper('Common');
$this->_viewDatas = [
'layout' => LAYOUTS['empty'],
'title' => '로그인',
];
$this->initAdapters();
}
@ -39,15 +36,11 @@ class AuthController extends BaseController
public function login()
{
helper(['form']);
$this->_viewDatas['forms'] = [
'attributes' => ['method' => "post",],
'hiddens' => [],
];
$this->_viewDatas['login_buttons'] = array();
foreach ($this->_adapters as $key => $adapter) {
$this->_viewDatas['login_buttons'][$key] = $adapter->getAuthButton();
}
$this->_viewDatas['forms'] = ['attributes' => ['method' => "post",], 'hiddens' => []];
helper(['form']);
$this->_session->keepFlashdata(SESSION_NAMES['RETURN_URL']);
return view('auth/login', $this->_viewDatas);
}

View File

@ -2,7 +2,7 @@
namespace App\Controllers;
use App\Models\UserModel;
use CodeIgniter\Controller;
use CodeIgniter\HTTP\CLIRequest;
use CodeIgniter\HTTP\Files\UploadedFile;
@ -10,6 +10,8 @@ use CodeIgniter\HTTP\IncomingRequest;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;
use App\Models\UserModel;
use App\Entities\BaseEntity;
/**
* Class BaseController
@ -186,7 +188,7 @@ abstract class BaseController extends Controller
// echo var_export($this->_viewDatas['fieldRules'], true);
// exit;
}
protected function insert_process()
protected function insert_process(): BaseEntity
{
return $this->_model->create($this->_viewDatas['fieldDatas']);
}
@ -198,8 +200,8 @@ abstract class BaseController extends Controller
$this->_viewDatas['fieldRules'] = $this->_model->getFieldRules($this->_viewDatas['fields'], 'insert');
$this->_viewDatas['fieldFilters'] = $this->_model->getFieldFilters();
$this->insert_validate();
$this->insert_process();
$msg = "{$this->_viewDatas['title']}에서 " . __FUNCTION__ . " 완료하였습니다.";
$entity = $this->insert_process();
$msg = "{$this->_viewDatas['title']}에서 {$entity->getTitle()}" . __FUNCTION__ . " 완료하였습니다.";
return redirect()->to($this->_session->getFlashdata(SESSION_NAMES['RETURN_URL']));
} catch (\Exception $e) {
$msg = "{$this->_viewDatas['title']}에서 " . __FUNCTION__ . " 실패하였습니다.\n" . $e->getMessage();
@ -407,6 +409,8 @@ abstract class BaseController extends Controller
public function view($uid)
{
try {
// echo "TEST" . $this->_session->getFlashdata(SESSION_NAMES['RETURN_URL']);
// exit;
$entity = $this->_model->getEntity([$this->_model->getPrimaryKey() => $uid]);
$this->_viewDatas['fields'] = $this->_model->getFields('view');
$this->_viewDatas['fieldRules'] = $this->_model->getFieldRules($this->_viewDatas['fields'], 'view');
@ -415,6 +419,7 @@ abstract class BaseController extends Controller
$this->_viewDatas['fieldFormOptions'] = $this->getFieldFormOptions($this->_viewDatas['fieldFilters']);
$this->_viewDatas['forms'] = ['attributes' => ['method' => "post",], 'hiddens' => []];
$this->_viewDatas['entity'] = $this->view_process($entity);
$this->_session->keepFlashdata(SESSION_NAMES['RETURN_URL']);
return view($this->_viewPath . '/view', $this->_viewDatas);
} catch (\Exception $e) {
return redirect()->to($this->_session->getFlashdata(SESSION_NAMES['RETURN_URL']))->with('return_message', $e->getMessage());
@ -510,6 +515,10 @@ abstract class BaseController extends Controller
$this->index_process();
//setting return_url to session flashdata
$this->_session->setFlashdata(SESSION_NAMES['RETURN_URL'], current_url() . '?' . $this->request->getUri()->getQuery() ?: "");
// echo "TEST" . var_export($this->_session->get());
// echo "<HR>";
// echo $this->_session->getFlashdata(SESSION_NAMES['RETURN_URL']);
// exit;
return view($this->_viewPath . '/index', $this->_viewDatas);
} catch (\Exception $e) {
return redirect()->back()->with('return_message', $e->getMessage());

View File

@ -30,8 +30,8 @@ function getFieldForm_BoardConfigHelper($field, $value, array $fieldFormOptions,
// return implode("&nbsp;", $checkboxs);
// return form_multiselect($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], [...$attributes]);
break;
case 'status':
$fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Board.label.{$field}") . " 선택", ...$fieldFormOptions[$field]];
case "status":
$fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Order.label.{$field}") . " 선택", ...$fieldFormOptions[$field]];
return form_dropdown($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], $attributes);
break;
case 'updated_at':

View File

@ -25,8 +25,8 @@ function getFieldForm_BoardHelper($field, $value, array $fieldFormOptions, array
// return implode("&nbsp;", $checkboxs);
// return form_multiselect($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], [...$attributes]);
break;
case 'status':
$fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Board.label.{$field}") . " 선택", ...$fieldFormOptions[$field]];
case "status":
$fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Order.label.{$field}") . " 선택", ...$fieldFormOptions[$field]];
return form_dropdown($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], $attributes);
break;
case 'updated_at':

View File

@ -141,3 +141,14 @@ function alert_CommonHelper(string $msg, $url = null)
}
return "<script type=\"text/javascript\">{$msg}</script>";
} //
function imageSubmit_CommonHelper(string $src, array $attributes = [])
{
return form_input([
'type' => 'image',
'src' => base_url() . $src,
'name' => array_key_exists('name', $attributes) ? $attributes['name'] : "",
'value' => array_key_exists('value', $attributes) ? $attributes['value'] : "",
...$attributes,
]);
}

View File

@ -102,9 +102,9 @@ function getFieldIndex_Row_HPILOHelper($field, $entity, array $fieldFilters, $fi
default:
if (in_array($field, $fieldFilters)) {
$attributes["onChange"] = sprintf('location.href="%s/toggle/%s/%s?%s="+this.options[this.selectedIndex].value', current_url(), $entity->getPrimaryKey(), $field, $field);
return getFieldFilter_UserHelper($field, $entity->$field, $fieldFormOptions, $attributes);
return getFieldFilter_HPILOHelper($field, $entity->$field, $fieldFormOptions, $attributes);
}
return getFieldView_UserHelper($field, $entity, $fieldFormOptions, $attributes);
return getFieldView_HPILOHelper($field, $entity, $fieldFormOptions, $attributes);
break;
}
} //

View File

@ -25,8 +25,8 @@ function getFieldForm_UserSNSHelper($field, $value, array $fieldFormOptions, arr
// return implode("&nbsp;", $checkboxs);
// return form_multiselect($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], [...$attributes]);
break;
case 'status':
$fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Board.label.{$field}") . " 선택", ...$fieldFormOptions[$field]];
case "status":
$fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Order.label.{$field}") . " 선택", ...$fieldFormOptions[$field]];
return form_dropdown($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], $attributes);
break;
case 'updated_at':

View File

@ -25,8 +25,8 @@ function getFieldForm_UserHelper($field, $value, array $fieldFormOptions, array
// return implode("&nbsp;", $checkboxs);
// return form_multiselect($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], [...$attributes]);
break;
case 'status':
$fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Board.label.{$field}") . " 선택", ...$fieldFormOptions[$field]];
case "status":
$fieldFormOptions[$field] = [DEFAULTS['EMPTY'] => lang("Order.label.{$field}") . " 선택", ...$fieldFormOptions[$field]];
return form_dropdown($field, $fieldFormOptions[$field], is_array($value) ? [...$value] : [$value], $attributes);
break;
case 'updated_at':

View File

@ -0,0 +1,4 @@
<?php
// override core en language system validation or define your own en language validation message
return [];

View File

@ -142,7 +142,7 @@ abstract class BaseModel extends Model
}
//create , modify 직전 작업용 작업
protected function changeFormData(string $field, array $formDatas, $entity)
protected function changeFormData(string $action, string $field, array $formDatas, $entity)
{
switch ($field) {
case $this->primaryKey:
@ -152,10 +152,10 @@ abstract class BaseModel extends Model
$entity->$pk = $this->getUUID();
}
break;
case "user_uid":
case "user_uid": //입력데이터로 있을시 추가, 없을시는 입력의 경우에만 자동으로 추가
if (array_key_exists($field, $formDatas) && $formDatas[$field]) {
$entity->$field = $formDatas[$field];
} elseif ($this->_session->get(SESSION_NAMES["ISLOGIN"])) {
} elseif ($action == 'create' && $this->_session->get(SESSION_NAMES["ISLOGIN"])) {
$auth = $this->_session->get(SESSION_NAMES["AUTH"]);
$entity->$field = $auth[AUTH_FIELDS["ID"]];
}
@ -204,7 +204,7 @@ abstract class BaseModel extends Model
// echo var_export($entity);
// exit;
foreach ($this->allowedFields as $field) {
$entity = $this->changeFormData($field, $formDatas, $entity);
$entity = $this->changeFormData('create', $field, $formDatas, $entity);
}
// echo var_export($this->allowedFields);
// exit
@ -214,7 +214,7 @@ abstract class BaseModel extends Model
{
foreach ($this->allowedFields as $field) {
if ($field != $this->primaryKey) {
$entity = $this->changeFormData($field, $formDatas, $entity);
$entity = $this->changeFormData('modify', $field, $formDatas, $entity);
}
}
$entity->updated_at = time();

View File

@ -79,7 +79,7 @@ class BoardConfigModel extends BaseModel
return $this->where($conditions)->first() ?: throw new \Exception("해당 데이터가 없습니다.\n" . var_export($conditions, true));
}
protected function changeFormData(string $field, array $formDatas, $entity)
protected function changeFormData(string $action, string $field, array $formDatas, $entity)
{
switch ($field) {
case "isaccess":
@ -100,7 +100,7 @@ class BoardConfigModel extends BaseModel
}
break;
default:
$entity = parent::changeFormData($field, $formDatas, $entity);
$entity = parent::changeFormData($action, $field, $formDatas, $entity);
break;
}
return $entity;

View File

@ -76,7 +76,7 @@ class HPILOModel extends BaseModel
{
return $this->where($conditions)->first() ?: throw new \Exception("해당 데이터가 없습니다.\n" . var_export($conditions, true));
}
protected function changeFormData(string $field, array $formDatas, $entity)
protected function changeFormData(string $action, string $field, array $formDatas, $entity)
{
switch ($field) {
case "passwd": //API에서 사용하므로 암호를 바꾸면 않됨
@ -85,7 +85,7 @@ class HPILOModel extends BaseModel
}
break;
default:
return parent::changeFormData($field, $formDatas, $entity);
return parent::changeFormData($action, $field, $formDatas, $entity);
break;
}
return $entity;

View File

@ -77,7 +77,7 @@ class UserModel extends BaseModel
return $this->where($conditions)->first() ?: throw new \Exception("해당 데이터가 없습니다.\n" . var_export($conditions, true));
}
protected function changeFormData(string $field, array $formDatas, $entity)
protected function changeFormData(string $action, string $field, array $formDatas, $entity)
{
switch ($field) {
case "role":
@ -86,7 +86,7 @@ class UserModel extends BaseModel
}
break;
default:
$entity = parent::changeFormData($field, $formDatas, $entity);
$entity = parent::changeFormData($action, $field, $formDatas, $entity);
break;
}
return $entity;

View File

@ -1,8 +1,7 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<div class="indexTable_wrapper">
<div class="indexTable_head">
<div class="content">
<div class="top">
<?= form_open(current_url(), array("method" => "get")) ?>
<ul class="nav">
조건검색:<?php foreach ($fieldFilters as $field) : ?><li class="nav-item"><?= getFieldFilter_BoardHelper($field, $$field, $fieldFormOptions) ?></li><?php endforeach; ?>
@ -10,13 +9,12 @@
</ul>
<?= form_close(); ?>
</div>
<div class="indexTable_body">
<?= form_open(current_url() . '/batchjob', $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<table class="table table-bordered table-hover table-striped">
<tr>
<td>번호</td>
<?php foreach ($fields as $field) : ?><td><?= getFieldIndex_Column_BoardHelper($field, $order_field, $order_value) ?></td><?php endforeach; ?>
<td>작업</td>
<th>번호</th>
<?php foreach ($fields as $field) : ?><th><?= getFieldIndex_Column_BoardHelper($field, $order_field, $order_value) ?></th><?php endforeach; ?>
<th>작업</th>
</tr>
<?php $i = 0; ?>
<?php foreach ($entitys as $entity) : ?>
@ -33,17 +31,15 @@
<?php $i++; ?>
<?php endforeach; ?>
</table>
<div class="bottom">
<ul class="nav justify-content-center">
<li class="nav-item"><?= form_checkbox(array("id" => "batchjobuids_checkbox")) ?>ALL</li>
<?php foreach ($batchjobFilters as $field) : ?><li class="nav-item"><?= getFieldFilter_BoardHelper($field, DEFAULTS['EMPTY'], $fieldFormOptions) ?></li><?php endforeach; ?>
<li class="nav-item"><?= form_submit('', '일괄처리', array("class" => "btn btn-outline btn-warning")); ?></li>
<li class="nav-item"><?= anchor(current_url() . '/insert', '입력', ["class" => "btn btn-sm btn-primary btn-circle", "target" => "_self"]) ?></li>
</ul>
<?= form_close(); ?>
</div>
<div class="indexTable_tail">
<?= $pagination ?>
</div>
<?= form_close(); ?>
</div>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,24 +1,21 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<div class="content">
<?= form_open_multipart(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<?= csrf_field() ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_BoardHelper($field, $fieldRules) ?>
</td>
<td style="text-align:left; padding-left:20px;">
<td class="label"><?= getFieldLabel_BoardHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldForm_BoardHelper($field, old($field, DEFAULTS['EMPTY']), $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr>
<td valign="bottom" colspan="2" style="text-align:center;"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table>
</div>
<?= form_close(); ?>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,23 +1,22 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<div class="content">
<?= form_open_multipart(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<?= csrf_field() ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_BoardHelper($field, $fieldRules) ?>
</td>
<td style="text-align:left; padding-left:20px;">
<td class="label"><?= getFieldLabel_BoardHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldForm_BoardHelper($field, old($field, $entity->$field), $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr>
<td valign="bottom" colspan="2" style="text-align:center;"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
<td valign="bottom" colspan="2"><?= form_submit('', '답글', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table>
</div>
<?= form_close(); ?>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,23 +1,21 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<div class="content">
<?= form_open_multipart(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_BoardHelper($field, $fieldRules) ?>
</td>
<td style="text-align:left; padding-left:20px;">
<td class="label"><?= getFieldLabel_BoardHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldForm_BoardHelper($field, old($field, $entity->$field), $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr>
<td valign="bottom" colspan="2" style="text-align:center;"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
<td valign="bottom" colspan="2"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table>
</div>
<?= form_close(); ?>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,15 +1,16 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<div class="content">
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_BoardHelper($field, $fieldRules) ?>
<td class="label"><?= getFieldLabel_BoardHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldView_BoardHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
<td style="text-align:left; padding-left:20px;"><?= getFieldView_BoardHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?></td>
</tr>
<?php endforeach; ?>
</table>
<?= $this->include('templates/admin/footer'); ?>
</div>
<?= $this->endSection() ?>

View File

@ -1,8 +1,7 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<div class="indexTable_wrapper">
<div class="indexTable_head">
<div class="content">
<div class="top">
<?= form_open(current_url(), array("method" => "get")) ?>
<ul class="nav">
조건검색:<?php foreach ($fieldFilters as $field) : ?><li class="nav-item"><?= getFieldFilter_BoardConfigHelper($field, $$field, $fieldFormOptions) ?></li><?php endforeach; ?>
@ -10,13 +9,12 @@
</ul>
<?= form_close(); ?>
</div>
<div class="indexTable_body">
<?= form_open(current_url() . '/batchjob', $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<table class="table table-bordered table-hover table-striped">
<tr>
<td>번호</td>
<?php foreach ($fields as $field) : ?><td><?= getFieldIndex_Column_BoardConfigHelper($field, $order_field, $order_value) ?></td><?php endforeach; ?>
<td>작업</td>
<th>번호</th>
<?php foreach ($fields as $field) : ?><th><?= getFieldIndex_Column_BoardConfigHelper($field, $order_field, $order_value) ?></th><?php endforeach; ?>
<th>작업</th>
</tr>
<?php $i = 0; ?>
<?php foreach ($entitys as $entity) : ?>
@ -33,17 +31,15 @@
<?php $i++; ?>
<?php endforeach; ?>
</table>
<div class="bottom">
<ul class="nav justify-content-center">
<li class="nav-item"><?= form_checkbox(array("id" => "batchjobuids_checkbox")) ?>ALL</li>
<?php foreach ($batchjobFilters as $field) : ?><li class="nav-item"><?= getFieldFilter_BoardConfigHelper($field, DEFAULTS['EMPTY'], $fieldFormOptions) ?></li><?php endforeach; ?>
<li class="nav-item"><?= form_submit('', '일괄처리', array("class" => "btn btn-outline btn-warning")); ?></li>
<li class="nav-item"><?= anchor(current_url() . '/insert', '입력', ["class" => "btn btn-sm btn-primary btn-circle", "target" => "_self"]) ?></li>
</ul>
<?= form_close(); ?>
</div>
<div class="indexTable_tail">
<?= $pagination ?>
</div>
<?= form_close(); ?>
</div>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,23 +1,21 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<?= form_open(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<div class="content">
<?= form_open_multipart(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_BoardConfigHelper($field, $fieldRules) ?>
</td>
<td style="text-align:left; padding-left:20px;">
<td class="label"><?= getFieldLabel_BoardConfigHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldForm_BoardConfigHelper($field, old($field, DEFAULTS['EMPTY']), $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr>
<td valign="bottom" colspan="2" style="text-align:center;"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table>
</div>
<?= form_close(); ?>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,23 +1,21 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<?= form_open(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<div class="content">
<?= form_open_multipart(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_BoardConfigHelper($field, $fieldRules) ?>
</td>
<td style="text-align:left; padding-left:20px;">
<td class="label"><?= getFieldLabel_BoardConfigHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldForm_BoardConfigHelper($field, old($field, $entity->$field), $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr>
<td valign="bottom" colspan="2" style="text-align:center;"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
<td valign="bottom" colspan="2"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table>
</div>
<?= form_close(); ?>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,15 +1,16 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<div class="content">
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_BoardConfigHelper($field, $fieldRules) ?>
<td class="label"><?= getFieldLabel_BoardConfigHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldView_BoardConfigHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
<td style="text-align:left; padding-left:20px;"><?= getFieldView_BoardConfigHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?></td>
</tr>
<?php endforeach; ?>
</table>
<?= $this->include('templates/admin/footer'); ?>
</div>
<?= $this->endSection() ?>

View File

@ -1,8 +1,7 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<div class="indexTable_wrapper">
<div class="indexTable_head">
<div class="content">
<div class="top">
<?= form_open(current_url(), array("method" => "get")) ?>
<ul class="nav">
조건검색:<?php foreach ($fieldFilters as $field) : ?><li class="nav-item"><?= getFieldFilter_HPILOHelper($field, $$field, $fieldFormOptions) ?></li><?php endforeach; ?>
@ -10,17 +9,16 @@
</ul>
<?= form_close(); ?>
</div>
<div class="indexTable_body">
<?= form_open(current_url() . '/batchjob', $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<table class="table table-bordered table-hover table-striped">
<tr>
<td>번호</td>
<?php foreach ($fields as $field) : ?><td><?= getFieldIndex_Column_HPILOHelper($field, $order_field, $order_value) ?></td><?php endforeach; ?>
<td>작업</td>
<th>번호</th>
<?php foreach ($fields as $field) : ?><th><?= getFieldIndex_Column_HPILOHelper($field, $order_field, $order_value) ?></th><?php endforeach; ?>
<th>작업</th>
</tr>
<?php $i = 0; ?>
<?php foreach ($entitys as $entity) : ?>
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->getStatus() != 'use' ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this);">
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->getStatus() != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this);">
<td>
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $total_count - (($page - 1) * $per_page + $i), ["target" => "_self"]) ?>
@ -33,17 +31,15 @@
<?php $i++; ?>
<?php endforeach; ?>
</table>
<div class="bottom">
<ul class="nav justify-content-center">
<li class="nav-item"><?= form_checkbox(array("id" => "batchjobuids_checkbox")) ?>ALL</li>
<?php foreach ($batchjobFilters as $field) : ?><li class="nav-item"><?= getFieldFilter_HPILOHelper($field, DEFAULTS['EMPTY'], $fieldFormOptions) ?></li><?php endforeach; ?>
<li class="nav-item"><?= form_submit('', '일괄처리', array("class" => "btn btn-outline btn-warning")); ?></li>
<li class="nav-item"><?= anchor(current_url() . '/insert', '입력', ["class" => "btn btn-sm btn-primary btn-circle", "target" => "_self"]) ?></li>
</ul>
<?= form_close(); ?>
</div>
<div class="indexTable_tail">
<?= $pagination ?>
</div>
<?= form_close(); ?>
</div>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,24 +1,21 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<div class="content">
<?= form_open_multipart(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_HPILOHelper($field, $fieldRules) ?>
</td>
<td style="text-align:left; padding-left:20px;">
<?= getFieldForm_HPILOHelper($field, old($field) ?: DEFAULTS['EMPTY'], $fieldFormOptions) ?>
<td class="label"><?= getFieldLabel_HPILOHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldForm_HPILOHelper($field, old($field, DEFAULTS['EMPTY']), $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr>
<td valign="bottom" colspan="2" style="text-align:center;"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table>
</div>
<?= form_close(); ?>
<?php if (session()->getFlashdata('error')) : ?><?= session()->getFlashdata('error') ?><?php endif ?>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,24 +1,21 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<div class="content">
<?= form_open_multipart(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_HPILOHelper($field, $fieldRules) ?>
</td>
<td style="text-align:left; padding-left:20px;">
<?= getFieldForm_HPILOHelper($field, old($field) ?: $entity->$field, $fieldFormOptions) ?>
<td class="label"><?= getFieldLabel_HPILOHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldForm_HPILOHelper($field, old($field, $entity->$field), $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr>
<td valign="bottom" colspan="2" style="text-align:center;"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
<td valign="bottom" colspan="2"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table>
</div>
<?= form_close(); ?>
<?php if (session()->getFlashdata('error')) : ?><?= session()->getFlashdata('error') ?><?php endif ?>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,15 +1,16 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<div class="content">
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_HPILOHelper($field, $fieldRules) ?>
<td class="label"><?= getFieldLabel_HPILOHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldView_HPILOHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
<td style="text-align:left; padding-left:20px;"><?= getFieldView_HPILOHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?></td>
</tr>
<?php endforeach; ?>
</table>
<?= $this->include('templates/admin/footer'); ?>
</div>
<?= $this->endSection() ?>

View File

@ -1,8 +1,7 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<div class="indexTable_wrapper">
<div class="indexTable_head">
<div class="content">
<div class="top">
<?= form_open(current_url(), array("method" => "get")) ?>
<ul class="nav">
조건검색:<?php foreach ($fieldFilters as $field) : ?><li class="nav-item"><?= getFieldFilter_UserHelper($field, $$field, $fieldFormOptions) ?></li><?php endforeach; ?>
@ -10,13 +9,12 @@
</ul>
<?= form_close(); ?>
</div>
<div class="indexTable_body">
<?= form_open(current_url() . '/batchjob', $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<table class="table table-bordered table-hover table-striped">
<tr>
<td>번호</td>
<?php foreach ($fields as $field) : ?><td><?= getFieldIndex_Column_UserHelper($field, $order_field, $order_value) ?></td><?php endforeach; ?>
<td>작업</td>
<th>번호</th>
<?php foreach ($fields as $field) : ?><th><?= getFieldIndex_Column_UserHelper($field, $order_field, $order_value) ?></th><?php endforeach; ?>
<th>작업</th>
</tr>
<?php $i = 0; ?>
<?php foreach ($entitys as $entity) : ?>
@ -33,17 +31,15 @@
<?php $i++; ?>
<?php endforeach; ?>
</table>
<div class="bottom">
<ul class="nav justify-content-center">
<li class="nav-item"><?= form_checkbox(array("id" => "batchjobuids_checkbox")) ?>ALL</li>
<?php foreach ($batchjobFilters as $field) : ?><li class="nav-item"><?= getFieldFilter_UserHelper($field, DEFAULTS['EMPTY'], $fieldFormOptions) ?></li><?php endforeach; ?>
<li class="nav-item"><?= form_submit('', '일괄처리', array("class" => "btn btn-outline btn-warning")); ?></li>
<li class="nav-item"><?= anchor(current_url() . '/insert', '입력', ["class" => "btn btn-sm btn-primary btn-circle", "target" => "_self"]) ?></li>
</ul>
<?= form_close(); ?>
</div>
<div class="indexTable_tail">
<?= $pagination ?>
</div>
<?= form_close(); ?>
</div>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,23 +1,21 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<?= form_open(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<div class="content">
<?= form_open_multipart(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_UserHelper($field, $fieldRules) ?>
</td>
<td style="text-align:left; padding-left:20px;">
<td class="label"><?= getFieldLabel_UserHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldForm_UserHelper($field, old($field, DEFAULTS['EMPTY']), $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr>
<td valign="bottom" colspan="2" style="text-align:center;"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table>
</div>
<?= form_close(); ?>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,23 +1,21 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<?= form_open(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<div class="content">
<?= form_open_multipart(current_url(), $forms['attributes'], $forms['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_UserHelper($field, $fieldRules) ?>
</td>
<td style="text-align:left; padding-left:20px;">
<td class="label"><?= getFieldLabel_UserHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldForm_UserHelper($field, old($field, $entity->$field), $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr>
<td valign="bottom" colspan="2" style="text-align:center;"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
<td valign="bottom" colspan="2"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table>
</div>
<?= form_close(); ?>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,15 +1,16 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<div class="content">
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_UserHelper($field,$fieldRules) ?>
<td class="label"><?= getFieldLabel_UserHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldView_UserHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
<td style="text-align:left; padding-left:20px;"><?= getFieldView_UserHelper($field,$entity,$fieldFilters,$fieldFormOptions) ?></td>
</tr>
<?php endforeach; ?>
</table>
<?= $this->include('templates/admin/footer'); ?>
</div>
<?= $this->endSection() ?>

View File

@ -1,8 +1,7 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<div class="indexTable_wrapper">
<div class="indexTable_head">
<div class="content">
<div class="top">
<?= form_open(current_url(), array("method" => "get")) ?>
<ul class="nav">
조건검색:<?php foreach ($fieldFilters as $field) : ?><li class="nav-item"><?= getFieldFilter_UserSNSHelper($field, $$field, $fieldFormOptions) ?></li><?php endforeach; ?>
@ -10,20 +9,19 @@
</ul>
<?= form_close(); ?>
</div>
<div class="indexTable_body">
<?= form_open(current_url() . '/batchjob', $forms['attributes'], $forms['hiddens']) ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<table class="table table-bordered table-hover table-striped">
<tr>
<td>번호</td>
<?php foreach ($fields as $field) : ?><td><?= getFieldIndex_Column_UserSNSHelper($field, $order_field, $order_value) ?></td><?php endforeach; ?>
<td>작업</td>
<th>번호</th>
<?php foreach ($fields as $field) : ?><th><?= getFieldIndex_Column_UserSNSHelper($field, $order_field, $order_value) ?></th><?php endforeach; ?>
<th>작업</th>
</tr>
<?php $i = 0; ?>
<?php foreach ($entitys as $entity) : ?>
<tr id="<?= $entity->getPrimaryKey() ?>" onClick="indexRowCheckBoxToggle(this);">
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->getStatus() != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this);">
<td>
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
<?= $total_count - (($page - 1) * $per_page + $i) ?>
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $total_count - (($page - 1) * $per_page + $i), ["target" => "_self"]) ?>
</td>
<?php foreach ($fields as $field) : ?>
<td nowrap><?= getFieldIndex_Row_UserSNSHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?></td>
@ -33,16 +31,15 @@
<?php $i++; ?>
<?php endforeach; ?>
</table>
<div class="bottom">
<ul class="nav justify-content-center">
<li class="nav-item"><?= form_checkbox(array("id" => "batchjobuids_checkbox")) ?>ALL</li>
<?php foreach ($batchjobFilters as $field) : ?><li class="nav-item"><?= getFieldFilter_UserSNSHelper($field, DEFAULTS['EMPTY'], $fieldFormOptions) ?></li><?php endforeach; ?>
<li class="nav-item"><?= form_submit('', '일괄처리', array("class" => "btn btn-outline btn-warning")); ?></li>
<li class="nav-item"><?= anchor(current_url() . '/insert', '입력', ["class" => "btn btn-sm btn-primary btn-circle", "target" => "_self"]) ?></li>
</ul>
<?= form_close(); ?>
</div>
<div class="indexTable_tail">
<?= $pagination ?>
</div>
<?= form_close(); ?>
</div>
<?= $this->include('templates/admin/footer'); ?>
<?= $this->endSection() ?>

View File

@ -1,15 +1,16 @@
<?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?>
<?= $this->include('templates/admin/header'); ?>
<table class="table table-bordered table-hover table-striped indexTable ">
<div class="content">
<table class="form table table-bordered table-hover table-striped">
<?php foreach ($fields as $field) : ?>
<tr>
<td nowrap style="background-color:#e8ebe9; width:10%; text-align:right; padding-right:20px;">
<?= getFieldLabel_UserSNSHelper($field, $fieldRules) ?>
<td class="label"><?= getFieldLabel_UserSNSHelper($field, $fieldRules) ?></td>
<td class="column">
<?= getFieldView_UserSNSHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?>
<?= validation_show_error($field); ?>
</td>
<td style="text-align:left; padding-left:20px;"><?= getFieldView_UserSNSHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?></td>
</tr>
<?php endforeach; ?>
</table>
<?= $this->include('templates/admin/footer'); ?>
</div>
<?= $this->endSection() ?>

View File

@ -1,33 +1,28 @@
<?= $this->extend('layouts/empty') ?>
<?= $this->section('content') ?>
<link href="/css/login.css" media="screen" rel="stylesheet" type="text/css" />
<div class="login">
<?= form_open(url_to('signup'), $forms['attributes'], $forms['hiddens']) ?>
<div style="width:799px; height:283px;
margin:auto;
padding-top:150px;
padding-left:300px;
color:white;
background-image:url('/images/common/adminbg.png');">
<table>
<tr>
<td style="text-align:right;">
<div style="padding:5px;">계정 <input type="text" name="id" value="<?= old('id') ?>"></div>
<div style="padding:5px;">암호 <input type="password" name="passwd" value="<?= old('passwd') ?>"></div>
<td class="label">계정</td>
<td class="column">
<?= form_input('id', old('id', DEFAULTS['EMPTY'])) ?>
</td>
<td style="text-align:left;">
<input type="submit" style="width:57px; height:60px; background:url('/images/common/btn_login.png');" value="">
</td>
<td style="text-align:left;">
<td rowspan="2" class="submit"><?= imageSubmit_CommonHelper('/images/common/btn_login.png', ['width' => '57', 'height' => '60']) ?></td>
<td rowspan="2">
<?php foreach ($login_buttons as $key => $login_button) : ?>
<?= $login_button ?>
<?php endforeach ?>
</td>
</tr>
<tr>
<td colspan="3" style="text-align:center;">
<?= session()->getFlashdata('error') ?: "" ?>
<td class="label">암호</td>
<td class="column">
<?= form_password('passwd', old('passwd', DEFAULTS['EMPTY'])) ?>
</td>
</tr>
</table>
</div>
<?= form_close(); ?>
</div>
<?= $this->endSection() ?>

View File

@ -24,28 +24,25 @@
</head>
<body>
<!-- Body Header Start -->
<div id="head" class="row">
<?= $this->include($layout['path'] . '/top_menu'); ?>
<!-- Body Header End -->
<table id="main">
</div>
<table id="layout">
<tr>
<td width="160" valign="top">
<!-- Body Left menu Start -->
<td id="left" valign="top" width="160">
<?= $this->include($layout['path'] . '/left_menu'); ?>
<!-- Body Left menu End -->
</td>
<td width="*" valign="top" style="background-color:white">
<!-- Body Content Start -->
<td id="body" valign="top" width="*">
<?= $this->include('templates/admin/header'); ?>
<?= $this->renderSection('content') ?>
<!-- Body Content End -->
<?= $this->include('templates/admin/footer'); ?>
</td>
<td width="50" valign="top">
<!-- Body Right menu Start -->
<td id="right" valign="top" width="50">
<?= $this->include($layout['path'] . '/right_menu'); ?>
<!-- Body Right menu End -->
</td>
</tr>
</table>
<div id="tail" class="row"></div>
</body>
</html>

View File

@ -24,13 +24,11 @@
</head>
<body>
<!-- Body Content Start -->
<div id="layout_content">
<!-- layout_content Start -->
<div id="body">
<?= $this->include('templates/empty/header'); ?>
<?= $this->renderSection('content') ?>
<!-- layout_content End -->
<?= $this->include('templates/empty/footer'); ?>
</div>
<!-- Body Content End -->
</body>
</html>

View File

@ -1,4 +1,4 @@
<div class="footer">&nbsp;</div>
<div class="footer"></div>
<?= $session->getFlashdata('return_message') ? alert_CommonHelper($session->getFlashdata('return_message')) : "" ?>
<script type="text/javascript">
$(document).ready(function() {

View File

@ -1,3 +1,3 @@
<div class="head">
<div class="header">
<h4><i class="bi bi-cast"></i><?= $title ?></h4>
</div>

View File

@ -0,0 +1,2 @@
<div class="footer"></div>
<?= $session->getFlashdata('return_message') ? alert_CommonHelper($session->getFlashdata('return_message')) : "" ?>

View File

@ -0,0 +1 @@
<div class="header"></div>

View File

@ -4,110 +4,101 @@
* Created : 2016/9/11 Tri-aBility by Junheum,Choi
* Updated :
------------------------------------------------------------ */
@charset "utf-8";
/*###########################################################################################
#############################공통 레이아웃###################################################
#############################################################################################*/
/* CSS Document */
/*
* * Start Bootstrap - SB Admin 2 Bootstrap Admin Theme (http://startbootstrap.com)
* * Code licensed under the Apache License v2.0.
* * For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
* {
margin:0px;
padding:0px;
border:0px;
font-size:14px;
}
body {
background-color: #eee;
}
input[type=text],input[type=password]{
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
white-space: nowrap;
}
select,textarea,button {
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
white-space: nowrap;
}
a:link { text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: underline; }
a:active { text-decoration: underline; }
#main{
/* border:1px solid blue; */
margin-top:20px;
/* #head{
border:1px solid blue;
} */
/* #tail{
border:1px solid green;
} */
#layout{
width:100%;
background-color:#efefef
}
#layout #left {
width:160px;
/* border:1px solid yellow; */
}
#layout #body{
padding-left:10px;
padding-right:10px;
}
#layout #right{
width: 50px;
/* border:1px solid orange; */
}
#main div.head{
#layout #body div.header{
/*content 상단라인*/
padding:15px;
border-left:1px solid silver;
border-top:1px solid silver;
border-left:1px solid silver;
border-bottom:0px;
border-right:1px solid silver;
border-radius: 10px 10px 0px 0px;
background-color:#efefef;
}
#main div.footer{
#layout #body div.content{
border:1px solid silver;
background-color:white;
}
#layout #body div.footer
/*content 하단라인*/{
height:20px;
border-top:0px;
border-left:1px solid silver;
border-bottom:1px solid silver;
border-right:1px solid silver;
border-radius: 0px 0px 10px 10px;
background-color:white;
}
div.indexTable_wrapper{
#layout #body div.content div.top{
/*조건 검색*/
padding:10px;
border-left:1px solid silver;
border-right:1px solid silver;
width: 100%;
}
div.indexTable_wrapper div.indexTable_head {
/* border:1px solid red; */
padding:5px 0;
}
div.indexTable_wrapper div.indexTable_head ul.nav li.nav-item{
#layout #body div.content div.top ul.nav li.nav-item{
/*조건검색 ITEMS*/
/* border:1px solid red; */
margin-left:15px;
margin-left:10px;
}
div.indexTable_wrapper div.indexTable_body {
width:100%;
overflow-x: auto;
padding-top:5px;
padding-bottom:5px;
}
div.indexTable_wrapper div.indexTable_body table.indexTable{
#layout #body div.content table {
white-space: nowrap;
/* overflow-x: auto;
padding-top:5px;
padding-bottom:5px; */
}
div.indexTable_wrapper div.indexTable_body table.indexTable th{
#layout #body div.content table th{
text-align:center;
font-size: 16px;
/* border:1px solid silver; */
}
div.indexTable_wrapper div.indexTable_body table.indexTable td{
#layout #body div.content table td{
/* border:1px solid silver; */
text-align:center;
}
div.indexTable_wrapper div.indexTable_body ul.nav li.nav-item{
/* border:1px solid red; */
margin-left:15px;
#layout #body div.content table.form td.label{
background-color:#e8ebe9;
width:10%;
text-align:right;
padding-right:20px;
}
div.indexTable_wrapper div.indexTable_tail {
#layout #body div.content table.form td.column{
height:27px;
text-align:left;
padding-left:20px;
}
#layout #body div.content div.bottom {
padding-top:15px;
text-align:center;
}
div.indexTable_wrapper div.indexTable_tail ul.justify-content-center {
#layout #body div.content div.bottom ul.nav{
/* border:1px solid red; */
margin-top:20px;
margin-bottom:15px;
}
#layout #body div.content div.bottom ul.nav li.nav-item{
/*조건검색 ITEMS*/
/* border:1px solid red; */
margin-left:10px;
}

View File

@ -1,11 +1,8 @@
div#left_menu{
position:fixed;
/* margin-top:139px;
z-index:100;
width:28px;
border:1px solid #e7e7e7;
padding:0px; */
width:160px;
margin-left:5px;
border:1px solid silver;
}

View File

@ -1,10 +1,6 @@
div#right_menu{
position:fixed;
/* margin-top:139px;
z-index:100;
width:28px;
border:1px solid #e7e7e7;
padding:0px; */
width: 100px;
border:1px solid silver;
}

View File

@ -4,45 +4,3 @@
* Created : 2016/9/11 Tri-aBility by Junheum,Choi
* Updated :
------------------------------------------------------------ */
@charset "utf-8";
/*###########################################################################################
#############################공통 레이아웃###################################################
#############################################################################################*/
/* CSS Document */
/*
* * Start Bootstrap - SB Admin 2 Bootstrap Admin Theme (http://startbootstrap.com)
* * Code licensed under the Apache License v2.0.
* * For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
* {
margin:0px;
padding:0px;
border:0px;
font-size:14px;
}
body {
background-color: #eee;
}
input[type=text],input[type=password]{
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
white-space: nowrap;
}
select,textarea,button {
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
white-space: nowrap;
}
a:link { text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: underline; }
a:active { text-decoration: underline; }

View File

@ -4,56 +4,31 @@
* Created : 2016/9/11 Tri-aBility by Junheum,Choi
* Updated :
------------------------------------------------------------ */
@charset "utf-8";
/*###########################################################################################
#############################공통 레이아웃###################################################
#############################################################################################*/
/* CSS Document */
/*
* * Start Bootstrap - SB Admin 2 Bootstrap Admin Theme (http://startbootstrap.com)
* * Code licensed under the Apache License v2.0.
* * For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
* {
margin:0px;
padding:0px;
border:0px;
font-size:14px;
}
body {
background-color: #eee;
}
input[type=text],input[type=password]{
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
white-space: nowrap;
}
select,textarea,button {
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
white-space: nowrap;
}
a:link { text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: underline; }
a:active { text-decoration: underline; }
#main{
/* border:1px solid blue; */
margin-top:20px;
/* #head{
border:1px solid blue;
} */
/* #tail{
border:1px solid green;
} */
#layout{
width:100%;
background-color:#efefef
}
#layout #left {
width:160px;
/* border:1px solid yellow; */
}
#layout #body{
padding-left:10px;
padding-right:10px;
}
#layout #right{
width: 50px;
/* border:1px solid orange; */
}
#main div.head{
#layout #body div.header{
/*content 상단라인*/
padding:15px;
border-left:1px solid silver;
border-top:1px solid silver;
@ -61,53 +36,70 @@ a:active { text-decoration: underline; }
border-radius: 10px 10px 0px 0px;
background-color:#efefef;
}
#main div.footer{
#layout #body div.content{
/* border:1px solid blue; */
/*content center 옆라인*/
border-left:1px solid silver;
border-right:1px solid silver;
background-color:white
}
#layout #body div.footer
/*content 하단라인*/{
height:20px;
border-left:1px solid silver;
border-bottom:1px solid silver;
border-right:1px solid silver;
border-radius: 0px 0px 10px 10px;
background-color:white;
}
div.indexTable_wrapper{
#layout #body div.content div.top{
/*조건 검색*/
padding:10px;
border-left:1px solid silver;
border-right:1px solid silver;
width: 100%;
}
div.indexTable_wrapper div.indexTable_head {
/* border:1px solid red; */
padding:5px 0;
}
div.indexTable_wrapper div.indexTable_head ul.nav li.nav-item{
#layout #body div.content div.top ul.nav li.nav-item{
/*조건검색 ITEMS*/
/* border:1px solid red; */
margin-left:15px;
margin-left:10px;
}
div.indexTable_wrapper div.indexTable_body {
width:100%;
overflow-x: auto;
padding-top:5px;
padding-bottom:5px;
}
div.indexTable_wrapper div.indexTable_body table.indexTable{
#layout #body div.content table {
white-space: nowrap;
/* overflow-x: auto;
padding-top:5px;
padding-bottom:5px; */
}
div.indexTable_wrapper div.indexTable_body table.indexTable th{
#layout #body div.content table th{
text-align:center;
font-size: 16px;
/* border:1px solid silver; */
}
div.indexTable_wrapper div.indexTable_body table.indexTable td{
#layout #body div.content table td{
/* border:1px solid silver; */
text-align:center;
}
div.indexTable_wrapper div.indexTable_body ul.nav li.nav-item{
/* border:1px solid red; */
margin-left:15px;
#layout #body div.content table.form td.label{
background-color:#e8ebe9;
width:10%;
text-align:right;
padding-right:20px;
}
div.indexTable_wrapper div.indexTable_tail {
#layout #body div.content table.form td.column{
height:27px;
text-align:left;
padding-left:20px;
}
#layout #body div.content div.bottom {
padding-top:15px;
text-align:center;
}
div.indexTable_wrapper div.indexTable_tail ul.justify-content-center {
#layout #body div.content div.bottom ul.nav{
/* border:1px solid red; */
margin-top:20px;
margin-bottom:15px;
}
#layout #body div.content div.bottom ul.nav li.nav-item{
/*조건검색 ITEMS*/
/* border:1px solid red; */
margin-left:10px;
}

View File

@ -1,19 +1,38 @@
@charset "utf-8";
/* ------------------------------------------------------------
* Name : login.css
* Desc : GIGSNS Default
* Created : 2012/07 GIGAKOREA by Donghee,kim
* Name : admin.css
* Desc : Admin StyleSheet
* Created : 2016/9/11 Tri-aBility by Junheum,Choi
* Updated :
------------------------------------------------------------ */
div.header {
margin-top:120px;
div.login{
width: 799px;
height: 283px;
margin: auto;
background-image: url('/images/common/adminbg.png');
/* border: 1px solid red; */
}
input.loginform{
width:245px;
div.login form{
margin-top: 150px;
margin-left: 320px;
padding-top: 150px;
/* border: 1px solid red; */
}
/* div.login form table {
border: 1px solid red;
} */
div.login form table td.label {
color:white;
padding-right:5px;
}
div.login table td.column {
height: 27px;
border:1px solid #bababa;
font-size:120%;
font-weight:700; color:#666
}
/* div.login form table td.submit{
width: 57px;
height: 60px;
background: url('/images/common/btn_login.png');
} */

37
public/css/style.css Normal file
View File

@ -0,0 +1,37 @@
/* ------------------------------------------------------------
* Name : admin.css
* Desc : Admin StyleSheet
* Created : 2016/9/11 Tri-aBility by Junheum,Choi
* Updated :
------------------------------------------------------------ */
@charset "utf-8";
* {
margin:0px;
padding:0px;
border:0px;
font-size:14px;
}
body {
background-color: #eee;
}
input[type=text],input[type=password]{
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
white-space: nowrap;
}
select,textarea,button {
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
white-space: nowrap;
}
a:link { text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: underline; }
a:active { text-decoration: underline; }