그누보드 [G4] 회원가입폼에 여분/추가필드 활용방법
페이지 정보
본문
## 회원가입 및 수정할때 사용되는 파일
1. 그누보드4 / skin / member / 스킨 / register_form.skin.php
<tr bgcolor="#ffffff">
<td class="m_title">여분필드1</td>
<td class="m_padding">
<select name="mb_1" required itemname="여분필드1">
<option value="">선택하십시오.</option>
<option value="일반" <?php if ($member["mb_1"]=="일반") echo "selected"; ?>>일반</option>
<option value="재학생" <?php if ($member["mb_1"]=="재학생") echo "selected"; ?>>재학생</option>
<option value="졸업생" <?php if ($member["mb_1"]=="졸업생") echo "selected"; ?>>졸업생</option>
<option value="학부모" <?php if ($member["mb_1"]=="학부모") echo "selected"; ?>>학부모</option>
<option value="교직원" <?php if ($member["mb_1"]=="교직원") echo "selected"; ?>>교직원</option>
</select> (가입승인에 중요한 사항입니다. <br />옳지않은 정보를 입력하시는 경우 홈페이지 이용에 제한이 있습니다.)</td>
</tr>
<tr bgcolor="#ffffff">
<td class="m_title">여분필드2</TD>
<td class="m_padding"><input type="text" name="mb_2" style="width:150px;" value="<?php echo $member["mb_2"]; ?>" /></td>
</tr>
## 관리자 페이지에서의 확인
2. 그누보드4 / adm / member_form.php 에서 항목이름 수정
<?php for ($i=1; $i<=10; $i++) { ?>
<tr>
<th scope="row"><label for="mb_<?php echo $i ?>">여분 필드 <?php echo $i ?></label></th>
<td colspan="3"><input type="text" name="mb_<?php echo $i ?>" value="<?php echo $mb['mb_'.$i] ?>" id="mb_<?php echo $i ?>" class="frm_input" size="30" maxlength="255"></td>
</tr>
<?php } ?>
를 아래와 같이 변경
<?php /*for ($i=1; $i<=10; $i++) { ?>
<tr>
<th scope="row"><label for="mb_<?php echo $i ?>">여분 필드 <?php echo $i ?></label></th>
<td colspan="3"><input type="text" name="mb_<?php echo $i ?>" value="<?php echo $mb['mb_'.$i] ?>" id="mb_<?php echo $i ?>" class="frm_input" size="30" maxlength="255"></td>
</tr>
<?php }*/ ?>
<tr>
<th scope="row"><label for="mb_1">소속 (단지명)</label></th>
<td><input type="text" name="mb_1" value="<?php echo $mb['mb_1'] ?>" id="mb_1" class="frm_input" size="30" maxlength="255"></td>
<th scope="row"><label for="mb_2">직책</label></th>
<td><input type="text" name="mb_2" value="<?php echo $mb['mb_2'] ?>" id="mb_2" class="frm_input" size="30" maxlength="255"></td>
</tr>
<tr>
<th scope="row"><label for="mb_3">여분 필드 3</label></th>
<td><input type="text" name="mb_3" value="<?php echo $mb['mb_3'] ?>" id="mb_3" class="frm_input" size="30" maxlength="255"></td>
<th scope="row"><label for="mb_4">여분 필드 4</label></th>
<td><input type="text" name="mb_4" value="<?php echo $mb['mb_4'] ?>" id="mb_4" class="frm_input" size="30" maxlength="255"></td>
</tr>
<tr>
<th scope="row"><label for="mb_5">여분 필드 5</label></th>
<td><input type="text" name="mb_5" value="<?php echo $mb['mb_5'] ?>" id="mb_5" class="frm_input" size="30" maxlength="255"></td>
<th scope="row"><label for="mb_6">여분 필드 6</label></th>
<td><input type="text" name="mb_6" value="<?php echo $mb['mb_6'] ?>" id="mb_6" class="frm_input" size="30" maxlength="255"></td>
</tr>
<tr>
<th scope="row"><label for="mb_7">여분 필드 7</label></th>
<td><input type="text" name="mb_7" value="<?php echo $mb['mb_7'] ?>" id="mb_7" class="frm_input" size="30" maxlength="255"></td>
<th scope="row"><label for="mb_8">여분 필드 8</label></th>
<td><input type="text" name="mb_8" value="<?php echo $mb['mb_8'] ?>" id="mb_8" class="frm_input" size="30" maxlength="255"></td>
</tr>
<tr>
<th scope="row"><label for="mb_9">여분 필드 9</label></th>
<td><input type="text" name="mb_9" value="<?php echo $mb['mb_9'] ?>" id="mb_9" class="frm_input" size="30" maxlength="255"></td>
<th scope="row"><label for="mb_10">여분 필드 10</label></th>
<td><input type="text" name="mb_10" value="<?php echo $mb['mb_10'] ?>" id="mb_10" class="frm_input" size="30" maxlength="255"></td>
</tr>
1. 그누보드4 / skin / member / 스킨 / register_form.skin.php
<tr bgcolor="#ffffff">
<td class="m_title">여분필드1</td>
<td class="m_padding">
<select name="mb_1" required itemname="여분필드1">
<option value="">선택하십시오.</option>
<option value="일반" <?php if ($member["mb_1"]=="일반") echo "selected"; ?>>일반</option>
<option value="재학생" <?php if ($member["mb_1"]=="재학생") echo "selected"; ?>>재학생</option>
<option value="졸업생" <?php if ($member["mb_1"]=="졸업생") echo "selected"; ?>>졸업생</option>
<option value="학부모" <?php if ($member["mb_1"]=="학부모") echo "selected"; ?>>학부모</option>
<option value="교직원" <?php if ($member["mb_1"]=="교직원") echo "selected"; ?>>교직원</option>
</select> (가입승인에 중요한 사항입니다. <br />옳지않은 정보를 입력하시는 경우 홈페이지 이용에 제한이 있습니다.)</td>
</tr>
<tr bgcolor="#ffffff">
<td class="m_title">여분필드2</TD>
<td class="m_padding"><input type="text" name="mb_2" style="width:150px;" value="<?php echo $member["mb_2"]; ?>" /></td>
</tr>
## 관리자 페이지에서의 확인
2. 그누보드4 / adm / member_form.php 에서 항목이름 수정
<?php for ($i=1; $i<=10; $i++) { ?>
<tr>
<th scope="row"><label for="mb_<?php echo $i ?>">여분 필드 <?php echo $i ?></label></th>
<td colspan="3"><input type="text" name="mb_<?php echo $i ?>" value="<?php echo $mb['mb_'.$i] ?>" id="mb_<?php echo $i ?>" class="frm_input" size="30" maxlength="255"></td>
</tr>
<?php } ?>
를 아래와 같이 변경
<?php /*for ($i=1; $i<=10; $i++) { ?>
<tr>
<th scope="row"><label for="mb_<?php echo $i ?>">여분 필드 <?php echo $i ?></label></th>
<td colspan="3"><input type="text" name="mb_<?php echo $i ?>" value="<?php echo $mb['mb_'.$i] ?>" id="mb_<?php echo $i ?>" class="frm_input" size="30" maxlength="255"></td>
</tr>
<?php }*/ ?>
<tr>
<th scope="row"><label for="mb_1">소속 (단지명)</label></th>
<td><input type="text" name="mb_1" value="<?php echo $mb['mb_1'] ?>" id="mb_1" class="frm_input" size="30" maxlength="255"></td>
<th scope="row"><label for="mb_2">직책</label></th>
<td><input type="text" name="mb_2" value="<?php echo $mb['mb_2'] ?>" id="mb_2" class="frm_input" size="30" maxlength="255"></td>
</tr>
<tr>
<th scope="row"><label for="mb_3">여분 필드 3</label></th>
<td><input type="text" name="mb_3" value="<?php echo $mb['mb_3'] ?>" id="mb_3" class="frm_input" size="30" maxlength="255"></td>
<th scope="row"><label for="mb_4">여분 필드 4</label></th>
<td><input type="text" name="mb_4" value="<?php echo $mb['mb_4'] ?>" id="mb_4" class="frm_input" size="30" maxlength="255"></td>
</tr>
<tr>
<th scope="row"><label for="mb_5">여분 필드 5</label></th>
<td><input type="text" name="mb_5" value="<?php echo $mb['mb_5'] ?>" id="mb_5" class="frm_input" size="30" maxlength="255"></td>
<th scope="row"><label for="mb_6">여분 필드 6</label></th>
<td><input type="text" name="mb_6" value="<?php echo $mb['mb_6'] ?>" id="mb_6" class="frm_input" size="30" maxlength="255"></td>
</tr>
<tr>
<th scope="row"><label for="mb_7">여분 필드 7</label></th>
<td><input type="text" name="mb_7" value="<?php echo $mb['mb_7'] ?>" id="mb_7" class="frm_input" size="30" maxlength="255"></td>
<th scope="row"><label for="mb_8">여분 필드 8</label></th>
<td><input type="text" name="mb_8" value="<?php echo $mb['mb_8'] ?>" id="mb_8" class="frm_input" size="30" maxlength="255"></td>
</tr>
<tr>
<th scope="row"><label for="mb_9">여분 필드 9</label></th>
<td><input type="text" name="mb_9" value="<?php echo $mb['mb_9'] ?>" id="mb_9" class="frm_input" size="30" maxlength="255"></td>
<th scope="row"><label for="mb_10">여분 필드 10</label></th>
<td><input type="text" name="mb_10" value="<?php echo $mb['mb_10'] ?>" id="mb_10" class="frm_input" size="30" maxlength="255"></td>
</tr>
댓글목록
등록된 댓글이 없습니다.