diff --git a/adm/admin.menu100.php b/adm/admin.menu100.php index 217dfe9c3..357382cd9 100644 --- a/adm/admin.menu100.php +++ b/adm/admin.menu100.php @@ -3,6 +3,7 @@ $menu['menu100'] = array ( array('100000', '환경설정', G5_ADMIN_URL.'/config_form.php', 'config'), array('', '기본환경설정', G5_ADMIN_URL.'/config_form.php', 'cf_basic'), array('', '관리권한설정', G5_ADMIN_URL.'/auth_list.php', 'cf_auth'), + array('', '메뉴설정', G5_ADMIN_URL.'/menu_list.php', 'cf_menu'), array('100300', '메일 테스트', G5_ADMIN_URL.'/sendmail_test.php', 'cf_mailtest'), array('100310', '팝업레이어관리', G5_ADMIN_URL.'/newwinlist.php', 'scf_poplayer'), //array('100400', '버전정보', G5_ADMIN_URL.'/version.php', 'cf_version'), diff --git a/adm/menu_form.php b/adm/menu_form.php new file mode 100644 index 000000000..fe11fb379 --- /dev/null +++ b/adm/menu_form.php @@ -0,0 +1,158 @@ + + +
+

+ +
+ +
+ + + + + + + + + + + +
+ +
+
+ +
+ +
+ +
+ +
+ + + + \ No newline at end of file diff --git a/adm/menu_form_search.php b/adm/menu_form_search.php new file mode 100644 index 000000000..c6fc023b6 --- /dev/null +++ b/adm/menu_form_search.php @@ -0,0 +1,75 @@ +'.PHP_EOL; + + switch($type) { + case 'group': + $link = G5_BBS_URL.'/group.php?gr_id='.$row['id']; + break; + case 'board': + $link = G5_BBS_URL.'/board.php?bo_table='.$row['id']; + break; + case 'content': + $link = G5_BBS_URL.'/content.php?co_id='.$row['id']; + break; + default: + $link = ''; + break; + } + + echo '
  • '.PHP_EOL; + echo ''.PHP_EOL; + echo ''.PHP_EOL; + echo ''.$row['subject'].''; + echo ''.PHP_EOL; + echo '
  • '.PHP_EOL; + } +} else { ?> + + + + + + + + + + + + + +
    +
    + 링크는 http://를 포함해서 입력해 주세요. +
    +
    + \ No newline at end of file diff --git a/adm/menu_list.php b/adm/menu_list.php new file mode 100644 index 000000000..57b7e379a --- /dev/null +++ b/adm/menu_list.php @@ -0,0 +1,197 @@ +dbconfig.php 파일에 $g5[\'menu_table\'] = G5_TABLE_PREFIX.\'menu\'; 를 추가해 주세요.'); +} + +if(!sql_query(" DESCRIBE {$g5['menu_table']} ", false)) { + sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['menu_table']}` ( + `me_id` int(11) NOT NULL AUTO_INCREMENT, + `me_code` varchar(255) NOT NULL DEFAULT '', + `me_name` varchar(255) NOT NULL DEFAULT '', + `me_link` varchar(255) NOT NULL DEFAULT '', + `me_target` varchar(255) NOT NULL DEFAULT '0', + `me_order` int(11) NOT NULL DEFAULT '0', + `me_use` tinyint(4) NOT NULL DEFAULT '0', + `me_mobile_use` tinyint(4) NOT NULL DEFAULT '0', + PRIMARY KEY (`me_id`) + ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true); +} + +$sql = " select * from {$g5['menu_table']} order by me_id "; +$result = sql_query($sql); + +$g5['title'] = "메뉴설정"; +include_once('./admin.head.php'); + +$colspan = 7; +?> + +
    + + +
    + +
    + + + +
    + +
    + +
    + + + + diff --git a/adm/menu_list_update.php b/adm/menu_list_update.php new file mode 100644 index 000000000..2d55a7226 --- /dev/null +++ b/adm/menu_list_update.php @@ -0,0 +1,70 @@ + diff --git a/head.php b/head.php index d574bd650..b16cd18de 100644 --- a/head.php +++ b/head.php @@ -112,26 +112,44 @@ if (G5_IS_MOBILE) {

    메인메뉴

    '.PHP_EOL; + ?> - -
  • 생성된 메뉴가 없습니다.
  • +
  • 생성된 메뉴가 없습니다.
  • diff --git a/mobile/head.php b/mobile/head.php index 01c70c8d4..d131d92dc 100644 --- a/mobile/head.php +++ b/mobile/head.php @@ -29,6 +29,84 @@ include_once(G5_LIB_PATH.'/popular.lib.php'); <?php echo $config['cf_title']; ?> + + + + +