유효성검사: #381 유효성 에러보고에 따른 처리
This commit is contained in:
@ -144,9 +144,8 @@ $colspan = 15;
|
||||
<td><input type="text" name="bo_comment_point[<?=$i?>]" value="<?=$row['bo_comment_point']?>" title="댓글포인트" class="frm_input" size="2"></td>
|
||||
<td><input type="text" name="bo_download_point[<?=$i?>]" value="<?=$row['bo_download_point']?>" title="다운포인트" class="frm_input" size="2"></td>
|
||||
<td><input type="checkbox" name="bo_use_search[<?=$i?>]" value="1" id="bo_use_search_<?=$i?>" <?=$row['bo_use_search']?"checked":""?> title="선택시 검색사용"></td>
|
||||
<td><input type="checkbox" name="bo_show_menu[<?=$i?>]" value="1" id="bo_use_search_<?=$i?>" <?=$row['bo_show_menu']?"checked":""?> title="선택시 메뉴보이기"></td>
|
||||
<td><input type="checkbox" name="bo_show_menu[<?=$i?>]" value="1" id="bo_show_menu_<?=$i?>" <?=$row['bo_show_menu']?"checked":""?> title="선택시 메뉴보이기"></td>
|
||||
<td><input type="text" name="bo_order[<?=$i?>]" value="<?=$row['bo_order']?>" id="bo_order<?=$i?>" title="출력순서" class="frm_input" size="2"></td>
|
||||
</td>
|
||||
<td>
|
||||
<select name="bo_device[<?=$i?>]" id="bo_device_<?=$i?>" title="접속기기 선택">
|
||||
<option value="both"<?=get_selected($row['bo_device'], 'both', true);?>>모두</option>
|
||||
@ -165,7 +164,7 @@ $colspan = 15;
|
||||
</table>
|
||||
|
||||
<div class="btn_list">
|
||||
<input type="submit" name="act_button" value="선택수정"onclick="document.pressed=this.value">
|
||||
<input type="submit" name="act_button" value="선택수정" onclick="document.pressed=this.value">
|
||||
<?if ($is_admin == 'super') {?>
|
||||
<input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value">
|
||||
<a href="./board_form.php">게시판추가</a>
|
||||
|
||||
@ -73,7 +73,7 @@ $colspan = 8;
|
||||
<option value="gr_admin"<?=get_selected($_GET['sfl'], "gr_admin");?>>그룹관리자</option>
|
||||
</select>
|
||||
<input type="text" name="stx" value="<?=$stx?>" title="검색어(필수)" required class="required frm_input">
|
||||
<input type="submit" value="검색" value="검색" class="btn_submit">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
@ -140,15 +140,15 @@ $colspan = 8;
|
||||
</td>
|
||||
<td>
|
||||
<?if ($is_admin == 'super'){?>
|
||||
<input type="text" name="gr_admin[<?=$i?>]" value="<?=$row['gr_admin']?>" id="gr_admin" title="그룹관리자 수정" class="frm_input" size="10" maxlength="20">
|
||||
<input type="text" name="gr_admin[<?=$i?>]" value="<?=$row['gr_admin']?>" id="gr_admin_<?=$i?>" title="그룹관리자 수정" class="frm_input" size="10" maxlength="20">
|
||||
<?}else{?>
|
||||
<input type="hidden" name="gr_admin[<?=$i?>]" value="<?=$row['gr_admin']?>"><td><?=$row['gr_admin']?>
|
||||
<?}?>
|
||||
</td>
|
||||
<td><a href="./board_list.php?sfl=a.gr_id&stx=<?=$row['gr_id']?>"><?=$row2['cnt']?></a></td>
|
||||
<td><input type="checkbox" name="gr_use_access[<?=$i?>]" <?=$row['gr_use_access']?'checked':''?> value="1" id="gr_use_access" title="선택 시 접근회원 사용"></td>
|
||||
<td><input type="checkbox" name="gr_use_access[<?=$i?>]" <?=$row['gr_use_access']?'checked':''?> value="1" id="gr_use_access_<?=$i?>" title="선택 시 접근회원 사용"></td>
|
||||
<td><a href="./boardgroupmember_list.php?gr_id=<?=$row['gr_id']?>"><?=$row1['cnt']?></a></td>
|
||||
<td><input type="checkbox" name="gr_show_menu[<?=$i?>]" <?=$row['gr_show_menu']?'checked':''?> value="1" id="gr_show_menu" title="선택 시 메뉴보이기"></td>
|
||||
<td><input type="checkbox" name="gr_show_menu[<?=$i?>]" <?=$row['gr_show_menu']?'checked':''?> value="1" id="gr_show_menu_<?=$i?>" title="선택 시 메뉴보이기"></td>
|
||||
<td>
|
||||
<input type="text" name="gr_order[<?=$i?>]" value="<?=$row['gr_order']?>" id="gr_order_<?=$i?>" title="출력순서 수정" class="frm_input" size="2">
|
||||
</td>
|
||||
|
||||
@ -102,7 +102,7 @@ $pg_anchor = "
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_add_script">추가 script, css</label></th>
|
||||
<td colspan="3">
|
||||
<?=help('HTML의 </HEAD> 태그위로 추가될 JavaScript와 css 코드를 설정합니다.')?>
|
||||
<?=help('HTML의 </HEAD> 태그위로 추가될 JavaScript와 css 코드를 설정합니다.')?>
|
||||
<textarea name="cf_add_script" id="cf_add_script"><?=$config['cf_add_script']?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
@ -173,7 +173,7 @@ $pg_anchor = "
|
||||
<input type="text" name="cf_page_rows" value="<?=$config['cf_page_rows']?>" id="cf_page_rows" class="frm_input" size="2"> 라인
|
||||
</td>
|
||||
<th scope="row"><label for="cf_new_rows">최근게시물 라인수</label></th>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<?=help('목록 한페이지당 라인수')?>
|
||||
<input type="text" name="cf_new_rows" value="<?=$config['cf_new_rows']?>" id="cf_new_rows" class="frm_input" size="2"> 라인
|
||||
</td>
|
||||
@ -182,7 +182,7 @@ $pg_anchor = "
|
||||
<th scope="row"><label for="cf_write_pages">페이지 표시 수<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="cf_write_pages" value="<?=$config['cf_write_pages']?>" id="cf_write_pages" required class="required numeric frm_input" size="3"> 페이지씩 표시</td>
|
||||
<th scope="row"><label for="cf_mobile_pages">모바일 페이지 표시 수<strong class="sound_only">필수</strong></label></th>
|
||||
<td colspan="3"><input type="text" name="cf_mobile_pages" value="<?=$config['cf_mobile_pages']?>" id="cf_mobile_pages" required class="required numeric frm_input" size="3"> 페이지씩 표시</td>
|
||||
<td><input type="text" name="cf_mobile_pages" value="<?=$config['cf_mobile_pages']?>" id="cf_mobile_pages" required class="required numeric frm_input" size="3"> 페이지씩 표시</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_new_skin">최근게시물 스킨<strong class="sound_only">필수</strong></label></th>
|
||||
@ -191,6 +191,7 @@ $pg_anchor = "
|
||||
<?
|
||||
$arr = get_skin_dir('new');
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||
echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_new_skin'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
@ -202,6 +203,7 @@ $pg_anchor = "
|
||||
<?
|
||||
$arr = get_skin_dir('new', G4_MOBILE_PATH.'/'.G4_SKIN_DIR);
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||
echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_mobile_new_skin'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
@ -215,6 +217,7 @@ $pg_anchor = "
|
||||
<?
|
||||
$arr = get_skin_dir('search');
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||
echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_search_skin'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
@ -226,6 +229,7 @@ $pg_anchor = "
|
||||
<?
|
||||
$arr = get_skin_dir('search', G4_MOBILE_PATH.'/'.G4_SKIN_DIR);
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||
echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_mobile_search_skin'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
@ -239,6 +243,7 @@ $pg_anchor = "
|
||||
<?
|
||||
$arr = get_skin_dir('connect');
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||
echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_connect_skin'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
@ -250,6 +255,7 @@ $pg_anchor = "
|
||||
<?
|
||||
$arr = get_skin_dir('connect', G4_MOBILE_PATH.'/'.G4_SKIN_DIR);
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||
echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_mobile_connect_skin'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
@ -374,6 +380,7 @@ $pg_anchor = "
|
||||
<?
|
||||
$arr = get_skin_dir('member');
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||
echo '<option value="'.$arr[$i].'"'.get_selected($config['cf_member_skin'], $arr[$i]).'>'.$arr[$i].'</option>'."\n";
|
||||
}
|
||||
?>
|
||||
@ -385,6 +392,7 @@ $pg_anchor = "
|
||||
<?
|
||||
$arr = get_skin_dir('member', G4_MOBILE_PATH.'/'.G4_SKIN_DIR);
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||
echo '<option value="'.$arr[$i].'"'.get_selected($config['cf_mobile_member_skin'], $arr[$i]).'>'.$arr[$i].'</option>'."\n";
|
||||
}
|
||||
?>
|
||||
|
||||
@ -8,8 +8,9 @@ $token = get_token();
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
$required_mb_id = 'class="required minlength=3 alnum_"';
|
||||
$required_mb_password = 'class="required"';
|
||||
$required_mb_id = 'required';
|
||||
$required_mb_id_class = 'required minlength=3 alnum_';
|
||||
$required_mb_password = 'required';
|
||||
$sound_only = '<strong class="sound_only">필수</strong>';
|
||||
|
||||
$mb['mb_mailling'] = 1;
|
||||
@ -113,11 +114,11 @@ include_once('./admin.head.php');
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_id">아이디<?=$sound_only?></label></th>
|
||||
<td>
|
||||
<input type="text" name="mb_id" value="<?=$mb['mb_id']?>" id="mb_id" <?=$required_mb_id?> class="frm_input" size="15" maxlength="20" >
|
||||
<input type="text" name="mb_id" value="<?=$mb['mb_id']?>" id="mb_id" <?=$required_mb_id?> class="frm_input <?=$required_mb_id_class?>" size="15" maxlength="20" >
|
||||
<?if ($w=='u'){?><a href="./boardgroupmember_form.php?mb_id=<?=$mb['mb_id']?>">접근가능그룹보기</a><?}?>
|
||||
</td>
|
||||
<th scope="row"><label for="mb_password">패스워드<?=$sound_only?></label></th>
|
||||
<td><input type="password" name="mb_password" id="mb_password" <?=$required_mb_password?> class="frm_input" size="15" maxlength="20"></td>
|
||||
<td><input type="password" name="mb_password" id="mb_password" <?=$required_mb_password?> class="frm_input <?=$required_mb_password?>" size="15" maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_name">이름(실명)<strong class="sound_only">필수</strong></label></th>
|
||||
@ -163,7 +164,7 @@ include_once('./admin.head.php');
|
||||
$icon_file = G4_DATA_PATH.'/member/'.$mb_dir.'/'.$mb['mb_id'].'.gif';
|
||||
if (file_exists($icon_file)) {
|
||||
$icon_url = G4_DATA_URL.'/member/'.$mb_dir.'/'.$mb['mb_id'].'.gif';
|
||||
echo '<img src="'.$icon_url.'">';
|
||||
echo '<img src="'.$icon_url.'" alt="">';
|
||||
echo '<input type="checkbox" id="del_mb_icon" name="del_mb_icon" value="1">삭제';
|
||||
}
|
||||
?>
|
||||
@ -190,13 +191,13 @@ include_once('./admin.head.php');
|
||||
<td colspan="3">
|
||||
<input type="radio" name="mb_open" value="1" id="mb_open" <?=$open_checked?>>
|
||||
<label for="mb_open">예</label>
|
||||
<input type="radio" name="mb_open" value="0" id="mb_open_no"<?=$open_no_checked?>>
|
||||
<input type="radio" name="mb_open" value="0" id="mb_open_no" <?=$open_no_checked?>>
|
||||
<label for="mb_open_no">아니오</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_signature">서명</label></th>
|
||||
<td colspan="3"><textarea name="mb_signature"id="mb_signature"><?=$mb['mb_signature']?></textarea></td>
|
||||
<td colspan="3"><textarea name="mb_signature" id="mb_signature"><?=$mb['mb_signature']?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_profile">자기 소개</label></th>
|
||||
|
||||
@ -220,7 +220,7 @@ function point_clear()
|
||||
|
||||
</form>
|
||||
|
||||
</fieldset>
|
||||
</section>
|
||||
|
||||
<?
|
||||
include_once ('./admin.tail.php');
|
||||
|
||||
@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], 'r');
|
||||
if (empty($fr_date)) $fr_date = G4_TIME_YMD;
|
||||
if (empty($to_date)) $to_date = G4_TIME_YMD;
|
||||
|
||||
$qstr = "fr_date={$fr_date}{&to_date}={$to_date}";
|
||||
$qstr = "fr_date={$fr_date}{&to_date}={$to_date}";
|
||||
|
||||
$sql_common = " from {$g4['popular_table']} a ";
|
||||
$sql_search = " where trim(pp_word) <> '' and pp_date between '{$fr_date}' and '{$to_date}' ";
|
||||
|
||||
@ -25,7 +25,7 @@ $qstr = "fr_date=".$fr_date."&to_date=".$to_date;
|
||||
<fieldset>
|
||||
<legend>기간별 접속자집계 검색</legend>
|
||||
<input type="text" name="fr_date" value="<?=$fr_date?>" id="fr_date" class="frm_input" size="11" maxlength="10"> 부터
|
||||
<input type="text" name="to_date" value="<?=$to_date?>" id="to_date"class="frm_input" size="11" maxlength="10"> 까지
|
||||
<input type="text" name="to_date" value="<?=$to_date?>" id="to_date" class="frm_input" size="11" maxlength="10"> 까지
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
@ -52,7 +52,7 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th scope="row" colspan="2">소계</td>
|
||||
<th scope="row" colspan="2">소계</th>
|
||||
<td><?=number_format($sum_point1)?></td>
|
||||
<td><?=number_format($sum_point2)?></td>
|
||||
</tr>
|
||||
|
||||
@ -978,7 +978,7 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
|
||||
$width = $config['cf_member_icon_width'];
|
||||
$height = $config['cf_member_icon_height'];
|
||||
$icon_file_url = G4_DATA_URL.'/member/'.$mb_dir.'/'.$mb_id.'.gif';
|
||||
$tmp_name = '<img src="'.$icon_file_url.'" width="'.$width.'" height="'.$height.'" border="0" alt="">';
|
||||
$tmp_name = '<img src="'.$icon_file_url.'" width="'.$width.'" height="'.$height.'" alt="">';
|
||||
|
||||
if ($config['cf_use_member_icon'] == 2) // 회원아이콘+이름
|
||||
$tmp_name = $tmp_name . " <a href=\"".G4_BBS_URL."/profile.php?mb_id=".$mb_id."\" class=\"sv_member\" title=\"$name 자기소개\" target=\"_blank\" onclick=\"return false;\">$name</a>";
|
||||
|
||||
Reference in New Issue
Block a user