<?php
echo "<!DOCTYPE html>
<html lang=\"utf-8\" />
<head>
<meta charset=\"ko\" />
<!--
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge; chrome=1\" />
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />
-->
<style type=text/css />
@charset \"UTF-8\"; 

html { width :100%; height:100%;margin-left:0px;margin-top:0px; }
body {width:100%;height:100%;display:inline-block;overflow-y:auto; margin-left:0px;margin-top:0px;overflow-x:hidden;}
form { display:inline;}
	a { text-decoration:none;color:black;font-size:small;}
	a:hover{text-decoration:underline black solid 2px;color:black;font-size:small;}	
	a:active{text-decoration:underline black solid 2px;color:black;font-size:small;}
textarea { resize:none;outline:none;border-left:0px;border-right:0px;line-height:20px;border-bottom:1px solid black;word-break:break-all;white-space:pre-wrap;overflow-y:auto;}
input,select { border :0px;outline:none;font-size:small; }
input[type=password] {ime:disabled; text-overflow:clip;}
input[type=text] { text-overflow:clip;background-color:white;}
kbd {  background-color:#bf334d;color:white;padding-left:3px;font-weight:900;margin-left:10px;border:0px;}
fieldset,div {width:100px;display:block;margin:0px;padding:0px;border:1px solid black;}
legend {text-align:center;font-size:small;text-decoration:none;} 
</style>
<script language=javascript type=text/javascript charset=\"utf-8\">
function copy(text) {
  navigator.clipboard.writeText(text);

copy.select();  
copy.setSelectionRange(0, copy(text)); 
}


</script>
</head>
<body>";
include("conn.php");

echo "<form method=post action=#>

<fieldset><legend>일반 포럼 제한</legend>
<select name=stop_forum>
 
 <option value=\"nothing\" hidden selected >선택</option>";
$fsi_sql="select `site` from forum_site where main_sub = 'index' order by idx desc";
$fsi_result=mysqli_query($conn,$fsi_sql);
while($fsi=mysqli_fetch_assoc($fsi_result)) {
$fsi_site=stripslashes($fsi['site']);
echo"<option value=$fsi_site >$fsi_site</option>";
}
echo"</select>
<fieldset>자동해제<input type=datetime-local name=open_time >
<input type=submit  value=submit></fieldset>
	

<fieldset>수동해제<input type=password name=open_code maxlength=10 value=key>
<input type=password name=user_lock maxlength=10 value=key>
<input type=submit  value=submit>	
</fieldset>
<fieldset><legend>토막 포럼 제한</legend>
<select name=stop_forum>
  <option value=\"nothing\" hidden selected >선택</option>";

$fsd_sql="select `site` from forum_site where main_sub = 'depth' order by idx desc";
$fsd_result=mysqli_query($conn,$fsd_sql);
while($fsd=mysqli_fetch_assoc($fsd_result)) {
$fsd_site=stripslashes($fsd['site']);
echo "  <option value=\"$fsd_site\" >$fsd_site</option>";
}
echo "</select>
<fieldset>자동해제<input type=datetime-local name=open_time >
<input type=submit  value=submit></fieldset>
	
<fieldset>수동해제<input type=password name=open_code maxlength=10 value=key>
<input type=password name=user_lock maxlength=10 user=user>
<input type=submit  value=submit>	
</fieldset>";



/*
$pdl_sql="select * from set_depth_max ";
$pdl_result=mysqli_query($conn,$pdl_sql);
while($pdl=mysqli_fetch_assoc($pdl_result)){
$pdl_counts=stripslashes($pdl['counts']);
$pdl_depth=stripslashes($pdl['crnt_name']);
*/
echo "<fieldset>다단 토막글 한계
<input type=text name=depth_count maxlength=5 value=숫자>
<input type=text name=depth_id maxlength=10 value=코드>
</fieldset>";
//}
/*
$lsfp_sql="SELECT * FROM `set_max_depth`";
$lsfp_result=mysqli_query($conn,$lsfp_sql);
while($lsfp=mysqli_fetch_assoc($lsfp_result)) {
$lsfp_max=stripslashes($lsfp['set_max']);
*/
echo "<fieldset><legend>전체 페이지 토막글 공통  출력갯수  한계</legend>
<input type=text name=depth_count maxlength=5 value=숫자>
</fieldset>";
//}
echo "</body></html>";	
?> 
