You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.7 KiB

7 years ago
  1. <?php
  2. /************************************************************************
  3. * 문의하기 스킨
  4. * ----------------------------------------------------------------------
  5. *
  6. * $form_open : <form> 여는 태그를 생성합니다.
  7. * $form_close : </form> 닫는 태그를 생성합니다.
  8. *
  9. * 필수로 필요한 input
  10. * con_name : 이름
  11. * con_email : 이메일
  12. * con_phone : 연락처
  13. * con_content : 내용
  14. *
  15. * 추가로 입력할필드를 넣어야 할때
  16. * extra[추가입력] 형식으로 작성
  17. * ) extra[분류] extra[지역]
  18. *
  19. * 에러 표시
  20. * validation_errors( '여는 태그', '닫는 태그' );
  21. *************/
  22. ?>
  23. <?=validation_errors('<p class="alert alert-danger">',"</p>")?>
  24. <?=$form_open?>
  25. <div class="form-group">
  26. <input class="form-control" name="con_name" placeholder="이름">
  27. </div>
  28. <div class="form-group">
  29. <input class="form-control" name="con_email" placeholder="이메일">
  30. </div>
  31. <div class="form-group">
  32. <input class="form-control" name="con_phone" placeholder="연락처">
  33. </div>
  34. <div class="form-group">
  35. <input type="hidden" name="extra_name[region]" value="지역">
  36. <input class="form-control" name="extra[region]" placeholder="지역을 입력하세요">
  37. </div>
  38. <div class="form-group">
  39. <input type="hidden" name="extra_name[company]" value="회사명">
  40. <input class="form-control" name="extra[company]" placeholder="회사명을 입력하세요">
  41. </div>
  42. <div class="form-group">
  43. <textarea class="form-control" name="con_content" placeholder="문의 내용 입력" rows="8"></textarea>
  44. </div>
  45. <div class="text-center">
  46. <button class="btn btn-primary">문의하기</button>
  47. </div>
  48. <?=$form_close;?>