115 lines
4.8 KiB
PHP
115 lines
4.8 KiB
PHP
<?php
|
|
if (!defined("_GNUBOARD_") || !defined("G5_IS_ADMIN")) {
|
|
exit();
|
|
}
|
|
?>
|
|
<style>
|
|
.setter {
|
|
display: flex;
|
|
justify-content: start;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-basis: 0;
|
|
}
|
|
|
|
.default_btn {
|
|
background: var(--theme-color-e);
|
|
border-color: transparent;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.default_btn:hover {
|
|
background: var(--theme-color-d);
|
|
}
|
|
</style>
|
|
<div class="tbl_frm01 tbl_wrap">
|
|
<table>
|
|
<colgroup>
|
|
<col style="width: 140px;">
|
|
<col>
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<th class="bo-right">색상1 (배경색 전용)</th>
|
|
<td>
|
|
<div class="setter">색상<input type="text" name="color1" value="<?= $config["color1"] ? $config["color1"] : "#FFF8F0" ?>"
|
|
class="neo_color" size="30" maxlength="255" placeholder="#색상코드" />
|
|
<button type="button" class="default_btn" onclick="document.querySelector('[name=color1]').value = '#FFF8F0';">기본값</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="bo-right">색상2</th>
|
|
<td>
|
|
<div class="setter">색상<input type="text" name="color2" value="<?= $config["color2"] ? $config["color2"] : "#edd0b6" ?>"
|
|
class="neo_color" size="30" maxlength="255" placeholder="#색상코드" />
|
|
<button type="button" class="default_btn" onclick="document.querySelector('[name=color2]').value = '#edd0b6';">기본값</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="bo-right">색상3</th>
|
|
<td>
|
|
<div class="setter">색상<input type="text" name="color3" value="<?= $config["color3"] ? $config["color3"] : "#e3bb82" ?>"
|
|
class="neo_color" size="30" maxlength="255" placeholder="#색상코드" />
|
|
<button type="button" class="default_btn" onclick="document.querySelector('[name=color3]').value = '#e3bb82';">기본값</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="bo-right">색상4</th>
|
|
<td>
|
|
<div class="setter">색상<input type="text" name="color4" value="<?= $config["color4"] ? $config["color4"] : "#c7996b" ?>"
|
|
class="neo_color" size="30" maxlength="255" placeholder="#색상코드" />
|
|
<button type="button" class="default_btn" onclick="document.querySelector('[name=color4]').value = '#c7996b';">기본값</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="bo-right">색상5</th>
|
|
<td>
|
|
<div class="setter">색상<input type="text" name="color5" value="<?= $config["color5"] ? $config["color5"] : "hsl(30, 72%, 55%)" ?>"
|
|
class="neo_color" size="30" maxlength="255" placeholder="#색상코드" />
|
|
<button type="button" class="default_btn" onclick="document.querySelector('[name=color5]').value = 'hsl(30, 72%, 55%)';">기본값</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="bo-right">색상6 (좌측메뉴 배경)</th>
|
|
<td>
|
|
<div class="setter">색상<input type="text" name="color6" value="<?= $config["color6"] ? $config["color6"] : "hsla(30, 72%, 55%, .2)" ?>"
|
|
class="neo_color" size="30" maxlength="255" placeholder="#색상코드" />
|
|
<button type="button" class="default_btn" onclick="document.querySelector('[name=color6]').value = 'hsla(30, 72%, 55%, .2)';">기본값</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="bo-right">색상7</th>
|
|
<td>
|
|
<div class="setter">색상<input type="text" name="color7" value="<?= $config["color7"] ? $config["color7"] : "hsl(45, 100%, 50%)" ?>"
|
|
class="neo_color" size="30" maxlength="255" placeholder="#색상코드" />
|
|
<button type="button" class="default_btn" onclick="document.querySelector('[name=color7]').value = 'hsl(45, 100%, 50%)';">기본값</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="bo-right">색상8</th>
|
|
<td>
|
|
<div class="setter">색상<input type="text" name="color8" value="<?= $config["color8"] ? $config["color8"] : "#4a797b" ?>"
|
|
class="neo_color" size="30" maxlength="255" placeholder="#색상코드" />
|
|
<button type="button" class="default_btn" onclick="document.querySelector('[name=color8]').value = '#4a797b';">기본값</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="bo-right">색상9</th>
|
|
<td>
|
|
<div class="setter">색상<input type="text" name="color9" value="<?= $config["color9"] ? $config["color9"] : "#A8DADC" ?>"
|
|
class="neo_color" size="30" maxlength="255" placeholder="#색상코드" />
|
|
<button type="button" class="default_btn" onclick="document.querySelector('[name=color9]').value = '#A8DADC';">기본값</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|