테스트 사이트 - 개발 중인 베타 버전입니다

모바일에서 DAUM 주소 검색을 넣고 싶은데.. 채택완료

다조아해 8년 전 조회 2,520

http://sir.kr/data/editor/1612/281793cd0e40e963a469bacca3462233_1482730813_5267.jpg">

 

PC에서 글쓰기 할때 주소 검색을 하면 나오는 화면입니다.

 

모바일에서도 이렇게 적용하고 싶은데

다른 폼들이 우선으로 보여지고 DAUM 주소 검색창이 뒤에 보이네요.

이것을 검색화면이 나오면 밑으로 밀어내고 검색화면이 나오게 할려면 어찌해야 할까요?

 

디자인을 하는 사람이라서 코딩에서는 막히네요.


http://sir.kr/data/editor/1612/281793cd0e40e963a469bacca3462233_1482730813_397.jpg">

 

<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가</STRONG></P>
<P><STRONG>// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js</STRONG></P>
<P><STRONG>// 주소입력
$wr1 = explode('|',$write['wr_1']);
$ex_zip  = $wr1[0];
$ex_addr1  = $wr1[1];
$ex_addr2  = $wr1[2];
$ex_addr3  = $wr1[3];
$ex_jibeon  = $wr1[4];</STRONG></P>
<P><STRONG>$wr6 = explode('|',$write['wr_6']);
$ex_zip1  = $wr6[0];
$ex_addr11  = $wr6[1];
$ex_addr21  = $wr6[2];
$ex_addr31  = $wr6[3];
$ex_jibeon1  = $wr6[4];
?></STRONG></P>
<P><STRONG><div class="gheight"></div>
<section id="bo_w">
    
 <div class="writebox havebtn"></STRONG></P>
<P><STRONG>  <h2 id="container_title"><?php echo $g5['title'] ?></h2></STRONG></P>
<P><STRONG>  <form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
  <input type="hidden" name="w" value="<?php echo $w ?>">
  <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
  <input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
  <input type="hidden" name="sca" value="<?php echo $sca ?>">
  <input type="hidden" name="sfl" value="<?php echo $sfl ?>">
  <input type="hidden" name="stx" value="<?php echo $stx ?>">
  <input type="hidden" name="spt" value="<?php echo $spt ?>">
  <input type="hidden" name="sst" value="<?php echo $sst ?>">
  <input type="hidden" name="sod" value="<?php echo $sod ?>">
  <input type="hidden" name="page" value="<?php echo $page ?>"></STRONG></P>
<P><STRONG> <?php if(!$w) { ?> 
    <section id="fregister_private">
        <textarea readonly><?php echo get_text($config['cf_privacy']) ?></textarea>
        <fieldset class="fregister_agree">
            <input type="checkbox" name="agree2" value="1" id="agree21">
            <label for="agree21">개인정보처리방침안내의 내용에 동의합니다.<strong class="sound_only">필수</strong></label>
        </fieldset>
    </section>
    <?php } ?>
  
  <?php
  $option = '';
  $option_hidden = '';
  if ($is_notice || $is_html || $is_secret || $is_mail) {
   $option = '';
   if ($is_notice) {
    $option .= PHP_EOL.'<input type="checkbox" id="notice" name="notice" value="1" '.$notice_checked.'>'.PHP_EOL.'<label for="notice">공지</label>';
   }</STRONG></P>
<P><STRONG>   if ($is_html) {
    if ($is_dhtml_editor) {
     $option_hidden .= '<input type="hidden" value="html1" name="html">';
    } else {
     $option .= PHP_EOL.'<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'.PHP_EOL.'<label for="html">html</label>';
    }
   }</STRONG></P>
<P><STRONG>   if ($is_secret) {
    if ($is_admin || $is_secret==1) {
     $option .= PHP_EOL.'<input type="checkbox" id="secret" name="secret" value="secret" '.$secret_checked.'>'.PHP_EOL.'<label for="secret">비밀글</label>';
    } else {
     $option_hidden .= '<input type="hidden" name="secret" value="secret">';
    }
   }</STRONG></P>
<P><STRONG>   if ($is_mail) {
    $option .= PHP_EOL.'<input type="checkbox" id="mail" name="mail" value="mail" '.$recv_email_checked.'>'.PHP_EOL.'<label for="mail">답변메일받기</label>';
   }
  }</STRONG></P>
<P><STRONG>  echo $option_hidden;
  ?></STRONG></P>
<P><STRONG>  <div class="inputbox">
  <fieldset>
   <legend><?php echo $g5['title'] ?></legend>
   
   <?php if ($is_name) { ?>
   <p class="inputnt">
    <strong class="sound_only"><label for="wr_name">이름</label></strong>
    <input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required itemname="이름" placeholder="이름" class="frm_input required" maxlength="20">
   </p>
   <?php } ?></STRONG></P>
<P><STRONG>   <?php if ($is_password) { ?>
   <p class="inputnt">
    <strong class="sound_only"><label for="wr_password">패스워드</label></strong>
    <input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> itemname="패스워드" placeholder="패스워드" class="frm_input <?php echo $password_required ?>" maxlength="20">
   </p>
   <?php } ?></STRONG></P>
<P><STRONG><!--  
   <?php if ($is_email) { ?>
   <p class="inputnt">
    <strong class="sound_only"><label for="wr_email">이메일</label></strong>
    <input type="email" name="wr_email" value="<?php echo $email ?>" id="wr_email" required itemname="이메일" placeholder="이메일" class="frm_input email required" maxlength="100">
   </p>
   <?php } ?></STRONG></P>
<P><STRONG>   <?php if ($is_homepage) { ?>
   <p class="inputnt">
    <strong class="sound_only"><label for="wr_homepage">홈페이지주소</label></strong>
    <input type="url" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" itemname="홈페이지주소" placeholder="홈페이지주소" class="frm_input">
   </p>
   <?php } ?>
--></STRONG></P>
<P><STRONG>   <p class="inputnt">
    <strong class="sound_only">진행현황</strong>
                <select name="wr_5" class="frm_input00 required" placeholder="진행 현황">
              <option value="상담 진행중" <?php if($wr_5 == "상담 진행중") echo "selected=\"selected\""; ?>>상담 진행중</option>
        <?php if ($is_admin) { ?>
              <option value="상담 완료" <?php if($wr_5 == "상담 완료") echo "selected=\"selected\""; ?>>상담 완료</option>
        <?php } ?>
            </select>
   </p></STRONG></P>
<P><STRONG>   <p class="inputnt">
    <strong class="sound_only">이사물량</strong>
                <select name="wr_2" class="frm_input00 required" placeholder="이사물량">
              <option value="">이사물량을 선택하세요</option>
              <option value="1톤 트럭" <?php if($wr_2 == "1톤 트럭") echo "selected=\"selected\""; ?>>1톤 트럭</option>
              <option value="1톤 트럭 1.5대" <?php if($wr_2 == "1톤 트럭 1.5대") echo "selected=\"selected\""; ?>>1톤 트럭 1.5대</option>
              <option value="1톤 트럭 2대 이상" <?php if($wr_2 == "1톤 트럭 2대 이상") echo "selected=\"selected\""; ?>>1톤 트럭 2대 이상</option>
            </select>
   </p></STRONG></P><STRONG>
<P>
   <p class="inputnt">
    <strong class="sound_only"><label for="wr_4">핸드폰 번호</label></strong>
    <input type="text" name="wr_4" value="<?php echo $wr_4 ?>" id="wr_4" required itemname="핸드폰 번호" placeholder="핸드폰 번호(예:01078954512) - 없이 적어주세요" class="frm_input required" maxlength="11">
   </p></P>
<P>   <p class="inputnt">
    <strong class="sound_only"><label for="wr_3">이사 일시</label></strong>
    <input type="text" name="wr_3" value="<?php echo $wr_3 ?>" id="wr_3" required itemname="이사 일시" placeholder="이사 일시 (예: 1월 25일 8시)" class="frm_input required" maxlength="50">
   </p></P>
<P>   <p class="inputnt">
    <strong class="sound_only"><label for="wr_1">출발지</label></strong>
            <label for="ex_zip" class="sound_only">우편번호</label>
        <input type="text" name="ex_zip" value="<?php echo $ex_zip; ?>" id="ex_zip"  class="frm_input select1 mb-10" size="6" maxlength="6" style="height:35px">
        <button type="button" class="btn_frmline " onclick="win_zip('fwrite', 'ex_zip', 'ex_addr1', 'ex_addr2', 'ex_addr3', 'ex_jibeon');">주소 검색</button>

        <input type="text" name="ex_addr1" value="<?php echo $ex_addr1; ?>" id="ex_addr1" class="frm_input frm_address select1 mb-10" size="50" style="height:35px">
        <label for="ex_addr1">기본주소</label>

        <input type="text" name="ex_addr2" value="<?php echo $ex_addr2; ?>" id="ex_addr2" class="frm_input frm_address select1 mb-10" size="50" style="height:35px">
        <label for="ex_addr2">상세주소</label>
        

        <input type="text" name="ex_addr3" value="<?php echo $ex_addr3; ?>" id="ex_addr3" class="frm_input frm_address select1" size="50" readonly="readonly" style="height:35px">
        <label for="ex_addr3">참고항목</label>
        <input type="hidden" name="ex_jibeon" value="<?php echo $ex_jibeon; ?>">
   </p></P>
<P>   <p class="inputnt">
    <strong class="sound_only"><label for="wr_6">출발지</label></strong>
    <input type="text" name="wr_6" value="<?php echo $wr_6 ?>" id="wr_6" required itemname="출발지" placeholder="출발지 주소를 적어주세요" class="frm_input required" maxlength="50">
   </p></P>
<P>   <p class="inputnt">
    <strong class="sound_only">승강기 유무</strong>
                <select name="wr_7" class="frm_input00 required" placeholder="승강기 유무">
              <option value="">승강기 유무를 선택하세요</option>
              <option value="승강기 유" <?php if($wr_7 == "승강기 유") echo "selected=\"selected\""; ?>>승강기 유</option>
              <option value="승강기 무" <?php if($wr_7 == "승강기 무") echo "selected=\"selected\""; ?>>승강기 무</option>
            </select>
   </p></P>
<P>   <p class="inputnt">
    <strong class="sound_only">사다리차</strong>
                <select name="wr_8" class="frm_input00 required" placeholder="사다리차">
              <option value="">사다리차를 선택하세요</option>
              <option value="출발지 사다리" <?php if($wr_8 == "출발지 사다리") echo "selected=\"selected\""; ?>>출발지 사다리</option>
              <option value="도착지 사다리" <?php if($wr_8 == "도착지 사다리") echo "selected=\"selected\""; ?>>도착지 사다리</option>
              <option value="양쪽 다 사다리" <?php if($wr_8 == "양쪽 다 사다리") echo "selected=\"selected\""; ?>>양쪽 다 사다리</option>
            </select>
   </p>
<!--  
   <?php for ($i=1; $is_link && $i<=G5_LINK_COUNT; $i++) { ?>
   <p class="inputnt">
    <strong class="sound_only"><label for="wr_link<?php echo $i ?>">참조사이트 #<?php echo $i ?></label></strong>
    <input type="url" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" placeholder="참조사이트 #<?php echo $i ?>" class="frm_input wr_link">
   </p>
   <?php } ?>
-->
   <?php if ($option) { ?>
   <p class="inputnt">
    <?php echo $option ?>
   </p>
   <?php } ?></P>
<P>   <?php if ($is_category) { ?>
   <p class="inputnt">
    <strong class="sound_only"><label for="ca_name">분류선택</label></strong>
    <select class="required" id="ca_name" name="ca_name" required>
     <option value="">선택하세요</option>
     <?php echo $category_option ?>
    </select>
   </p>
   <?php } ?></P>
<P>   <p class="inputnt">
    <strong class="sound_only"><label for="wr_subject">제목필수</label></strong>
    <input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" placeholder="제목" required class="frm_input required">
   </p></P>
<P>   <p class="inputarea">
    <strong class="sound_only"><label for="wr_subject">내용필수</label></strong>
    <?php if($write_min || $write_max) { ?>
    <!-- 최소/최대 글자 수 사용 시 -->
    <p id="char_count_desc">이 게시판은 최소 <strong><?php echo $write_min; ?></strong>글자 이상, 최대 <strong><?php echo $write_max; ?></strong>글자 이하까지 글을 쓰실 수 있습니다.</p>
    <?php } ?>
    <?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
    <?php if($write_min || $write_max) { ?>
    <!-- 최소/최대 글자 수 사용 시 -->
    <div id="char_count_wrap"><span id="char_count"></span>글자</div>
    <?php } ?>
   </p></P>
<P>   <?php for ($i=1; $is_link && $i<=G5_LINK_COUNT; $i++) { ?>
   <p class="inputnt">
    <strong class="sound_only"><label for="wr_link<?php echo $i ?>">링크 #<?php echo $i ?></label></strong>
    <input type="url" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" placeholder="링크 #<?php echo $i ?>" class="frm_input wr_link">
   </p>
   <?php } ?></P>
<P>   <?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
    <p class="inputnt">
     <strong class="sound_only">파일 #<?php echo $i+1 ?></strong>
     <input type="file" name="bf_file[]" title="파일첨부 <?php echo $i+1 ?> :  용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
    </p>
    
    <?php if ($is_file_content) { ?>
    <p class="inputnt">
     <input type="text" name="bf_content[]" value="<?php echo ($w == 'u') ? $file[$i]['bf_content'] : ''; ?>" placeholder="파일 설명을 입력해주세요." class="frm_file frm_input">
    <p>
    <?php } ?>
    <?php if($w == 'u' && $file[$i]['file']) { ?>
    <p class="inputnt">
     <input type="checkbox" id="bf_file_del<?php echo $i ?>" name="bf_file_del[<?php echo $i; ?>]" value="1"> <label for="bf_file_del<?php echo $i ?>"><?php echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
    </p>
    <?php } ?>
   <?php } ?></P>
<P>   <?php if ($is_guest) { //자동등록방지 ?>
    <strong class="sound_only">자동등록방지</strong>
    <?php echo $captcha_html ?>
   <?php } ?></P>
<P>  </fieldset>
  </div></P>
<P>  <div class="btm-btns">
   <div class="lbtns" style="width: 50%;"><button type="submit" id="btn_submit"><span class="sbmt">작성완료</span></button></div>
   <div class="lbtns" style="width: 50%;"><button type="button" id="btn_list" onclick="location.href='./board.php?bo_table=<?=$bo_table?>&<?php echo $qstr; ?>'"><span>목록으로</span></button></div>
  </div></P>
<P>  </form>
 
 </div></P>
<P></section></P>
<P><script>
<?php if($write_min || $write_max) { ?>
// 글자수 제한
var char_min = parseInt(<?php echo $write_min; ?>); // 최소
var char_max = parseInt(<?php echo $write_max; ?>); // 최대
check_byte("wr_content", "char_count");</P>
<P>$(function() {
    $("#wr_content").on("keyup", function() {
        check_byte("wr_content", "char_count");
    });
});</P>
<P><?php } ?>
function html_auto_br(obj)
{
    if (obj.checked) {
        result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을
태그로 변환하는 기능입니다.");
        if (result)
            obj.value = "html2";
        else
            obj.value = "html1";
    }
    else
        obj.value = "";
}</P>
<P>function fwrite_submit(f)
{
    <?php echo get_editor_js('wr_content', $is_dhtml_editor); ?>
    <?php echo chk_editor_js('wr_content', $is_dhtml_editor); ?></P>
<P>    var subject = "";
    var content = "";
    $.ajax({
        url: g5_bbs_url+"/ajax.filter.php",
        type: "POST",
        data: {
            "subject": f.wr_subject.value,
            "content": f.wr_content.value
        },
        dataType: "json",
        async: false,
        cache: false,
        success: function(data, textStatus) {
            subject = data.subject;
            content = data.content;
        }
    });</P>
<P>    if (!f.agree2.checked) {
         alert("개인정보처리방침안내의 내용에 동의하셔야 제작신청 하실 수 있습니다.");
         f.agree2.focus();
         return false;
    }</P>
<P>    if (subject) {
        alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
        f.wr_subject.focus();
        return false;
    }</P>
<P>    if (content) {
        alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
        if (typeof(ed_wr_content) != "undefined")
            ed_wr_content.returnFalse();
        else
            f.wr_content.focus();
        return false;
    }</P>
<P>    if (document.getElementById("char_count")) {
        if (char_min > 0 || char_max > 0) {
            var cnt = parseInt(check_byte("wr_content", "char_count"));
            if (char_min > 0 && char_min > cnt) {
                alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
                return false;
            }
            else if (char_max > 0 && char_max < cnt) {
                alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
                return false;
            }
        }
    }</P>
<P>    <?php if ($is_guest) { echo chk_captcha_js(); } ?></P>
<P>    document.getElementById("btn_submit").disabled = "disabled";</P>
<P>    return true;
}
</script>



댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
p
8년 전

현재 공개된 소스를 보면 게시판의 레이아웃에 사용된 소스가 그누보드의 기본 basic 소스와는 많이 달라 보입니다.

현재 게시판 관련해서 사용된 class에 사용된 css부분들을 확인해 보셔야 문제가 해결 될수 있을 것 같네요. 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인