From 2bdee0f848eabe06aab0080d06feb38ab7be6263 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 23 Jan 2014 12:46:21 +0900 Subject: [PATCH] =?UTF-8?q?1:1=EB=AC=B8=EC=9D=98=20=ED=9C=B4=EB=8C=80?= =?UTF-8?q?=ED=8F=B0=EB=B2=88=ED=98=B8=20=EC=9E=85=EB=A0=A5=EC=97=90=20?= =?UTF-8?q?=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=9E=85=EB=A0=A5?= =?UTF-8?q?=ED=95=A0=20=EC=88=98=20=EC=9E=88=EB=8A=94=20=EB=AC=B8=EC=A0=9C?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20-=20I2sec=20=EC=A7=80=EB=AF=BC=EA=B1=B4?= =?UTF-8?q?=EB=8B=98=20=EC=A0=9C=EB=B3=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/qawrite_update.php | 3 +++ mobile/skin/qa/basic/write.skin.php | 10 +++++++++- skin/qa/basic/write.skin.php | 10 +++++++++- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/bbs/qawrite_update.php b/bbs/qawrite_update.php index 396080891..c6fde25d5 100644 --- a/bbs/qawrite_update.php +++ b/bbs/qawrite_update.php @@ -33,6 +33,9 @@ if (!empty($msg)) { alert($msg); } +if($qa_hp) + $qa_hp = preg_replace('/[^0-9\-]/', '', strip_tags($qa_hp)); + // 090710 if (substr_count($qa_content, '&#') > 50) { alert('내용에 올바르지 않은 코드가 다수 포함되어 있습니다.'); diff --git a/mobile/skin/qa/basic/write.skin.php b/mobile/skin/qa/basic/write.skin.php index c7fa1e568..afd1a6ef4 100644 --- a/mobile/skin/qa/basic/write.skin.php +++ b/mobile/skin/qa/basic/write.skin.php @@ -63,7 +63,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - class="frm_input" size="30"> + class="frm_input" size="30"> > 답변등록 SMS알림 수신 @@ -166,6 +166,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 return false; } + + var hp = f.qa_hp.value.replace(/[0-9\-]/g, ""); + if(hp.length > 0) { + alert("휴대폰번호는 숫자, - 으로만 입력해 주십시오."); + return false; + } + + document.getElementById("btn_submit").disabled = "disabled"; return true; diff --git a/skin/qa/basic/write.skin.php b/skin/qa/basic/write.skin.php index 817e8f943..e34181369 100644 --- a/skin/qa/basic/write.skin.php +++ b/skin/qa/basic/write.skin.php @@ -63,7 +63,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - class="frm_input" size="30"> + class="frm_input" size="30"> > 답변등록 SMS알림 수신 @@ -166,6 +166,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 return false; } + + var hp = f.qa_hp.value.replace(/[0-9\-]/g, ""); + if(hp.length > 0) { + alert("휴대폰번호는 숫자, - 으로만 입력해 주십시오."); + return false; + } + + document.getElementById("btn_submit").disabled = "disabled"; return true;