114 lines
4.0 KiB
PHP
Executable File
114 lines
4.0 KiB
PHP
Executable File
<?php
|
|
/* Smarty version 5.3.1, created on 2024-12-08 11:39:40
|
|
from 'file:footer.tpl' */
|
|
|
|
/* @var \Smarty\Template $_smarty_tpl */
|
|
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
|
'version' => '5.3.1',
|
|
'unifunc' => 'content_675514fc8c5719_79461118',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'f8f660d4cdae0fc8496940d41d50744ee6e6cfbd' =>
|
|
array (
|
|
0 => 'footer.tpl',
|
|
1 => 1712762115,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
'file:live_chat.tpl' => 1,
|
|
),
|
|
))) {
|
|
function content_675514fc8c5719_79461118 (\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = '/www/wwwroot/xiaofu.cloud/resources/views/tabler';
|
|
?><div class="modal modal-blur fade" id="success-dialog" tabindex="-1" role="dialog" aria-hidden="true">
|
|
<div class="modal-dialog modal-sm modal-dialog-centered" role="document">
|
|
<div class="modal-content">
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
<div class="modal-status bg-success"></div>
|
|
<div class="modal-body text-center py-4">
|
|
<i class="ti ti-circle-check icon mb-2 text-green icon-lg" style="font-size:3.5rem;"></i>
|
|
<p id="success-message" class="text-secondary">成功</p>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<div class="w-100">
|
|
<div class="row">
|
|
<div class="col">
|
|
<a id="success-confirm" href="" class="btn w-100" data-bs-dismiss="modal">
|
|
好
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal modal-blur fade" id="fail-dialog" tabindex="-1" role="dialog" aria-hidden="true">
|
|
<div class="modal-dialog modal-sm modal-dialog-centered" role="document">
|
|
<div class="modal-content">
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
<div class="modal-status bg-danger"></div>
|
|
<div class="modal-body text-center py-4">
|
|
<i class="ti ti-circle-x icon mb-2 text-danger icon-lg" style="font-size:3.5rem;"></i>
|
|
<p id="fail-message" class="text-secondary">失败</p>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<div class="w-100">
|
|
<div class="row">
|
|
<div class="col">
|
|
<a href="" class="btn btn-danger w-100" data-bs-dismiss="modal">
|
|
确认
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php echo '<script'; ?>
|
|
src="//<?php echo $_smarty_tpl->getValue('config')['jsdelivr_url'];?>
|
|
/npm/@tabler/core@latest/dist/js/tabler.min.js"><?php echo '</script'; ?>
|
|
>
|
|
|
|
<?php echo '<script'; ?>
|
|
>
|
|
htmx.on("htmx:afterRequest", function(evt) {
|
|
if (evt.detail.xhr.getResponseHeader('HX-Redirect'))
|
|
{
|
|
return;
|
|
}
|
|
|
|
let res = JSON.parse(evt.detail.xhr.response);
|
|
let successDialog = new bootstrap.Modal(document.getElementById('success-dialog'));
|
|
let failDialog = new bootstrap.Modal(document.getElementById('fail-dialog'));
|
|
|
|
if (evt.detail.elt.id === 'send-verify-email') {
|
|
document.getElementById('send-verify-email').disabled = true;
|
|
}
|
|
|
|
if (res.ret === 1) {
|
|
document.getElementById("success-message").innerHTML = res.msg;
|
|
successDialog.show();
|
|
} else {
|
|
document.getElementById("fail-message").innerHTML = res.msg;
|
|
failDialog.show();
|
|
}
|
|
});
|
|
<?php echo '</script'; ?>
|
|
>
|
|
|
|
<?php $_smarty_tpl->renderSubTemplate('file:live_chat.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
|
|
?>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
<?php }
|
|
}
|