폼 추가 도와주세요.. 완전 생초보..

폼 추가 도와주세요.. 완전 생초보..

QA

폼 추가 도와주세요.. 완전 생초보..

본문

폼입력란을 추가하고 싶은데.. 이게 맘대로 안되네요..

 

스크립트에 wr_8 을 추가해서 아래와  테이블에 '학교명'을 텍스트로 받아서 저장후 출력하고 싶은데

어떤 부분을 추가해야 할까요 ?

 

도움부탁드려요 ㅠ ㅠ

 


<script>
var g5_bbs_skin_url = "<?php echo $board_skin_url; ?>";
$(document).ready(function(){
 var ss = "<i class='fa fa-home hand' aria-hidden='true' style='font-size:20px;' onclick=\"location.href='<?php echo G5_URL; ?>';\"></i> 온라인 정비 예약 - <?php echo $off['office_name']; ?> 예약하기     <i class='fa fa-phone-square' aria-hidden='true'></i> <?php echo $off['office_tel'];?> ";
 $("#container_title span").html(ss);
 $(".car_id").change(function(){
  var car_name = $(".car_id option:selected").text();
  var ca_name = $(".car_id option:selected").text();
  console.log(car_name);
  console.log(ca_name);
  var car_no = car_name.split(' [ ')[0];
  var car_name = car_name.split(' [ ')[1].split(' ]')[0];
  var ca_name = ca_name.split(' [ ')[1].split(' ]')[0];
  console.log(car_no);
  console.log(car_name);
  console.log(ca_name);
  $(".wr_subject").val(car_no);
  $(".wr_4").val(car_name);
  $(".wr_9").val(ca_name);
 });
</script>
 
 
<table>
  <colgroup>
   <col width="13%" />
   <col width="37%" />
   <col width="13%" />
   <col width="37%" />
  </colgroup>
  <tbody>
  <tr>
   <tr>
   <th>학교명</th>
   <td colspan="3"><input type="text" name="wr_8" class="wr_8 required" value="<?php echo $write['wr_8']; ?>"  required></td>
   <!--
   <th>학교명</th>
   <td class="office_name" colspan="3">
    <?php echo $off['office_name']; ?>
    ( <i class='fa fa-phone-square' aria-hidden='true'></i> <?php echo $off['office_tel'];?> / <i class='fa fa-fax' aria-hidden='true'></i> <?php echo $off['office_fax'];?> )
   </td>
   -->
  </tr>
  <tr>
   <th>관람일</th>
   <td colspan="3">
    <i class='fa fa-clock-o' aria-hidden='true'></i>
    <?php echo ($write['wr_1'])? $write['wr_1']:$toDay; ?>
    <input type="hidden" name="wr_1" class="wr_1" value="<?php echo ($write['wr_1'])? $write['wr_1']:$select; ?>" readonly />
   </td>
  </tr>
  <tr>
   <th>관람시간</th>
   <td class="time_bg" colspan="3">
    <?php if($time_person > 0) { //시간대별 예약인원 제한일경우.. ?>
     <div style="height:auto;padding-top:8px;line-height:160%">
      ※ 예약 시간대별 최대 예약가능한 인원은 <span style="color:red;"><?php echo $time_person;?></span>명입니다.<br/>
      ※ 예약시간 옆 괄호안의 숫자는 현재 예약 수 입니다.
     </div>
    <?php } ?>
    <?php
     $am = booking_time($bo_table, $select); // 예약가능한시간대별리스트
     //print_r2($am);
     echo radio_time($am,$am,$write['wr_2'],'wr_2');
    ?>
   </td>
  </tr>
  <tr>
   <th>성함(인솔자)</th>
   <td><input type="text" name="wr_name" value="<?php echo $member['mb_name']; ?>" id="if_name" required <?php echo $readonly; ?>></td>
   <th><?php echo ($is_password)? "비밀번호":""; ?></th>
   <td> <?php if ($is_password) {
      echo "<input type='password' name='wr_password' id='wr_password' {$password_required} class='frm_input {$password_required}' maxlength='20'>";
     }?>
   </td>
  </tr>
  <tr>
   <th>휴대폰</th>
   <td colspan="3" class="hp_num">
     <input type="text" name="wr_homepage" value="<?php echo ($homepage)? $homepage:$member['mb_hp']; ?>" id="wr_homepage" class="required" required>
     <span class="frm_info"> ( 연락가능한 번호를 입력해 주세요. )</span>
    </td>
  </tr>
  <tr>
   <th>이메일</th>
   <td colspan="3"><input type="text" name="wr_subject" class="wr_subject required" value="<?php echo $write['wr_subject']; ?>" required ></td>
  </tr>
  <tr>
   <th>인솔 교사(명)</th>
   <td><input type="text" name="wr_4" class="wr_4 required" value="<?php echo $write['wr_4']; ?>"  required></td>
   <th>인솔 학생(명)</th>
   <td><input type="text" name="wr_9" class="wr_9 required" value="<?php echo $write['wr_9']; ?>"  required></td>
  </tr>
  <tr>
   <th>특이사항</th>
   <td colspan="3"><textarea name="wr_6" id="if_memo" cols="10" rows="5"><?php echo $write['wr_6']; ?></textarea></td>
  </tr>
</table>

이 질문에 댓글 쓰기 :

답변 1

https://sir.kr/bbs/search.php?q=%EC%97%AC%EB%B6%84%ED%95%84%EB%93%9C

 

https://sir.kr/g5_tip?sca=&sfl=wr_subject&stx=%EC%97%AC%EB%B6%84%ED%95%84%EB%93%9C

 

https://gnustudy.com/bbs/search_list.php?sfl=wr_subject&stx=%EC%97%AC%EB%B6%84%ED%95%84%EB%93%9C&sop=and&sst=wr_datetime&sod=desc&srows=20&page=2

 

정도 참고 하시면 어렵지 않게 하실 수 있으실듯 합니다. 

 

https://sir.kr/g5_plugin/6970

 

식의 플러그인도 있으니 참고해 보세요.

 

기존의 여분필드을 활용한 스킨을 다운로드 받으셔서 검토해 보시는것도 괜찮을듯 하구요. 잘 마무리 하시기를 바랍니다. 

 

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

회원로그인

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