From 2421a655cf5e41bfdaf165c2feb30b602311ef83 Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 13 Mar 2014 18:35:00 +0900 Subject: [PATCH 01/16] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90:=20gnb=201dep?= =?UTF-8?q?th=20=EB=84=88=EB=B9=84=20=EA=B0=80=EB=B3=80=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/default.css b/css/default.css index 65dcd6781..f7d3a2bc8 100644 --- a/css/default.css +++ b/css/default.css @@ -65,7 +65,7 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline} #gnb #gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""} .gnb_1dli {z-index:10;position:relative;float:left;zoom:1} .gnb_1dli:after {display:block;visibility:hidden;clear:both;content:""} -.gnb_1da {display:block;float:left;padding:0 10px;width:80px;height:35px;background:url('../img/gnb_bg00.gif') center right no-repeat;font-weight:bold;line-height:2.95em;text-decoration:none} +.gnb_1da {display:block;float:left;padding:0 40px 0 10px;height:35px;background:url('../img/gnb_bg00.gif') center right no-repeat;font-weight:bold;line-height:2.95em;text-decoration:none} .gnb_1da:focus, .gnb_1da:hover {background:url('../img/gnb_bg00.gif') #333 center right no-repeat;text-decoration:none} .gnb_1dli_air a {background-color:#333;color:#fff} .gnb_1dli_on a {background-color:#333;color:#fff} From 50c98dab191863120b81531d5a39fc2780102814 Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 13 Mar 2014 18:36:32 +0900 Subject: [PATCH 02/16] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90:=20gnb=202dep?= =?UTF-8?q?th=20=EB=86=92=EC=9D=B4=20=EA=B0=80=EB=B3=80=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/default.css b/css/default.css index f7d3a2bc8..855355b73 100644 --- a/css/default.css +++ b/css/default.css @@ -71,7 +71,7 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline} .gnb_1dli_on a {background-color:#333;color:#fff} .gnb_2dul {display:none;position:absolute;top:35px} .gnb_2da {display:block;width:80px;} -.gnb_2da {display:inline-block;padding:0 10px;width:161px;height:35px;text-align:left;text-decoration:none;line-height:2.95em} +.gnb_2da {display:inline-block;padding:13px 10px;width:161px;height:auto;text-align:left;text-decoration:none} .gnb_2da:focus, .gnb_2da:hover {text-decoration:none} .gnb_1dli_over .gnb_2dul {display:block;left:0;width:180px;background:#fff} .gnb_1dli_over2 .gnb_2dul {display:block;right:1px;width:180px;background:#fff} From c0fa8cefd1f1748425ad2a3ff42a6769cdd7d1a5 Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 13 Mar 2014 19:44:58 +0900 Subject: [PATCH 03/16] =?UTF-8?q?=EA=B3=B5=ED=86=B5:=20gnb=20=EC=8A=A4?= =?UTF-8?q?=ED=83=80=EC=9D=BC=20=ED=95=84=EC=9A=94=EC=97=86=EB=8A=94=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C=20=EB=B0=8F=20=EA=B0=84?= =?UTF-8?q?=EA=B2=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/admin.css | 23 +++++++++++------------ css/default.css | 20 ++++++++++---------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/css/admin.css b/css/admin.css index 6f761cd52..ae8456619 100644 --- a/css/admin.css +++ b/css/admin.css @@ -47,21 +47,20 @@ h2.h2_frm {padding-top:15px} #gnb h2 {margin:0;padding:0;font-size:0;line-height:0;overflow:hidden} #gnb_1dul {position:relative;margin:0 20px;padding:0;zoom:1} #gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""} -.gnb_1dli {z-index:13;position:relative;float:left;margin:0 0 0 -1px;border:1px solid #333;border-top:0;border-bottom:0;zoom:1} -.gnb_1dli:after {display:block;visibility:hidden;clear:both;content:""} -.gnb_1dli a {display:block;width:120px;height:34px;color:#fff;font-weight:bold;text-align:center;text-decoration:none;line-height:2.8em} -.gnb_1dli a:focus, .gnb_1dli a:hover {text-decoration:none} -.gnb_1dli_air a {background:#fff;color:#000} -.gnb_1dli_on a {background:#282828;color:#fff} -.gnb_2dul {display:none;position:absolute;top:34px;width:181px;border:1px solid #999;border-top:0;background:#fff} -.gnb_2dli {float:left} -.gnb_2dli a {display:inline-block;float:none;padding:8px 10px;width:161px;height:auto;background:#fff;color:#000;font-weight:normal;text-align:left;line-height:1em} -.gnb_2dli a:focus, .gnb_2dli a:hover {background:#484848 !important;color:#fff} +.gnb_1dli {z-index:13;position:relative;float:left;margin:0 0 0 -1px;border:1px solid #333;border-top:0;border-bottom:0} +.gnb_1da {display:block;width:120px;height:34px;color:#fff;font-weight:bold;text-align:center;text-decoration:none;line-height:2.8em} +.gnb_1da:focus, .gnb_1da:hover {text-decoration:none} +.gnb_1dli_air .gnb_1da {background:#fff;color:#000} +.gnb_1dli_on .gnb_1da {background:#282828;color:#fff} +.gnb_2dul {display:none;position:absolute;top:34px;width:180px;border:1px solid #999;border-top:0;background:#fff} +.gnb_2da {display:block;padding:8px 10px;background:#fff;color:#000;text-decoration:none} +.gnb_grp_style {background:#f7f7f7 !important} +.gnb_2da:focus, .gnb_2da:hover {background:#484848 !important;color:#fff !important;text-decoration:none} +.gnb_1dli_air .gnb_2da {background:#fff;color:#000} +.gnb_1dli_on .gnb_2da {background:#fff;color:#000} .gnb_1dli_over .gnb_2dul {display:block;left:-1px} .gnb_1dli_over2 .gnb_2dul {display:block;right:-1px} -.gnb_grp_style {background:#f7f7f7 !important} -.gnb_grp_style:focus, .gnb_js .gnb_grp_style:hover {background:#484848 !important} .gnb_grp_div {border-top:1px solid #eee} #lnb {margin:0;padding:15px;min-width:970px;border-bottom:1px solid #e9e9e9;list-style:none;zoom:1} diff --git a/css/default.css b/css/default.css index 855355b73..16c45bf1b 100644 --- a/css/default.css +++ b/css/default.css @@ -63,18 +63,18 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline} #gnb h2 {position:absolute;font-size:0;line-height:0;overflow:hidden} #gnb #gnb_1dul {margin:0 auto !important;padding:0;width:970px;zoom:1} #gnb #gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""} -.gnb_1dli {z-index:10;position:relative;float:left;zoom:1} -.gnb_1dli:after {display:block;visibility:hidden;clear:both;content:""} -.gnb_1da {display:block;float:left;padding:0 40px 0 10px;height:35px;background:url('../img/gnb_bg00.gif') center right no-repeat;font-weight:bold;line-height:2.95em;text-decoration:none} +.gnb_1dli {z-index:10;position:relative;float:left} +.gnb_1da {display:block;padding:0 40px 0 10px;height:35px;background:url('../img/gnb_bg00.gif') center right no-repeat;font-weight:bold;line-height:2.95em;text-decoration:none} .gnb_1da:focus, .gnb_1da:hover {background:url('../img/gnb_bg00.gif') #333 center right no-repeat;text-decoration:none} -.gnb_1dli_air a {background-color:#333;color:#fff} -.gnb_1dli_on a {background-color:#333;color:#fff} -.gnb_2dul {display:none;position:absolute;top:35px} -.gnb_2da {display:block;width:80px;} -.gnb_2da {display:inline-block;padding:13px 10px;width:161px;height:auto;text-align:left;text-decoration:none} +.gnb_1dli_air .gnb_1da {background-color:#333;color:#fff} +.gnb_1dli_on .gnb_1da {background-color:#333;color:#fff} +.gnb_2dul {display:none;position:absolute;top:35px;width:180px} +.gnb_2da {display:block;padding:13px 10px;text-align:left;text-decoration:none} .gnb_2da:focus, .gnb_2da:hover {text-decoration:none} -.gnb_1dli_over .gnb_2dul {display:block;left:0;width:180px;background:#fff} -.gnb_1dli_over2 .gnb_2dul {display:block;right:1px;width:180px;background:#fff} +.gnb_1dli_air .gnb_2da {background-color:#333;color:#fff} +.gnb_1dli_on .gnb_2da {background-color:#333;color:#fff} +.gnb_1dli_over .gnb_2dul {display:block;left:0;background:#fff} +.gnb_1dli_over2 .gnb_2dul {display:block;right:1px;background:#fff} .gnb_empty {width:100%;height:35px;text-align:center;line-height:2.95em} From 15b2813abc02c3a8a63b55fb78030f0572f30910 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 14 Mar 2014 09:08:06 +0900 Subject: [PATCH 04/16] =?UTF-8?q?=EB=A9=94=EB=89=B4=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/admin.menu100.php | 1 + adm/menu_form.php | 158 +++++++++++++++++++++++++++++++ adm/menu_form_search.php | 75 +++++++++++++++ adm/menu_list.php | 197 +++++++++++++++++++++++++++++++++++++++ adm/menu_list_update.php | 70 ++++++++++++++ head.php | 52 +++++++---- mobile/head.php | 98 +++++++++++++++---- mobile/tail.php | 17 ---- 8 files changed, 614 insertions(+), 54 deletions(-) create mode 100644 adm/menu_form.php create mode 100644 adm/menu_form_search.php create mode 100644 adm/menu_list.php create mode 100644 adm/menu_list_update.php 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) {

    메인메뉴

      '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++) { + ?> +
    • + + '.PHP_EOL; + ?> +
    • + 0) + echo '
    '.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']; ?> + + + + +