cfmgrv4/app/Views/admin/cloudflare/zone/create.php
2024-09-27 20:28:13 +09:00

44 lines
2.0 KiB
PHP

<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="form table table-bordered table-striped">
<tr>
<th style="text-align:center;">계정정보</th>
<th style="text-align:center;">Type</th>
<th style="text-align:center;">IP/내용</th>
<th style="text-align:center;">도메인명</th>
<th>CDN기능</th>
<th colspan="2" style="text-align:center;">호스트명</th>
</tr>
<tr>
<td>
<?= getFieldForm_ZoneHelper('account_uid', isset($this->account_uid) ?: old('account_uid'), $viewDatas) ?>
<?= validation_show_error('account_uid'); ?>
</td>
<td>
<?= form_dropdown('type', array_merge(["" => "Type 선택"], lang('Admin/Cloudflare/Record.TYPE')), old('type')) ?>
<?= validation_show_error('type'); ?>
</td>
<td>
<?= form_input('content', is_null(old('content')) ? DEFAULTS['EMPTY'] : old('content'), ["size" => 30]) ?>
<?= validation_show_error('content'); ?>
</td>
<td>
<?= form_textarea('domains', is_null(old('domains')) ? DEFAULTS['EMPTY'] : old('domains'), ["cols" => 30, "rows" => 5]) ?>
<?= validation_show_error('domains'); ?>
</td>
<td>
<?= form_dropdown('proxied', ["" => "CDN기능 선택", "on" => "사용", "off" => "사용 않함"], old('proxied')) ?>
<?= validation_show_error('proxied'); ?>
</td>
<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 ?>
</div>
<?php endforeach; ?>
</td>
<td><input type="submit" value="추가" class="btn btn-sm btn-primary btn-circle" type="button" /></td>
</tr>
</table>
<?= form_close(); ?>
<?php if (session()->getFlashdata('error')): ?> <?= session()->getFlashdata('error') ?><?php endif ?>