#381 전체:html5 유효성 검사 완료

This commit is contained in:
rollydream
2013-03-14 15:35:45 +09:00
parent 607b6568f5
commit d0410b30a9
9 changed files with 17 additions and 17 deletions

View File

@ -15,6 +15,7 @@ function get_skin_select($skin_gubun, $id, $name, $selected='', $event='')
$skins = get_skin_dir($skin_gubun);
$str = "<select id=\"$id\" name=\"$name\" $event>\n";
for ($i=0; $i<count($skins); $i++) {
if ($i == 0) $str .= "<option value=\"\">선택</option>";
$str .= option_selected($skins[$i], $selected);
}
$str .= "</select>";
@ -27,6 +28,7 @@ function get_mobile_skin_select($skin_gubun, $id, $name, $selected='', $event=''
$skins = get_skin_dir($skin_gubun, G4_MOBILE_PATH.'/'.G4_SKIN_DIR);
$str = "<select id=\"$id\" name=\"$name\" $event>\n";
for ($i=0; $i<count($skins); $i++) {
if ($i == 0) $str .= "<option value=\"\">선택</option>";
$str .= option_selected($skins[$i], $selected);
}
$str .= "</select>";

View File

@ -41,14 +41,15 @@ include_once(G4_PATH.'/head.sub.php');
</tr>
</tbody>
</table>
</div>
<div class="btn_confirm">
<input type="submit" class="btn_submit" value="복사">
<input type="button" class="btn_cancel" value="창닫기" onclick="window.close();">
</div>
<div class="btn_confirm">
<input type="submit" class="btn_submit" value="복사">
<input type="button" class="btn_cancel" value="창닫기" onclick="window.close();">
</div>
</form>
</form>
</div>
<script>
function fboardcopy_check(f)

View File

@ -37,7 +37,7 @@ if ($w == '') {
$html_title .= ' 생성';
$bo_table_attr = 'class="required alnum_"';
$bo_table_attr = 'required alnum_';
$sound_only = '<strong class="sound_only">필수</strong>';
$board['bo_count_delete'] = 1;
@ -127,7 +127,7 @@ $pg_anchor = "<ul class=\"anchor\">
<tr>
<th scope="row"><label for="bo_table">TABLE<?=$sound_only?></label></th>
<td colspan="2">
<input type="text" name="bo_table" value="<?=$board['bo_table'] ?>" id="bo_table" required class="required frm_input" maxlength="20" <?=$bo_table_attr?>>
<input type="text" name="bo_table" value="<?=$board['bo_table'] ?>" id="bo_table" required class="frm_input <?=$bo_table_attr?>" maxlength="20">
<? if ($w == '') { ?>
영문자, 숫자, _ 만 가능 (공백없이 20자 이내)
<? } else { ?>

View File

@ -76,7 +76,7 @@ include_once('./admin.head.php');
<th scope="row"><label for="gr_device">접속기기</label></th>
<td>
<?=help("PC 와 모바일 사용을 구분합니다.")?>
<select id="gr_device_" name="gr_device">
<select id="gr_device" name="gr_device">
<option value="both"<?=get_selected($group['gr_device'], 'both', true);?>>PC와 모바일에서 모두 사용</option>
<option value="pc"<?=get_selected($group['gr_device'], 'pc');?>>PC 전용</option>
<option value="mobile"<?=get_selected($group['gr_device'], 'mobile');?>>모바일 전용</option>
@ -144,11 +144,6 @@ include_once('./admin.head.php');
</div>
<script>
if (document.fboardgroup.w.value == '')
document.fboardgroup.gr_id.focus();
else
document.fboardgroup.gr_subject.focus();
function fboardgroup_check(f)
{
f.action = './boardgroup_form_update.php';