$mdatas = Array() ;
for ($i=0; $row=sql_fetch_array($result); $i++) {
$fvs=$row[icode];
$mdatas[$fvs][icode]=trim($row[icode]);
$mdatas[$fvs][iname]=trim(stripslashes($row[iname]));
$mdatas[$fvs][size]=trim($row[size]);
$mdatas[$fvs][size2]=trim($row[size2]);
$mdatas[$fvs][editor]=trim($row[editor]);
$mdatas[$fvs][bigo]=trim(stripslashes($row[bigo]));
$mdatas[$fvs][type]=$row[type];
$mdatas[$fvs][1]=trim(stripslashes($row[it1]));
$mdatas[$fvs][2]=trim(stripslashes($row[it2]));
$mdatas[$fvs][3]=trim(stripslashes($row[it3]));
$mdatas[$fvs][4]=trim(stripslashes($row[it4]));
$mdatas[$fvs][5]=trim(stripslashes($row[it5]));
$mdatas[$fvs][6]=trim(stripslashes($row[it6]));
$mdatas[$fvs][7]=trim(stripslashes($row[it7]));
$mdatas[$fvs][8]=trim(stripslashes($row[it8]));
$mdatas[$fvs][9]=trim(stripslashes($row[it9]));
$mdatas[$fvs][10]=trim(stripslashes($row[it10]));
$mdatas[$fvs][11]=trim(stripslashes($row[it11]));
$mdatas[$fvs][12]=trim(stripslashes($row[it12]));
$mdatas[$fvs][13]=trim(stripslashes($row[it13]));
$mdatas[$fvs][14]=trim(stripslashes($row[it14]));
$mdatas[$fvs][15]=trim(stripslashes($row[it15]));
$mdatas[$fvs][16]=trim(stripslashes($row[it16]));
$mdatas[$fvs][17]=trim(stripslashes($row[it17]));
$mdatas[$fvs][18]=trim(stripslashes($row[it18]));
$mdatas[$fvs][19]=trim(stripslashes($row[it19]));
$mdatas[$fvs][20]=trim(stripslashes($row[it20]));
$mdatas[$fvs][21]=trim(stripslashes($row[it21]));
$mdatas[$fvs][22]=trim(stripslashes($row[it22]));
$mdatas[$fvs][23]=trim(stripslashes($row[it23]));
$mdatas[$fvs][24]=trim(stripslashes($row[it24]));
$mdatas[$fvs][25]=trim(stripslashes($row[it25]));
$mdatas[$fvs][26]=trim(stripslashes($row[it26]));
$mdatas[$fvs][27]=trim(stripslashes($row[it27]));
$mdatas[$fvs][28]=trim(stripslashes($row[it28]));
$mdatas[$fvs][29]=trim(stripslashes($row[it29]));
$mdatas[$fvs][30]=trim(stripslashes($row[it30]));
$Arrays=DArray($fvs,$mdatas);
if (($row[type] == '21' || $row[type] == '22') && $csconfig[$fvs]!='0')
add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
switch($row[type]){
case '0': //영문이름
if($csconfig[$fvs]!='0'){
if($csconfig[$fvs]=='2') { $mdatas[$fvs][iname] .= "
*"; $mdatas[$fvs]['class']=" required";}
echo '
';
} break;
case '1': //셀렉트박스
if($csconfig[$fvs]!='0'){
if($csconfig[$fvs]=='2') { $mdatas[$fvs][iname] .= "
*"; $mdatas[$fvs]['class']=" required";}
echo '
'.single_selectbox($fvs,$Arrays,$Arrays,$data[$fvs],$mdatas[$fvs]['class'],1).' '.$mdatas[$fvs][bigo].'
';
} break;
case '2': //텍스트
if($csconfig[$fvs]!='0'){
if($csconfig[$fvs]=='2') { $mdatas[$fvs][iname] .= "
*"; $mdatas[$fvs]['class']=" required";}
echo '
';
} break;
case '3': //라디오
if($csconfig[$fvs]!='0'){
$spaces='';
if($mdatas[$fvs][size]==100){ $spaces='
'; }
else{ for($j=0; $j<$mdatas[$fvs][size]; $j++) { $spaces.=' ';} }
echo '
'.single_radiobox($fvs,$Arrays,$Arrays,$data[$fvs],$spaces).' '.$mdatas[$fvs][bigo].'
';
if($csconfig[$fvs]=='2') {
$javastr.="
kk=0;
for ( ii=0; ii < ".sizeof($Arrays)." ; ii++ ){
if (document.fwrite.".$fvs."[ii].checked) {kk=1; ii=".sizeof($Arrays)."; }
}
if(kk<1){ alert('".$mdatas[$fvs][iname]."을(를) 선택하여 주십시오.'); document.fwrite.".$fvs."[0].focus(); return false ; }
";
}
} break;
case '4'://체크박스
if($csconfig[$fvs]!='0'){
$spaces='';
if($mdatas[$fvs][size]==100){ $spaces='
'; }
else{ for($j=0; $j<$mdatas[$fvs][size]; $j++) { $spaces.=' ';} }
echo '
'.single_checkbox($fvs,$Arrays,$Arrays,$data[$fvs],$spaces).' '.$mdatas[$fvs][bigo].'
';
if($csconfig[$fvs]=='2') {
$javastr.="
kk=0;
for ( ii=0; ii < ".sizeof($Arrays)." ; ii++ ){
if (document.fwrite.".$fvs."[ii].checked) {kk=1; ii=".sizeof($Arrays)."; }
}
if(kk<1){ alert('".$mdatas[$fvs][iname]."을(를) 선택하여 주십시오.'); document.fwrite.".$fvs."[0].focus(); return false ; }
";
}
} break;
case '5': //긴분장
if($csconfig[$fvs]!='0'){
if($csconfig[$fvs]=='2') { $mdatas[$fvs][iname] .= "
*"; $mdatas[$fvs]['class']=" required";}
echo '
';
if($mdatas[$fvs][editor]=='1'){
echo editor_html($fvs, get_text($data[$fvs], 0));
}else{
echo '';
}
echo '
';
if($mdatas[$fvs][editor]=='1') $javastr .= get_editor_js($fvs);
} break;
case '21': //주소
if($csconfig[$fvs]!='0'){
} break;
case '22': //직장주소
if($csconfig[$fvs]!='0'){
if($csconfig[$fvs]=='2') { $mdatas[$fvs][iname] .= "
*"; $mdatas[$fvs]['class']=" required";}
echo '
'.$mdatas[$fvs][bigo].'
';
} break;
case '31': // 전화번호
if($csconfig[$fvs]!='0'){
if($csconfig[$fvs]=='2') { $mdatas[$fvs][iname] .= "
*"; $mdatas[$fvs]['class']=" required";}
echo '
- - '.$mdatas[$fvs][bigo].'
';
} break;
case '32': // 직장전화번호
if($csconfig[$fvs]!='0'){
if($csconfig[$fvs]=='2') { $mdatas[$fvs][iname] .= "
*"; $mdatas[$fvs]['class']=" required";}
echo '
- - '.$mdatas[$fvs][bigo].'
';
} break;
case '33': // 휴대폰번호
if($csconfig[$fvs]!='0'){
if($csconfig[$fvs]=='2') { $mdatas[$fvs][iname] .= "
*"; $mdatas[$fvs]['class']=" required";}
echo '
- - '.$mdatas[$fvs][bigo].'
';
} break;
case '41': //생년월일
if($csconfig[$fvs]!='0'){
if($csconfig[$fvs]=='2') { $mdatas[$fvs][iname] .= "
*"; $mdatas[$fvs]['class']=" required";}
$ss=0;for($yy=1900; $yy<=2013; $yy++){$Ayears[$ss]=$yy; $ss++;}
$ss=0;for($yy=1; $yy<=12; $yy++){$Amonths[$ss]=$yy; $ss++;}
$ss=0;for($yy=1; $yy<=31; $yy++){$Adays[$ss]=$yy; $ss++;}
echo '
'.single_selectbox("year",$Ayears,$Ayears,$data[year],$mdatas[$fvs]['class'],0).'년 '.single_selectbox("month",$Amonths,$Amonths,$data[month],$mdatas[$fvs]['class'],0).'월 '.single_selectbox("day",$Adays,$Adays,$data[day],$mdatas[$fvs]['class'],0).'일 '.$mdatas[$fvs][bigo].'
';
} break;
case '50'://추천인
if($csconfig[$fvs]!='0'){
if($csconfig[$fvs]=='2') { $mdatas[$fvs][iname] .= "
*"; $mdatas[$fvs]['class']=" required";}
echo '
';
} break;
case '60': //메일수신여부
if($csconfig[$fvs]!='0'){
if($csconfig[$fvs]=='2') { $mdatas[$fvs][iname] .= "
*"; $mdatas[$fvs]['class']=" required";}
if($data[$fvs]=='1'){ $emailcheck='checked'; }
echo '
'.$mdatas[$fvs][bigo].'
';
} break;
case '70': //성별
if($csconfig[$fvs]!='0'){
if($data[$fvs]=='남' || !$data[$fvs]){ $mancheck='checked'; }else{ $womancheck='checked'; }
echo '
남
여
';
} break;
case '80': //사업자번호
if($csconfig[$fvs]!='0'){
if($csconfig[$fvs]=='2') { $mdatas[$fvs][iname] .= "
*"; $mdatas[$fvs]['class']=" required";}
echo '
';
} break;
}// end switch
unset($needstr);
}
?>
if(!$is_dhtml_editor){?>
파일 1
파일 2