<?php
if(!defined('IN_ADMIN')) exit('Access Denied');
if($_SESSION["admin"]!="NewsTeng")showmessage('请登陆', SCRIPT_NAME.'?file=login');
switch ($action){
	/*输出左导航*/
	case 'left':
        ?>
        <!-- 导航开始 -->
        <html><hand>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=<?php echo CHARSET;?>">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta HTTP-EQUIV="Content-Language" CONTENT="<?php echo CHARSET;?>">
<script language='JavaScript' src='admin/img/admin.Js'></script>
<link href="admin/img/style.css" rel="stylesheet" type="text/css">
<style>
body{background-color:#5ABEEB;background:url("admin/img/left_bg.gif");background-attachment:fixed}
.LeftBG{background:#4DB4E2;filter:alpha(opacity=20)}
.menubg {color:#ffffff; position:relative; filter:alpha(opacity=100);}
.Titbg {background:none !important;color:#FFFFFF;position:relative;background:url("admin/img/Menu_BG.gif");filter: Alpha(Opacity=70)}
A{COLOR: #FFFFFF; TEXT-DECORATION: None}
A:link	{COLOR: #FFFFFF; TEXT-DECORATION: None}
A:visited{COLOR: #FFFFFF; TEXT-DECORATION: None}
A:hover	{COLOR: #FFFFFF; TEXT-DECORATION: None}
A:active	{TEXT-DECORATION: none}
</style>
<table width='100%' height='100%' border=0 cellspacing=0 cellpadding=0>
<tr><td valign=top colspan=2 style='height:78px;padding:10px 10px;background:url("admin/img/admin.gif")'>欢迎：<strong><?php echo $_SESSION['name'];?>！</strong><br>等级：超级管理员<br>操作：<a style='cursor:pointer' href=<?php echo SCRIPT_NAME;?>?file=admin&action=list target=main><font color=#135294>修改密码</font></a></td></tr>
<tr>
<td valign=top width=25 style='padding:0 0 5px 2px'>
<table width='100%' border=0 cellspacing=0 cellpadding=0>
  <tr><td><table width='100%' height='100%' border=0 cellspacing=0 cellpadding=0 Class=mLabel1 id=tit onClick="menudis(0)"><tr><td id=titfont Class=mLabeltit1>频道</td></tr></table></td></tr>
  <tr><td height=3></td></tr>
  <tr><td><table width='100%' height='100%' border=0 cellspacing=0 cellpadding=0 Class=mLabel id=tit onClick="menudis(1)"><tr><td id=titfont Class=mLabeltit>其他</td></tr></table></td></tr>
  <tr><td height=3></td></tr>
  <tr><td><table width='100%' height='100%' border=0 cellspacing=0 cellpadding=0 Class=mLabel id=tit onClick="menudis(2)"><tr><td id=titfont Class=mLabeltit>会员</td></tr></table></td></tr>
  <tr><td height=3></td></tr>
  <tr><td><table width='100%' height='100%' border=0 cellspacing=0 cellpadding=0 Class=mLabel id=tit onClick="menudis(3)"><tr><td id=titfont Class=mLabeltit>全局</td></tr></table></td></tr>
</table>
</td>
<td valign=top>
<div style="height:100%;width:100%;overflow-y:scroll;overflow-x:hidden;padding:0 2px 5px 2px">
<table cellspacing=1 cellpadding=0 width='100%' align='center' border=0>
<tr ID=ShowM><td>
<table width='100%' cellpadding=0 cellspacing=0>
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td onClick='show(d00,e00,f00)' id='f00' class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;新闻管理</strong></td></tr>
<tr id='d00'><td class=menubg>
<a href=<?php echo SCRIPT_NAME;?>?file=news&action=list target=main>新闻列表</a> | <a href=<?php echo SCRIPT_NAME;?>?file=news&action=add target=main>添加</a><br>
<a href=<?php echo SCRIPT_NAME;?>?file=type&action=list&lx=1 target=main>新闻分类</a> | <a href=<?php echo SCRIPT_NAME;?>?file=type&action=add&lx=1 target=main>添加</a>
</td></tr>
</table>
</td></tr><tr id='e00'><td height=6></td></tr>
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td onClick='show(d6,e6,f6)' id='f6' class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;产品管理</strong></td></tr>
<tr id='d6'><td class=menubg>
<a href=<?php echo SCRIPT_NAME;?>?file=product&action=list target=main>产品列表</a> | <a href=<?php echo SCRIPT_NAME;?>?file=product&action=add target=main>添加</a><br>
<a href=<?php echo SCRIPT_NAME;?>?file=type&action=list&lx=2 target=main>产品分类</a> | <a href=<?php echo SCRIPT_NAME;?>?file=type&action=add&lx=2 target=main>添加</a>
</td></tr>
</table>
</td></tr><tr id='e6'><td height=6></td></tr>
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td onClick='show(d5,e5,f5)' id='f5' class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;单页面</strong></td></tr>
<tr id='d5'><td class=menubg>
<a href=<?php echo SCRIPT_NAME;?>?file=page&action=list target=main>单页列表</a> | <a href=<?php echo SCRIPT_NAME;?>?file=page&action=add target=main>添加</a><br>
</td></tr>
</table>
</td></tr><tr id='e5'><td height=6></td></tr>
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;版权信息</strong></td></tr>
<tr><td class=menubg>
<a target=_blank href=http://www.newsteng.com>版权：讯腾网络</a><br>
<a target=_blank href=http://www.newsteng.com>官方：NewsTeng.Com</a><br>
<a target=_blank href=http://demo.newsteng.com>演示：点击查看</a>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
<tr ID=ShowM Style='display:none'><td>
<table width='100%' cellpadding=0 cellspacing=0>
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td onClick='show(a14,b14,c14)' id='c14' class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;广告 招聘 连接</strong></td></tr>
<tr id='a14'><td class=menubg>
<a target=main href=<?php echo SCRIPT_NAME;?>?file=ads&action=list >广告管理</a> | <a target=main href="<?php echo SCRIPT_NAME;?>?file=ads&action=add">添加</a><br>
────────<br>
<a href=<?php echo SCRIPT_NAME;?>?file=job&action=list target=main>职位列表</a> | <a target=main href="<?php echo SCRIPT_NAME;?>?file=job&action=add">添加</a><br>
<a href=<?php echo SCRIPT_NAME;?>?file=job&action=resumelist target=main>简历列表</a><br>
────────<br>
<a href=<?php echo SCRIPT_NAME;?>?file=link&action=list target=main>链接列表</a> | <a href=<?php echo SCRIPT_NAME;?>?file=link&action=add target=main>添加</a>
</td></tr>
</table>
</td></tr><tr id='b14'><td height=6></td></tr>
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td onClick='show(a15,b15,c15)' id='c15' class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;订单 留言</strong></td></tr>
<tr id='a15'><td class=menubg>
<a target=main href=<?php echo SCRIPT_NAME;?>?file=guest&action=list>访客留言列表</a><br>
<a target=main href=<?php echo SCRIPT_NAME;?>?file=order&action=list>订单列表</a>|
<a target=main href=<?php echo SCRIPT_NAME;?>?file=menu&action=list>导航菜单</a>
</td></tr>
</table>
</td></tr><tr id='b15'><td height=6></td></tr>
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;版权信息</strong></td></tr>
<tr><td class=menubg>
<a target=_blank href=http://www.newsteng.com>版权：讯腾网络</a><br>
<a target=_blank href=http://www.newsteng.com>官方：NewsTeng.Com</a><br>
<a target=_blank href=http://demo.newsteng.com>演示：点击查看</a>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
<tr ID=ShowM Style='display:none'><td>
<table width='100%' cellpadding=0 cellspacing=0>
<!-- 
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td onClick='show(a13,b13,c13)' id='c13' class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;功能管理</strong></td></tr>
<tr id='a13'><td class=menubg>
<!-- 
<a href=<?php echo SCRIPT_NAME;?>?file=member&action=add target=main>添加用户</a> | <a href=<?php echo SCRIPT_NAME;?>?file=member&action=list&passed=1 target=main>待审</a><br>
<a target=main href=<?php echo SCRIPT_NAME;?>?file=member&action=list>用户管理</a><br> 
</td></tr>
</table>
</td></tr><tr id='b13'><td height=6></td></tr>
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td onClick='show(a11,b11,c11)' id='c11' class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;邮局管理</strong></td></tr>
<tr id='a11'><td class=menubg>
<a target=main href=<?php echo SCRIPT_NAME;?>?file=mail&action=list>邮箱管理</a> | <a target=main href=<?php echo SCRIPT_NAME;?>?file=mail&action=add>添加</a><br>
────────<br>
<a target=main href="<?php echo SCRIPT_NAME;?>?file=mail&action=set">邮局配置</a><br>
<a target=main href="<?php echo SCRIPT_NAME;?>?file=mail&action=js">外部调用</a><br>
</td></tr>
</table>
</td></tr><tr id='b11'><td height=6></td></tr>
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;版权信息</strong></td></tr>
<tr><td class=menubg>
<a target=_blank href=http://www.newsteng.com>版权：讯腾网络</a><br>
<a target=_blank href=http://www.newsteng.com>官方：NewsTeng.Com</a><br>
<a target=_blank href=http://demo.newsteng.com>演示：点击查看</a>
</td></tr>
</table>
</td></tr>-->敬请期待
</table>
</td></tr>
<tr ID=ShowM Style='display:none'><td>
<table width='100%' cellpadding=0 cellspacing=0>
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td onClick='show(a1,b1,c1)' id='c1' class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;网站配置</strong></td></tr>
<tr id='a1'><td class=menubg>
<a target=main href=<?php echo SCRIPT_NAME;?>?file=settings&action=setup target=main>网站参数设置</a><br>
<a target=main href=<?php echo SCRIPT_NAME;?>?file=settings&action=cache target=main>更新系统总数据</a><br>
<a target=main href=<?php echo SCRIPT_NAME;?>?file=settings&action=business target=main>讯腾商务引擎设置</a>
</td></tr>
</table>
</td></tr><tr id='b1'><td height=6></td></tr>
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td onClick='show(a3,b3,c3)' id='c3' class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;管理员</strong></td></tr>
<tr id='a3'><td class=menubg>
<a target=main href=<?php echo SCRIPT_NAME;?>?file=admin&action=add target=main>添加管理员</a><br>
<a target=main href=<?php echo SCRIPT_NAME;?>?file=admin&action=list target=main>管理员列表</a>
</td></tr>
</table>
</td></tr><tr id='b3'><td height=6></td></tr>
<!-- 
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td onClick='show(a5,b5,c5)' id='c5' class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;数据库</strong></td></tr>
<tr id='a5'><td class=menubg>
<a target=main href=<?php echo SCRIPT_NAME;?>?file=db&action=export target=main>数据库备份</a><br>
<a target=main href=<?php echo SCRIPT_NAME;?>?file=db&action=import target=main>数据库恢复</a><br>
<a target=main href=WM.Cre_Content.asp?Action=Class target=main>数据库优化</a><br>
<a target=main href=WM.Cre_Content.asp?Action=Company target=main>执行SQL语句</a><br>
<a target=main href=WM.Cre_Content.asp?Action=SinglePage target=main>数据库策略</a>
</td></tr>
</table>
</td></tr><tr id='b5'><td height=6></td></tr> -->
<tr><td>
<table cellspacing=0 cellpadding=5 width='100%' align='center' border=0 class=LeftBG>
<tr><td class='Titbg Font4' style='cursor:pointer'><strong>&nbsp;版权信息</strong></td></tr>
<tr><td class=menubg>
<a target=_blank href=http://www.newsteng.com>版权：讯腾网络</a><br>
<a target=_blank href=http://www.newsteng.com>官方：NewsTeng.Com</a><br>
<a target=_blank href=http://demo.newsteng.com>演示：点击查看</a>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>

</table>
        <?php 
	break;
	
	case 'main':
	?>
	<html><hand>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=<?php echo CHARSET;?>">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta HTTP-EQUIV="Content-Language" CONTENT="<?php echo CHARSET;?>">
<script language='JavaScript' src='admin/img/admin.Js'></script>
<link href="admin/img/style.css" rel="stylesheet" type="text/css">
<table width='100%' cellpadding=3 cellspacing=1 Class=td1>
<tr><td colspan=3 class=td3>本系统由<a href=http://www.newsteng.com target=_blank>讯腾信息技术有限公司（NewsTeng.Net）</a>授权给 <?php echo $TM['sitename'];?> 使用，当前版本为 XTCMS V1.1</td></tr>
<tr><td colspan=3 class=td4><strong>服务器信息</strong></td></tr>
<tr class=td2><td Colspan=2>服务器名称：<?php echo $_SERVER['HTTP_HOST'];?></td>
<td width='50%'>站点物理路径：<?php echo TM_ROOT;?></td></tr>
<tr class=td2><td Colspan=2>服务器操作系统：<strong><?php $os = explode(" ", php_uname());echo $os[0].$os[1];?></strong> <font color=red>(官方开发环境：Windows 7)</font></td>
<td>数据库版本：<strong>mysql <?php echo $db->version();?></strong></td></tr>

<tr class=td2><td Colspan=2>PHP版本：<strong><?php echo PHP_VERSION;?></strong> <font color=red>(官方开发环境：5.2.12)</font></td>
<td>PHP运行方式：<strong><?php echo strtoupper(php_sapi_name());?></strong></td></tr>
<tr class=td2><td Colspan=2>ZendOptimizer：<strong>
<?php if (defined('OPTIMIZER_VERSION')) {echo OPTIMIZER_VERSION;}else{echo '不支持';}?></strong></td>
<td>GD图片库：<strong><?php if (function_exists("gd_info")==false) {echo "不支持";}else{ $gd= gd_info();echo $gd['GD Version'];}?></strong></td></tr>
<tr class=td2><td Colspan=2>安全模式：<strong><?php echo  getcon("safe_mode");?></strong></td>
<td>最大上传文件：<strong><?php  echo getcon("upload_max_filesize")?></strong></td></tr>

<tr class=td2><td Colspan=2>magic_quotes_gpc：<strong><?php echo getcon("get_magic_quotes_gpc")?></strong></td>
<td>全局变量：<strong><?php echo getcon("register_globals")?></strong> <font color=red>(推荐关闭)</font> <a href=info.php>点此查看更详细的服务器信息>>></a></td></tr>



<tr><td colspan=3 class=td4><strong>产品信息</strong></td></tr>
<tr class=td2><td Colspan=3>
<table width='100%' cellpadding=3 cellspacing=1>
<tr class=td2><td></td><td><font color=red>讯腾科技 十万网站用户的首选技术品牌！</font></td></tr>
<tr class=td2><td width='20%'>产品开发</td>
<td width='80%'><a href=http://www.newsteng.com target=_blank>山东讯腾信息技术有限公司</a></td></tr>
<tr class=td2><td>产品负责</td>
<td Colspan=2>徐超  董保芳</td></tr>
<tr class=td2><td>产品版权</td>
<td Colspan=2>讯腾信息技术有限公司</td></tr>
<tr class=td2><td>联系方式</td>
<td Colspan=2>联系方式：15194186366 15194186266 　邮箱 webmaster@newsteng.com
<br>业务联系：QQ 85825770　QQ 81006418
<br>售后服务/技术支持：QQ 85825770　QQ 81006418
<br><a href="http://www.newsteng.com/about/contactus/" target=_blank>点击查看详细联系方法</a></td></tr>
</table>

</td></tr>
<tr class=td4><td Colspan=3><strong><font class=f18>NewsTeng Inc.</font></strong></td></tr>
</table>
	<?php 
	break;
}
?>