<?php 
$sql_left = mysql_query('SELECT `manage_user`, `manage_section`, `manage_news`, `manage_content`, `manage_product`, `manage_gallery`, `manage_banner`, `manage_blog`, `manage_blogcat` FROM `'.TBL_USER.'` WHERE `uid` = '.$_SESSION['Logged_Uid']);
$row_left = mysql_fetch_assoc($sql_left);
?>

<div id="awesome_logo"></div>
<div id="left_menu">
	<?php if ($row_left['manage_user'] == 1){?>
    <a href="listUser.php" class="menu_item"><div class="menu_img" id="btn_admin"></div>管理員設定</a>
    <?php }
	//if ($row_left['manage_banner'] == 1){?>
    <!-- <a href="listBanner.php" class="menu_item"><div class="menu_img" id="btn_banner"></div>Slide管理</a> -->
    <?php //}
	if ($row_left['manage_section'] == 1){?>
    <a href="listSection.php" class="menu_item"><div class="menu_img" id="btn_section"></div>分區管理</a>
    <?php }
	//if ($row_left['manage_news'] == 1){?>
    <!-- <a href="listNews.php" class="menu_item"><div class="menu_img" id="btn_news"></div>新聞管理</a> -->
    <?php //}
    if ($row_left['manage_blog'] == 1){?>
    <a href="listWhatsnew.php" class="menu_item"><div class="menu_img" id="btn_content"></div>最新消息</a>
    <?php }
    if ($row_left['manage_blog'] == 1){?>
    <a href="listCourse.php" class="menu_item"><div class="menu_img" id="btn_content"></div>課程介紹</a>
     <?php }
    if ($row_left['manage_blog'] == 1){?>
    <a href="listOverseas.php" class="menu_item"><div class="menu_img" id="btn_content"></div>遊學升學</a>
    <?php }
    if ($row_left['manage_blog'] == 1){?>
    <a href="listRecommend.php" class="menu_item"><div class="menu_img" id="btn_content"></div>星級推薦</a>
    <?php }
    if ($row_left['manage_blogcat'] == 1){?>
    <a href="listPhotocat.php" class="menu_item"><div class="menu_img" id="btn_content"></div>相片圖集種類管理</a>
    <?php }
    if ($row_left['manage_blogcat'] == 1){?>
    <a href="listPhoto.php" class="menu_item"><div class="menu_img" id="btn_content"></div>相片圖集管理</a>
    <?php }
    if ($row_left['manage_blogcat'] == 1){?>
    <a href="listVideo.php" class="menu_item"><div class="menu_img" id="btn_content"></div>影片庫</a>
    <?php }
    if ($row_left['manage_blog'] == 1){?>
    <a href="listPartner.php" class="menu_item"><div class="menu_img" id="btn_content"></div>教育同盟</a>
     <?php }
    if ($row_left['manage_blog'] == 1){?>
    <a href="listContact.php" class="menu_item"><div class="menu_img" id="btn_content"></div>聯絡我們</a>
    <?php }
	//if ($row_left['manage_content'] == 1){?>
    <!-- <a href="listContent.php" class="menu_item"><div class="menu_img" id="btn_content"></div>內容管理</a> -->
    <?php //}
	//if ($row_left['manage_gallery'] == 1){?>
    <!-- <a href="listAlbum.php" class="menu_item"><div class="menu_img" id="btn_gallery"></div>相片管理</a> -->
    <?php //}
    //if ($row_left['manage_blogcat'] == 1){?>
    <!-- <a href="listBlogcat.php" class="menu_item"><div class="menu_img" id="btn_content"></div>專欄種類管理</a> -->
    <?php //}
    //if ($row_left['manage_blog'] == 1){?>
    <!-- <a href="listBlog.php" class="menu_item"><div class="menu_img" id="btn_content"></div>專欄管理</a> -->
    <?php// }
	// if ($row_left['manage_product'] == 1){?>
    <!--a href="listCate.php" class="menu_item"><div class="menu_img" id="btn_cate"></div>產品分類管理</a>
    <a href="listProduct.php" class="menu_item"><div class="menu_img" id="btn_product"></div>產品管理</a-->
    <?php //}?>
    <?php //if ($row_left['manage_section'] == 1){?>
    <!-- <a href="cdclistSection.php" class="menu_item"><div class="menu_img" id="btn_section"></div>兒童分區管理</a> -->
     <?php //}
    //if ($row_left['manage_content'] == 1){?>
    <!-- <a href="cdc_listContent.php" class="menu_item"><div class="menu_img" id="btn_content"></div>兒童內容管理</a> -->
    <?php //}?>
    <a href="logout.php" class="menu_item"><div class="menu_img" id="btn_logout"></div>安全登出</a>
    <a href="../" class="menu_item"><div class="menu_img" id="btn_home"></div>網站首頁</a>
</div>

<?php mysql_free_result($sql_left);?>