'', 'nw_end_time' => '', 'nw_subject' => '', 'nw_content' => '', 'nw_division' => '', ); $html_title = "팝업레이어"; // 팝업레이어 테이블에 쇼핑몰, 커뮤니티 인지 구분하는 여부 필드 추가 $sql = " ALTER TABLE `{$g5['new_win_table']}` ADD `nw_division` VARCHAR(10) NOT NULL DEFAULT 'both' "; sql_query($sql, false); if ($w == "u") { $html_title .= " 수정"; $sql = " select * from {$g5['new_win_table']} where nw_id = '$nw_id' "; $nw = sql_fetch($sql); if (!(isset($nw['nw_id']) && $nw['nw_id'])) { alert("등록된 자료가 없습니다."); } } else { $html_title .= " 입력"; $nw['nw_device'] = 'both'; $nw['nw_disable_hours'] = 24; $nw['nw_left'] = 10; $nw['nw_top'] = 10; $nw['nw_width'] = 450; $nw['nw_height'] = 500; $nw['nw_content_html'] = 2; } $g5['title'] = $html_title; require_once G5_ADMIN_PATH . '/admin.head.php'; ?>

초기화면 접속 시 자동으로 뜰 팝업레이어를 설정합니다.

시간
" id="nw_begin_chk" onclick="if (this.checked == true) this.form.nw_begin_time.value=this.form.nw_begin_chk.value; else this.form.nw_begin_time.value = this.form.nw_begin_time.defaultValue;">
" id="nw_end_chk" onclick="if (this.checked == true) this.form.nw_end_time.value=this.form.nw_end_chk.value; else this.form.nw_end_time.value = this.form.nw_end_time.defaultValue;">
px
px
px
px
목록