그누보드 [G5] 회원가입폼에 여분/추가필드 활용방법
페이지 정보
본문
1. 그누보드5 / skin / member / 스킨 / register_form.skin.php 내용 추가
<tr>
<th scope="row">소속(단지명)</td>
<td><input type="text" name="mb_1" style="width:150px;" required value="<?php echo $member["mb_1"]; ?>" /> (단지명을 입력하세요)</td>
</tr>
<tr>
<th scope="row">직책</TD>
<td><input type="text" name="mb_2" style="width:150px;" required value="<?php echo $member["mb_2"]; ?>" /></td>
</tr>
2. 그누보드5 / 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>
<tr>
<th scope="row">소속(단지명)</td>
<td><input type="text" name="mb_1" style="width:150px;" required value="<?php echo $member["mb_1"]; ?>" /> (단지명을 입력하세요)</td>
</tr>
<tr>
<th scope="row">직책</TD>
<td><input type="text" name="mb_2" style="width:150px;" required value="<?php echo $member["mb_2"]; ?>" /></td>
</tr>
2. 그누보드5 / 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>
댓글목록
등록된 댓글이 없습니다.