방명록의 수정/삭제 버튼이 안보여요..?
예전에 치에님께서 올려주신 자료 icon_guest(방명록 스킨)에 관한 질문입니다.
방명록에 관리자인(등급 10) 저에게는 수정/삭제 버튼이 나타나는데,
회원가입한 일반회원(2등급 이상)에게는 방명록에 글을 올려도
수정/삭제 버튼이 전혀 보이지 않는다고 합니다.
무엇이 잘 못된 것인지요? 참고로 회원가입시 자동 2등급으로
등급조정되며, 방명록에는 비회원(1등급)의 경우도 글읽기/쓰기/
코멘트 달기 등등, 모든 권한을 설정해 놓았습니다.
도움을 주셨음 합니다. 감사드립니다. 방긋^^
방명록에 관리자인(등급 10) 저에게는 수정/삭제 버튼이 나타나는데,
회원가입한 일반회원(2등급 이상)에게는 방명록에 글을 올려도
수정/삭제 버튼이 전혀 보이지 않는다고 합니다.
무엇이 잘 못된 것인지요? 참고로 회원가입시 자동 2등급으로
등급조정되며, 방명록에는 비회원(1등급)의 경우도 글읽기/쓰기/
코멘트 달기 등등, 모든 권한을 설정해 놓았습니다.
도움을 주셨음 합니다. 감사드립니다. 방긋^^
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 5개
없애시던가 레벨을 조정해보세요
방명록에 관련 부분 소스가 있습니다.
이부분을 찾아서 올려봐주세요.
그럼 소스 확인후 기능 사용관련 부분을 보고 답변드릴 수 있어요.
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>방명록 > MEMO 1 페이지</title>
<link rel="stylesheet" href="../style.css" type="text/css">
</head>
<script language="javascript">
// 자바스크립트에서 사용하는 전역변수 선언
var g4_path = "..";
var g4_bbs = "bbs";
var g4_bbs_img = "img";
var g4_url = "http://potatopocket.ivyro.net/gnuboard4";
var g4_is_member = "1";
var g4_is_admin = "super";
var g4_bo_table = "bandi_9";
var g4_sca = "";
var g4_charset = "euc-kr";
var g4_cookie_domain = "";
var g4_is_gecko = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
var g4_admin = 'adm';</script>
<script language="javascript" src="../js/common.js"></script>
<script language="javascript" src="../js/ajax.js"></script>
<body topmargin="0" leftmargin="0" >
<a name="g4_head"></a>
<img src='../data/file/bandi_9/bandi_9_head_1209266016' border='0'><script language="JavaScript" src="http://potatopocket.com.ne.kr/swfWrite.js"></script>
<DIV style="Z-INDEX:2;LEFT:0px;WIDTH:0px;POSITION:absolute;TOP:0px;HEIGHT: 0px">
<script language="javascript">swfWrite('http://potatopocket.com.ne.kr/swish-16/pebble-7.swf',1000,90,'','','transparent')</script>
</DIV>
<table width="1004" cellspacing="0" cellpadding="0">
<tr>
<td width="43" height="57"></td>
<!-- 로고 -->
<td>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td> </td>
</tr>
</table>
</td>
<td width="390" align="right">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 처음으로 버튼 -->
<td width="78"><a href="http://bandi.zetyx.net/"><img src="http://potatopocket.ivyro.net/gnuboard4/img/top_m01.gif" width="78" height="31" border="0"></a></td>
<!-- 로그인 이전 -->
<td width="78"><a href="http://potatopocket.ivyro.net/gnuboard4/bbs/login.php?url=%2Fgnuboard4%2F"><img src="http://potatopocket.ivyro.net/gnuboard4/img/top_m02.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="http://potatopocket.ivyro.net/gnuboard4/bbs/register.php"><img src="http://potatopocket.ivyro.net/gnuboard4/img/top_m03.gif" width="78" height="31" border="0"></a></td>
<!-- 최근게시물 버튼 -->
<td width="78"><a href="http://potatopocket.ivyro.net/gnuboard4/bbs/new.php"><img src="http://potatopocket.ivyro.net/gnuboard4/img/top_m06.gif" width="78" height="31" border="0"></a></td>
</tr>
</table></td>
<td width="35"></td>
</tr>
</table><script language="javascript" src="../js/sideview.js"></script>
<style type="text/css">
<!--
.w_fixed { table-layout:fixed; }
.w_font { font-family:돋움; font-size:9pt; color:#5E5E5E; }
.w_title { font-family:돋움; font-size:9pt; color:#5E5E5E; }
.w_num { font-family:돋움; font-size:9pt; color:#7BB2D6; }
.w_list { font-family:돋움; font-size:9pt; color:#6A6A6A; }
.w_notice { font-family:돋움; font-size:9pt; color:#13485D; text-decoration:none;text-decoration:none; }
.w_comment_cnt { font-family:돋움; font-size:8pt; color:#9A9A9A; }
.w_padding { PADDING-LEFT: 15px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.w_padding2 { PADDING-LEFT: 15px; PADDING-TOP: 5px; }
.w_padding3 { PADDING-RIGHT: 10px; }
.w_text { BORDER: #D3D3D3 1px solid; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff; }
.w_textarea { BORDER: #D3D3D3 1px solid; BACKGROUND-COLOR: #ffffff; WIDTH: 100%; WORD-BREAK: break-all; }
.w_message { font-family:돋움; font-size:9pt; color:#4B4B4B; }
.w_norobot { font-family:돋움; font-size:9pt; color:#BB4681; }
.w_nasca_list {font-size:9pt;COLOR: #6699CC;}
.w_nasca_num {font-family:돋움; font-size:9pt;COLOR: #6699CC;}
.vc_pad1 { PADDING-LEFT: 5px; PADDING-top: 5px; PADDING-BOTTOM: 5px; }
.vc_pad2 { PADDING-LEFT: 5px; PADDING-top: 4px; PADDING-BOTTOM: 4px; }
.vc_text { BORDER: #D3D3D3 1px solid; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff; }
.vc_textarea { BORDER: #D3D3D3 1px solid; BACKGROUND-COLOR: #ffffff; WIDTH: 100%; WORD-BREAK: break-all; overflow-y:auto; overflow-x:hidden;}
.vc_content { COLOR:#2C8CB9; }
.line1 {background-color:#B4D2DE; padding:0}
.line2 {background-color:#D7EDF2; padding:0}
.line3 {background-color:#2C8CB9; padding:0}
.title_han {color:FFFFFF;font-weight:bold;font-size:9pt}
.list_han {color:13485D;font-size:9pt;text-decoration:none;text-decoration:none}
.list_eng {font-family:tahoma;color:13485D;font-size:8pt;text-decoration:none}
-->
</style>
<style type="text/css">
<!--
.w_title { font-family:돋움; font-size:9pt; color:#9A9A9A; }
.w_padding { PADDING-LEFT: 10px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.w_padding2 { PADDING-RIGHT: 15px; PADDING-TOP: 5px; }
.w_text { BORDER: #D3D3D3 1px solid; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff; }
.w_textarea { BORDER: #D3D3D3 1px solid; BACKGROUND-COLOR: #ffffff; WIDTH: 96%; WORD-BREAK: break-all; }
.w_message { font-family:돋움; font-size:9pt; color:#4B4B4B; }
.w_norobot { font-family:돋움; font-size:9pt; color:#BB4681; }
.w_hand { cursor:pointer; }
-->
</style>
<script language="JavaScript">
// 글자수 제한
var char_min = parseInt(); // 최소
var char_max = parseInt(); // 최대
</script>
<!-- 김선용 2005.4 - FF(불여우) 에서는 innerHTML 사용시 폼이 <table> 아래에 있으면 인식하지 못합니다. -->
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" autocomplete="off" style="margin:0">
<table width="400" align=center cellpadding=0 cellspacing=0><tr><td align=center>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="4" height="33" bgcolor="#7BB2D6"><img src="../skin/board/icon_guest/img/top_01.gif" width="4" height="33"></td>
<td width="14%" align="center" bgcolor="#7BB2D6"> </td>
<td width="5" align="center" bgcolor="#7BB2D6"><img src="../skin/board/icon_guest/img/top_02.gif" width="5" height="33"></td>
<td width="5" align="center" bgcolor="#EEEEEE"><img src="../skin/board/icon_guest/img/top_03.gif" width="5" height="33"></td>
<td width="85%" align="left" bgcolor="#EEEEEE" class=w_padding></td>
<td width="4" bgcolor="#EEEEEE"><img src="../skin/board/icon_guest/img/top_04.gif" width="4" height="33"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<input type=hidden name=w value="">
<input type=hidden name=bo_table value="bandi_9">
<input type=hidden name=wr_id value="">
<input type=hidden name=sfl value="">
<input type=hidden name=stx value="">
<input type=hidden name=spt value="">
<input type=hidden name=sst value="wr_num, wr_reply">
<input type=hidden name=sod value="">
<input type=hidden name=page value="1">
<input type=hidden name=wr_subject value="방명록_">
<tr>
<td width="80" height="30" align="center"><span class=w_title>이름</span></td>
<td width="1" valign="bottom"><img src="../skin/board/icon_guest/img/gray_line.gif" width="1" height="10"></td>
<td width="83" class=w_padding><INPUT class=w_text maxLength=20 size=9 name=wr_name itemname="이름" required value="bandi"></TD>
<td width="1" valign="bottom"><img src="../skin/board/icon_guest/img/gray_line.gif" width="1" height="10"></td>
<td width="80" height="30" align="center"><span class=w_title>이메일</span></td>
<td width="1" valign="bottom"><img src="../skin/board/icon_guest/img/gray_line.gif" width="1" height="10"></td>
<td width="154" colspan=2 class=w_padding><INPUT class=w_text maxLength=100 size=24 name=wr_email email itemname="이메일" value="[email protected]"></TD>
</tr>
<tr>
<td height="1" background="../skin/board/icon_guest/img/dot_bg.gif" colspan=8></td>
</tr>
<tr>
<td width="80" height="30" align="center"><span class=w_title>패스워드</span></td>
<td width="1" valign="bottom"><img src="../skin/board/icon_guest/img/gray_line.gif" width="1" height="10"></td>
<td width="83" class=w_padding><INPUT class=w_text type=password maxLength=20 size=9 name=wr_password itemname="패스워드" required ></TD>
<td width="1" valign="bottom"><img src="../skin/board/icon_guest/img/gray_line.gif" width="1" height="10"></td>
<td width="80" height="30" align="center"><span class=w_title>홈페이지</span></td>
<td width="1" valign="bottom"><img src="../skin/board/icon_guest/img/gray_line.gif" width="1" height="10"></td>
<td width="154" colspan=2 class=w_padding><INPUT class=w_text size=24 name=wr_homepage itemname="홈페이지" value=""></TD>
</tr>
<tr>
<td height="1" background="../skin/board/icon_guest/img/dot_bg.gif" colspan=8></td>
</tr>
<tr>
<td width="100%" colspan=8>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class=w_padding rowspan="2"><TEXTAREA id=wr_content name=wr_content class=w_textarea rows=8 itemname="내용" required></TEXTAREA></td>
<td width="110" height="20">
<script language="javascript">
function back_c(){
if (document.fwrite.wr_link1.value=="1"){
document.face.src="../skin/board/icon_guest/icon/icon_1.jpg";
}else{
document.face.src="../skin/board/icon_guest/icon/icon_"+document.fwrite.wr_link1.value+".jpg";
}
}
function clearField(field){
if (field.value == field.defaultValue) {
field.value = "";
}
}
function checkField(field){
if (field.value == "") {
field.value = field.defaultValue;
}
}
</script>
<!-- icon -->
<select name=wr_link1 onchange='back_c();' style='font-family:굴림; font-size:9pt; width:100'>
<option value=0>아이콘선택</option>
<option value=1>아이콘 1</option> <option value=2>아이콘 2</option> <option value=3>아이콘 3</option> <option value=4>아이콘 4</option> <option value=5>아이콘 5</option> <option value=6>아이콘 6</option> <option value=7>아이콘 7</option> <option value=8>아이콘 8</option> <option value=9>아이콘 9</option> <option value=10>아이콘 10</option> <option value=11>아이콘 11</option> <option value=12>아이콘 12</option> <option value=13>아이콘 13</option> <option value=14>아이콘 14</option> <option value=15>아이콘 15</option> <option value=16>아이콘 16</option> <option value=17>아이콘 17</option> <option value=18>아이콘 18</option> <option value=19>아이콘 19</option> <option value=20>아이콘 20</option> </select>
<!-- icon end -->
</td>
</tr>
<tr>
<td width="110" height="100">
<script language="JavaScript">
function openNewWindow(window) {
open (window,"iconpreview","left=0, top=0, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=AUTO, resizable=no, width=500, height=450");
}
</script>
<a href=javascript:openNewWindow("../skin/board/icon_guest/view_icon.html") onfocus='this.blur()' title='아이콘 전체보기'><img name='face' src='../skin/board/icon_guest/icon/icon_1.jpg' border=0></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="1" background="../skin/board/icon_guest/img/dot_bg.gif" colspan=8></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="right" valign="top" class="w_padding2">
<INPUT type=image id="btn_submit" src="../skin/board/icon_guest/img/ok_btn.gif" border=0 accesskey='s'>
<a href="./board.php?bo_table=bandi_9"><img id="btn_list" src="../skin/board/icon_guest/img/list_btn.gif" border=0></a></td>
</tr>
</table>
</td></tr></table>
</form>
<script language="Javascript">
with (document.fwrite) {
if (typeof(wr_name) != "undefined")
wr_name.focus();
else if (typeof(wr_subject) != "undefined")
wr_subject.focus();
else if (typeof(wr_content) != "undefined")
wr_content.focus();
if (typeof(ca_name) != "undefined")
if (w.value == "u")
ca_name.value = "";
if (typeof(wr_link1) != "undefined")
if (w.value == "u")
wr_link1.value = "";
}
function html_auto_br(obj)
{
if (obj.checked) {
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
if (result)
obj.value = "html2";
else
obj.value = "html1";
}
else
obj.value = "";
}
function fwrite_check(f)
{
var s = "";
if (s = word_filter_check(f.wr_subject.value)) {
alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
if (s = word_filter_check(f.wr_content.value)) {
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
if (typeof(f.wr_key) != "undefined") {
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}
f.action = "./write_update.php";
f.submit();
}
</script>
<table width="90%" align="center" cellpadding="0" cellspcing="0"><tr><td>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%"></td>
<td width="50%" align="right" valign="bottom"><font class=w_font>게시물 7건</font><a href="../adm/board_form.php?w=u&bo_table=bandi_9"><img src="../skin/board/icon_guest/img/admin_button.gif" title="관리자" width="63" height="22" border="0" align="absmiddle"></a></td>
</tr>
</table>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 끝 -->
<!-- 게시판 제목 시작 -->
<!-- 게시물 리스트 시작 -->
<table width="90%" border="0" cellspacing="0" cellpadding="0" style='table-layout:fixed;'>
<form name="fboardlist" method="post" action="">
<input type="hidden" name="bo_table" value="bandi_9">
<input type="hidden" name="sfl" value="">
<input type="hidden" name="stx" value="">
<input type="hidden" name="spt" value="">
<input type="hidden" name="page" value="1">
<input type="hidden" name="sw" value="">
<tr>
<td width="100%" height="5" colspan="2" background="../skin/board/icon_guest/img/write_down_bg.gif"></td>
</tr>
<tr>
<td width="50%" height="30"><span class="vc_pad2">No.7 <font class=w_font><b><a href="javascript:;" onClick="showSideView(this, 'hjstar12', '미소', 'aGpzdGFyMTJAcGFyYW4uY29t', '');" title="[hjstar12]미소"><img src='../data/member/hj/hjstar12.gif' width='22' height='22' align='absmiddle' border='0'> <span class='member'>미소</span></a></b></font> </span></td>
<td width="50%" align="right" class="w_padding3"> <a href="./write.php?bo_table=bandi_9&w=u&wr_id=29&page=1"><img src="../skin/board/icon_guest/img/btn_edit.gif" alt="수정" border="0" align="absmiddle" title="수정"></a>
<a href="javascript:if (confirm('삭제하시겠습니까?')) { location='./delete.php?w=d&bo_table=bandi_9&wr_id=29&page=1';}"><img src="../skin/board/icon_guest/img/btn_del.gif" alt="삭제" border="0" align="absmiddle" title="삭제"></a>
</td>
</tr>
<tr>
<td width="100%" colspan="2" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 코멘트 리스트 -->
<table width="400" cellspacing="0" cellpadding="0" align=right>
<tr>
<td height=30 align=right valign=bottom><a href="javascript:comment_wri('wri', '9');"><img src='../skin/board/icon_guest/img/btn_comment_insert.gif' border=0></a></td>
</tr>
<tr>
<td>
<!-- 코멘트 입력테이블시작 -->
<span id=wri9 style='display:none;'>
<form name="fviewcomment9" method="post" action="./write_comment_update.php" autocomplete="off">
<input type=hidden name=w id=w value='c'>
<input type=hidden name=bo_table value='bandi_9'>
<input type=hidden name=wr_id value='9'>
<input type=hidden name=comment_id id='comment_id' value=''>
<input type=hidden name=sfl value='' >
<input type=hidden name=stx value=''>
<input type=hidden name=spt value=''>
<input type=hidden name=page value='1'>
<input type=hidden name=cwin value=''>
<input type=hidden name=wr_10 value="">
<input type=hidden name=url value='./board.php?bo_table=bandi_9&page=1'>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="10" ><img src="../skin/board/icon_guest/img/left_top.gif" width="10" height="10"></td>
<td colspan="3" background="../skin/board/icon_guest/img/width_bg_top.gif"></td>
<td width="10" ><img src="../skin/board/icon_guest/img/right_top.gif" width="10" height="10"></td>
</tr>
<tr>
<td bordercolor="#CCCCCC" background="../skin/board/icon_guest/img/left_bg.gif"></td>
<td width="70%" colspan='2' align="center" valign="top" bgcolor="#f7f7f7" class='vc_pad1'>
<TEXTAREA onKeyup="var m=90;var s=this.scrollHeight;if(s>=m)this.style.pixelHeight=s+6" id='wr_content' name='wr_content' class='vc_textarea' rows="3" itemname="코멘트" required></TEXTAREA>
</td>
<td align="center" bgcolor="#f7f7f7">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><INPUT type="image" width="65" height="25" src="../skin/board/icon_guest/img/ok_button.gif" border=0 accesskey='s'></td>
</tr>
</table></td>
<td bordercolor="#CCCCCC" background="../skin/board/icon_guest/img/right_bg.gif"></td>
</tr>
<tr>
<td width="10" ><img src="../skin/board/icon_guest/img/left_down.gif" width="10" height="10"></td>
<td colspan="3" background="../skin/board/icon_guest/img/width_bg_down.gif"></td>
<td width="10" ><img src="../skin/board/icon_guest/img/right_down.gif" width="10" height="10"></td>
</tr>
</table>
</form>
</span>
<!-- 코멘트 입력 테이블 끝 -->
</td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD><!--하단 보더처리--></TD>
</TR>
<script language='JavaScript'>
function fviewcomment9_submit(f)
{
return true;
}
</script>
</table><script language='javascript'> var g4_cf_filter = ' '; </script>
<script language='javascript' src='../js/filter.js'></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
</table>
<!-- 페이지 표시 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="37" align="center" valign="middle" background="../skin/board/icon_guest/img/number_line.gif">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
<strong></strong>
</td>
</tr>
</table></td>
</tr>
</table>
<!-- 페이지 표시 끝 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="middle">
<td width="50%" height="40">
<a href="./write.php?bo_table=bandi_9"><img src="../skin/board/icon_guest/img/btn_write.gif" border="0" align="absmiddle"></a> </td>
<form name=fsearch method=get>
<input type=hidden name=bo_table value="bandi_9">
<input type=hidden name=sca value="">
<td width="50%" align="right">
<select name=sfl>
<!-- DB에 상당한 부하가 걸리므로 사용을 추천하지 않음 <option value='wr_subject+wr_content+wc_content'>제목+내용+코멘트</option> -->
<option value='wr_subject'>제목</option>
<option value='wr_content'>내용</option>
<option value='wr_name'>이름</option>
<!-- 코멘트도 같이 검색할 경우에 사용합니다. (속도가 느려짐)
<option value='mb_id'>회원아이디</option>
<option value='b.wc_content'>코멘트</option>
<option value='a.mb_id+b.mb_id'>회원아이디2</option>
<option value='a.wr_name+b.wc_name'>이름2</option> -->
</select>
<INPUT maxLength=15 size=10 name=stx itemname="검색어" required value="">
<SELECT name=sop>
<OPTION value=and>And</OPTION>
<OPTION value=or>Or</OPTION>
</SELECT>
</td>
<td width="10%" align="center"><INPUT type=image width="53" height="18" src="../skin/board/icon_guest/img/search_btn.gif" border=0></td>
</form>
</tr>
</table>
</td></tr></table>
<script language="JavaScript">
//if ("") document.fcategory.sca.value = "";
if ("") {
document.fsearch.sfl.value = "";
document.fsearch.sop.value = "and";
}
</script>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('600');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>
<script language="JavaScript">
function all_checked(sw)
{
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str)
{
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<!-- 사용스킨 : icon_guest -->
<script language="javascript" src="../js/wrest.js"></script>
<!-- 새창 대신 사용하는 iframe -->
<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>
<!-- <div style='float:left; width:px; text-align:center;'>RUN TIME : 0.151916980743<br></div> -->
</body>
</html>
실제 적용한 파일의 소스를 보여주셔야죠~;;;