뭐가 문제인지 모르겠습니다. 채택완료
안녕하십니까 고수님들께 조심스럽게 도움을 받아보고자 이렇게 글을 쓰게되었습니다.
텍스트 입력하는 부분에서 00가0000 라고 입력하면 정상적으로 출력되는데.
숫자 1234 혹은 123 을 입력하면 출력화면에서 글자가 엄청 크게 떠서 나머지 테이블이 전체적으로 깨지게 됩니다..
아래는 입력 페이지 하는 소스입니다. ㅠ.ㅠ 뭐가 문제인지 모르겠씁니다.
한글로는 잘 써지는데 왜 숫자로만 쓰면 테이블이 깨지는지 모르겠습니다.
=====================================
=====================================
아래는 전체소스입니다.
=============================================================
var page,wid,hit,nam;
function win(page,nam,wid,hit)
{
var windo = eval('window.open("'+page+'","'+nam+'","status=no,toolbar=no,resizable=no,scrollbars=no,menubar=no,width='+wid+',height='+hit+',top=100,left=350")');
}
ondragstart = "return false"
onselectstart = "return false">
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($w == "u") {
$memo_body_1 = explode("|",substr($write[memo_1], 1));
$memo_body_2 = explode("|",substr($write[memo_2], 1));
$memo_body_3 = explode("|",substr($write[memo_3], 1));
}
//카테고리 ca_name
$arr = explode("|", $board[bo_category_list]); // 구분자가 | 로 되어 있음
$str = "";
for ($i=0; $i if (trim($arr[$i])) $categorys .= "\n"; } $arrayf = explode("|",$board[bo_category_list]); $arrays1 = explode("|",$board[bo_10]); if($w=="u"){ for($i=0; $i if($ca_name==$arrayf[$i]){ $tu = $i+1; } } } function get_bo_n_option($bo_n='') { global $g4, $board; $arr = explode("|", $board[$bo_n]); // 구분자가 | 로 되어 있음 $str = ""; for ($i=0; $i if (trim($arr[$i])) $str .= "\n"; return $str; } // 2단계 분류 사용 if ($is_category = true) { $bo_6_option = get_bo_n_option('bo_6'); // SELECT OPTION 태그로 넘겨받음 $bo_7_option = get_bo_n_option('bo_7'); // SELECT OPTION 태그로 넘겨받음 $bo_8_option = get_bo_n_option('bo_8'); // SELECT OPTION 태그로 넘겨받음 $bo_9_option = get_bo_n_option('bo_9'); // SELECT OPTION 태그로 넘겨받음 $bo_10_option = get_bo_n_option('bo_10'); // SELECT OPTION 태그로 넘겨받음 } if ($is_dhtml_editor) { include_once("$g4[path]/lib/cheditor.lib.php"); echo ""; echo cheditor1('wr_content', $content); } ?> function addRow() { var oRow = dyntbl1.insertRow(); oRow.onmouseover=function(){dyntbl1.clickedRowIndex=this.rowIndex}; var oCell1 = oRow.insertCell(); var oCell2 = oRow.insertCell(); oCell1.innerHTML = ""; oCell2.innerHTML = ""; document.recalc(); } function delRow() { dyntbl1.deleteRow(dyntbl1.clickedRowIndex); } function delRow_php(r) { var i=r.parentNode.parentNode.rowIndex; document.getElementById('dyntbl2').deleteRow(i); } function fixscreen() { var buffer = document.all.item(0).outerHTML; document.open("text/html", "replace"); document.write(buffer); document.close(); } function addCol() { var vCell,tmp; for (var i=0; i tmp=dyntbl1.rows[i].cells[dyntbl1.rows[i].cells.length-1].cloneNode(true); dyntbl1.rows[i].deleteCell(); vCell=dyntbl1.rows[i].insertCell(); vCell.innerHTML=i==0?"":" "; vCell=dyntbl1.rows[i].insertCell(); vCell.innerHTML=tmp.innerHTML; } } function delCol(idx) { for (var i=0; i<=dyntbl1.rows.length; i++) { dyntbl1.rows[i].cells[idx].removeNode(); } } // 글자수 제한 var char_min = parseInt(=$write_min?>); // 최소 var char_max = parseInt(=$write_max?>); // 최대 // 이메일 자동입력 .form_title{font-family:돋움;font-weight:bold;font-size:12px;color:#0042ff;pading-left:10px;} .form_help{font-family:돋움;font-size:12px;color:#ff6600;} .write_head { text-align:right; color:#8492A0; } .field { border:1px solid #ccc; } "> "> "> "> "> "> "> "> "> (*) 는 필수입력 사항 입니다. (000, 000, 000 형태로 입력해주세요) if ($write[wr_7]){ echo ""; } else { echo ""; } echo "$bo_7_option"; ?> if ($write[wr_8]){ echo ""; } else { echo ""; } echo "$bo_8_option"; ?> if ($write[wr_10]){ echo ""; } else { echo ""; } echo "$bo_9_option"; ?> - - 방문정보 function day(){ var today=new Date(); var h=today.getHours(); var m=today.getMinutes(); document.getElementById("wr_44").value = h+":"+m } - function day2(){ var today=new Date(); var h=today.getHours(); var m=today.getMinutes(); document.getElementById("wr_45").value = h+":"+m } - function day3(){ var today=new Date(); var h=today.getHours(); var m=today.getMinutes(); document.getElementById("wr_44").value ="미방문" document.getElementById("wr_45").value ="미방문" }
function imageClick() { var url = "=$g4[bbs_path]?>/kcaptcha_session.php"; var para = ""; var myAjax = new Ajax.Request( url, { method: 'post', asynchronous: true, parameters: para, onComplete: imageClickResult }); } function imageClickResult(req) { var result = req.responseText; var img = document.createElement("IMG"); img.setAttribute("src", "=$g4[bbs_path]?>/kcaptcha_image.php?t=" + (new Date).getTime()); document.getElementById('kcaptcha_image').src = img.getAttribute('src'); md5_norobot_key = result; } if (!$is_member) { ?>Event.observe(window, "load", imageClick); } ?> // 관리자라면 분류 선택에 '공지' 옵션을 추가함 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") ca_name.value = "=$write[ca_name]?>"; } function html_auto_br(obj) { if (obj.checked) { result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을
태그로 변환하는 기능입니다."); 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(); } if ($is_dhtml_editor) {?>}?> window.onload=function() { drawFont(); } 를 로 고쳐보세요. font-size 에 숫자가 들어가니 글자가 커지는 거 같네요. 일단은 질문하기전에 천천히 한번 더 살펴 보시는게 좋을 것 같네요.. 글자 크기 문제라면 해당 부분이 출력되는부분의 css 를 한번 살펴 보시길 바랍니다.
댓글을 작성하려면 로그인이 필요합니다.
정말 감사합니다. 개발자분들꼐서 올려주신 소스를 가지고 이해가 안된상태에서 맨땅에 해딩하듯이 하나하나씩 바꿔보면서 하고 있다보니, 뭔가 하나만 꼬인다고 그러면 정신을 못 차리겠습니다. 정말 감사합니다. 잘 해결되었습니다.
댓글을 작성하려면 로그인이 필요합니다.
출력되는 부분입니다 ㅠ.ㅠ var page,wid,hit,nam; function win(page,nam,wid,hit) { var windo = eval('window.open("'+page+'","'+nam+'","status=no,toolbar=no,resizable=no,scrollbars=no,menubar=no,width='+wid+',height='+hit+',top=100,left=350")'); } if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 $colspan = 5; //if ($is_category) $colspan++; if ($is_checkbox) $colspan++; if ($is_good) $colspan++; if ($is_nogood) $colspan++; include_once "$board_skin_path/skin.exe.php"; function get_bo_n_option($bo_n='') { global $g4, $board; $arr = explode("|", $board[$bo_n]); // 구분자가 | 로 되어 있음 $str = ""; for ($i=0; $i if (trim($arr[$i])) $str .= "\n"; return $str; } // 카테고리 분할 if ($is_category = true) { $bo_6_option = get_bo_n_option('bo_6'); // SELECT OPTION 태그로 넘겨받음 $bo_7_option = get_bo_n_option('bo_7'); // SELECT OPTION 태그로 넘겨받음 $bo_8_option = get_bo_n_option('bo_8'); // SELECT OPTION 태그로 넘겨받음 $bo_9_option = get_bo_n_option('bo_9'); // SELECT OPTION 태그로 넘겨받음 $bo_10_option = get_bo_n_option('bo_10'); // SELECT OPTION 태그로 넘겨받음 } // 이미지 보이기 전체 보이기는 0 $all_view = 0; // 미리보기 이미지크기 $img_w = 80; $img_h = 60; // 넓이로 맞췄을때 높이의 중간지점에서 80%로 복구시킨다. $Percent = 80; ?> a.1:link, a.1:visited, a.1:active { font-size:12px; text-decoration:none; color:#000000; } a.1:hover { font-size:12px; text-decoration:none; } a.2:link, a.2:visited, a.2:active { font-size:12px; text-decoration:none; color:#000000; } a.2:hover { font-size:12px; text-decoration:none; } a.3:link, a.3:visited, a.3:active { font-size:12px; text-decoration:none; color:#000000; } a.3:hover { font-size:12px; text-decoration:none; } function fwrite_check(f) { var s = ""; if (typeof(f.wr_subject) != 'undefined') { if (f.wr_subject.value == '') { f.wr_subject.focus(); return; } } f.action = "./write_update.php"; f.submit(); } var v = document.fwrite; function sendit() { v.w.value = ""; v.wr_id.value = ""; if(!v.wr_content.value) v.wr_content.value = "_"; fwrite_check(v) } function FocusColor(This) { This.style.backgroundColor = "#FFF4DA"; } function BlurColor(This) { This.style.backgroundColor = "#FFFFFF";} //=====한영 체크 로직 끝============= function text_check(text,total){ // text : 문자 필드명 , total : 총 문자길이 var obj = eval("document.forms[0]."+text) var len = obj.value.length; var count = 0; var one_ch=""; var total2 = 0; for (i = 0; i < len ; i++){ one_ch = obj.value.charAt(i); //한문자만 추출 if (escape(one_ch).length > 4) { count = count + 2; //한글 }else { count = count + 1; //영문 } } total2 = Math.floor(total/2); if (count > total) { alert("입력하신 내용은 한글 "+total2+", 영문 "+total+"자까지 쓰실 수 있습니다.\n\n문자 수를 확인하여 주시기 바랍니다."); obj.value = obj.value.substring(0,total2); obj.focus(); return false; } } '> '> '> for ($i=0; $i echo "ffe398"; } else if ($list[$i]['ca_name'] == 'B') { echo "ffeebf"; } else if ($list[$i]['ca_name'] == 'C') { echo "fff7e1"; } else if ($list[$i]['ca_name'] == 'D') { echo "fffdf9"; } else if ($list[$i]['ca_name'] == '') { echo "ffffff"; } ?> onmouseover=this.style.backgroundColor='#DCF7FF' onmouseout=this.style.backgroundColor=''> echo $nobr_begin; echo $list[$i][reply]; echo $style = ""; if ($list[$i][is_notice]) $style = " style='font-weight:bold;'"; // echo $list[$i][subject]; echo "{$list[$i][subject]}"; //ssh 태그효과 if ($list[$i][wr_nogood]==-1) echo "비승인"; //ssh // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; } // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; } //echo " " . $list[$i][icon_new]; //echo " " . $list[$i][icon_file]; //echo " " . $list[$i][icon_link]; //echo " " . $list[$i][icon_hot]; //echo " " . $list[$i][icon_secret]; echo $nobr_end; ?> if ($list[$i][comment_cnt]) echo " {$list[$i][comment_cnt]}"; ?> }?> if (count($list) == 0) { echo " if ('=$sca?>') document.fcategory.sca.value = '=$sca?>'; if ('=$wr_7?>') document.fcategory.wr_7.value = '=$wr_7?>'; if ('=$wr_8?>') document.fcategory.wr_8.value = '=$wr_8?>'; if ('=$wr_10?>') document.fcategory.wr_10.value = '=$wr_10?>'; if ('=$wr_29?>') document.fcategory.wr_29.value = '=$wr_29?>'; if ('=$stx?>') { document.fsearch.sfl.value = '=$sfl?>'; document.fsearch.sop.value = '=$sop?>'; } if ($is_checkbox) { ?> function all_checked(sw) { var f = document.fboardlist; for (var i=0; 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 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=500, height=550, scrollbars=1"); f.sw.value = sw; f.target = "move"; f.action = "./move.php"; f.submit(); } } ?>
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.공장선택 (*) 방문장소 (*) 방문자명 (*) 방문날짜 (*) 핸드폰 (*) 회사전화 이메일 @ 소속회사명칭 (*) 생년월일 (YYYY-MM-DD 형태로 입력해주세요) 차량번호 (00가0000 형태로 입력해주세요) 노트북 반입여부 (*) 노트북 사용목적 부 서 (*) 이 름 (*) 직통전화 (*) 핸드폰
답변
4개
</p><p>echo "<span style='font-family:{$list[$i][wr_1]};color:{$list[$i][wr_2]};font-size:{$list[$i][wr_3]};'>{$list[$i][subject]}</span>"; //ssh 태그효과</p><p></p><p>echo "<span>{$list[$i][subject]}</span>"; //ssh 태그효과</p><p>![]()
![]()
공장 ![]()
방문객 이름 ![]()
방문날짜 ![]()
소속회사명칭 ![]()
노트북 반입 ![]()
차량번호 ![]()
방문부서 ![]()
방문자 ![]()
직통전화 ![]()
출입시간 ![]()
복귀시간 ![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
"; } ?>게시물이 없습니다.



