빠른상담 스킨 적용 방법 문의드립니다.ㅠㅠ

빠른상담 스킨 적용 방법 문의드립니다.ㅠㅠ

QA

빠른상담 스킨 적용 방법 문의드립니다.ㅠㅠ

본문

스킨

https://sir.kr/g5_skin/25290?sfl=wr_subject%7C%7Cwr_content&stx=%EB%B9%A0%EB%A5%B8%EC%83%81%EB%8B%B4

 

안녕하세요 선생님들..

퍼블리셔인데 개발자가 없어서 php까지 손대고 있습니다 ㅠ

상기 링크의 빠른상담 스킨을 적용하고 싶은데 쉽지가 않네요 ㅠㅠ

root\theme\coinbus_theme\skin 

에 압축풀어서 online 폴더를 그대로 넣었구요.

<? include_once("customer1.php"); ?>

main.php  파일에 위와 같이 인클루드 넣었습니다.

30854458_1656300570.9226.png

작업중인 사이트 링크 

http://xn--hk3b25i5re6wj.com/

 

메인 화면에 들어갔지만 위와 같은 오류가 떳습니다.ㅠㅠ

customer.php 의 소스는 다음과 같습니다.

87번째 줄에 무슨 오류인지 알수가없습니다. ㅠ

선생님들 많은 도움 부탁드립니다 ㅠㅠ

 

customer.php 

<?

$g5_path = ".."; // 그누보드가 있는 상대경로를 적어줌

?>

<script language="javascript">

var char_min = parseInt(<?=$write_min?>);

var char_max = parseInt(<?=$write_max?>);

</script>

 

<style type="text/css">

 

select {border: 1px solid #333333;color: #333333;}

.quick{ border: 1px solid #999999;}

.stx{ border: 1px solid #3e4a5a;}

.ed {border: 2px solid #cccccc;background-color: #efeff1; font-family:'Nanum Gothic';}

.style7 {color: #000000}

.style8 {color: #000000; font-weight: bold; }

.style9 {color: #666666}

</style>

<script type="text/javascript">

function checkFrm(obj) {

 if(obj.wr_6.checked == false) {

  alert('개인정보 활동동의에 체크해주세요.');

  obj.wr_6.focus();

  return false;

 }

}

</script>

 

<table width=320 border="0" align="center" cellpadding="0" cellspacing="0" >

  <form name=frm method=post action="<?=$g5['path']?>/bbs/write_update.php" onsubmit="return checkFrm(this);">

        <input type=hidden name=w        value="">

        <input type=hidden name=bo_table value="online">

        <input type=hidden name=wr_id    value="">

        <input type=hidden name=sca      value="">

        <input type=hidden name=sfl      value="">

        <input type=hidden name=stx      value="">

        <input type=hidden name=spt      value="">

        <input type=hidden name=sst      value="">

        <input type=hidden name=sod      value="">

        <input type=hidden name=s    value="s">

        <input type=hidden name=wr_subject  value="빠른 상담 신청">

        <input type=hidden name=wr_content  value="빠른 상담 신청">

        <input type=hidden name="wr_1"  value="">

      <tr>

        <td width="320" height="150" align="center" valign=top style="border-bottom: 0px solid #ccc;">            

          <table width="320" border=0 cellpadding=0 cellspacing=0>

            <tr>

                <td  width="50px" height="30px" style="padding-left:10px;">

                  <div class="style7">이름</div>

                </td>

                <td width="50"> <input class='quick' type="text" name="wr_name" size="22" style="font-size: 12px; height:20px;" required itemname="이름"></td>

                <td width="79" rowspan="3">

                  <div align="right" >

                    <input name="image" type=image src="<?php echo $board_skin_url; ?>online/img/tyt04_bt03.png" alt="상담신청" >

                  </div>                

                </td>

            </tr>

            <tr>

                 <td height=40><div class="style7">휴대폰</div></td>

                 <td>

                   <select name="wr_7" style="height:20px" itemname="휴대폰" required >

                     <option value="010">010</option>

                     <option value="011">011</option>

                     <option value="016">016</option>

                     <option value="017">017</option>

                     <option value="018">018</option>

                     <option value="019">019</option>

                   </select>-

                   <input name="wr_8" type="text" required class='ed' style="width:35px;height:20px;border:1px solid #444444;" maxlength="4" itemname="휴대폰"/>-

                   <input name="wr_9" type="text" required class='ed' style="width:35px;height:20px;border:1px solid #444444;" maxlength="4" itemname="휴대폰"/></td>

            </tr>

            <tr>

              <td width=50 height=30 style="padding-left:10px;">

                 <div class="style7">메모</div>

              </td>

              <td>

                 <input class='quick' type="text" name="wr_content" size="22" style="font-size: 12px; height:20px;" required itemname="메모">

              </td>

            </tr>

            <tr align="center">

              <td height="30" colspan="3">

                 <span class="style9">*고객님의 정보는 상담을 위해서만 사용됩니다.</span>

              </td>

            </tr>

            <tr align="center">

              <td colspan="3">

                <input type=checkbox name=wr_6 value="6" <?=$write[wr_6]?> required>

                <span class="style7">개인정보 활용동의</span><a href="../privacy.html" target="_blank"><img src="<?php echo $board_skin_url; ?>online/img/privacy.gif" width="50" height="16" border="0"></a>

              </td>

            </tr>

            <tr align="center">

              <td height="10" colspan="3"></td>

            </tr>

          </table>

        </td>

    </tr>

  </form>

</table>

<!--//-->

 

 

이 질문에 댓글 쓰기 :

답변 4

 <?=$write[wr_6]?> 이부분을  <?=$write['wr_6']?> 한번 변경해보세요.

<input type=checkbox name=wr_6 value="6" <?=$write[wr_6]?> required>

<input type=checkbox name=wr_6 value="6" <?php echo ($w == 'u') ? $write[wr_6] : '';?> required>

으로

지금 에러 나는 부분은 몇가지가 있는데..

 

캡차를 입력하는 부분이  빠지다보니 여기서 에러메세지를 뿌려주는 부분과

값을 넘겨줄떄 세션값이  누락되어 에러메세지를 뿌려주는 부분이 있을수 있습니다.

 

해당 작업을 해보신후에도 안되시면 쪽지 주세요..

도움드리겠습니다.

 

 

 

원본하고 form이 좀 다른데요.

 

원본은 폼 시작이

  <form name=frm method=post action="<?=$g5['path']?>/bbs/write_update.php" onsubmit="return checkFrm(this);">
        <input type="hidden" name="token" value=<?php echo get_write_token('online') ?>> 
        <input type=hidden name=bo_table value="online">

 

이렇게 되어있고 저기서 online을 빠른문의 게시판 생성후 해당 게시펀 bo_table로 바꿔주셔야합니다.

 

그리고 해당 게시판 스킨도 online 으로 바꾸시구요.

관리자 -> 게시판 관리에서 게시판을 생성할떄 사용하셨던 table 명입니다.
저걸 사용하시려면 먼저 게시판을 생성하셔야합니다.
게시판관리->게시판추가에서 맨처음에 table명을 입력을 하는데 해당 명칭이고 게시판 생성시 스킨을 onlince으로 하시면 되십니다.

답변을 작성하시기 전에 로그인 해주세요.
전체 123,165 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT