<?php
//引入Neil函數庫
include_once XOOPS_ROOT_PATH."/modules/neillibrary/function.php";

$configList=moduledb($dbneme="neothemesconfig",$where=" where `nsn` = '1'");
//字串轉陣列
$fieldsplit=phpconversion($conversion=$configList['field'],$type="unserialize"); 

$adminmenu = array();
$icon_dir=substr(XOOPS_VERSION,6,3)=='2.6'?"":"images/";
		
$i = 1;
$adminmenu[$i]['title'] = _MI_TAD_ADMIN_HOME ;
$adminmenu[$i]['link'] = 'admin/index.php' ;
$adminmenu[$i]['desc'] = _MI_TAD_ADMIN_HOME_DESC ;
$adminmenu[$i]['icon'] = 'images/admin/home.png' ;
$i++;


$adminmenu[$i]['title'] = _MA_NEODWADMIN_MENU01;               //佈景設定
$adminmenu[$i]['link'] = "admin/settings.php";
$adminmenu[$i]['icon'] = "images/admin/list.png";
$i++;


$adminmenu[$i]['title'] = _MA_NEODWADMIN_MENU02;             //關鍵字管理
$adminmenu[$i]['link'] = "admin/keywordmeta.php";
$adminmenu[$i]['icon'] = "images/admin/searching.png";
$i++;



$adminmenu[$i]['title'] = _MA_NEODWADMIN_MENU03;             //跑馬燈管理
$adminmenu[$i]['link'] = "admin/marqueetable.php";
$adminmenu[$i]['icon'] = "images/admin/marquee.png";
$i++;

$adminmenu[$i]['title'] = _MA_NEODWADMIN_MENU04;          //撥放器圖片管理
$adminmenu[$i]['link'] = "admin/playeradmin.php";
$adminmenu[$i]['icon'] = "images/admin/picture.png";
$i++;

$adminmenu[$i]['title'] = _MA_NEODWADMIN_MENU05;           //網站選單管理
$adminmenu[$i]['link'] = "admin/menutable.php";
$adminmenu[$i]['icon'] = "images/admin/menu.png";
$i++;

if($fieldsplit[7]=='1'){
$adminmenu[$i]['title'] = _MA_NEODWADMIN_MENU06;              //自訂網站選單管理
$adminmenu[$i]['link'] = "admin/rightmenu.php";
$adminmenu[$i]['icon'] = "images/admin/menu1.png";
}
$i++;

$adminmenu[$i]['title'] = _MA_NEODWADMIN_MENU07;          //按鈕區塊管理
$adminmenu[$i]['link'] = "admin/blockmenusort.php";
$adminmenu[$i]['icon'] = "images/admin/menu2.png";
$i++;

if(!empty($fieldsplit[3]) and empty($contactus)){
$adminmenu[$i]['title'] = _MA_NEODWADMIN_MENU08;          //聯絡我們管理
$adminmenu[$i]['link'] = "admin/contactustable.php";
$adminmenu[$i]['icon'] = "images/admin/mail.png";
}
$i++;

$adminmenu[$i]['title'] = _MA_NEODWADMIN_MENU09;          //隨機小語管理
$adminmenu[$i]['link'] = "admin/randomidiom.php";
$adminmenu[$i]['icon'] = "images/admin/newspaper.png";
$i++;

$adminmenu[$i]['title'] = _MA_NEODWADMIN_MENU10;          //全國據點管理
$adminmenu[$i]['link'] = "admin/address.php";
$adminmenu[$i]['icon'] = "images/admin/organize.png";	
$i++;

$adminmenu[$i]['title'] = _MA_NEODWADMIN_MENU11;          //簡介區塊管理
$adminmenu[$i]['link'] = "admin/textblock.php";
$adminmenu[$i]['icon'] = "images/admin/duplicate.png";	

$i++;
$adminmenu[$i]['title'] = _MA_NEODWADMIN_MENU12;          //廣告管理
$adminmenu[$i]['link'] = "admin/advertise.php";
$adminmenu[$i]['icon'] = "images/admin/online-advertising.png";	

?>
