관리자모드 좌측 소메뉴 정보
레이아웃 관리자모드 좌측 소메뉴첨부파일
본문
그누보드5 관리자모드 소메뉴를 좌측에 출력합니다.
사용법
압축을 풀어 그누보드5가 설치된 관리자 디렉토리(/adm/)에 덮어 씌웁니다.
원본파일은 백업하세요.
(admin.head.php, admin.menu100.php, admin.tail.php)
원본파일 코드 추가/변경 내용(그누보드 5.0.31 버전 기준)
- admin.head.php
8줄
add_stylesheet('', 1);
131줄~
$on_class = '';
if ($sub_menu == $value[0])
$on_class = ' class="on"';
echo $nl.''.$value[1].'';
- admin.menu100.php
array('100100', '기본환경설정', G5_ADMIN_URL.'/config_form.php', 'cf_basic'),
array('100200', '관리권한설정', G5_ADMIN_URL.'/auth_list.php', 'cf_auth'),
array('100290', '메뉴설정', G5_ADMIN_URL.'/menu_list.php', 'cf_menu', 1),
- admin.tail.php
$(function(){
// 인덱스페이지 사이즈 변경
if ($('#lnb').length == 0)
$('#wrapper').css('display', 'block');
// 현재탭의 버튼 활성
if ($('ul.anchor').length > 1) {
$('ul.anchor').each(function(index){
$(this).find('a').eq(index).addClass('on');
});
} else {
$('ul.anchor a').each(function() {
if ( $(this).attr('href').match(location.href.replace(/.*\/([a-zA-Z0-9_-|\.]+)(\?.*)?$/g, "$1")) )
$(this).addClass('on');
});
}
// 중요 관리권한항목 삭제
$('select#au_menu option[value=100100], select#au_menu option[value=100200], select#au_menu option[value=100290]').remove();
});
사용법
압축을 풀어 그누보드5가 설치된 관리자 디렉토리(/adm/)에 덮어 씌웁니다.
원본파일은 백업하세요.
(admin.head.php, admin.menu100.php, admin.tail.php)
원본파일 코드 추가/변경 내용(그누보드 5.0.31 버전 기준)
- admin.head.php
8줄
add_stylesheet('', 1);
131줄~
$on_class = '';
if ($sub_menu == $value[0])
$on_class = ' class="on"';
echo $nl.''.$value[1].'';
- admin.menu100.php
array('100100', '기본환경설정', G5_ADMIN_URL.'/config_form.php', 'cf_basic'),
array('100200', '관리권한설정', G5_ADMIN_URL.'/auth_list.php', 'cf_auth'),
array('100290', '메뉴설정', G5_ADMIN_URL.'/menu_list.php', 'cf_menu', 1),
- admin.tail.php
$(function(){
// 인덱스페이지 사이즈 변경
if ($('#lnb').length == 0)
$('#wrapper').css('display', 'block');
// 현재탭의 버튼 활성
if ($('ul.anchor').length > 1) {
$('ul.anchor').each(function(index){
$(this).find('a').eq(index).addClass('on');
});
} else {
$('ul.anchor a').each(function() {
if ( $(this).attr('href').match(location.href.replace(/.*\/([a-zA-Z0-9_-|\.]+)(\?.*)?$/g, "$1")) )
$(this).addClass('on');
});
}
// 중요 관리권한항목 삭제
$('select#au_menu option[value=100100], select#au_menu option[value=100200], select#au_menu option[value=100290]').remove();
});
추천
11
11
댓글 전체
정말 감사드립니다
감사합니다.~~ 굿~~
영카트에도 쓸수 있나요?
아마 되었던것으로 알고 있는데요. 원본 백업해두시고 적용해보세요.