<?php if (!defined('_GNUBOARD_')) exit; ?>

<style>
.write-input-div { display:flex; justify-content:center; align-items:center; height:40px; background-color:#ffffff; border:1px solid #d0d3db; border-radius:<?php echo $is_mobile ? "0" : "3"; ?>px; margin-bottom:<?php echo $is_mobile ? "10" : "0"; ?>px; }
.write-input-div b { color:#c00000; }
.write-input-div input { margin:0px 3px 0px 10px; }
</style>
<script>
const $_ONE = (one) => document.querySelector(one);
const $_ALL = (all) => document.querySelectorAll(all);
$_ONE("#bo_w .bo_w_tit").insertAdjacentHTML("afterend", `
	<div class='write-input-div'>
		<b>[ 마우스우클릭 ]</b>
		<input type='radio' name='wr_2' value='yes'>글쓴이가능
		<input type='radio' name='wr_2' value='all'>모두가능
		<input type='radio' name='wr_2' value='no'>모두불가능
	</div>
`);
wr2Value = "<?php echo $write['wr_2']; ?>" === "" ? "yes" : "<?php echo $write['wr_2']; ?>";
for (i of $_ALL("input[name='wr_2']")) i.checked = i.value === wr2Value;
</script>