cfmgrv4 init...1

This commit is contained in:
최준흠 2024-09-27 20:28:13 +09:00
parent fc75ccaaa5
commit 852f7198e7
7 changed files with 39 additions and 28 deletions

View File

@ -1,6 +1,6 @@
<link href="/css/<?= $viewDatas['layout'] ?>/content.css" media="screen" rel="stylesheet" type="text/css" />
<?= form_open_multipart(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-striped">
<?= form_open(current_url() . '/create', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="form table table-bordered table-striped" style="width:500px;">
<?php foreach ($viewDatas['fields'] as $field): ?>
<tr>
<td class="label"><?= getFieldLabel_AccountHelper($field, $viewDatas) ?></td>

View File

@ -69,11 +69,15 @@
</div>
<div class="index_pagination"><?= $viewDatas['pagination'] ?></div>
<?= form_close() ?>
<div class="index_form">
<div id="index_create_form"></div>
</div>
<nav class="index_form navbar navbar-expand-lg">
<div class="container-fluid">
<nav class="nav"></nav>
<nav id="index_create_form" class="nav justify-content-center"></nav>
<nav class="nav justify-content-end"></nav>
</div>
</nav>
<script>
document.addEventListener('DOMContentLoaded', function () {
document.addEventListener('DOMContentLoaded', function() {
loadContentForm(
"<?= base_url(strtolower($viewDatas["class_path"]) . "/create") ?>",
document.getElementById('index_create_form')

View File

@ -1,6 +1,6 @@
<link href="/css/<?= $viewDatas['layout'] ?>/content.css" media="screen" rel="stylesheet" type="text/css" />
<?= form_open(current_url() . '/create', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="table table-bordered table-striped" style="width:400px; margin:0 auto;">
<table class="form table table-bordered table-striped">
<tr>
<th style="text-align:center;">도메인</th>
<th style="text-align:center;">Type</th>
@ -32,4 +32,4 @@
</tr>
</table>
<?= form_close(); ?>
<?php if (session()->getFlashdata('error')): ?> <?= session()->getFlashdata('error') ?><?php endif ?>
<?php if (session()->getFlashdata('error')): ?> <?= session()->getFlashdata('error') ?><?php endif ?>

View File

@ -69,7 +69,13 @@
</div>
<div class="index_pagination"><?= $viewDatas['pagination'] ?></div>
<?= form_close() ?>
<div id="index_create_form">
<?= $this->include('admin/cloudflare/record/create'); ?>
</div>
<nav class="index_form navbar navbar-expand-lg">
<div class="container-fluid">
<nav class="nav"></nav>
<nav id="index_create_form" class="nav justify-content-center">
<?= $this->include('admin/cloudflare/record/create'); ?>
</nav>
<nav class="nav justify-content-end"></nav>
</div>
</nav>
<?= $this->endSection() ?>

View File

@ -1,6 +1,6 @@
<link href="/css/<?= $viewDatas['layout'] ?>/content.css" media="screen" rel="stylesheet" type="text/css" />
<?= form_open(current_url() . '/create', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
<table class="table table-bordered table-striped" style="width:400px; margin:0 auto;">
<table class="form table table-bordered table-striped">
<tr>
<th style="text-align:center;">계정정보</th>
<th style="text-align:center;">Type</th>
@ -33,7 +33,7 @@
<td nowrap>
<?php foreach (explode(",", getenv("cfmgr.default.record.hosts")) as $host): ?>
<div style="text-align:left;">
<?= form_checkbox(["name" => "hosts[]", "value" => $host, "checked" => "checked"]); ?> <?= $host ?>
<?= form_checkbox(["name" => "hosts[]", "value" => $host, "checked" => "checked"]); ?> <?= $host ?>
</div>
<?php endforeach; ?>
</td>
@ -41,4 +41,4 @@
</tr>
</table>
<?= form_close(); ?>
<?php if (session()->getFlashdata('error')): ?> <?= session()->getFlashdata('error') ?><?php endif ?>
<?php if (session()->getFlashdata('error')): ?> <?= session()->getFlashdata('error') ?><?php endif ?>

View File

@ -69,7 +69,13 @@
</div>
<div class="index_pagination"><?= $viewDatas['pagination'] ?></div>
<?= form_close() ?>
<div id="index_create_form">
<?= $this->include('admin/cloudflare/zone/create'); ?>
</div>
<nav class="index_form navbar navbar-expand-lg">
<div class="container-fluid">
<nav class="nav"></nav>
<nav id="index_create_form" class="nav justify-content-center">
<?= $this->include('admin/cloudflare/zone/create'); ?>
</nav>
<nav class="nav justify-content-end"></nav>
</div>
</nav>
<?= $this->endSection() ?>

View File

@ -40,12 +40,12 @@ nav.index_top nav.search a.excel {
position: absolute;
top: -9px;
right: -45px;
border-color: 1px solid red;
/* border-color: 1px solid red; */
}
/*페이지정보*/
nav.index_top nav.pageinfo {
font-weight: bold;
border-color: 1px solid red;
/* border-color: 1px solid red; */
}
/* Table 부분 */
table.index_table {
@ -98,13 +98,8 @@ div.index_pagination nav ul.pagination li.active a {
div.index_pagination nav ul.pagination li a:hover {
border: 1px solid black;
}
div.index_form {
margin-top: 30px;
text-align: center;
nav.index_form {
margin-top:20px;
text-align:center;
/* border: 1px solid red; */
}
div.index_form div#index_create_form {
margin: auto; /*수평의 가운데정렬시*/
width: 500px;
/* border: 1px solid blue; */
}
}