include "../../../lib/link";
$checkLevel = "basic";
include $INSTALL_ROOT."/admin/basic/staff/staffLogin.html";
if($act == 'add') {
$q1 = mysqlQuery(" insert into n_popup(code, win_title, win_body, win_width, win_height, win_left, win_top, win_menubar, win_toolbar, win_location, win_directories, win_statusbar, win_scrollbars, win_resizable, cookie_interval, exec_yn, win_auto, reg_date, content_type)
values('', '$win_title', '$win_body', '$win_width', '$win_height', '$win_left', '$win_top', '$win_menubar', '$win_toolbar', '$win_location', '$win_directories', '$win_statusbar', '$win_scrollbars', '$win_resizable', '$cookie_interval', '$exec_yn', '$win_auto', now(), '$content_type') ");
if($q1 < 1) { historyBack('ÆË¾÷À» µî·ÏÇÒ ¼ö ¾ø½À´Ï´Ù.'); } else { metaRefresh('./popupList.html', 'ÆË¾÷ µî·ÏÀÌ Àß µÇ¾ú½À´Ï´Ù.'); }
} else if($act == 'update') {
$q1 = mysqlQuery(" update n_popup set win_title = '$win_title', win_body = '$win_body', win_width = '$win_width', win_height = '$win_height', win_left = '$win_left', win_top = '$win_top', win_menubar = '$win_menubar', win_toolbar = '$win_toolbar', win_location = '$win_location', win_directories = '$win_directories', win_statusbar = '$win_statusbar', win_scrollbars = '$win_scrollbars', win_resizable = '$win_resizable', cookie_interval = '$cookie_interval', exec_yn = '$exec_yn', win_auto = '$win_auto', content_type = '$content_type' where code = $code ");
if($q1 < 1) { historyBack('ÆË¾÷³»¿ëÀ» º¯°æÇÒ ¼ö ¾ø½À´Ï´Ù.'); } else { metaRefresh("$PHP_SELF?act=edit&code=$code", 'º¯°æÀÌ Àß µÇ¾ú½À´Ï´Ù.'); }
}
include $INSTALL_ROOT."/admin/top.html";
include $INSTALL_ROOT."/admin/basic/left.html";
if(!$act) {
$winWidth = 560;
$winHeight = 320;
$winLeft = 100;
$winTop = 50;
${'cookie_interval_next'} = 'selected';
${'exec_yn_yes'} = 'checked';
${'win_auto_no'} = 'checked';
} else if($act == 'edit') {
$q1 = mysqlQuery(" select * from n_popup where code = $code ");
$c1 = mysqlFetch($q1);
${'content_type_'.$c1[content_type]} = 'selected';
$winWidth = $c1[win_width];
$winWidth = $c1[win_width];
$winHeight = $c1[win_height];
$winLeft = $c1[win_left];
$winTop = $c1[win_top];
${'win_menubar_'.$c1[win_menubar]} = 'checked';
${'win_toolbar_'.$c1[win_toolbar]} = 'checked';
${'win_location_'.$c1[win_location]} = 'checked';
${'win_directories_'.$c1[win_directories]} = 'checked';
${'win_statusbar_'.$c1[win_statusbar]} = 'checked';
${'win_scrollbars_'.$c1[win_scrollbars]} = 'checked';
${'win_resizable_'.$c1[win_resizable]} = 'checked';
${'cookie_interval_'.$c1[cookie_interval]} = 'selected';
${'exec_yn_'.$c1[exec_yn]} = 'checked';
${'win_auto_'.$c1[win_auto]} = 'checked';
}
?>
 |
ÆË¾÷µî·Ï |
|
 |
|