diff --git a/adm/dialog_form.php b/adm/dialog_form.php deleted file mode 100644 index a3ca04f3a..000000000 --- a/adm/dialog_form.php +++ /dev/null @@ -1,243 +0,0 @@ - -$sub_menu = "300300"; -include_once("./_common.php"); -include_once ("$g4[path]/lib/cheditor4.lib.php"); - -auth_check($auth[$sub_menu], "w"); - -$html_title = "다이얼로그"; -if ($w == "u") -{ - $html_title .= " 수정"; - $sql = " select * from $g4[dialog_table] where di_id = '$di_id' "; - $di = sql_fetch($sql); - if (!$di[di_id]) alert("등록된 자료가 없습니다."); -} -else -{ - $html_title .= " 입력"; - $di[di_disable_hours] = 24; - $di[di_speeds] = 0; - $di[di_width] = 0; - $di[di_height] = 0; - $di[di_draggable] = true; - $di[di_escape] = true; -} - -$g4[title] = $html_title; -include_once ("$g4[admin_path]/admin.head.php"); -?> - -=subtitle($html_title)?> - - -=cheditor1('di_content', '100%', '350');?> - -
- - - - -include_once ("$g4[admin_path]/admin.tail.php"); -?> diff --git a/adm/dialog_form_update.php b/adm/dialog_form_update.php deleted file mode 100644 index a45b13aa6..000000000 --- a/adm/dialog_form_update.php +++ /dev/null @@ -1,61 +0,0 @@ - -$sub_menu = "300300"; -include_once("./_common.php"); - -if ($w == "u" || $w == "d") - check_demo(); - -if ($W == 'd') - auth_check($auth[$sub_menu], "d"); -else - auth_check($auth[$sub_menu], "w"); - -$sql_common = " di_ui_theme = '$di_ui_theme', - di_begin_time = '$di_begin_time', - di_end_time = '$di_end_time', - di_subject = '".addslashes($di_subject)."', - di_content = '".addslashes($di_content)."', - di_speeds = '$di_speeds', - di_disable_hours = '$di_disable_hours', - di_position = '$di_position', - di_draggable = '$di_draggable', - di_height = '$di_height', - di_width = '$di_width', - di_modal = '$di_modal', - di_resizable = '$di_resizable', - di_show = '$di_show', - di_hide = '$di_hide', - di_escape = '$di_escape', - di_zindex = '$di_zindex' - "; - -if($w == "") -{ - $sql = " alter table $g4[dialog_table] auto_increment=1 "; - sql_query($sql); - - $sql = " insert $g4[dialog_table] set $sql_common "; - sql_query($sql); - - $di_id = mysql_insert_id(); -} -else if ($w == "u") -{ - $sql = " update $g4[dialog_table] set $sql_common where di_id = '$di_id' "; - sql_query($sql); -} -else if ($w == "d") -{ - $sql = " delete from $g4[dialog_table] where di_id = '$di_id' "; - sql_query($sql); -} - -if ($w == "d") -{ - goto_url("./dialog_list.php"); -} -else -{ - goto_url("./dialog_form.php?w=u&di_id=$di_id"); -} -?> diff --git a/adm/dialog_list.php b/adm/dialog_list.php deleted file mode 100644 index 896ae1556..000000000 --- a/adm/dialog_list.php +++ /dev/null @@ -1,114 +0,0 @@ - -$sub_menu = "300300"; -include_once("./_common.php"); - -auth_check($auth[$sub_menu], "r"); - -$g4[title] = "다이얼로그관리"; -include_once ("$g4[admin_path]/admin.head.php"); - -$sql_common = " from $g4[dialog_table] "; - -// 테이블의 전체 레코드수만 얻음 -$sql = " select count(*) as cnt " . $sql_common; -$row = sql_fetch($sql, false); -if (!$row) { - sql_query(" - CREATE TABLE IF NOT EXISTS `$g4[dialog_table]` ( - `di_id` int(11) NOT NULL auto_increment, - `di_ui_theme` varchar(255) NOT NULL, - `di_begin_time` datetime NOT NULL, - `di_end_time` datetime NOT NULL, - `di_subject` varchar(255) NOT NULL, - `di_content` text NOT NULL, - `di_speeds` int(11) NOT NULL, - `di_position` varchar(255) NOT NULL, - `di_draggable` tinyint(4) NOT NULL, - `di_width` smallint(6) NOT NULL, - `di_height` smallint(6) NOT NULL, - `di_modal` tinyint(4) NOT NULL, - `di_resizable` tinyint(4) NOT NULL, - `di_disable_hours` tinyint(4) NOT NULL, - `di_show` varchar(255) NOT NULL, - `di_hide` varchar(255) NOT NULL, - `di_escape` tinyint(4) NOT NULL, - `di_zindex` int(11) NOT NULL, - PRIMARY KEY (`di_id`) - )"); -} -$total_count = $row[cnt]; - -$sql = "select * $sql_common order by di_id desc "; -$result = sql_query($sql); -?> - -| - | - | 건수 : echo $total_count ?> | -
* 같은 페이지에 다이얼로그 창이 2개 이상 뜨는 경우 나중에 설정한 테마가 적용됩니다.
- - -include_once ("$g4[admin_path]/admin.tail.php"); -?> diff --git a/adm/dialog_view.php b/adm/dialog_view.php deleted file mode 100644 index 1b84ae489..000000000 --- a/adm/dialog_view.php +++ /dev/null @@ -1,16 +0,0 @@ - -$sub_menu = "300300"; -include_once("./_common.php"); - -auth_check($auth[$sub_menu], "r"); - -$g4[title] = "다이얼로그관리"; -include_once ("$g4[admin_path]/admin.head.php"); - -$dialog_id = "dialog_".$di_id; -$_COOKIE[$dialog_id] = ""; - -echo g4_dialog((int)$_GET[di_id]); - -include_once ("$g4[admin_path]/admin.tail.php"); -?>