shoppingmallv2 init...

This commit is contained in:
최준흠 2023-08-10 14:26:08 +09:00
parent e2acba3aca
commit adda32d03e
38 changed files with 569 additions and 430 deletions

View File

@ -29,7 +29,7 @@ class CategoryController extends AdminController
case "index": case "index":
case "excel": case "excel":
return [ return [
'name', "linkurl", 'photo', "isaccess", "isread", "iswrite", "isreply", "isupload", "isdownload", 'name', "linkurl", "isaccess", "isread", "iswrite", "isreply", "isupload", "isdownload",
"status", "created_at" "status", "created_at"
]; ];
break; break;

View File

@ -24,7 +24,7 @@ class ProductController extends AdminController
switch ($action) { switch ($action) {
case "index": case "index":
case "excel": case "excel":
return ["category_uid", "user_uid", 'name', "photo", "cost", "sale", "price", "stock", "view_cnt", "status", "created_at"]; return ["category_uid", "user_uid", 'name', "cost", "sale", "price", "stock", "view_cnt", "status", "created_at"];
break; break;
case "view": case "view":
return [...$fields, "created_at"]; return [...$fields, "created_at"];

View File

@ -112,9 +112,25 @@ function getFieldIndex_Column_CategoryHelper($field, array $viewDatas)
//Front용 //Front용
function getFieldIndex_Row_CategoryHelper($field, $entity, array $viewDatas): string function getFieldIndex_Row_CategoryHelper($field, $entity, array $viewDatas): string
{
switch ($field) {
default:
return getFieldView_CategoryHelper($field, $entity, $viewDatas);
break;
}
} //
//Admin용
function getFieldIndex_Row_CategoryHelper_Admin($field, $entity, array $viewDatas): string
{ {
$value = $entity->$field ?: DEFAULTS['EMPTY']; $value = $entity->$field ?: DEFAULTS['EMPTY'];
switch ($field) { switch ($field) {
case 'linkurl':
return sprintf(
"<div class=\"location-left\">%s<BR>%s</div>",
$entity->getFileImage('middle', 'photo'),
$value
);
break;
case 'title': case 'title':
case 'name': case 'name':
$reply = anchor( $reply = anchor(
@ -134,15 +150,6 @@ function getFieldIndex_Row_CategoryHelper($field, $entity, array $viewDatas): st
$view $view
); );
break; break;
default:
return getFieldView_CategoryHelper($field, $entity, $viewDatas);
break;
}
} //
//Admin용
function getFieldIndex_Row_CategoryHelper_Admin($field, $entity, array $viewDatas): string
{
switch ($field) {
default: default:
if (in_array($field, $viewDatas['fieldFilters'])) { if (in_array($field, $viewDatas['fieldFilters'])) {
$attributes["onChange"] = sprintf( $attributes["onChange"] = sprintf(

View File

@ -110,7 +110,7 @@ function getFieldIndex_Row_OrderHelper($field, $entity, array $viewDatas): strin
case 'title': case 'title':
case 'name': case 'name':
return sprintf( return sprintf(
"<div class=\"location-left\">%s : %s</div>%s", "<div class=\"location-left\">%s : %s<BR>%s</div>",
lang("{$viewDatas['className']}.label.uid"), lang("{$viewDatas['className']}.label.uid"),
$entity->getOrderHint(), $entity->getOrderHint(),
anchor( anchor(
@ -133,7 +133,7 @@ function getFieldIndex_Row_OrderHelper_Admin($field, $entity, array $viewDatas):
case 'title': case 'title':
case 'name': case 'name':
return sprintf( return sprintf(
"<div class=\"location-left\">%s : %s</div>%s", "<div class=\"location-left\">%s : %s<BR>%s</div>",
lang("{$viewDatas['className']}.label.uid"), lang("{$viewDatas['className']}.label.uid"),
$entity->getPrimaryKey(), $entity->getPrimaryKey(),
anchor( anchor(

View File

@ -145,10 +145,14 @@ function getFieldIndex_Row_ProductHelper_Admin($field, $entity, array $viewDatas
switch ($field) { switch ($field) {
case 'title': case 'title':
case 'name': case 'name':
return anchor( return sprintf(
current_url() . '/view/' . $entity->getPrimaryKey(), "<div class=\"location-left\">%s<BR>%s</div>",
$value ? str_split($value, 66)[0] . "..." : "", $entity->getFileImage('middle', 'photo'),
["target" => "_self"] anchor(
current_url() . '/view/' . $entity->getPrimaryKey(),
$value,
["target" => "_self"]
)
); );
break; break;
default: default:

View File

@ -1,16 +1,15 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div class="top"> <div id="content">
<?= form_open(current_url(), array("method" => "get")) ?> <div class="top container-fluid">
<ul class="nav"> <nav class="nav">
조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_BoardHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?> 조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_BoardHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?>
<?= $this->include('templates/admin/index_head') ?> </nav>
</ul> <?= $this->include('templates/admin/index_head') ?>
<?= form_close() ?>
</div> </div>
<?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="table table-bordered table-hover table-striped"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>번호</th> <th>번호</th>

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_BoardHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_BoardHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_BoardHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_BoardHelper($field, old($field, DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_BoardHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_BoardHelper($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_BoardHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '답변글추가', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_BoardHelper($field, old($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_BoardHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_BoardHelper($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_BoardHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_BoardHelper($field, old($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,16 +1,19 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<table class="form table table-bordered table-hover table-striped"> <div id="content">
<?php foreach ($viewDatas['fields'] as $field) : ?> <table class="form table table-bordered table-striped">
<tr> <tbody>
<td class="label"><?= getFieldLabel_BoardHelper($field, $viewDatas) ?></td> <?php foreach ($viewDatas['fields'] as $field) : ?>
<td class="column"> <tr>
<?= getFieldView_BoardHelper($field, $viewDatas['entity'], $viewDatas) ?> <td class="label"><?= getFieldLabel_BoardHelper($field, $viewDatas) ?></td>
<?= validation_show_error($field); ?> <td class="column">
</td> <?= getFieldView_BoardHelper($field, $viewDatas['entity'], $viewDatas) ?>
</tr> <?= validation_show_error($field); ?>
<?php endforeach; ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table> </table>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,16 +1,15 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div class="top"> <div id="content">
<?= form_open(current_url(), array("method" => "get")) ?> <div class="top container-fluid">
<ul class="nav"> <nav class="nav">
조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_CategoryHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?> 조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_CategoryHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?>
<?= $this->include('templates/admin/index_head') ?> </nav>
</ul> <?= $this->include('templates/admin/index_head') ?>
<?= form_close() ?>
</div> </div>
<?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="table table-bordered table-hover table-striped"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>번호</th> <th>번호</th>

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_CategoryHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_CategoryHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_CategoryHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_CategoryHelper($field, old($field, DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_CategoryHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_CategoryHelper($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_CategoryHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '중분류추가', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_CategoryHelper($field, old($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_CategoryHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_CategoryHelper($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_CategoryHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_CategoryHelper($field, old($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,16 +1,19 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<table class="form table table-bordered table-hover table-striped"> <div id="content">
<?php foreach ($viewDatas['fields'] as $field) : ?> <table class="form table table-bordered table-striped">
<tr> <tbody>
<td class="label"><?= getFieldLabel_CategoryHelper($field, $viewDatas) ?></td> <?php foreach ($viewDatas['fields'] as $field) : ?>
<td class="column"> <tr>
<?= getFieldView_CategoryHelper($field, $viewDatas['entity'], $viewDatas) ?> <td class="label"><?= getFieldLabel_CategoryHelper($field, $viewDatas) ?></td>
<?= validation_show_error($field); ?> <td class="column">
</td> <?= getFieldView_CategoryHelper($field, $viewDatas['entity'], $viewDatas) ?>
</tr> <?= validation_show_error($field); ?>
<?php endforeach; ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table> </table>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,16 +1,15 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div class="top"> <div id="content">
<?= form_open(current_url(), array("method" => "get")) ?> <div class="top container-fluid">
<ul class="nav"> <nav class="nav">
조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_OrderHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?> 조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_OrderHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?>
<?= $this->include('templates/admin/index_head') ?> </nav>
</ul> <?= $this->include('templates/admin/index_head') ?>
<?= form_close() ?>
</div> </div>
<?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="table table-bordered table-hover table-striped"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>번호</th> <th>번호</th>
@ -31,9 +30,9 @@
<?php endforeach ?> <?php endforeach ?>
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td> <td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
</tr> </tr>
<?php $cnt++ ?>
<?php endforeach ?>
</tbody> </tbody>
<?php $cnt++ ?>
<?php endforeach ?>
</table> </table>
<div class="bottom"> <div class="bottom">
<ul class="nav justify-content-center"> <ul class="nav justify-content-center">

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_OrderHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_OrderHelper($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_OrderHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_OrderHelper($field, old($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,16 +1,19 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<table class="form table table-bordered table-hover table-striped"> <div id="content">
<?php foreach ($viewDatas['fields'] as $field) : ?> <table class="form table table-bordered table-striped">
<tr> <tbody>
<td class="label"><?= getFieldLabel_OrderHelper($field, $viewDatas) ?></td> <?php foreach ($viewDatas['fields'] as $field) : ?>
<td class="column"> <tr>
<?= getFieldView_OrderHelper($field, $viewDatas['entity'], $viewDatas) ?> <td class="label"><?= getFieldLabel_OrderHelper($field, $viewDatas) ?></td>
<?= validation_show_error($field); ?> <td class="column">
</td> <?= getFieldView_OrderHelper($field, $viewDatas['entity'], $viewDatas) ?>
</tr> <?= validation_show_error($field); ?>
<?php endforeach; ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table> </table>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,16 +1,15 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div class="top"> <div id="content">
<?= form_open(current_url(), array("method" => "get")) ?> <div class="top container-fluid">
<ul class="nav"> <nav class="nav">
조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_ProductHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?> 조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_ProductHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?>
<?= $this->include('templates/admin/index_head') ?> </nav>
</ul> <?= $this->include('templates/admin/index_head') ?>
<?= form_close() ?>
</div> </div>
<?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="table table-bordered table-hover table-striped"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>번호</th> <th>번호</th>
@ -32,8 +31,8 @@
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td> <td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
</tr> </tr>
<?php $cnt++ ?> <?php $cnt++ ?>
<?php endforeach ?>
</tbody> </tbody>
<?php endforeach ?>
</table> </table>
<div class="bottom"> <div class="bottom">
<ul class="nav justify-content-center"> <ul class="nav justify-content-center">

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_ProductHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_ProductHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_ProductHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_ProductHelper($field, old($field, DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_ProductHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_ProductHelper($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_ProductHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_ProductHelper($field, old($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,16 +1,19 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<table class="form table table-bordered table-hover table-striped"> <div id="content">
<?php foreach ($viewDatas['fields'] as $field) : ?> <table class="form table table-bordered table-striped">
<tr> <tbody>
<td class="label"><?= getFieldLabel_ProductHelper($field, $viewDatas) ?></td> <?php foreach ($viewDatas['fields'] as $field) : ?>
<td class="column"> <tr>
<?= getFieldView_ProductHelper($field, $viewDatas['entity'], $viewDatas) ?> <td class="label"><?= getFieldLabel_ProductHelper($field, $viewDatas) ?></td>
<?= validation_show_error($field); ?> <td class="column">
</td> <?= getFieldView_ProductHelper($field, $viewDatas['entity'], $viewDatas) ?>
</tr> <?= validation_show_error($field); ?>
<?php endforeach; ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table> </table>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,16 +1,15 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div class="top"> <div id="content">
<?= form_open(current_url(), array("method" => "get")) ?> <div class="top container-fluid">
<ul class="nav"> <nav class="nav">
조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_SitepageHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?> 조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_SitepageHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?>
<?= $this->include('templates/admin/index_head') ?> </nav>
</ul> <?= $this->include('templates/admin/index_head') ?>
<?= form_close() ?>
</div> </div>
<?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="table table-bordered table-hover table-striped"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>번호</th> <th>번호</th>

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_SitepageHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_SitepageHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_SitepageHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_SitepageHelper($field, old($field, DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_SitepageHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_SitepageHelper($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_SitepageHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_SitepageHelper($field, old($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,16 +1,19 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<table class="form table table-bordered table-hover table-striped"> <div id="content">
<?php foreach ($viewDatas['fields'] as $field) : ?> <table class="form table table-bordered table-striped">
<tr> <tbody>
<td class="label"><?= getFieldLabel_SitepageHelper($field, $viewDatas) ?></td> <?php foreach ($viewDatas['fields'] as $field) : ?>
<td class="column"> <tr>
<?= getFieldView_SitepageHelper($field, $viewDatas['entity'], $viewDatas) ?> <td class="label"><?= getFieldLabel_SitepageHelper($field, $viewDatas) ?></td>
<?= validation_show_error($field); ?> <td class="column">
</td> <?= getFieldView_SitepageHelper($field, $viewDatas['entity'], $viewDatas) ?>
</tr> <?= validation_show_error($field); ?>
<?php endforeach; ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table> </table>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,16 +1,15 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div class="top"> <div id="content">
<?= form_open(current_url(), array("method" => "get")) ?> <div class="top container-fluid">
<ul class="nav"> <nav class="nav">
조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_UserHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?> 조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_UserHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?>
<?= $this->include('templates/admin/index_head') ?> </nav>
</ul> <?= $this->include('templates/admin/index_head') ?>
<?= form_close() ?>
</div> </div>
<?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="table table-bordered table-hover table-striped"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>번호</th> <th>번호</th>
@ -31,9 +30,9 @@
<?php endforeach ?> <?php endforeach ?>
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td> <td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
</tr> </tr>
<?php $cnt++ ?>
<?php endforeach ?>
</tbody> </tbody>
<?php $cnt++ ?>
<?php endforeach ?>
</table> </table>
<div class="bottom"> <div class="bottom">
<ul class="nav justify-content-center"> <ul class="nav justify-content-center">

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_UserHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_UserHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_UserHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_UserHelper($field, old($field, DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,21 +1,24 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div id="content">
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-hover table-striped"> <table class="form table table-bordered table-striped">
<?php foreach ($viewDatas['fields'] as $field) : ?> <tbody>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<tr>
<td class="label"><?= getFieldLabel_UserHelper($field, $viewDatas) ?></td>
<td class="column">
<?= getFieldForm_UserHelper($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY'], $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr>
<?php endforeach; ?>
<tr> <tr>
<td class="label"><?= getFieldLabel_UserHelper($field, $viewDatas) ?></td> <td valign="bottom" colspan="2"><?= form_submit('', '수정', array("class" => "btn btn-outline btn-primary")); ?></td>
<td class="column">
<?= getFieldForm_UserHelper($field, old($field, $viewDatas['entity']->$field ?: DEFAULTS['EMPTY']), $viewDatas) ?>
<?= validation_show_error($field); ?>
</td>
</tr> </tr>
<?php endforeach; ?> </tbody>
<tr> <?= form_close(); ?>
<td valign="bottom" colspan="2"><?= form_submit('', '입력', array("class" => "btn btn-outline btn-primary")); ?></td>
</tr>
</table> </table>
<?= form_close(); ?>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,16 +1,19 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<table class="form table table-bordered table-hover table-striped"> <div id="content">
<?php foreach ($viewDatas['fields'] as $field) : ?> <table class="form table table-bordered table-striped">
<tr> <tbody>
<td class="label"><?= getFieldLabel_UserHelper($field, $viewDatas) ?></td> <?php foreach ($viewDatas['fields'] as $field) : ?>
<td class="column"> <tr>
<?= getFieldView_UserHelper($field, $viewDatas['entity'], $viewDatas) ?> <td class="label"><?= getFieldLabel_UserHelper($field, $viewDatas) ?></td>
<?= validation_show_error($field); ?> <td class="column">
</td> <?= getFieldView_UserHelper($field, $viewDatas['entity'], $viewDatas) ?>
</tr> <?= validation_show_error($field); ?>
<?php endforeach; ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table> </table>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,16 +1,15 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<div class="top"> <div id="content">
<?= form_open(current_url(), array("method" => "get")) ?> <div class="top container-fluid">
<ul class="nav"> <nav class="nav">
조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_UserSNSHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?> 조건검색:<?php foreach ($viewDatas['fieldFilters'] as $field) : ?><?= getFieldFilter_UserSNSHelper($field, $viewDatas[$field], $viewDatas) ?><?php endforeach ?>
<?= $this->include('templates/admin/index_head') ?> </nav>
</ul> <?= $this->include('templates/admin/index_head') ?>
<?= form_close() ?>
</div> </div>
<?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?> <?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="table table-bordered table-hover table-striped"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>번호</th> <th>번호</th>
@ -31,9 +30,9 @@
<?php endforeach ?> <?php endforeach ?>
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td> <td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
</tr> </tr>
<?php $cnt++ ?>
<?php endforeach ?>
</tbody> </tbody>
<?php $cnt++ ?>
<?php endforeach ?>
</table> </table>
<div class="bottom"> <div class="bottom">
<ul class="nav justify-content-center"> <ul class="nav justify-content-center">

View File

@ -1,16 +1,19 @@
<?= $this->extend('layouts/admin') ?> <?= $this->extend('layouts/admin') ?>
<?= $this->section('content') ?> <?= $this->section('content') ?>
<div class="content"> <link href="/css/admin/content.css" media="screen" rel="stylesheet" type="text/css" />
<table class="form table table-bordered table-hover table-striped"> <div id="content">
<?php foreach ($viewDatas['fields'] as $field) : ?> <table class="form table table-bordered table-striped">
<tr> <tbody>
<td class="label"><?= getFieldLabel_UserSNSHelper($field, $viewDatas) ?></td> <?php foreach ($viewDatas['fields'] as $field) : ?>
<td class="column"> <tr>
<?= getFieldView_UserSNSHelper($field, $viewDatas['entity'], $viewDatas) ?> <td class="label"><?= getFieldLabel_UserSNSHelper($field, $viewDatas) ?></td>
<?= validation_show_error($field); ?> <td class="column">
</td> <?= getFieldView_UserSNSHelper($field, $viewDatas['entity'], $viewDatas) ?>
</tr> <?= validation_show_error($field); ?>
<?php endforeach; ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table> </table>
</div> </div>
<?= $this->endSection() ?> <?= $this->endSection() ?>

View File

@ -1,10 +1,10 @@
<!doctype html> <!DOCTYPE html>
<html> <html lang="ko">
<head> <head>
<base href="/" target="_self" /> <meta charset="utf-8">
<meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" id="viewport" content="width=1280">
<?php foreach ($viewDatas['layout']['stylesheets'] as $stylesheet) : ?> <?php foreach ($viewDatas['layout']['stylesheets'] as $stylesheet) : ?>
<?= $stylesheet ?> <?= $stylesheet ?>
<?php endforeach; ?> <?php endforeach; ?>
@ -24,19 +24,26 @@
</head> </head>
<body> <body>
<?= $this->include($viewDatas['layout']['path'] . '/top_navigator'); ?> <div id="head">
<table id="layout"> <?= $this->include($viewDatas['layout']['path'] . '/top_navigator'); ?>
<tr> </div>
<td id="left" valign="top" width="180"> <div class="container-fluid">
<?= $this->include($viewDatas['layout']['path'] . '/left_menu'); ?> <nav class="nav"></nav>
</td> <nav class="nav justify-content-center">
<td id="body" valign="top" width="*"> <table id="layout">
<?= $this->include('templates/admin/header'); ?> <tr>
<?= $this->renderSection('content') ?> <td id="left" valign="top" width="160">
<?= $this->include('templates/admin/footer'); ?> <?= $this->include($viewDatas['layout']['path'] . '/left_menu'); ?>
</td> </td>
</tr> <td id="body" valign="top" width="*">
</table> <?= $this->include('templates/admin/header'); ?>
<?= $this->renderSection('content') ?>
<?= $this->include('templates/admin/footer'); ?>
</td>
</tr>
</table>
<nav class="nav justify-content-end"></nav>
</div>
</body> </body>
</html> </html>

View File

@ -1,3 +1,9 @@
<div class="header"> <nav class="header navbar navbar-expand-lg">
<h4><?= $viewDatas['class_icon'] ?></i><?= $viewDatas['title'] ?></h4> <div class="container-fluid">
</div> <nav class="nav">
<h4><?= $viewDatas['class_icon'] ?></i><?= $viewDatas['title'] ?></h4>
</nav>
<nav class="nav justify-content-center"></nav>
<nav class="nav justify-content-end"></nav>
</div>
</nav>

View File

@ -1,6 +1,19 @@
<li class="nav-item">검색어:<?= form_input('word', $viewDatas['word']) ?></li> <nav class="navbar navbar-expand-lg">
<li class="nav-item">검색일: <div class="container-fluid">
<?= form_input('start', $viewDatas['start'], ["class" => "calender"]) ?><?= form_input('end', $viewDatas['end'], ["class" => "calender"]) ?> <nav class="nav">
<?= form_submit('', '검색', array("class" => "btn btn-outline btn-primary")); ?><?= anchor(current_url() . '/excel?' . $viewDatas['uri']->getQuery(), '<i class="bi bi-file-excel"></i>', ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?> <span class="pageinfo">
</li> 페이지정보 : <?= $viewDatas['page'] ?>/<?= $viewDatas['total_page'] ?>
<li class="nav-item">page:<?= $viewDatas['page'] ?> / total:<?= $viewDatas['total_page'] ?> <?= form_dropdown('per_page', $viewDatas['pageOptions'], $viewDatas['per_page'], array('onChange' => 'this.form.submit()')) ?> / 총:<?= $viewDatas['total_count'] ?></li> <?= form_dropdown('per_page', $viewDatas['pageOptions'], $viewDatas['per_page'], array('onChange' => 'this.form.submit()')) ?> / 총:<?= $viewDatas['total_count'] ?>
</span>
</nav>
<nav class="nav justify-content-center"></nav>
<nav class="nav justify-content-end">
<?= form_open(current_url(), array("method" => "get")) ?>
검색어:<?= form_input('word', $viewDatas['word']) ?>
검색일:<?= form_input('start', $viewDatas['start'], ["class" => "calender"]) ?><?= form_input('end', $viewDatas['end'], ["class" => "calender"]) ?>
<?= form_submit('', '검색하기') ?>
<?= anchor(current_url() . '/excel?' . $viewDatas['uri']->getQuery(), ICONS['EXCEL'], ["target" => "_self"]) ?>
<?= form_close() ?>
</nav>
</div>
</nav>

View File

@ -4,95 +4,43 @@
* Created : 2016/9/11 Tri-aBility by Junheum,Choi * Created : 2016/9/11 Tri-aBility by Junheum,Choi
* Updated : * Updated :
------------------------------------------------------------ */ ------------------------------------------------------------ */
/* #head{ /* #head{
border:1px solid blue; border:1px solid blue;
} */ } */
/* #tail{ #tail{
border:1px solid green; text-align:center;
} */ /* border:1px solid green; */
#layout{
width:100%;
background-color:#efefef
} }
/* #layout #left { #layout {
} */ width:100%;
#layout #body{ /* border:1px solid blue; */
padding-left:10px;
padding-right:10px;
} }
#layout #body div.header{ #layout #body{
/*content 상단라인*/ padding-left:10px;
padding:15px; /* border:1px solid red; */
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;
} }
#layout #body div.content{
border:1px solid silver; #layout #body nav.header{
background-color:white; /*content 상단라인*/
padding-top:40px;
border-bottom:1px solid silver;
}
#layout #body nav.header nav h4.title{
font-size:26px;
font-weight:bold;
}
#layout #body nav.header nav span.flow{
color: gray;
} }
#layout #body div.footer #layout #body div.footer
/*content 하단라인*/{ /*content 하단라인*/{
height:20px; height:20px;
border-top:0px; /* border-top:0px;
border-left:1px solid silver; border-left:1px solid silver;
border-bottom:1px solid silver; border-bottom:1px solid silver;
border-right:1px solid silver; border-right:1px solid silver;
border-radius: 0px 0px 10px 10px; border-radius: 0px 0px 10px 10px;
background-color:white; background-color:white; */
}
#layout #body div.content div.top{
/*조건 검색*/
padding:10px;
/* border:1px solid red; */
}
#layout #body div.content div.top ul.nav li.nav-item{
/*조건검색 ITEMS*/
/* border:1px solid red; */
margin-left:10px;
}
#layout #body div.content table {
white-space: nowrap;
/* overflow-x: auto;
padding-top:5px;
padding-bottom:5px; */
}
#layout #body div.content table th{
text-align:center;
font-size: 16px;
/* border:1px solid silver; */
}
#layout #body div.content table td{
/* border:1px solid silver; */
text-align:center;
}
#layout #body div.content table.form td.label{
background-color:#e8ebe9;
width:10%;
text-align:right;
padding-right:20px;
}
#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;
}
#layout #body div.content div.bottom ul.nav{
/* border:1px solid red; */
margin-bottom:15px;
}
#layout #body div.content div.bottom ul.nav li.nav-item{
/*조건검색 ITEMS*/
/* border:1px solid red; */
margin-left:10px;
} }

View File

@ -0,0 +1,98 @@
div#content{
padding-top:20px;
margin-bottom:20px;
/* border-left:1px solid silver;
border-right:1px solid silver; */
}
/* div#content div.top{
border:1px solid red;
} */
/* Form Page 관련 전용*/
div#content table.form td.label{
width:10%;
text-align:right;
padding-right:20px;
background-color:#e8ebe9;
}
div#content table.form td.column{
height:27px;
text-align:left;
padding-left:20px;
}
/* Form Page 관련 전용*/
/*페이지정보*/
div#content div.top nav span.pageinfo{
font-weight:bold;
}
/*검색*/
div#content div.top nav input[type=text]{
width:200px;
height:40px;
border-radius:0px !important;
/* border:1px solid red; */
}
/*검색submit*/
div#content div.top nav input[type=submit]{
font-size:12px;
font-weight:bold;
width:80px;
height:40px;
color:white;
border-radius:0px !important;
background-color:#555555;
/* border:1px solid red; */
}
/*Excel Icon*/
div#content div.top nav a{
border-radius:0px !important;
/* border:1px solid red; */
}
/* index block 전용 */
div#content table#block tr:first-child {
border-top:2px solid black;
border-bottom:1px solid silver;
}
div#content table#block tr td{
text-align:left;
}
/* index block 전용 */
div#content table {
white-space: nowrap;
/* overflow-x: auto;
padding-top:5px;
padding-bottom:5px; */
}
div#content table thead th{
text-align:center;
padding-top:15px;
padding-bottom:15px;
font-size: 16px;
font-weight:bold;
border-top:2px solid black;
border-bottom:1px solid silver;
background-color:#F5F5F5;
/* border:1px solid silver; */
}
div#content table tbody td {
/* border:1px solid silver; */
text-align:center;
}
div#content div.bottom {
padding-top:15px;
text-align:center;
}
div#content div.bottom ul.pagination {
margin-top:20px;
}
div#content div.bottom ul.pagination li.page-item a{
border:0px;
border-radius:0px !important;
background-color:#e8ebe9;
text-decoration: none;
}
div#content div.bottom ul.pagination li.active a{
background-color:gray;
}

View File

@ -85,7 +85,7 @@ div#content table tbody td {
text-align:center; text-align:center;
} }
div#content table tbody td a{ div#content table tbody td a{
color:gray; color:black;
/* text-decoration: none; */ /* text-decoration: none; */
/* border:1px solid silver; */ /* border:1px solid silver; */
} }
@ -94,6 +94,9 @@ div#content div.bottom {
text-align:center; text-align:center;
} }
div#content div.bottom ul.pagination {
margin-top:20px;
}
div#content div.bottom ul.pagination li.page-item a{ div#content div.bottom ul.pagination li.page-item a{
color:black; color:black;
border:0px; border:0px;