사이트 내 전체검색
그누보드
검색목록
[관리자툴] 메인화면에 TEXTAREA 메모장 설치 (관리자용)
하우코드
https://cmd.kr/gnu/738 URL이 복사되었습니다.

본문

<div id='main_wrap'>

<style type="text/css">

#main_wrap .tbl2 {
float:left;
margin:10px 5px 5px;
width:calc(50% - 10px);   
border:solid 1px #CCC;
border-collapse:collapse;
}
#main_wrap .tbl2 td { border:solid 1px #CCC; padding:2px 8px;;text-align:center; font-size:.85em}

#main_wrap .txt3 {
width:calc(100%/3 - 10px);
height:100px;
border:solid 1px #CCC;
border-collapse:collapse;
float:left;margin:10px 5px 5px
}

#main_wrap .tbl3 td {}

</style>

<form method=post name=frm1>
<?php

$arr=explode(' ','메모-시스템 메모-문제 메모-채점');
if ($_POST['wr_content']) {
for($i=0;$i<3;$i++) {
$key=$arr[$i];
$sql="update {$g5['write_prefix']}help set wr_content='{$_POST['wr_content'][$i]}' where wr_subject='{$arr[$i]}' and  wr_comment=0";
//echo $sql,"<BR>";
sql_query($sql,false);
}
}

$sql="select * from {$g5['write_prefix']}help where wr_comment=0";
$rst=sql_query($sql);
$arr_cfg=array();
while($row=sql_fetch_array($rst)) {
$arr_cfg[ $row['wr_subject'] ]=$row;
}
//var_dump($arr_cfg);

?>

<div class='main_index_info'>
<i class="fa fa-user-circle"></i>
<?php echo $member['mb_id']?>(<?php echo $member['mb_nick']?>)
<?php echo $_SERVER['REMOTE_ADDR']?>
<input type=submit value='확인'>
</div>

<textarea class="txt3" name=wr_content[]><?php echo htmlspecialchars($arr_cfg['메모-시스템']['wr_content'])?></textarea>
<textarea class="txt3" name=wr_content[]><?php echo htmlspecialchars($arr_cfg['메모-문제']['wr_content'])?></textarea>
<textarea class="txt3" name=wr_content[]><?php echo htmlspecialchars($arr_cfg['메모-채점']['wr_content'])?></textarea>
</form>
</div>

댓글목록

등록된 댓글이 없습니다.

그누보드
3 (1/1P)

Search

Copyright © Cmd 명령어 18.117.71.213