바

맛집 스킨에 대한 질문입니다.

· 2011-04-22 (금) 17:31:11 · 2465 · 2
<?
$option = "";
$option_hidden = "";
if ($is_notice || $is_html || $is_secret || $is_mail) {
$option = "";
//if ($is_notice) {
// $option .= "<input type=checkbox name=notice value='1' $notice_checked>가장 앞으로 이동 ";
//}

if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= "<input type=hidden value='html1' name='html'>";
} else {
$option .= "<input onclick='html_auto_br(this);' type=checkbox value='$html_value' name='html' $html_checked><span class=w_title>html</span> ";
}
}

if ($is_secret) {
if ($is_admin || $is_secret==1) {
$option .= "<input type=checkbox value='secret' name='secret' $secret_checked><span class=w_title>비밀글</span> ";
} else {
$option_hidden .= "<input type=hidden value='secret' name='secret'>";
}
}

if ($is_mail) {
$option .= "<input type=checkbox value='mail' name='mail' $recv_email_checked>답변메일받기 ";
}
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<?
echo $option_hidden;
if ($option) {
?>
<?=$option?>
<? } ?>
</td>
</tr>
</table>

<table width="<?=$width?>" border="0" align="center" cellpadding="5" cellspacing="0">
<tr valign="top">
<td width="250" align="center">



<table width="100%" border="0" cellspacing="1" cellpadding="4" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFFF" align="center">
<table width="100%" border="0" cellpadding="10" bgcolor="#f0f0f0" height="60" cellspacing="0">
<tr>
<td>
<div align="center"><b><font color="#999999">이미지</font></b><br>
<br>
<font color="#999999">크기=400px</font></div>
<br>
※ 이미지는 10장이 가장 보기 좋습니다.<br>
※ 1번에 업로드하신사진은 리스트에 보여집니다. <br>
※ <span onClick="add_file();" style='cursor:pointer;'><img src="<?=$board_skin_path?>/img/down.gif" width="16" height="16" align='absmiddle'></span>
버튼을 클릭하면 업로드바가 생성됩니다.
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="10">
<tr>
<td></td>
</tr>
</table>

<table width="100%" border="0" cellspacing="3" cellpadding="5" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#f8f8f8" align="center">맛집 이미지 등록 <span onClick="del_file();" style='cursor:pointer;'><img src="<?=$board_skin_path?>/img/up.gif" width="16" height="16" align='absmiddle'></span><span onClick="add_file();" style='cursor:pointer;'><img src="<?=$board_skin_path?>/img/down.gif" width="16" height="16" align='absmiddle'></span></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="10">
<tr>
<td></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<table id="variableFiles" cellpadding=0 cellspacing=0>
</table>
<?// print_r2($file); ?>
<script language="JavaScript">
var flen = 0;
function add_file(delete_code)
{
var upload_count = <?=(int)$board[bo_upload_count]?>;
if (upload_count && flen >= upload_count)
{
alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
return;
}

var objTbl;
var objRow;
var objCell;
if (document.getElementById)
objTbl = document.getElementById("variableFiles");
else
objTbl = document.all["variableFiles"];

objRow = objTbl.insertRow(objTbl.rows.length);
objCell = objRow.insertCell(0);

objCell.innerHTML = "<input type='file' class=tx size=25 name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능' style='color:<?=$board[bo_color_6]?>;background-color:<?=$board[bo_color_5]?>;border-color:<?=$board[bo_color_4]?>;border-width:1px;'><br>";
if (delete_code)
objCell.innerHTML += delete_code;
else
{
<? if ($is_file_content) { ?>
objCell.innerHTML += "<br><input type='text' size=12 class=tx name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.' style='width:100%; color:<?=$board[bo_color_6]?>;background-color:<?=$board[bo_color_5]?>;border-color:<?=$board[bo_color_4]?>;border-width:1px;'>";
<? } ?>
;
}

flen++;
}

<?=$file_script; //수정시에 필요한 스크립트?>

<?
$input_box_num = 10; // 기본으로 나타나게할 입력칸 수
if($w=='u') $input_box_num = $input_box_num - $file_length -1;
else $input_box_num--;
?>

for(i=0; i< <?=$input_box_num?>; i++) add_file();

function del_file()
{
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
var file_length = <?=(int)$file_length?>;
var objTbl = document.getElementById("variableFiles");
if (objTbl.rows.length - 1 > file_length)
{
objTbl.deleteRow(objTbl.rows.length - 1);
flen--;
}
}
</script>
</td>
</tr>
</table>
</td>
<td><table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#f4f4f4">
<? if ($is_admin) { // 관리자일때 승인작업 가능 ?>
<tr bgcolor="#fff3f3">
<td width="100"><strong>관리자</strong></td>
<td>
<p><b> <input name=wr_36 type=checkbox value='Y' checked <? if($write[wr_36] == 'Y') echo "checked"; ?>>
등록승인 </b>
<input name=wr_event01 type=checkbox value='Y' <? if($write[wr_event01] == 'Y') echo "checked"; ?>>
<b>댓글이벤트 진행</b>
<input name='wr_event02' value='<?=$write[wr_event02]?>' type='text' size='4' maxlength='4' class=input>
<b>장</b></p>
<div style="font-weight:bold; font-size:14px; margin:7px 0 0 10px;"><?=$title_msg?>
<? if($is_admin && !$write[wr_reply] && ($w=='' || $w=='u') ){ ?>
번호
<input class=ed size=5 name=insert_num value=''>
앞에 삽입

<? } ?></div>
<br>

조회수
 <input type=text name='wr_hit' required itemname='조회수' value='<?=$write[wr_hit]?>' class=input size=30>

<br />
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<? if ($is_member && !$is_admin) { //--회원인 경우 이름 출력?>
<tr bgcolor="#FFFFFF">
<td width="100"><b>회원 닉네임</b></td>
<td><b><font color="#FF6600">
<?=$member[mb_name]?>
</font></b> </td>
</tr>
<? } ?>
<? if ($is_name) { ?>
<tr bgcolor="#FFFFFF">
<td width="100"><b>회원 닉네임</b></td>
<td><input class=ed maxlength=20 size=15 name=wr_name itemname="닉네임" required value="<?=$name?>">
<? if ($is_password) { ?>
비밀번호 :
<input class=ed type=password maxlength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?>>
<? } ?> </td>
</tr>
<? } ?>
<tr bgcolor="#FFFFFF">
<td width="100" class="form_title">업 체 명</td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"><select class="ed" name="wr_8" required="required" itemname='<?=$board[bo_8_subj]?>' value="<?=$write[wr_8]?>">
<?
if ($write[wr_8]){
echo "<option selected value='$write[wr_8]'>$write[wr_8]</option>";
} else {
echo "<option selected value=''>지역</option>";
}
echo "$bo_8_option";
?>
</select></td>
<td><input class="ed" style="width:100%; height:18px;" name=wr_subject id="wr_subject" itemname="제목" required value="<?=$subject?>"></td>
</tr>
</table><br>
(<span class="form_help">검색을위해 지역을 선택하시고 업체명을 입력하세요.</span>)</td>
</tr>
<!--
<tr bgcolor="#FFFFFF">
<td width="100" class="form_title">한줄소개</td>
<td><input class=ed style="width:100%;" name=wr_42 itemname="한줄소개" value="<?=$write[wr_42]?>" /> </td>
</tr>
-->
<tr bgcolor="#FFFFFF">
<td width="100" class="form_title">메인메뉴</td>
<td><input class=ed style="width:200px;" name=wr_4 itemname="메인메뉴" value="<?=$write[wr_4]?>" />
(<span class="form_help">대표메뉴를 쉼표로 구분하세요.</span>)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" class="form_title">업종분류</td>
<td><select name=ca_name required itemname="분류" onChange="change_ca_name(this.form)">
<option>1차 업종분류</option>
<?=$categorys?>
</select>
<select class="ed" name="wr_9">
<? if($wr_9s){echo $wr_9s;}else{echo "<option>2차 업종분류</option>";};?>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" class="form_title">테 마</td>
<td>
<select class="ed" name="wr_10" required="required" itemname='<?=$board[bo_9_subj]?>' value="<?=$write[wr_10]?>">
<?
if ($write[wr_10]){
echo "<option selected value='$write[wr_10]'>$write[wr_10]</option>";
} else {
echo "<option selected value=''>테마</option>";
}
echo "$bo_9_option";
?>
</select></td>
</tr>

<tr bgcolor="#FFFFFF">
<td width="100" class="form_title">테 마</td>
<td>
<select class="ed" name="wr_7" required="required" itemname='<?=$board[bo_7_subj]?>' value="<?=$write[wr_7]?>">
<?
if ($write[wr_7]){
echo "<option selected value='$write[wr_7]'>$write[wr_7]</option>";
} else {
echo "<option selected value=''>대표메뉴가격</option>";
}
echo "$bo_7_option";
?>
</select>
(<span class="form_help">대표메뉴의 가격을 선택하세요.</span>)</td>
</tr>

<tr bgcolor="#FFFFFF">
<td width="100" class="form_title">전화번호</td>
<td>
<input name='wr_18' value='<?=$write[wr_18]?>' type='text' size='4' maxlength='4' itemname='전화번호 첫번째자리' class=input>
<!--
<select name='wr_18' itemname='전화번호 첫번째자리'>
<option value='033' <? if($write[wr_18] == "033") echo "selected"; ?>>033</option>
<option value='02' <? if($write[wr_18] == "02") echo "selected"; ?>>02</option>
<option value='031' <? if($write[wr_18] == "031") echo "selected"; ?>>031</option>
<option value='032' <? if($write[wr_18] == "032") echo "selected"; ?>>032</option>
<option value='041' <? if($write[wr_18] == "041") echo "selected"; ?>>041</option>
<option value='042' <? if($write[wr_18] == "042") echo "selected"; ?>>042</option>
<option value='043' <? if($write[wr_18] == "043") echo "selected"; ?>>043</option>
<option value='051' <? if($write[wr_18] == "051") echo "selected"; ?>>051</option>
<option value='052' <? if($write[wr_18] == "052") echo "selected"; ?>>052</option>
<option value='053' <? if($write[wr_18] == "053") echo "selected"; ?>>053</option>
<option value='054' <? if($write[wr_18] == "054") echo "selected"; ?>>054</option>
<option value='055' <? if($write[wr_18] == "055") echo "selected"; ?>>055</option>
<option value='061' <? if($write[wr_18] == "061") echo "selected"; ?>>061</option>
<option value='062' <? if($write[wr_18] == "062") echo "selected"; ?>>062</option>
<option value='063' <? if($write[wr_18] == "063") echo "selected"; ?>>063</option>
<option value='064' <? if($write[wr_18] == "064") echo "selected"; ?>>064</option>
</select>
-->
-
<input name='wr_19' value='<?=$write[wr_19]?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' itemname='전화번호 두번째자리' class=input>
-
<input name='wr_20' value='<?=$write[wr_20]?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' itemname='전화번호 세번째자리' class=input></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" rowspan="3" valign="top">주 차 장</td>
<td>
주차장 선택: 
<select name='wr_21' itemname='주차요금'>
<option value='무료' <? if($write[wr_21] == "무료") echo "selected"; ?>>무료</option>
<option value='유료' <? if($write[wr_21] == "유료") echo "selected"; ?>>유료</option>
<option value='없음' <? if($write[wr_21] == "없음") echo "selected"; ?>>없음</option>
</select>
(<span class="form_help">주차장이 없으실 경우 없음을 선택히세요.</span>)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>주차댓수: 
<input class=ed style="width:50px;" name=wr_22 itemname="주차댓수" value="<?=$write[wr_22]?>" />
대    </td>
</tr>
<tr bgcolor="#FFFFFF">
<td>주차장소: 
<input class=ed style="width:150px;" name=wr_23 itemname="주차장소" value="<?=$write[wr_23]?>" /></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" class="form_title">휴 일</td>
<td>
<select name='wr_24' itemname='마감시간 오전/오후'>
<option value='연중무휴' <? if($write[wr_24] == "연중무휴") echo "selected"; ?>>연중무휴</option>
<option value='매주' <? if($write[wr_24] == "매주") echo "selected"; ?>>매주</option>
<option value='매월' <? if($write[wr_24] == "매월") echo "selected"; ?>>매월</option>
<option value='첫째셋째주' <? if($write[wr_24] == "첫째셋째주") echo "selected"; ?>>첫째셋째주</option>
<option value='둘째넷째주' <? if($write[wr_24] == "둘째넷째주") echo "selected"; ?>>둘째넷째주</option>
<option value=''>해당없음</option>
</select>
<input class=ed style="width:100px;" name=wr_25 itemname="휴일" value="<?=$write[wr_25]?>" /></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" rowspan="3">영업시간</td>
<td>24시간 오픈
<input type="checkbox" name=wr_26 value="24시간 오픈" <? if($wr_[wr_26]=="24시간 오픈")echo"checked";?>></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>오픈시간: 
<select name='wr_27' itemname='오픈시간 오전/오후'>
<option value='오전' <? if($write[wr_27] == "오전") echo "selected"; ?>>오전</option>
<option value='오후' <? if($write[wr_27] == "오후") echo "selected"; ?>>오후</option>
</select>
<input class=ed style="width:50px;" name=wr_28 itemname="오픈시간" value="<?=$write[wr_28]?>" />
(<span class="form_help">09:00 의 형식으로 입력 하세요.</span>)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>마감시간: 
<select name='wr_29' itemname='마감시간 오전/오후'>
<option value='오전' <? if($write[wr_29] == "오전") echo "selected"; ?>>오전</option>
<option value='오후' <? if($write[wr_29] == "오후") echo "selected"; ?>>오후</option>
</select>
<input class=ed style="width:50px;" name=wr_30 itemname="오픈시간" value="<?=$write[wr_30]?>" />
(<span class="form_help">11:00 의 형식으로 입력 하세요.</span>)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" rowspan="4" valign="top" class="form_title">좌 석</td>
<td>룸: 
<input class=ed style="width:50px;" name=wr_31 itemname="룸" value="<?=$write[wr_31]?>" />
개</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>단체수용인원:
<input class=ed style="width:50px;" name=wr_32 itemname="단체수용인원" value="<?=$write[wr_32]?>" />
명 (<span class="form_help">가장큰 룸의 수용가능 인원입니다.</span>)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>테이블: 
<input class=ed style="width:50px;" name=wr_33 itemname="테이블" value="<?=$write[wr_33]?>" />석</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>좌식: 
<input class=ed style="width:50px;" name=wr_34 itemname="좌석" value="<?=$write[wr_34]?>" />석</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" rowspan="2" valign="top" class="form_title">배 달</td>
<td>
<select name='wr_37' itemname='배달'>
<option value='배달불가' <? if($write[wr_37] == "배달불가") echo "selected"; ?>>배달불가</option>
<option value='배달가능' <? if($write[wr_37] == "배달가능") echo "selected"; ?>>배달가능</option>
</select>
<!--
<input type=radio name="wr_37" required value="배달가능" <? if($wr_37 == "배달가능") echo "checked"; ?>>가능  
<input type=radio name="wr_37" required value="배달불가" <? if($wr_37 == "배달불가") echo "checked"; ?>>불가</td>
-->
</tr>
<tr bgcolor="#FFFFFF">
<td>가능지역: <input class=ed style="width:150px;" name=wr_38 itemname="배달가능지역" value="<?=$write[wr_38]?>" />
(<span class="form_help">컴마로 구분하여 주세요.</span>)</td>
</tr>
<? if ($is_link) { ?>
<tr bgcolor="#FFFFFF">
<td width="100">홈페이지</td>
<td>http:// <input type=text name='wr_link1' itemname='링크 #1' value='<?=$link[1]?>' class='ed' style='width:200px;'></td>
</tr>
<? } ?>
<tr bgcolor="#FFFFFF">
<td width="100">카페</td>
<td>http:// <input type=text name='wr_link2' itemname='링크 #2' value='<?=$link[2]?>' class='ed' style='width:200px;'></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" class="form_title">우편번호</td>
<td><table border="0" cellspacing="0" cellpadding="3">
<tr>
<td><input class=ed type=text name='ext3_00' value='<?=$ext3_00?>' size=4 maxlength=3 readonly <?=$config[cf_req_addr]?'required':'';?> itemname='우편번호 앞자리'> </td>
<td>-</td>
<td><input class=ed type=text name='ext3_01' value='<?=$ext3_01?>' size=4 maxlength=3 readonly <?=$config[cf_req_addr]?'required':'';?> itemname='우편번호 뒷자리'> </td>
<td><a href="javascript:;" onClick="win_zip('fwrite', 'ext3_00', 'ext3_01', 'ext3_02', 'ext3_03');"><img src="<?=$board_skin_path?>/img/icon_addr.gif" height=19 width=85 align='absmiddle' border=0></a></td>
</tr>
</table>
(<span class="form_help">지도 서비스와 연동됨으로 정확하게 입력해주세요.</span>)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" class="form_title">주소 (동까지)</td>
<td><input class=ed type=text name='ext3_02' value='<?=$ext3_02?>' style="width:100%;" readonly <?=$config[cf_req_addr]?'required':'';?> itemname='주소'> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" class="form_title">주소 (번지/호)</td>
<td><input class=ed type=text name='ext3_03' value='<?=$ext3_03?>' style="width:100%;" <?=$config[cf_req_addr]?'required':'';?> itemname='상세주소'> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" class="form_title">찾아오시는길</td>
<td><textarea name="wr_35" rows="4" class="ed" style="width:100%;" itemname="좌석"><?=$write[wr_35]?></textarea></td>
</tr>
</table></td>
</tr>
</table>

<table width="<?=$width?>" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td colspan=2 height=40 align="right"><input type=button value="메뉴입력 추가 +" onClick="addRow()"></td></tr>
<tr>
<td colspan="2">

<table width="100%" cellspacing=1 cellpadding=3 bgcolor="#EEEEEE">
<col bgcolor="#FFFFFF" align="center" width="100"></col>
<col bgcolor="#FFFFFF" align="center" width=""></col>
<col bgcolor="#FFFFFF" align="center" width="70"></col>
<col bgcolor="#FFFFFF" align="center" width="70"></col>
<tr height="30">
<td bgcolor="#FAFAFA"><b>메뉴</b></td>
<td bgcolor="#FAFAFA"><b>내용</b></td>
<td bgcolor="#FAFAFA"><b>가격</b></td>
<td bgcolor="#FAFAFA"><b>삭제</b></td>
</tr>
</table>
<? if ($w == "u") { ?>
<table id=dyntbl2 width="100%" cellspacing=1 cellpadding=3 bgcolor="#EEEEEE">
<col bgcolor="#FFFFFF" align="center" width="100"></col>
<col bgcolor="#FFFFFF" align="center" width=""></col>
<col bgcolor="#FFFFFF" align="center" width="70"></col>
<col bgcolor="#FFFFFF" align="center" width="70"></col>
<div>
<? for ($i = 0; $i < count($wr_body_11); $i++) { ?>
<tr height="30" id=v_<?=$i?>>
<td><input class=ed style='width:100%;' name=wr_body_11[] itemname='메뉴' value='<?=$wr_body_11[$i]?>' maxlength='25'></td>
<td><input class=ed style='width:100%;' name=wr_body_12[] itemname='내용' value='<?=$wr_body_12[$i]?>' maxlength='25'></td>
<td><input class=ed style='width:100%;' name=wr_body_13[] itemname='가격' value='<?=$wr_body_13[$i]?>' onKeyUp="number_format(this)" maxlength='25'></td>
<td><input type=button value=" 삭제 " onClick="delRow_php(this)"></td>
</tr>
<? } ?>
</div>
</table>
<? } ?>
<table id=dyntbl1 width="100%" cellspacing=1 cellpadding=3 bgcolor="#EEEEEE">
<col bgcolor="#FFFFFF" align="center" width="100"></col>
<col bgcolor="#FFFFFF" align="center" width=""></col>
<col bgcolor="#FFFFFF" align="center" width="70"></col>
<col bgcolor="#FFFFFF" align="center" width="70"></col>
</table>
</td>
</tr>
</table>

<table width="<?=$width?>" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style='padding:5 0 5 0;'>
<? if (!$is_dhtml_editor) { ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onClick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onClick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onClick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
<td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
</tr>
</table>
<? } ?><? if ($write_min || $write_max) { ?>
<script language="javascript"> check_byte('wr_content', 'char_count'); </script>
<?}?>
<textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=25 itemname="내용"
<? if ($is_dhtml_editor) echo ' geditor '; ?>
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?>
</textarea></td>
</tr>
</table>



<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" valign="top" style="padding-top:30px;">
<input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border=0 accesskey='s'> 
<a href="./board.php?bo_table=<?=$bo_table?>"><img id="btn_list" src="<?=$board_skin_path?>/img/btn_list.gif" border=0></a>
</td>
</tr>
</table>
</form>

<script language="javascript">
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
echo "
if (typeof(document.fwrite.ca_name) != 'undefined')
{
document.fwrite.ca_name.options.length += 1;
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
}";
}
?>

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" || w.value == "r")
ca_name.value = "<?=$write[ca_name]?>";

else if (sca.value != "")
ca_name.value = "<?=$sca?>";
}

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 (document.getElementById('char_count')) {
if (char_min > 0 || char_max > 0) {
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt) {
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
return;
}
else if (char_max > 0 && char_max < cnt) {
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return;
}
}
}

if (typeof(f.wr_key) != "undefined") {
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}


document.getElementById('btn_submit').disabled = true;
document.getElementById('btn_list').disabled = true;

<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
else
echo "f.action = './write_update.php';";
?>
f.submit();
}
</script>

<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<? if ($is_dhtml_editor) {?><script language="JavaScript" src="<?="$g4[path]/geditor/geditor.js"?>"></script><?}?>
<script language="JavaScript">
window.onload=function() {
drawFont();
}
</script>

맛집스킨 제작의뢰해서 만든건데, 그누보드 업그레이드하고나서 업소추가가 안되네요.
만들어 주신분은 연락도 안되고 하도 답답해서 문의드립니다.
위는 write.php인데 어디를 수정해야 될까요?

첨부파일

write.skin.php (33.4 KB) 3회 2011-04-22 17:31
|

댓글 2개

제작당시의 그누보드 버젼과 업그레이드한 그누보드이 버젼을 우선 비교해서
각각의 board스킨을 '파일비교프로그램'으로 비교해서 소스코드 어디가 변경되었는지 부터
확인한다음, 해당부분만 손보시면 될거 같네요.
참고. http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=26001
일단...

이 write.skin.php 파일에서 <script language="javascript"> 로 시작되는 아래부분을 모두 아래의
코드로 변경하고, 스킨내 ajax.filter.php 파일도 최신버젼의 스킨내 파일로 변경~


<script language="javascript">
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
echo "
if (typeof(document.fwrite.ca_name) != 'undefined')
{
document.fwrite.ca_name.options.length += 1;
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
}";
}
?>

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" || w.value == "r")
ca_name.value = "<?=$write[ca_name]?>";

else if (sca.value != "")
ca_name.value = "<?=$sca?>";
}

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 (document.getElementById('char_count')) {
if (char_min > 0 || char_max > 0) {
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt) {
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
return;
}
else if (char_max > 0 && char_max < cnt) {
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return;
}
}
}

if (typeof(f.wr_key) != "undefined") {
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}


document.getElementById('btn_submit').disabled = true;
document.getElementById('btn_list').disabled = true;

<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
else
echo "f.action = './write_update.php';";
?>
f.submit();
}
</script>

<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<? if ($is_dhtml_editor) {?><script language="JavaScript" src="<?="$g4[path]/geditor/geditor.js"?>"></script><?}?>
<script language="JavaScript">
window.onload=function() {
drawFont();
}
</script>
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
11-04-22 조회 1,104
11-04-22 조회 2,466
11-04-22 조회 1,624
11-04-22 조회 1,137
11-04-22 조회 1,516
11-04-22 조회 1,683
11-04-22 조회 1,639
11-04-22 조회 1,727
11-04-22 조회 1,617
11-04-22 조회 1,776
11-04-22 조회 1,725
11-04-22 조회 1,793
11-04-22 조회 1,784
11-04-22 조회 1,642
11-04-22 조회 2,092
11-04-22 조회 1,088
11-04-22 조회 1,079
11-04-22 조회 1,730
11-04-22 조회 1,753
11-04-22 조회 2,347