+
\ 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) {
메인메뉴
'mobile' order by gr_order ";
+ $sql = " select *
+ from {$g5['menu_table']}
+ where me_use = '1'
+ and length(me_code) = '2'
+ order by me_order, me_id ";
$result = sql_query($sql);
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용
- for ($gi=0; $row=sql_fetch_array($result); $gi++) { // gi 는 group index
- $gnb_zindex -= 1; // html 구조에서 앞선 gnb_1dli 에 더 높은 z-index 값 부여
- ?>
-
-
-
- 'mobile' order by bo_order ";
- $result2 = sql_query($sql2);
- for ($bi=0; $row2=sql_fetch_array($result2); $bi++) { // bi 는 board index
- ?>
-
-
-
+
+ for ($i=0; $row=sql_fetch_array($result); $i++) {
+ ?>
+