포인트 다드리고 싶어도 포인트가 ㅠㅠ 체크박스 질문입니다. 정보
포인트 다드리고 싶어도 포인트가 ㅠㅠ 체크박스 질문입니다.본문
체크박스에 체크를 하고 수정시 유지가 안되고 다 풀립니다..
지하철 선택하는 부분체크박스를 수정시에도 처음 체크한 값이 유지 되도록 하고 싶어요,,,, 포인트 있으면 다 드리고 싶은마음이나..
현실은 포인트가 없다는..
소스 는
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
$p_four = explode("|",$write[wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
?>
<?
$p_six = explode("|",$write[wr_6]);
$six01 = $p_six[0];
$six02 = $p_six[1];
$six03 = $p_six[2];
$six04 = $p_six[3];
$six05 = $p_six[4];
$six06 = $p_six[5];
$six07 = $p_six[6];
$six08 = $p_six[7];
$six09 = $p_six[8];
$six10 = $p_six[9];
$six11 = $p_six[10];
$six12 = $p_six[11];
$six13 = $p_six[12];
$six14 = $p_six[13];
$six15 = $p_six[14];
$six16 = $p_six[15];
$six17 = $p_six[16];
$six18 = $p_six[17];
$six19 = $p_six[18];
$six20 = $p_six[19];
$six21 = $p_six[20];
$six22 = $p_six[21];
$six23 = $p_six[22];
$six24 = $p_six[23];
$six25 = $p_six[24];
$six26 = $p_six[25];
$six27 = $p_six[26];
$six28 = $p_six[27];
$six29 = $p_six[28];
$six30 = $p_six[29];
?>
<?
$p_nine = explode("|",$write[wr_9]);
$nine01 = $p_nine[0];
$nine02 = $p_nine[1];
$nine03 = $p_nine[2];
$nine04 = $p_nine[3];
$nine05 = $p_nine[4];
$nine06 = $p_nine[5];
$nine07 = $p_nine[6];
$nine08 = $p_nine[7];
$nine09 = $p_nine[8];
$nine10 = $p_nine[9];
$nine11 = $p_nine[10];
$nine12 = $p_nine[11];
$nine13 = $p_nine[12];
$nine14 = $p_nine[13];
$nine15 = $p_nine[14];
?>
<script language="JavaScript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
var product = new Array();
var category = new Array();
<?
$sql = "select * from g4_area order by no asc";
$result = mysql_query($sql);
for($i=0;$row = mysql_fetch_array($result);$i++){
if($row[area1]) echo "product[$i] = \"$row[area1]\";";
$area2 = "'".str_replace(",","','",$row[area2])."'";
echo "category[$i] = new Array($area2);";
$area2 = explode(",",$row[area2]);
}
?>
function init(){
setSubway();
var nLen = product.length;
for(var i=0;i<nLen;i++){
var idx = document.fwrite.wr_1.length;
document.fwrite.wr_1.length += 1;
document.fwrite.wr_1.options[idx].text = product[i];
document.fwrite.wr_1.options[idx].value = product[i];
if(product[i]=='<?=$write[wr_1]?>'){
document.fwrite.wr_1.options[idx].selected = true;
selProduct(idx-1);
}
}
}
function selProduct(idx){
document.fwrite.wr_2.length =0;
document.fwrite.wr_2.length += 1;
document.fwrite.wr_2.options[0].text = "분류2";
for(var i=0;i<category[idx].length;i++){
var nLen = document.fwrite.wr_2.length;
document.fwrite.wr_2.length += 1;
document.fwrite.wr_2.options[nLen].text = category[idx][i];
document.fwrite.wr_2.options[nLen].value = category[idx][i];
if(category[idx][i]=='<?=$write[wr_2]?>'){
document.fwrite.wr_2.options[nLen].selected = true;
}
}
}
</script>
<script language="JavaScript">
function getSubway(){
var obj = document.fwrite.subway;
var cnt = 0;
var result = "";
for(i=0; i<obj.length; i++){
if(obj[i].checked){
if(cnt==0)
result = obj[i].value;
else
result += "|"+obj[i].value;
cnt++;
}
}
return result;
}
function setSubway(){
var obj = document.fwrite.subway;
var arr = new Array();
<?
$cnt = 0;
for($i=0;$i<15;$i++){
if(strlen(trim($p_ten[$i]))>0){
echo "arr[".$cnt."] = '".$p_ten[$i]."';";
$cnt++;
}
}
?>
for(i=0;i<arr.length;i++){
for(j=0;j<obj.length;j++){
if(obj[j].value == arr[i]){
obj[j].checked = true;
}
}
}
}
</script>
<!-- FF(불여우) 에서는 innerHTML 토지이용계획시 폼이 <table> 아래에 있으면 인식하지 못합니다. -->
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" autocomplete="off">
<table width="<?=$width?>" align=center>
<input type=hidden name=null><!-- 삭제하지 마십시오. -->
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=spt value="<?=$spt?>">
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=page value="<?=$page?>">
<? if ($w == 'u') {?>
<!--input type=hidden name=wr_1 value="<?=$write[wr_1]?>"-->
<!--input type=hidden name=wr_2 value="<?=$write[wr_2]?>"-->
<!--input type=hidden name=wr_3 value="<?=$write[wr_3]?>"-->
<input type=hidden name=four01 value="<?=$four01?>">
<input type=hidden name=four02 value="<?=$four02?>">
<input type=hidden name=four03 value="<?=$four03?>">
<input type=hidden name=four04 value="<?=$four04?>">
<input type=hidden name=four05 value="<?=$four05?>">
<input type=hidden name=wr_8 value="<?=$write[wr_8]?>">
<input type=hidden name=wr_10 value="<?=$write[wr_10]?>">
<? }?>
<input type=hidden name=wr_3 value="<?=$bo_table?>">
<tr>
<td><!--<table width="100%" cellpadding="0" cellspacing="0" >
<tr>
<td width="10"><img src="<?=$board_skin_path?>/img/left_top.gif"></td>
<td background="<?=$board_skin_path?>/img/width_bg_top.gif"></td>
<td width="10"><img src="<?=$board_skin_path?>/img/right_top.gif"></td>
</tr>
<tr>
<td background="<?=$board_skin_path?>/img/left_bg.gif"></td>
<td bgcolor="#f7f7f7"> </td>
<td background="<?=$board_skin_path?>/img/right_bg.gif"></td>
</tr>
<tr>
<td width="10"><img src="<?=$board_skin_path?>/img/left_down.gif"></td>
<td background="<?=$board_skin_path?>/img/width_bg_down.gif"></td>
<td width="10"><img src="<?=$board_skin_path?>/img/right_down.gif"></td>
</tr>
</table> -->
<table width="100%" cellpadding="3">
<tr>
<td><table width="100%" cellpadding="0" cellspacing="3" bgcolor="fafafa">
<tr>
<td bgcolor="ffffff"><table width="100%">
<tr>
<td><table width="100%">
<tr>
<td class="blue"><img src="<?=$board_skin_path?>/img/icon_7.gif" align="absmiddle"> <b>담당자 정보</b> </td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="3" bgcolor="f4f4f4">
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="0" cellspacing="1" bgcolor="cccccc">
<tr>
<td height="1" bgcolor="61AAC4"></td>
</tr>
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="5" cellspacing="1" bgcolor="cccccc">
<tr>
<td width="100" align="center" bgcolor="eff8fd" class="blue">담당자</td>
<td bgcolor="ffffff"><input maxLength=20 size=15 name=wr_name itemname="담당자" required value="<?=$member[mb_nick]?>" class="input">
<? if ($is_password) { ?>
<input type=password maxLength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?> class="input">
<? } ?></td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">휴대폰</td>
<td bgcolor="ffffff"><input maxLength=30 size=30 name=nine01 itemname="휴대폰" value="<?=$member[mb_hp]?>" class="input"></td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">전화번호</td>
<td bgcolor="ffffff"><input maxLength=30 size=30 name=nine02 itemname="전화번호" value="<?=$member[mb_tel]?>" class="input"></td>
</tr>
<? if ($is_admin) { ?><tr>
<td align="center" bgcolor="eff8fd" class="blue">옵션</td>
<td bgcolor="ffffff"><? if ($is_notice) { ?>
<input type=checkbox name=notice value="1" <?=$notice_checked?>>
공지
<? } ?>
<? if ($is_secret) { ?>
<input type=checkbox value="secret" name="secret" <?=$secret_checked?>>
비밀글
<? } ?>
<input type=checkbox value="mail" name="mail" <?=$recv_email_checked?>>
답변메일받기 </td>
</tr>
<? } ?>
<?
if ($is_dhtml_editor) {
echo "<input type=hidden value='html1' name='html'>";
}
?>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">이메일</td>
<td bgcolor="ffffff"><input maxLength=100 size=30 name=wr_email email itemname="이메일" value="<?=$email?>" class="input"></td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">물건 정보</td>
<td bgcolor="ffffff"><select name='wr_5' itemname="정보">
<option value='아파트' <? if($write[wr_5] == 아파트) echo " selected "; ?>>아파트
</option>
<option value='상가' <? if($write[wr_5] == 상가) echo " selected "; ?>>상가
</option>
<option value='주택' <? if($write[wr_5] == 주택) echo " selected "; ?>>주택
</option>
<option value='주상복합' <? if($write[wr_5] == 주상복합) echo " selected "; ?>>주상복합
</option>
<option value='주차장' <? if($write[wr_5] == 주차장) echo " selected "; ?>>주차장
</option>
<option value='토지' <? if($write[wr_5] == 토지) echo " selected "; ?>>토지
</option>
<option value='전답' <? if($write[wr_5] == 전답) echo " selected "; ?>>전답
</option>
<option value='공장/창고' <? if($write[wr_5] == 공장.창고) echo " selected "; ?>>공장/창고
</option>
<option value='숙박/콘도' <? if($write[wr_5] == 숙박.콘도) echo " selected "; ?>>숙박/콘도
</option>
<option value='빌딩/건물' <? if($write[wr_5] == 빌딩.건물) echo " selected "; ?>>빌딩/건물
</option>
<option value='오피스텔' <? if($write[wr_5] == 오피스텔) echo " selected "; ?>>오피스텔
</option>
<option value='원룸' <? if($write[wr_5] == 원룸) echo " selected "; ?>>원룸
</option>
<option value='빌라/연립' selected <? if($write[wr_5] == 빌라.연립) echo " selected "; ?>>빌라/연립
</option>
<option value='사무실' <? if($write[wr_5] == 사무실) echo " selected "; ?>>사무실
</option>
<option value='재개발' <? if($write[wr_5] == 재개발) echo " selected "; ?>>재개발
</option>
<option value='분양권' <? if($write[wr_5] == 분양권) echo " selected "; ?>>분양권
</option>
<option value='기타' <? if($write[wr_5] == 기타) echo " selected "; ?>>기타
</option>
</select>
</td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">소재지</td>
<td bgcolor="ffffff">
<select name="wr_1" onChange="selProduct(this.form.wr_1.selectedIndex-1);">
<option>분류1</option>
</select>
<select name="wr_2">
<option>분류2</option>
</select>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><table width="100%">
<tr>
<td class="blue"><img src="<?=$board_skin_path?>/img/icon_7.gif" align="absmiddle"> <b>물건정보</b> </td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="3" bgcolor="f4f4f4">
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="0" cellspacing="1" bgcolor="cccccc">
<tr>
<td height="1" bgcolor="61AAC4"></td>
</tr>
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="5" cellspacing="1" bgcolor="cccccc">
<tr>
<td width="80" align="center" bgcolor="eff8fd" class="blue">물건명</td>
<td colspan="3" bgcolor="ffffff"><input name=wr_subject value="<?=$subject?>" style=width:96% itemname="주소" required class="input"></td>
</tr>
<tr>
<td width="80" height="25" align="center" bgcolor="#EFF8FD">날짜변경</td>
<td height="51" colspan="3" bgcolor="white"><?
function dujari($num) {
if ($num < 10) {
$num = "0".$num;
}
else {
$num = $num;
}
return $num;
}
if ($w != "u") {
$d_year = date(Y,time());
$d_month = date(m,time());
$d_day = date(d,time());
$d_hour = date(H,time());
$d_min = date(i,time());
} else {
$d_year = substr($write['wr_datetime'],0,4);
$d_month = substr($write['wr_datetime'],5,2);
$d_day = substr($write['wr_datetime'],8,2);
$d_hour = substr($write['wr_datetime'],11,2);
$d_min = substr($write['wr_datetime'],14,2);
}
?>
<input name="dateFake" type="hidden" value="y">
<select name="d_year">
<? for ($i=2008;$i<2021;$i++) {?>
<option value="<?=$i?>" <? if($d_year == $i) {?> selected="selected" <? }?>><?=$i?></option>
<? }?>
</select>
년
<select name="d_month">
<? for ($i=1;$i<13;$i++) {?>
<option value="<?=dujari($i)?>" <? if($d_month == $i) {?> selected="selected" <? }?>><?=$i?></option>
<? }?>
</select>
월
<select name="d_day">
<? for ($i=1;$i<32;$i++) {?>
<option value="<?=dujari($i)?>" <? if($d_day == $i) {?> selected="selected" <? }?>><?=$i?></option>
<? }?>
</select>
일
<select name="d_hour">
<? for ($i=0;$i<24;$i++) {?>
<option value="<?=dujari($i)?>" <? if($d_hour == $i) {?> selected="selected" <? }?>><?=$i?></option>
<? }?>
</select>
시
<select name="d_min">
<? for ($i=0;$i<60;$i++) {?>
<option value="<?=dujari($i)?>" <? if($d_min == $i) {?> selected="selected" <? }?>><?=$i?></option>
<? }?>
</select>
분</td></td>
</tr>
<tr>
<td width="80" height="25" align="center" bgcolor="#EFF8FD">지하철</td>
<td height="51" colspan="3" bgcolor="white"><input type="checkbox" name="subway" id="subway_01" value='1호선' />1호선
<input type="checkbox" name="subway" id="subway_02" value='2호선' />2호선
<input type="checkbox" name="subway" id="subway_03" value='3호선' />3호선
<input type="checkbox" name="subway" id="subway_04" value='4호선' />4호선
<input type="checkbox" name="subway" id="subway_05" value='5호선' />5호선
<input type="checkbox" name="subway" id="subway_06" value='6호선' />6호선
<input type="checkbox" name="subway" id="subway_07" value='7호선' />7호선
<input type="checkbox" name="subway" id="subway_08" value='8호선' />8호선
<input type="checkbox" name="subway" id="subway_09" value='9호선' />9호선
<br />
<input type="checkbox" name="subway" id="subway_in_01" value='인천1호선' />인천1호선
<input type="checkbox" name="subway" id="subway_in_02" value='인천2호선' />인천2호선
<input type="checkbox" name="subway" id="subway_air" value='공항철도' />공항철도
<input type="checkbox" name="subway" id="subway_s_e" value='경의선' />경의선</td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">매물종류</td>
<td bgcolor="ffffff"><select name=ca_name itemname="매물종류" class="input">
<option value="">선택하세요
<?=$category_option?>
</option>
</select></td>
<td width="80" align="center" bgcolor="eff8fd" class="blue">총면적</td>
<td bgcolor="ffffff"><input name=nine03 value="<?=$nine03?>" itemname="총면적" class="input">
평형 </td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">판매구분</td>
<td bgcolor="ffffff"><input name=nine04 type="radio" value="개인" <? if ($nine04 == '개인') echo'checked';?> checked>
개인
<input name=nine04 type="radio" value="부동산" <? if ($nine04 == '부동산') echo'checked';?>>
부동산 </td>
<td width="80" align="center" bgcolor="eff8fd" class="blue">건물방향</td>
<td bgcolor="ffffff"><input name=nine05 value="<?=$nine05?>" itemname="건물방향" class="input"></td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">난방방식</td>
<td bgcolor="ffffff"><input name=nine06 value="<?=$nine06?>" itemname="난방방식" class="input"></td>
<td width="80" align="center" bgcolor="eff8fd" class="blue">주차시설</td>
<td bgcolor="ffffff"><input name=nine07 value="<?=$nine07?>" itemname="주차시설" class="input">
%
</td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">방수/욕실수</td>
<td bgcolor="ffffff"><input name=nine08 value="<?=$nine08?>" itemname="방수/욕실수" class="input"></td>
<td width="80" align="center" bgcolor="eff8fd" class="blue">융자금</td>
<td bgcolor="ffffff"><input name=nine09 value="<?=$nine09?>" itemname="융자금" class="input">
만원
</td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">실입주금</td>
<td bgcolor="ffffff"><input name=nine10 value="<?=$nine10?>" itemname="실입주금" type="hidden" class="input">실입주금은 <br />매매가-융자금액으로 자동 계산됩니다.</td>
<td width="80" align="center" bgcolor="eff8fd" class="blue">매매가</td>
<td bgcolor="ffffff"><input name=nine12 value="<?=$nine12?>" itemname="매매가" required class="input">
만원 </td>
</tr>
<!-- <tr>
<td align="center" bgcolor="F7F3F7" class="blue">매물정보</td>
<td colspan="3" bgcolor="ffffff" align="center"><table width=96% cellpadding="3" cellspacing="1" bgcolor="e4e4e4" >
<tr bgcolor="ffffff" align="center">
<td width="12%" bgcolor="F7F3F7" align="center">평형</td>
<td width="10%" bgcolor="F7F3F7" align="center">층수</td>
<td width="16%" bgcolor="F7F3F7" align="center">총매매가</td>
<td width="16%" bgcolor="F7F3F7" align="center">융자금</td>
<td width="16%" bgcolor="F7F3F7" align="center">실입주금</td>
<td width="30%" bgcolor="F7F3F7" align="center">비고</td>
</tr>
<tr bgcolor="ffffff">
<td width="12%" bgcolor="ffffff"><input maxLength=20 size=4 name=six01 value="<?=$six01?>" itemname="평형1" class="input">평</td>
<td width="10%" bgcolor="ffffff"><input maxLength=20 size=2 name=six05 value="<?=$six05?>" itemname="층수1" class="input">층</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six09 value="<?=$six09?>" itemname="총매매가1" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six13 value="<?=$six13?>" itemname="융자금1" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six17 value="<?=$six17?>" itemname="실입주금1" class="input">원</td>
<td width="30%" bgcolor="ffffff"><input maxLength=30 size=15 name=six21 value="<?=$six21?>" itemname="비고1" class="input"></td>
</tr>
<tr bgcolor="ffffff">
<td width="12%" bgcolor="ffffff"><input maxLength=20 size=4 name=six02 value="<?=$six02?>" itemname="평형2" class="input">평</td>
<td width="10%" bgcolor="ffffff"><input maxLength=20 size=2 name=six06 value="<?=$six06?>" itemname="층수2" class="input">층</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six010 value="<?=$six10?>" itemname="총매매가2" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six14 value="<?=$six14?>" itemname="융자금2" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six18 value="<?=$six18?>" itemname="실입주금2" class="input">원</td>
<td width="30%" bgcolor="ffffff"><input maxLength=30 size=15 name=six22 value="<?=$six22?>" itemname="비고2" class="input"></td>
</tr>
<tr bgcolor="ffffff">
<td width="12%" bgcolor="ffffff"><input maxLength=20 size=4 name=six03 value="<?=$six03?>" itemname="평형3" class="input">평</td>
<td width="10%" bgcolor="ffffff"><input maxLength=20 size=2 name=six07 value="<?=$six07?>" itemname="층수3" class="input">층</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six11 value="<?=$six11?>" itemname="총매매가3" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six15 value="<?=$six15?>" itemname="융자금3" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six19 value="<?=$six19?>" itemname="실입주금3" class="input">원</td>
<td width="30%" bgcolor="ffffff"><input maxLength=30 size=15 name=six23 value="<?=$six23?>" itemname="비고3" class="input"></td>
</tr>
<tr bgcolor="ffffff">
<td width="12%" bgcolor="ffffff"><input maxLength=20 size=4 name=six04 value="<?=$six04?>" itemname="평형4" class="input">평</td>
<td width="10%" bgcolor="ffffff"><input maxLength=20 size=2 name=six08 value="<?=$six08?>" itemname="층수4" class="input">층</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six12 value="<?=$six12?>" itemname="총매매가4" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six16 value="<?=$six16?>" itemname="융자금4" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six20 value="<?=$six20?>" itemname="실입주금4" class="input">원</td>
<td width="30%" bgcolor="ffffff"><input maxLength=30 size=15 name=six24 value="<?=$six24?>" itemname="비고4" class="input"></td>
</tr>
</table></td>
</tr> -->
<tr>
<td align="center" bgcolor="eff8fd" class="blue">매물정보</td>
<td colspan="3" bgcolor="ffffff">
<!--
<table width=96%>
<tr>
<td><SPAN style="CURSOR: pointer;" onclick="textarea_decrease('wr_content', 10);"> <img src="<?=$board_skin_path?>/img/icon_up.gif"></SPAN> <SPAN style="CURSOR: pointer;" onclick="textarea_original('wr_content', 10);"> <img src="<?=$board_skin_path?>/img/icon_start.gif"></SPAN> <SPAN style="CURSOR: pointer;" onclick="textarea_increase('wr_content', 10);"> <img src="<?=$board_skin_path?>/img/icon_down.gif"></SPAN></td>
<td align="right"><span id=char_count></span>글자</td>
</tr>
</table>
-->
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
<? } ?>
</td>
</tr>
<? if ($is_file) { ?>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">사진정보<br>
(500x340)</td>
<td colspan="3" valign="top" bgcolor="ffffff"><table width="100%">
<tr>
<td width="60"><table width="100%" cellpadding="2">
<tr>
<td align="right"></td>
</tr>
<tr>
<td align="right"></td>
</tr>
<tr>
<td align="right"></td>
</tr>
<tr>
<td align="right"></td>
</tr>
<tr>
<td align="right"></td>
</tr>
</table></td>
<td><table id="variableFiles">
</table>
<script language="JavaScript">
function add_file(delete_code)
{
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=input size=20 name='bf_file[]'>";
if (delete_code)
objCell.innerHTML += delete_code;
else
{
<? if ($is_file_content) { ?>
objCell.innerHTML += "<br><input type='text' class=input size=50 name='bf_content[]'> 파일설명";
<? } ?>
;
}
}
<?
if ($file_length<5)
for ($i=$file_length+1; $i<5; $i++)
$file_script .= "add_file('');\n";
?>
<?=$file_script;?>
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);
}
</script></td>
<? if ($w == '') {?>
<td align="center"><table cellpadding="0" cellspacing="2" bgcolor="eeeeee">
<tr>
<td><span class="blue"><!--img src="<?=$board_skin_path?>/img/car_s.gif" align="absmiddle"--></span></td>
</tr>
</table></td>
<? }?>
</tr>
</table></td>
</tr>
<? } ?>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><table width="100%">
<!>
</table>
<table width="100%" cellpadding="0" cellspacing="3" bgcolor="f4f4f4">
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="0" cellspacing="1" bgcolor="cccccc">
<tr>
<td height="1" bgcolor="61AAC4"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<? if ($w == '') {?><tr>
<td><table width="100%">
<!>
</table></td>
</tr><? }?>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="200" align="center" cellpadding="5">
<tr align="center">
<td><input type=image id="btn_submit" src="<?=$board_skin_path?>/img/submit.gif" border=0 a평esskey='s'></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 = "<?=$write[ca_name]?>";
if (typeof(ca_name) != "undefined")
if (w.value == "r")
ca_name.value = "<?=$write[ca_name]?>";
}
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;
}
<?
echo cheditor3('wr_content');
?>
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;
}
}
f.wr_10.value = getSubway();
f.nine10.value = f.nine12.value-f.nine09.value;
f.action = "./write_update.php";
f.submit();
}
init();
</script>
지하철 선택하는 부분체크박스를 수정시에도 처음 체크한 값이 유지 되도록 하고 싶어요,,,, 포인트 있으면 다 드리고 싶은마음이나..
현실은 포인트가 없다는..
소스 는
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
$p_four = explode("|",$write[wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
?>
<?
$p_six = explode("|",$write[wr_6]);
$six01 = $p_six[0];
$six02 = $p_six[1];
$six03 = $p_six[2];
$six04 = $p_six[3];
$six05 = $p_six[4];
$six06 = $p_six[5];
$six07 = $p_six[6];
$six08 = $p_six[7];
$six09 = $p_six[8];
$six10 = $p_six[9];
$six11 = $p_six[10];
$six12 = $p_six[11];
$six13 = $p_six[12];
$six14 = $p_six[13];
$six15 = $p_six[14];
$six16 = $p_six[15];
$six17 = $p_six[16];
$six18 = $p_six[17];
$six19 = $p_six[18];
$six20 = $p_six[19];
$six21 = $p_six[20];
$six22 = $p_six[21];
$six23 = $p_six[22];
$six24 = $p_six[23];
$six25 = $p_six[24];
$six26 = $p_six[25];
$six27 = $p_six[26];
$six28 = $p_six[27];
$six29 = $p_six[28];
$six30 = $p_six[29];
?>
<?
$p_nine = explode("|",$write[wr_9]);
$nine01 = $p_nine[0];
$nine02 = $p_nine[1];
$nine03 = $p_nine[2];
$nine04 = $p_nine[3];
$nine05 = $p_nine[4];
$nine06 = $p_nine[5];
$nine07 = $p_nine[6];
$nine08 = $p_nine[7];
$nine09 = $p_nine[8];
$nine10 = $p_nine[9];
$nine11 = $p_nine[10];
$nine12 = $p_nine[11];
$nine13 = $p_nine[12];
$nine14 = $p_nine[13];
$nine15 = $p_nine[14];
?>
<script language="JavaScript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
var product = new Array();
var category = new Array();
<?
$sql = "select * from g4_area order by no asc";
$result = mysql_query($sql);
for($i=0;$row = mysql_fetch_array($result);$i++){
if($row[area1]) echo "product[$i] = \"$row[area1]\";";
$area2 = "'".str_replace(",","','",$row[area2])."'";
echo "category[$i] = new Array($area2);";
$area2 = explode(",",$row[area2]);
}
?>
function init(){
setSubway();
var nLen = product.length;
for(var i=0;i<nLen;i++){
var idx = document.fwrite.wr_1.length;
document.fwrite.wr_1.length += 1;
document.fwrite.wr_1.options[idx].text = product[i];
document.fwrite.wr_1.options[idx].value = product[i];
if(product[i]=='<?=$write[wr_1]?>'){
document.fwrite.wr_1.options[idx].selected = true;
selProduct(idx-1);
}
}
}
function selProduct(idx){
document.fwrite.wr_2.length =0;
document.fwrite.wr_2.length += 1;
document.fwrite.wr_2.options[0].text = "분류2";
for(var i=0;i<category[idx].length;i++){
var nLen = document.fwrite.wr_2.length;
document.fwrite.wr_2.length += 1;
document.fwrite.wr_2.options[nLen].text = category[idx][i];
document.fwrite.wr_2.options[nLen].value = category[idx][i];
if(category[idx][i]=='<?=$write[wr_2]?>'){
document.fwrite.wr_2.options[nLen].selected = true;
}
}
}
</script>
<script language="JavaScript">
function getSubway(){
var obj = document.fwrite.subway;
var cnt = 0;
var result = "";
for(i=0; i<obj.length; i++){
if(obj[i].checked){
if(cnt==0)
result = obj[i].value;
else
result += "|"+obj[i].value;
cnt++;
}
}
return result;
}
function setSubway(){
var obj = document.fwrite.subway;
var arr = new Array();
<?
$cnt = 0;
for($i=0;$i<15;$i++){
if(strlen(trim($p_ten[$i]))>0){
echo "arr[".$cnt."] = '".$p_ten[$i]."';";
$cnt++;
}
}
?>
for(i=0;i<arr.length;i++){
for(j=0;j<obj.length;j++){
if(obj[j].value == arr[i]){
obj[j].checked = true;
}
}
}
}
</script>
<!-- FF(불여우) 에서는 innerHTML 토지이용계획시 폼이 <table> 아래에 있으면 인식하지 못합니다. -->
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" autocomplete="off">
<table width="<?=$width?>" align=center>
<input type=hidden name=null><!-- 삭제하지 마십시오. -->
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=spt value="<?=$spt?>">
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=page value="<?=$page?>">
<? if ($w == 'u') {?>
<!--input type=hidden name=wr_1 value="<?=$write[wr_1]?>"-->
<!--input type=hidden name=wr_2 value="<?=$write[wr_2]?>"-->
<!--input type=hidden name=wr_3 value="<?=$write[wr_3]?>"-->
<input type=hidden name=four01 value="<?=$four01?>">
<input type=hidden name=four02 value="<?=$four02?>">
<input type=hidden name=four03 value="<?=$four03?>">
<input type=hidden name=four04 value="<?=$four04?>">
<input type=hidden name=four05 value="<?=$four05?>">
<input type=hidden name=wr_8 value="<?=$write[wr_8]?>">
<input type=hidden name=wr_10 value="<?=$write[wr_10]?>">
<? }?>
<input type=hidden name=wr_3 value="<?=$bo_table?>">
<tr>
<td><!--<table width="100%" cellpadding="0" cellspacing="0" >
<tr>
<td width="10"><img src="<?=$board_skin_path?>/img/left_top.gif"></td>
<td background="<?=$board_skin_path?>/img/width_bg_top.gif"></td>
<td width="10"><img src="<?=$board_skin_path?>/img/right_top.gif"></td>
</tr>
<tr>
<td background="<?=$board_skin_path?>/img/left_bg.gif"></td>
<td bgcolor="#f7f7f7"> </td>
<td background="<?=$board_skin_path?>/img/right_bg.gif"></td>
</tr>
<tr>
<td width="10"><img src="<?=$board_skin_path?>/img/left_down.gif"></td>
<td background="<?=$board_skin_path?>/img/width_bg_down.gif"></td>
<td width="10"><img src="<?=$board_skin_path?>/img/right_down.gif"></td>
</tr>
</table> -->
<table width="100%" cellpadding="3">
<tr>
<td><table width="100%" cellpadding="0" cellspacing="3" bgcolor="fafafa">
<tr>
<td bgcolor="ffffff"><table width="100%">
<tr>
<td><table width="100%">
<tr>
<td class="blue"><img src="<?=$board_skin_path?>/img/icon_7.gif" align="absmiddle"> <b>담당자 정보</b> </td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="3" bgcolor="f4f4f4">
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="0" cellspacing="1" bgcolor="cccccc">
<tr>
<td height="1" bgcolor="61AAC4"></td>
</tr>
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="5" cellspacing="1" bgcolor="cccccc">
<tr>
<td width="100" align="center" bgcolor="eff8fd" class="blue">담당자</td>
<td bgcolor="ffffff"><input maxLength=20 size=15 name=wr_name itemname="담당자" required value="<?=$member[mb_nick]?>" class="input">
<? if ($is_password) { ?>
<input type=password maxLength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?> class="input">
<? } ?></td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">휴대폰</td>
<td bgcolor="ffffff"><input maxLength=30 size=30 name=nine01 itemname="휴대폰" value="<?=$member[mb_hp]?>" class="input"></td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">전화번호</td>
<td bgcolor="ffffff"><input maxLength=30 size=30 name=nine02 itemname="전화번호" value="<?=$member[mb_tel]?>" class="input"></td>
</tr>
<? if ($is_admin) { ?><tr>
<td align="center" bgcolor="eff8fd" class="blue">옵션</td>
<td bgcolor="ffffff"><? if ($is_notice) { ?>
<input type=checkbox name=notice value="1" <?=$notice_checked?>>
공지
<? } ?>
<? if ($is_secret) { ?>
<input type=checkbox value="secret" name="secret" <?=$secret_checked?>>
비밀글
<? } ?>
<input type=checkbox value="mail" name="mail" <?=$recv_email_checked?>>
답변메일받기 </td>
</tr>
<? } ?>
<?
if ($is_dhtml_editor) {
echo "<input type=hidden value='html1' name='html'>";
}
?>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">이메일</td>
<td bgcolor="ffffff"><input maxLength=100 size=30 name=wr_email email itemname="이메일" value="<?=$email?>" class="input"></td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">물건 정보</td>
<td bgcolor="ffffff"><select name='wr_5' itemname="정보">
<option value='아파트' <? if($write[wr_5] == 아파트) echo " selected "; ?>>아파트
</option>
<option value='상가' <? if($write[wr_5] == 상가) echo " selected "; ?>>상가
</option>
<option value='주택' <? if($write[wr_5] == 주택) echo " selected "; ?>>주택
</option>
<option value='주상복합' <? if($write[wr_5] == 주상복합) echo " selected "; ?>>주상복합
</option>
<option value='주차장' <? if($write[wr_5] == 주차장) echo " selected "; ?>>주차장
</option>
<option value='토지' <? if($write[wr_5] == 토지) echo " selected "; ?>>토지
</option>
<option value='전답' <? if($write[wr_5] == 전답) echo " selected "; ?>>전답
</option>
<option value='공장/창고' <? if($write[wr_5] == 공장.창고) echo " selected "; ?>>공장/창고
</option>
<option value='숙박/콘도' <? if($write[wr_5] == 숙박.콘도) echo " selected "; ?>>숙박/콘도
</option>
<option value='빌딩/건물' <? if($write[wr_5] == 빌딩.건물) echo " selected "; ?>>빌딩/건물
</option>
<option value='오피스텔' <? if($write[wr_5] == 오피스텔) echo " selected "; ?>>오피스텔
</option>
<option value='원룸' <? if($write[wr_5] == 원룸) echo " selected "; ?>>원룸
</option>
<option value='빌라/연립' selected <? if($write[wr_5] == 빌라.연립) echo " selected "; ?>>빌라/연립
</option>
<option value='사무실' <? if($write[wr_5] == 사무실) echo " selected "; ?>>사무실
</option>
<option value='재개발' <? if($write[wr_5] == 재개발) echo " selected "; ?>>재개발
</option>
<option value='분양권' <? if($write[wr_5] == 분양권) echo " selected "; ?>>분양권
</option>
<option value='기타' <? if($write[wr_5] == 기타) echo " selected "; ?>>기타
</option>
</select>
</td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">소재지</td>
<td bgcolor="ffffff">
<select name="wr_1" onChange="selProduct(this.form.wr_1.selectedIndex-1);">
<option>분류1</option>
</select>
<select name="wr_2">
<option>분류2</option>
</select>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><table width="100%">
<tr>
<td class="blue"><img src="<?=$board_skin_path?>/img/icon_7.gif" align="absmiddle"> <b>물건정보</b> </td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="3" bgcolor="f4f4f4">
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="0" cellspacing="1" bgcolor="cccccc">
<tr>
<td height="1" bgcolor="61AAC4"></td>
</tr>
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="5" cellspacing="1" bgcolor="cccccc">
<tr>
<td width="80" align="center" bgcolor="eff8fd" class="blue">물건명</td>
<td colspan="3" bgcolor="ffffff"><input name=wr_subject value="<?=$subject?>" style=width:96% itemname="주소" required class="input"></td>
</tr>
<tr>
<td width="80" height="25" align="center" bgcolor="#EFF8FD">날짜변경</td>
<td height="51" colspan="3" bgcolor="white"><?
function dujari($num) {
if ($num < 10) {
$num = "0".$num;
}
else {
$num = $num;
}
return $num;
}
if ($w != "u") {
$d_year = date(Y,time());
$d_month = date(m,time());
$d_day = date(d,time());
$d_hour = date(H,time());
$d_min = date(i,time());
} else {
$d_year = substr($write['wr_datetime'],0,4);
$d_month = substr($write['wr_datetime'],5,2);
$d_day = substr($write['wr_datetime'],8,2);
$d_hour = substr($write['wr_datetime'],11,2);
$d_min = substr($write['wr_datetime'],14,2);
}
?>
<input name="dateFake" type="hidden" value="y">
<select name="d_year">
<? for ($i=2008;$i<2021;$i++) {?>
<option value="<?=$i?>" <? if($d_year == $i) {?> selected="selected" <? }?>><?=$i?></option>
<? }?>
</select>
년
<select name="d_month">
<? for ($i=1;$i<13;$i++) {?>
<option value="<?=dujari($i)?>" <? if($d_month == $i) {?> selected="selected" <? }?>><?=$i?></option>
<? }?>
</select>
월
<select name="d_day">
<? for ($i=1;$i<32;$i++) {?>
<option value="<?=dujari($i)?>" <? if($d_day == $i) {?> selected="selected" <? }?>><?=$i?></option>
<? }?>
</select>
일
<select name="d_hour">
<? for ($i=0;$i<24;$i++) {?>
<option value="<?=dujari($i)?>" <? if($d_hour == $i) {?> selected="selected" <? }?>><?=$i?></option>
<? }?>
</select>
시
<select name="d_min">
<? for ($i=0;$i<60;$i++) {?>
<option value="<?=dujari($i)?>" <? if($d_min == $i) {?> selected="selected" <? }?>><?=$i?></option>
<? }?>
</select>
분</td></td>
</tr>
<tr>
<td width="80" height="25" align="center" bgcolor="#EFF8FD">지하철</td>
<td height="51" colspan="3" bgcolor="white"><input type="checkbox" name="subway" id="subway_01" value='1호선' />1호선
<input type="checkbox" name="subway" id="subway_02" value='2호선' />2호선
<input type="checkbox" name="subway" id="subway_03" value='3호선' />3호선
<input type="checkbox" name="subway" id="subway_04" value='4호선' />4호선
<input type="checkbox" name="subway" id="subway_05" value='5호선' />5호선
<input type="checkbox" name="subway" id="subway_06" value='6호선' />6호선
<input type="checkbox" name="subway" id="subway_07" value='7호선' />7호선
<input type="checkbox" name="subway" id="subway_08" value='8호선' />8호선
<input type="checkbox" name="subway" id="subway_09" value='9호선' />9호선
<br />
<input type="checkbox" name="subway" id="subway_in_01" value='인천1호선' />인천1호선
<input type="checkbox" name="subway" id="subway_in_02" value='인천2호선' />인천2호선
<input type="checkbox" name="subway" id="subway_air" value='공항철도' />공항철도
<input type="checkbox" name="subway" id="subway_s_e" value='경의선' />경의선</td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">매물종류</td>
<td bgcolor="ffffff"><select name=ca_name itemname="매물종류" class="input">
<option value="">선택하세요
<?=$category_option?>
</option>
</select></td>
<td width="80" align="center" bgcolor="eff8fd" class="blue">총면적</td>
<td bgcolor="ffffff"><input name=nine03 value="<?=$nine03?>" itemname="총면적" class="input">
평형 </td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">판매구분</td>
<td bgcolor="ffffff"><input name=nine04 type="radio" value="개인" <? if ($nine04 == '개인') echo'checked';?> checked>
개인
<input name=nine04 type="radio" value="부동산" <? if ($nine04 == '부동산') echo'checked';?>>
부동산 </td>
<td width="80" align="center" bgcolor="eff8fd" class="blue">건물방향</td>
<td bgcolor="ffffff"><input name=nine05 value="<?=$nine05?>" itemname="건물방향" class="input"></td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">난방방식</td>
<td bgcolor="ffffff"><input name=nine06 value="<?=$nine06?>" itemname="난방방식" class="input"></td>
<td width="80" align="center" bgcolor="eff8fd" class="blue">주차시설</td>
<td bgcolor="ffffff"><input name=nine07 value="<?=$nine07?>" itemname="주차시설" class="input">
%
</td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">방수/욕실수</td>
<td bgcolor="ffffff"><input name=nine08 value="<?=$nine08?>" itemname="방수/욕실수" class="input"></td>
<td width="80" align="center" bgcolor="eff8fd" class="blue">융자금</td>
<td bgcolor="ffffff"><input name=nine09 value="<?=$nine09?>" itemname="융자금" class="input">
만원
</td>
</tr>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">실입주금</td>
<td bgcolor="ffffff"><input name=nine10 value="<?=$nine10?>" itemname="실입주금" type="hidden" class="input">실입주금은 <br />매매가-융자금액으로 자동 계산됩니다.</td>
<td width="80" align="center" bgcolor="eff8fd" class="blue">매매가</td>
<td bgcolor="ffffff"><input name=nine12 value="<?=$nine12?>" itemname="매매가" required class="input">
만원 </td>
</tr>
<!-- <tr>
<td align="center" bgcolor="F7F3F7" class="blue">매물정보</td>
<td colspan="3" bgcolor="ffffff" align="center"><table width=96% cellpadding="3" cellspacing="1" bgcolor="e4e4e4" >
<tr bgcolor="ffffff" align="center">
<td width="12%" bgcolor="F7F3F7" align="center">평형</td>
<td width="10%" bgcolor="F7F3F7" align="center">층수</td>
<td width="16%" bgcolor="F7F3F7" align="center">총매매가</td>
<td width="16%" bgcolor="F7F3F7" align="center">융자금</td>
<td width="16%" bgcolor="F7F3F7" align="center">실입주금</td>
<td width="30%" bgcolor="F7F3F7" align="center">비고</td>
</tr>
<tr bgcolor="ffffff">
<td width="12%" bgcolor="ffffff"><input maxLength=20 size=4 name=six01 value="<?=$six01?>" itemname="평형1" class="input">평</td>
<td width="10%" bgcolor="ffffff"><input maxLength=20 size=2 name=six05 value="<?=$six05?>" itemname="층수1" class="input">층</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six09 value="<?=$six09?>" itemname="총매매가1" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six13 value="<?=$six13?>" itemname="융자금1" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six17 value="<?=$six17?>" itemname="실입주금1" class="input">원</td>
<td width="30%" bgcolor="ffffff"><input maxLength=30 size=15 name=six21 value="<?=$six21?>" itemname="비고1" class="input"></td>
</tr>
<tr bgcolor="ffffff">
<td width="12%" bgcolor="ffffff"><input maxLength=20 size=4 name=six02 value="<?=$six02?>" itemname="평형2" class="input">평</td>
<td width="10%" bgcolor="ffffff"><input maxLength=20 size=2 name=six06 value="<?=$six06?>" itemname="층수2" class="input">층</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six010 value="<?=$six10?>" itemname="총매매가2" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six14 value="<?=$six14?>" itemname="융자금2" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six18 value="<?=$six18?>" itemname="실입주금2" class="input">원</td>
<td width="30%" bgcolor="ffffff"><input maxLength=30 size=15 name=six22 value="<?=$six22?>" itemname="비고2" class="input"></td>
</tr>
<tr bgcolor="ffffff">
<td width="12%" bgcolor="ffffff"><input maxLength=20 size=4 name=six03 value="<?=$six03?>" itemname="평형3" class="input">평</td>
<td width="10%" bgcolor="ffffff"><input maxLength=20 size=2 name=six07 value="<?=$six07?>" itemname="층수3" class="input">층</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six11 value="<?=$six11?>" itemname="총매매가3" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six15 value="<?=$six15?>" itemname="융자금3" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six19 value="<?=$six19?>" itemname="실입주금3" class="input">원</td>
<td width="30%" bgcolor="ffffff"><input maxLength=30 size=15 name=six23 value="<?=$six23?>" itemname="비고3" class="input"></td>
</tr>
<tr bgcolor="ffffff">
<td width="12%" bgcolor="ffffff"><input maxLength=20 size=4 name=six04 value="<?=$six04?>" itemname="평형4" class="input">평</td>
<td width="10%" bgcolor="ffffff"><input maxLength=20 size=2 name=six08 value="<?=$six08?>" itemname="층수4" class="input">층</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six12 value="<?=$six12?>" itemname="총매매가4" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six16 value="<?=$six16?>" itemname="융자금4" class="input">원</td>
<td width="16%" bgcolor="ffffff"><input maxLength=20 size=8 name=six20 value="<?=$six20?>" itemname="실입주금4" class="input">원</td>
<td width="30%" bgcolor="ffffff"><input maxLength=30 size=15 name=six24 value="<?=$six24?>" itemname="비고4" class="input"></td>
</tr>
</table></td>
</tr> -->
<tr>
<td align="center" bgcolor="eff8fd" class="blue">매물정보</td>
<td colspan="3" bgcolor="ffffff">
<!--
<table width=96%>
<tr>
<td><SPAN style="CURSOR: pointer;" onclick="textarea_decrease('wr_content', 10);"> <img src="<?=$board_skin_path?>/img/icon_up.gif"></SPAN> <SPAN style="CURSOR: pointer;" onclick="textarea_original('wr_content', 10);"> <img src="<?=$board_skin_path?>/img/icon_start.gif"></SPAN> <SPAN style="CURSOR: pointer;" onclick="textarea_increase('wr_content', 10);"> <img src="<?=$board_skin_path?>/img/icon_down.gif"></SPAN></td>
<td align="right"><span id=char_count></span>글자</td>
</tr>
</table>
-->
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
<? } ?>
</td>
</tr>
<? if ($is_file) { ?>
<tr>
<td align="center" bgcolor="eff8fd" class="blue">사진정보<br>
(500x340)</td>
<td colspan="3" valign="top" bgcolor="ffffff"><table width="100%">
<tr>
<td width="60"><table width="100%" cellpadding="2">
<tr>
<td align="right"></td>
</tr>
<tr>
<td align="right"></td>
</tr>
<tr>
<td align="right"></td>
</tr>
<tr>
<td align="right"></td>
</tr>
<tr>
<td align="right"></td>
</tr>
</table></td>
<td><table id="variableFiles">
</table>
<script language="JavaScript">
function add_file(delete_code)
{
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=input size=20 name='bf_file[]'>";
if (delete_code)
objCell.innerHTML += delete_code;
else
{
<? if ($is_file_content) { ?>
objCell.innerHTML += "<br><input type='text' class=input size=50 name='bf_content[]'> 파일설명";
<? } ?>
;
}
}
<?
if ($file_length<5)
for ($i=$file_length+1; $i<5; $i++)
$file_script .= "add_file('');\n";
?>
<?=$file_script;?>
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);
}
</script></td>
<? if ($w == '') {?>
<td align="center"><table cellpadding="0" cellspacing="2" bgcolor="eeeeee">
<tr>
<td><span class="blue"><!--img src="<?=$board_skin_path?>/img/car_s.gif" align="absmiddle"--></span></td>
</tr>
</table></td>
<? }?>
</tr>
</table></td>
</tr>
<? } ?>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><table width="100%">
<!>
</table>
<table width="100%" cellpadding="0" cellspacing="3" bgcolor="f4f4f4">
<tr>
<td bgcolor="ffffff"><table width="100%" cellpadding="0" cellspacing="1" bgcolor="cccccc">
<tr>
<td height="1" bgcolor="61AAC4"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<? if ($w == '') {?><tr>
<td><table width="100%">
<!>
</table></td>
</tr><? }?>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="200" align="center" cellpadding="5">
<tr align="center">
<td><input type=image id="btn_submit" src="<?=$board_skin_path?>/img/submit.gif" border=0 a평esskey='s'></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 = "<?=$write[ca_name]?>";
if (typeof(ca_name) != "undefined")
if (w.value == "r")
ca_name.value = "<?=$write[ca_name]?>";
}
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;
}
<?
echo cheditor3('wr_content');
?>
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;
}
}
f.wr_10.value = getSubway();
f.nine10.value = f.nine12.value-f.nine09.value;
f.action = "./write_update.php";
f.submit();
}
init();
</script>
댓글 전체
추가적인 값들이 배열로 들어가는데
<input type="checkbox" name="subway" id="subway_01" value='1호선' />1호선 에서
subway 는 DB에 어디에 들어갈까요???
$nine11 = $p_nine[10]; 번하고 13,14,15 번이 비어 있는데 이곳중에 한곳으로 넣으면 될것 같습니다.
그리고 지하철 선택 같은데 왜 체크박스죠??
라디오 버튼이 맞지 않을까요?? 근처 지하철이 뭔지 체크하는 라디오 버튼이 맞지 않을까요?
<input name='subway' type="radio" value="1호선" <? if ($nine11 == '1호선') echo'checked';?>>1호선
<input name='subway' type="radio" value="2호선" <? if ($nine11 == '2호선') echo'checked';?>>2호선
다시한번 체크해보세요 ^^;
<input type="checkbox" name="subway" id="subway_01" value='1호선' />1호선 에서
subway 는 DB에 어디에 들어갈까요???
$nine11 = $p_nine[10]; 번하고 13,14,15 번이 비어 있는데 이곳중에 한곳으로 넣으면 될것 같습니다.
그리고 지하철 선택 같은데 왜 체크박스죠??
라디오 버튼이 맞지 않을까요?? 근처 지하철이 뭔지 체크하는 라디오 버튼이 맞지 않을까요?
<input name='subway' type="radio" value="1호선" <? if ($nine11 == '1호선') echo'checked';?>>1호선
<input name='subway' type="radio" value="2호선" <? if ($nine11 == '2호선') echo'checked';?>>2호선
다시한번 체크해보세요 ^^;