mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
변경전의 xe.less 파일도 rhymix.less와 함께 load 하여 호환정 유지
CSS 충돌 예)
bootstrap의 .btn
사용 예)
bootstrap 사용시엔 {Context::unloadBasicFiles('xe')}으로 unload 시키면 문제없음
125 lines
6 KiB
HTML
125 lines
6 KiB
HTML
<include target="config_header.html" />
|
|
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/admin/tpl/config_domains/1'" class="rhymix_message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
|
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
|
</div>
|
|
<section class="section">
|
|
|
|
<table id="domain_list" class="x_table x_table-striped x_table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="nowr">{$lang->site_title}</th>
|
|
<th scope="col" class="nowr">{$lang->domain}</th>
|
|
<th scope="col" class="nowr">{$lang->use_ssl}</th>
|
|
<th scope="col" class="nowr">{$lang->cmd_index_module_srl}</th>
|
|
<th scope="col" class="nowr">{$lang->cmd_index_document_srl}</th>
|
|
<th scope="col" class="nowr">{$lang->cmd_modify} / {$lang->cmd_delete}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr loop="$domain_list->data => $domain">
|
|
<td class="nowr">
|
|
{$domain->settings->title}
|
|
<i cond="$domain->is_default_domain === 'Y'" class="x_icon-home" title="{$lang->cmd_is_default_domain}">{$lang->cmd_is_default_domain}</i>
|
|
</td>
|
|
<td class="nowr">{$domain->domain}</td>
|
|
<td class="nowr">{preg_replace('/\\(.+$/', '', $lang->ssl_options[$domain->security ?: 'none'])}</td>
|
|
<td class="nowr">
|
|
<a href="{getSiteUrl($domain->domain, '', 'mid', $module_list[$domain->index_module_srl]->mid)}" cond="$domain->index_module_srl && $module_list[$domain->index_module_srl]" target="_blank">
|
|
{($domain->index_module_srl && $module_list[$domain->index_module_srl]) ? $module_list[$domain->index_module_srl]->browser_title : ''}
|
|
</a>
|
|
</td>
|
|
<td class="nowr">
|
|
<a href="{getSiteUrl($domain->domain, '', 'mid', $module_list[$domain->index_module_srl]->mid, 'document_srl', $domain->index_document_srl)}" cond="$domain->index_document_srl" target="_blank">
|
|
{$domain->index_document_srl ?: ''}
|
|
</a>
|
|
</td>
|
|
<td class="nowr">
|
|
<a href="{getUrl('', 'module', 'admin', 'act', 'dispAdminInsertDomain', 'domain_srl', $domain->domain_srl)}">{$lang->cmd_modify}</a>
|
|
/
|
|
<block cond="$domain->is_default_domain !== 'Y'">
|
|
<a href="#" data-domain="{$domain->domain}" data-domain-srl="{$domain->domain_srl}" class="delete_domain">{$lang->cmd_delete}</a>
|
|
</block>
|
|
<block cond="$domain->is_default_domain === 'Y'">
|
|
<span style="color:#aaa">{$lang->cmd_delete}</span>
|
|
</block>
|
|
</td>
|
|
</tr>
|
|
<tr cond="$page_navigation->total_count == 0">
|
|
<td>{$lang->msg_no_result}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div class="x_clearfix">
|
|
<div class="x_pull-left x_pagination" style="margin:0">
|
|
<ul>
|
|
<li class="x_disabled"|cond="$page == 1"><a href="{getUrl('page', '')}">« {$lang->first_page}</a></li>
|
|
<!--@while($page_no = $page_navigation->getNextPage())-->
|
|
<li class="x_active"|cond="$page_no == $page"><a href="{getUrl('page', $page_no)}">{$page_no}</a></li>
|
|
<!--@end-->
|
|
<li class="x_disabled"|cond="$page == $page_navigation->last_page"><a href="{getUrl('page', $page_navigation->last_page)}">{$lang->last_page} »</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="x_pull-right x_btn-group">
|
|
<a class="x_btn x_btn-inverse" href="{getUrl('', 'module', 'admin', 'act', 'dispAdminInsertDomain')}">{$lang->cmd_new_domain}</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="section">
|
|
<h2>{$lang->cmd_multidomain_configuration}</h2>
|
|
<form action="./" method="post" class="x_form-horizontal">
|
|
<input type="hidden" name="module" value="admin" />
|
|
<input type="hidden" name="act" value="procAdminUpdateDomains" />
|
|
<input type="hidden" name="xe_validator_id" value="modules/admin/tpl/config_domains/1" />
|
|
<div class="x_control-group">
|
|
<label class="x_control-label">{$lang->cmd_unregistered_domain_action}</label>
|
|
<div class="x_controls">
|
|
<label for="unregistered_domain_redirect_301">
|
|
<input type="radio" name="unregistered_domain_action" id="unregistered_domain_redirect_301" value="redirect_301" checked="checked"|cond="config('url.unregistered_domain_action') === 'redirect_301' || !config('url.unregistered_domain_action')" />
|
|
{$lang->cmd_unregistered_domain_redirect_301}
|
|
</label>
|
|
<label for="unregistered_domain_redirect_302">
|
|
<input type="radio" name="unregistered_domain_action" id="unregistered_domain_redirect_302" value="redirect_302" checked="checked"|cond="config('url.unregistered_domain_action') === 'redirect_302'" />
|
|
{$lang->cmd_unregistered_domain_redirect_302}
|
|
</label>
|
|
<label for="unregistered_domain_display">
|
|
<input type="radio" name="unregistered_domain_action" id="unregistered_domain_display" value="display" checked="checked"|cond="config('url.unregistered_domain_action') === 'display'" />
|
|
{$lang->cmd_unregistered_domain_display}
|
|
</label>
|
|
<label for="unregistered_domain_block">
|
|
<input type="radio" name="unregistered_domain_action" id="unregistered_domain_block" value="block" checked="checked"|cond="config('url.unregistered_domain_action') === 'block'" />
|
|
{$lang->cmd_unregistered_domain_block}
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="x_control-group">
|
|
<label class="x_control-label">{$lang->use_sso}</label>
|
|
<div class="x_controls">
|
|
<label for="use_sso_y" class="x_inline"><input type="radio" name="use_sso" id="use_sso_y" value="Y" checked="checked"|cond="config('use_sso')" /> {$lang->cmd_yes}</label>
|
|
<label for="use_sso_n" class="x_inline"><input type="radio" name="use_sso" id="use_sso_n" value="N" checked="checked"|cond="!config('use_sso')" /> {$lang->cmd_no}</label>
|
|
<br />
|
|
<p class="x_help-block">{$lang->about_use_sso}</p>
|
|
</div>
|
|
</div>
|
|
<div class="x_clearfix rhymix_button_wrapper">
|
|
<div class="x_pull-right">
|
|
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
|
|
<script>
|
|
jQuery(function($) {
|
|
$("a.delete_domain").on("click", function(event) {
|
|
event.preventDefault();
|
|
var domain = $(this).data("domain");
|
|
var domain_srl = $(this).data("domain-srl");
|
|
if (confirm({$lang->cmd_delete_domain|json} + "\n" + domain)) {
|
|
exec_json('admin.procAdminDeleteDomain', { domain_srl: domain_srl }, function() {
|
|
window.location.reload();
|
|
});
|
|
}
|
|
});
|
|
});
|
|
</script>
|