<?php /* Smarty version 2.6.19, created on 2014-03-07 03:35:54
         compiled from menu.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>菜单</title>
<link href="common/menu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" id="jsSort" src=""></script>
<base target="mainFrame" />
</head>

<script language="javascript">
function $(objectId) 
{
	 return document.getElementById(objectId);
}

function showHide(objname)
{
    var obj = $(objname);
    if(obj.style.display == "none")
    {
        obj.style.display = "block";
    }
    else
    {
        obj.style.display = "none";
    }
    
    return false;
}

function refreshMainFrame(url)
{
    parent.hhMainFrame.document.location = url;
}
</script>
<base target="hhMainFrame">
<body>
<div class="menu">

<?php if ('main' == $this->_tpl_vars['module']): ?>
    <dl>
        <dt><a href="" onclick="return showHide('items0');" target="_self">广告管理</a></dt>
        <dd id="items0">
            <ul>
				<li><a href='ad_list.php'>广告位列表</a></li>
				<li><a href='ad_add.php'>添加广告位</a></li>
				<li><a href='category_list.php?pId=1069'>文字广告管理</a></li>				
            </ul>
        </dd>
    </dl>
    <script type="text/javascript">refreshMainFrame('main.php');</script>
<?php endif; ?> 

<?php if ('ad' == $this->_tpl_vars['module']): ?>
    <dl>
        <dt><a href="" onclick="return showHide('items0');" target="_self">广告管理</a></dt>
        <dd id="items0">
            <ul>
				<li><a href='ad_list.php'>广告位列表</a></li>
				<li><a href='ad_add.php'>添加广告位</a></li>
				<li><a href='category_list.php?pId=1069'>文字广告管理</a></li>				
            </ul>
        </dd>
    </dl>
    <script type="text/javascript">refreshMainFrame('ad_list.php');</script>
<?php endif; ?> 

<?php if ('url' == $this->_tpl_vars['module']): ?>    
    <dl>
        <dt><a href="" onclick="return showHide('items1');" target="_self">网址管理</a></dt>
        <dd id="items1">
            <ul>
				<li><a href='site_list.php'>网址列表</a></li>
				<li><a href='site_add.php'>添加网址</a></li>
            </ul>
        </dd>
    </dl>
    <dl>
        <dt><a href="" onclick="return showHide('items3');" target="_self">分类管理</a></dt>
        <dd id="items3">
            <ul>
				<li><a href='category_list.php'>分类列表</a></li>
				<li><a href='category_add.php'>添加分类</a></li>
            </ul>
        </dd>
    </dl>
    <script type="text/javascript">refreshMainFrame('site_list.php');</script>
<?php endif; ?> 

<?php if ('index' == $this->_tpl_vars['module']): ?>
    <dl>
        <dt><a href="" onclick="return showHide('items2');" target="_self">首页管理</a></dt>
        <dd id="items2">
            <ul>
				<li><a href='site_list.php?cId=775'>名站导航管理</a></li>
				<li><a href='site_list.php?cId=1072'>财经股票管理</a></li>
				<li><a href='site_list.php?cId=776'>实用工具管理</a></li>
				<li><a href='category_list.php?pId=778'>酷站管理</a></li>
				<li><a href='category_list.php?pId=1008'>地方服务</a></li>
				<li><a href='category_list.php?pId=7'>网络游戏</a></li>
				<li><a href='category_list.php?pId=8'>单机游戏</a></li>
            </ul>
        </dd>
    </dl>
    <script type="text/javascript">refreshMainFrame('site_list.php?cId=775');</script>
<?php endif; ?> 

<?php if ('apply' == $this->_tpl_vars['module']): ?>
    <dl>
        <dt><a href="" onclick="return showHide('items4');" target="_self">收录申请管理</a></dt>
        <dd id="items4">
            <ul>
				<li><a href='apply_list.php'>申请列表</a></li>
            </ul>
        </dd>
    </dl>
    <script type="text/javascript">refreshMainFrame('apply_list.php');</script>
<?php endif; ?> 

<?php if ('click' == $this->_tpl_vars['module']): ?>
    <dl>
        <dt><a href="" onclick="return showHide('items5');" target="_self">点击排行</a></dt>
        <dd id="items5">
            <ul>
				<li><a href='site_list.php?o=f_clickScore DESC'>积分排行</a></li>
				<li><a href='site_list.php?o=f_clickIn DESC'>点入排行</a></li>
				<li><a href='site_list.php?o=f_clickOut DESC'>点出排行</a></li>
            </ul>
        </dd>
    </dl>
    <script type="text/javascript">refreshMainFrame('site_list.php?o=f_clickScore DESC');</script>
<?php endif; ?> 

<?php if ('user' == $this->_tpl_vars['module']): ?>
    <dl>
        <dt><a href="" onclick="return showHide('items10');" target="_self">用户管理</a></dt>
        <dd id="items10">
            <ul>
				<li><a href='user_list.php'>用户列表</a></li>
            </ul>
        </dd>
    </dl>
    <script type="text/javascript">refreshMainFrame('user_list.php');</script>
<?php endif; ?> 

<?php if ('makehtml' == $this->_tpl_vars['module']): ?>
    <dl>
        <dt><a href="" onclick="return showHide('items6');" target="_self">生成HTML</a></dt>
        <dd id="items6">
            <ul>
				<li><a href='makehtml.php?a=index'>生成首页</a></li>
				<li><a href='category_list.php'>生成某分类</a></li>
				<li><a href='makehtml.php?a=all'>生成全站</a></li>
            </ul>
        </dd>
    </dl>
    <dl>
        <dt><a href="" onclick="return showHide('items7');" target="_self">模板管理</a></dt>
        <dd id="items7">
            <ul>
				<li><a href='template.php?tId=1'>首页模板</a></li>
				<li><a href='template.php?tId=2'>内页模板</a></li>
            </ul>
        </dd>
    </dl>    
    <script type="text/javascript">refreshMainFrame('template.php?tId=1');</script>
<?php endif; ?> 

<?php if ('system' == $this->_tpl_vars['module']): ?>
    <dl>
        <dt><a href="" onclick="return showHide('items8');" target="_self">数据管理</a></dt>
        <dd id="items8">
            <ul>
				<li><a href='db_export.php'>数据备份</a></li>
				<li><a href='db_import.php'>数据恢复</a></li>
            </ul>
        </dd>
    </dl>
    <dl>
        <dt><a href="" onclick="return showHide('items9');" target="_self">系统设置</a></dt>
        <dd id="items9">
            <ul>
				<li><a href='system_site.php'>网站信息</a></li>
				<li><a href='system_account.php'>账号管理</a></li>
            </ul>
        </dd>
    </dl>
    <script type="text/javascript">refreshMainFrame('system_site.php');</script>
<?php endif; ?>  
</div>
</body>
</html>
