fix css and write_count
This commit is contained in:
parent
58e4b7004b
commit
6dbc841037
5 changed files with 182 additions and 133 deletions
|
|
@ -33,4 +33,4 @@ EventHandler::triggerEvent("amber.admin.community_form_update");
|
||||||
|
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
goto_url('./community_form.php');
|
goto_url(G5_ADMIN_URL . '/community_form.php');
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,11 @@ html>body #container {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#container section.addon_config {
|
.addon_conf_form {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#container .addon_config {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: auto;
|
height: auto;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,6 @@
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
background: var(--theme-gray-900);
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
||||||
|
|
@ -82,6 +81,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
body.popup-body {
|
body.popup-body {
|
||||||
|
background: var(--theme-gray-100);
|
||||||
min-width: 0px;
|
min-width: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1107,7 +1107,7 @@ th a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding: 3px 10px;
|
padding: 3px 10px;
|
||||||
background: var(--theme-color-a);
|
font-weight: 500;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
margin: 5px 0 0;
|
margin: 5px 0 0;
|
||||||
}
|
}
|
||||||
|
|
@ -1415,15 +1415,6 @@ span.empty {
|
||||||
text-indent: 0;
|
text-indent: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn_confirm {
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
z-index: 9999;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.list_confirm {
|
.list_confirm {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
|
|
@ -1444,39 +1435,6 @@ span.empty {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn_confirm>* {
|
|
||||||
display: block;
|
|
||||||
position: relative;
|
|
||||||
height: 64px;
|
|
||||||
width: 64px;
|
|
||||||
float: left;
|
|
||||||
border: none;
|
|
||||||
color: #fff;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn_confirm .btn>span {
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
text-align: center;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
-webkit-transform: translateY(-50%);
|
|
||||||
z-index: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn_confirm .btn>input {
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
opacity: 0;
|
|
||||||
z-index: 1;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
#gnb {
|
#gnb {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
@ -1576,7 +1534,7 @@ form .btn_submit {
|
||||||
.new_win_desc {
|
.new_win_desc {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
background: var(--theme-color-0);
|
background: var(--theme-gray-500);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1685,7 +1643,7 @@ body #header ul {
|
||||||
body #wrapper {
|
body #wrapper {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 8px 0 8px 248px;
|
margin: 0 0 0 248px;
|
||||||
height: calc(100vh - 16px);
|
height: calc(100vh - 16px);
|
||||||
width: calc(100% - 256px);
|
width: calc(100% - 256px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
@ -1810,3 +1768,88 @@ body #container {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn_confirm {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 9999;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn_confirm>* {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
height: 64px;
|
||||||
|
width: 64px;
|
||||||
|
float: left;
|
||||||
|
border: none;
|
||||||
|
color: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn_confirm .btn {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
border: 2px solid transparent;
|
||||||
|
box-sizing: border-box;
|
||||||
|
transition: .25s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn_confirm .btn>span {
|
||||||
|
position: relative;
|
||||||
|
text-align: center;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn_confirm .btn>.btn_submit {
|
||||||
|
position: absolute;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
opacity: 0;
|
||||||
|
z-index: 1;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn_confirm .btn,
|
||||||
|
.btn_confirm a,
|
||||||
|
.btn_confirm button {
|
||||||
|
background: var(--theme-gray-600);
|
||||||
|
margin-left: 1px;
|
||||||
|
}
|
||||||
|
.btn_confirm .btn>span,
|
||||||
|
.btn_confirm a>*,
|
||||||
|
.btn_confirm button>* {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn_confirm a,
|
||||||
|
.btn_confirm button {
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: 2px solid transparent;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0;
|
||||||
|
transition: .25s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn_confirm a:hover,
|
||||||
|
.btn_confirm button:hover,
|
||||||
|
.btn_confirm .btn:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
color: var(--white);
|
||||||
|
background-color: var(--theme-sub-700);
|
||||||
|
}
|
||||||
|
|
||||||
|
#wrap {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
margin: 0;
|
||||||
|
padding: 8px 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background: var(--theme-gray-900);
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,89 +19,89 @@ include_once G5_ADMIN_PATH . '/admin.head.php';
|
||||||
|
|
||||||
add_stylesheet(get_embed_file("css", G5_PATH . "/adm/css/addon_config.css"), 1);
|
add_stylesheet(get_embed_file("css", G5_PATH . "/adm/css/addon_config.css"), 1);
|
||||||
?>
|
?>
|
||||||
<section class="addon_config">
|
<form method="POST" action="./addon_config_update.php" class="addon_conf_form">
|
||||||
<nav><span>설치된 애드온 목록</span><?php
|
<section class="addon_config">
|
||||||
if (!empty(AddonLoader::$addons)) {
|
<nav><span>설치된 애드온 목록</span><?php
|
||||||
foreach (AddonLoader::$addons as $menu) {
|
if (!empty(AddonLoader::$addons)) {
|
||||||
$selected = isset($_GET["addon"]) && $_GET["addon"] == $menu->className ? " selected" : "";
|
foreach (AddonLoader::$addons as $menu) {
|
||||||
echo "<a href=\"./addon_config.php?addon={$menu->className}\" class=\"addon_menu{$selected}\">{$menu->name}</a>";
|
$selected = isset($_GET["addon"]) && $_GET["addon"] == $menu->className ? " selected" : "";
|
||||||
}
|
echo "<a href=\"./addon_config.php?addon={$menu->className}\" class=\"addon_menu{$selected}\">{$menu->name}</a>";
|
||||||
} else {
|
|
||||||
echo "<a href=\"#\">설치된 애드온이 없습니다.</a>";
|
|
||||||
}
|
|
||||||
?></nav>
|
|
||||||
<section>
|
|
||||||
<?php
|
|
||||||
if (isset($_GET["addon"])) {
|
|
||||||
if (array_key_exists($_GET["addon"], AddonLoader::$addons)) {
|
|
||||||
$addon = AddonLoader::$addons[$addon];
|
|
||||||
?>
|
|
||||||
<header>
|
|
||||||
<div class="tbl_frm01 tbl_wrap">
|
|
||||||
<table>
|
|
||||||
<colgroup>
|
|
||||||
<col style="width: 140px;">
|
|
||||||
<col>
|
|
||||||
</colgroup>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">
|
|
||||||
애드온 이름
|
|
||||||
</th>
|
|
||||||
<td>
|
|
||||||
<?= $addon->name ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">
|
|
||||||
애드온 제작자
|
|
||||||
</th>
|
|
||||||
<td>
|
|
||||||
<?= $addon->link ? "<a href=\"" . $addon->link . "\" target=\"_blank\">" . $addon->author . "</a> <span style=\"font-size: 11px\">[{$addon->link}]</span>" : $addon->author ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">
|
|
||||||
애드온 설명
|
|
||||||
</th>
|
|
||||||
<td>
|
|
||||||
<?= $addon->description ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">
|
|
||||||
애드온 버전
|
|
||||||
</th>
|
|
||||||
<td>
|
|
||||||
<?= $addon->version ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
<content>
|
|
||||||
<form method="POST" action="./addon_config_update.php">
|
|
||||||
<input type="hidden" name="addon" value="<?= $addon->className ?>" />
|
|
||||||
<?php
|
|
||||||
if (method_exists($addon, "printConfigForm")) {
|
|
||||||
$addon->printConfigForm();
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<div class="btn_confirm">
|
|
||||||
<div class="btn">
|
|
||||||
<span class="material-icons">save</span>
|
|
||||||
<input type="submit" value="저장" class="btn_submit" accesskey="s">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</content><?php
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo "<span class=\"empty\">애드온을 선택하세요</span>";
|
echo "<a href=\"#\">설치된 애드온이 없습니다.</a>";
|
||||||
}
|
}
|
||||||
?>
|
?></nav>
|
||||||
|
<section>
|
||||||
|
<?php
|
||||||
|
if (isset($_GET["addon"])) {
|
||||||
|
if (array_key_exists($_GET["addon"], AddonLoader::$addons)) {
|
||||||
|
$addon = AddonLoader::$addons[$addon];
|
||||||
|
?>
|
||||||
|
<header>
|
||||||
|
<div class="tbl_frm01 tbl_wrap">
|
||||||
|
<table>
|
||||||
|
<colgroup>
|
||||||
|
<col style="width: 140px;">
|
||||||
|
<col>
|
||||||
|
</colgroup>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">
|
||||||
|
애드온 이름
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<?= $addon->name ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">
|
||||||
|
애드온 제작자
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<?= $addon->link ? "<a href=\"" . $addon->link . "\" target=\"_blank\">" . $addon->author . "</a> <span style=\"font-size: 11px\">[{$addon->link}]</span>" : $addon->author ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">
|
||||||
|
애드온 설명
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<?= $addon->description ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">
|
||||||
|
애드온 버전
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<?= $addon->version ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<content>
|
||||||
|
<input type="hidden" name="addon" value="<?= $addon->className ?>" />
|
||||||
|
<?php
|
||||||
|
if (method_exists($addon, "printConfigForm")) {
|
||||||
|
$addon->printConfigForm();
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</content><?php
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
echo "<span class=\"empty\">애드온을 선택하세요</span>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
<div class="btn_confirm">
|
||||||
|
<div class="btn">
|
||||||
|
<span class="material-icons">save</span>
|
||||||
|
<input type="submit" value="저장" class="btn_submit" accesskey="s">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
<?php
|
<?php
|
||||||
include_once G5_ADMIN_PATH . '/admin.tail.php';
|
include_once G5_ADMIN_PATH . '/admin.tail.php';
|
||||||
|
|
|
||||||
|
|
@ -178,9 +178,9 @@ switch ($day) {
|
||||||
var plot1 = $.jqplot('chart1', [line1, line2], {
|
var plot1 = $.jqplot('chart1', [line1, line2], {
|
||||||
seriesDefaults: {
|
seriesDefaults: {
|
||||||
<?php if ($graph == 'bar') { ?>
|
<?php if ($graph == 'bar') { ?>
|
||||||
renderer: $.jqplot.BarRenderer,
|
renderer: $.jqplot.BarRenderer,
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
pointLabels: { show: true }
|
pointLabels: { show: true }
|
||||||
},
|
},
|
||||||
axes: {
|
axes: {
|
||||||
xaxis: {
|
xaxis: {
|
||||||
|
|
@ -198,8 +198,10 @@ switch ($day) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<?php
|
</div>
|
||||||
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once "./admin.tail.php";
|
|
||||||
?>
|
?>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
include_once "./admin.tail.php";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue