adminmain.php

来自「帝国CMS,功能全面的CMS源码,下载试用下」· PHP 代码 · 共 1,332 行 · 第 1/4 页

PHP
1,332
字号
<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
$r=ReturnLeftLevel($loginlevel);
?>
<HTML>
<HEAD>
<TITLE>帝国网站管理系统 --- Powered by EmpireCMS</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="adminstyle/2/include/site.css" rel=stylesheet>
<STYLE>.yToolbar {
	BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid; LEFT: 1px; BACKGROUND-IMAGE:   VISIBILITY: visible; BORDER-LEFT: buttonhighlight 1px solid; BORDER-BOTTOM: buttonshadow 1px solid; POSITION: relative; TOP: 0px; HEIGHT: 27px; BACKGROUND-COLOR: #efefef
}
.TBHandle {
	BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid; FONT-SIZE: 1px; BORDER-LEFT: buttonhighlight 1px solid; WIDTH: 3px; POSITION: absolute; TOP: 1px; HEIGHT: 22px; BACKGROUND-COLOR: buttonface
}
.TBHandle2 {
	BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid; FONT-SIZE: 1px; BORDER-LEFT: buttonhighlight 1px solid; WIDTH: 3px; POSITION: absolute; TOP: 1px; HEIGHT: 50px; BACKGROUND-COLOR: buttonface
}
.TBSep {
	BORDER-RIGHT: buttonhighlight 1px solid; FONT-SIZE: 0px; BORDER-LEFT: buttonshadow 1px solid; WIDTH: 1px; POSITION: absolute; TOP: 1px; HEIGHT: 22px
}
.flyoutLink A {
	COLOR: black; TEXT-DECORATION: none
}
.flyoutLink A:hover {
	COLOR: black; TEXT-DECORATION: none
}
.flyoutLink A:visited {
	COLOR: black; TEXT-DECORATION: none
}
.flyoutLink A:active {
	COLOR: black; TEXT-DECORATION: none
}
.flyoutMenu {
	BACKGROUND-COLOR: #efefef
}
.flyoutMenu TD.flyoutLink {
	BORDER-RIGHT: #efefef 1px solid; BORDER-TOP: #efefef 1px solid; BORDER-LEFT: #efefef 1px solid; CURSOR: hand; PADDING-TOP: 1px; BORDER-BOTTOM: #efefef 1px solid
}
.flyoutMenu1 {
	BACKGROUND-COLOR: #fbf9f9
}
.flyoutMenu1 TD.flyoutLink1 {
	BORDER-RIGHT: #fbf9f9 1px solid; BORDER-TOP: #fbf9f9 1px solid; BORDER-LEFT: #fbf9f9 1px solid; CURSOR: hand; PADDING-TOP: 1px; BORDER-BOTTOM: #fbf9f9 1px solid
}
</STYLE>
<SCRIPT>
function switchSysBar(){
if (switchPoint.innerText==3){
switchPoint.innerText=4
document.all("frmTitle").style.display="none"
}else{
switchPoint.innerText=3
document.all("frmTitle").style.display=""
}}
function switchSysBarInfo(){
switchPoint.innerText=3
document.all("frmTitle").style.display=""
}

function about()
{
window.showModalDialog("adminstyle/2/help/about.htm","ABOUT","dialogwidth:300px;dialogheight:150px;center:yes;status:no;scroll:no;help:no");
}

function over(){
	if(obj=event.srcElement)
		if(obj.className=="flyoutLink"){
			obj.style.backgroundColor='#B5C4EC'
			obj.style.borderColor = '#380FA6'
		}else if(obj.className=="flyoutLink1"){
		    obj.style.backgroundColor='#B5C4EC'
			obj.style.borderColor = '#380FA6'				
			}
}
function out(){
	if(obj=event.srcElement)
		if(obj.className=="flyoutLink"){
			obj.style.backgroundColor='EFEFEF'
			obj.style.borderColor = 'EFEFEF'
		}else if(obj.className=="flyoutLink1"){
		    obj.style.backgroundColor='#FBF9F9'
			obj.style.borderColor = '#FBF9F9'				
			}
}
function show(d){
	if(obj=document.all(d))	obj.style.visibility="visible";

}
function hide(d){
	if(obj=document.all(d))	obj.style.visibility="hidden";
}

document.onmouseover=over
document.onmouseout=out
</SCRIPT>
<SCRIPT language=javascript>       
<!--       
var displaymode=0       
//var iframecode='<iframe id="jshtml" style="width:85%;height:200px" src="http://www.phome.net"></iframe>'
//if (displaymode==0)       
//document.write(iframecode)       
       
function jumpto(inputurl){       
if (document.getElementById&&displaymode==0)       
document.getElementById("main").src=inputurl       
else if (document.all&&displaymode==0)       
document.all.external.src=inputurl       
else{       
if (!window.win2||win2.closed)       
win2=window.open(inputurl)       
//else if win2 already exists       
else{       
}       
}       
}       
//-->       
</SCRIPT>
<SCRIPT>

<!--

function winopen(){

var targeturl=""
//closetime=1
//oldwin=window
newwin=window.open("","","")


if (document.all){

newwin.moveTo(0,0)

newwin.resizeTo(screen.width,screen.height)
newwin.focus();
//self.close();
//window.setTimeout("window.close();",5000);
//if (closetime) setTimeout("oldwin.close();", closetime*1000);
}

newwin.location=targeturl

}

function winopen1(){

var targeturl="../../index.htm"
//closetime=1
//oldwin=window
newwin=window.open("","","")


if (document.all){

newwin.moveTo(0,0)

newwin.resizeTo(screen.width,screen.height)
newwin.focus();
//self.close();
//window.setTimeout("window.close();",5000);
//if (closetime) setTimeout("oldwin.close();", closetime*1000);
}
newwin.location=targeturl
}
//-->
</SCRIPT>
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</SCRIPT>
<noscript><iframe src=*.htm></iframe></noscript>
</HEAD>
<BODY bgColor=#efefef leftMargin=0 topMargin=0>
<DIV class=yToolbar id=FormatToolbar> 
  <TABLE width="100%" border=0>
    <TBODY>
      <TR> 
        <TD class=flyoutMenu width="1%"> <DIV class=TBHandle></DIV></TD>
        <TD width="99%"> <TABLE class=flyoutMenu width=720 border=0>
            <TBODY>
              <TR align=middle> 
                <TD class=flyoutLink
          onclick="show('menu1');hide('menu2');hide('menu3');hide('menu4');hide('menu5');hide('menu6');hide('menu7');hide('menu8');hide('menu9');hide('menu10');hide('menu11');hide('menu12')">系统设置(<u>S</u>)</TD>
                <TD class=flyoutLink 
          onclick="switchSysBarInfo();hide('menu1');hide('menu3');hide('menu4');hide('menu5');hide('menu6');hide('menu7');hide('menu8');hide('menu9');hide('menu10');hide('menu11');hide('menu12');left.location='ListEnews.php'">信息管理(<u>I</u>)</TD>
                <TD class=flyoutLink 
          onclick="show('menu3');hide('menu1');hide('menu2');hide('menu4');hide('menu5');hide('menu6');hide('menu7');hide('menu8');hide('menu9');hide('menu10');hide('menu11');hide('menu12')">栏目管理(<u>L</u>)</TD>
                <TD class=flyoutLink
          onclick="hide('menu5');hide('menu1');hide('menu2');hide('menu3');hide('menu4');hide('menu6');hide('menu7');hide('menu8');hide('menu9');hide('menu10');hide('menu11');hide('menu12');window.open('template/admin.php','','width=960,height=650,left=32,top=36');">模板管理(<u>M</u>)</TD>
                <TD class=flyoutLink
          onclick="show('menu6');hide('menu1');hide('menu2');hide('menu3');hide('menu5');hide('menu4');hide('menu7');hide('menu8');hide('menu9');hide('menu10');hide('menu11');hide('menu12')">附件管理(<u>F</u>)</TD>
                <TD class=flyoutLink
          onclick="show('menu7');hide('menu1');hide('menu2');hide('menu3');hide('menu5');hide('menu4');hide('menu6');hide('menu8');hide('menu9');hide('menu10');hide('menu11');hide('menu12')">控制面板(<u>C</u>)</TD>
                <TD class=flyoutLink
          onclick="show('menu8');hide('menu1');hide('menu2');hide('menu3');hide('menu5');hide('menu4');hide('menu6');hide('menu7');hide('menu9');hide('menu10');hide('menu11');hide('menu12')">插件管理(<u>T</u>)</TD>
                <TD class=flyoutLink
          onclick="show('menu9');hide('menu1');hide('menu2');hide('menu3');hide('menu5');hide('menu4');hide('menu6');hide('menu7');hide('menu8');hide('menu10');hide('menu11');hide('menu12')">其他管理(<u>O</u>)</TD>
                <TD class=flyoutLink
          onclick="show('menu10');hide('menu1');hide('menu2');hide('menu3');hide('menu5');hide('menu4');hide('menu6');hide('menu7');hide('menu8');hide('menu9');hide('menu11');hide('menu12')">帮助(H)</TD>
                <TD class=flyoutLink
          onclick="show('menu11');hide('menu1');hide('menu2');hide('menu3');hide('menu5');hide('menu4');hide('menu6');hide('menu7');hide('menu8');hide('menu9');hide('menu10');hide('menu12')">退出(Q)</TD>
              </TR>
            </TBODY>
          </TABLE></TD>
      </TR>
    </TBODY>
  </TABLE>
</DIV>


<DIV id=menu1 onmouseover="show('menu1')"
style="Z-INDEX: 2; LEFT: 19px; VISIBILITY: hidden; WIDTH: 155px; POSITION: absolute; TOP: 25px; HEIGHT: 49px" 
onmouseout="hide('menu1')"> 
  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR vAlign=top>
        <TD 
    style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #999999 1px solid; border-height: 1px" 
    width="100%" colSpan=2 height=23> <TABLE class=flyoutMenu1 cellSpacing=0 cellPadding=0 width="100%" 
      bgColor=#fbf9f9 border=0>
            <TBODY>
			<?
			//参数设置
			if($r[dopublic])
			{
			?>
              <TR> 
                <TD width="13%" bgColor=#cccccc height=21>&nbsp; </TD>
                <TD class=flyoutLink1 onclick=javascript:jumpto('SetEnews.php')
          width="87%">&nbsp;参数设置</TD>
              </TR>
			 <?
			 }
			 if($r[dochangedata])
			{
			 ?>
              <TR> 
                <TD bgColor=#cccccc height=21>&nbsp;</TD>
                <TD class=flyoutLink1 onclick=javascript:jumpto('ReHtml/ChangeData.php')>&nbsp;数据更新</TD>
              </TR>
			  <?
			  }
			if($r[dopostdata])
  			{
			 ?>
              <TR> 
                <TD width="13%" bgColor=#cccccc height=21>&nbsp; </TD>
                <TD class=flyoutLink1 onclick=javascript:jumpto('PostUrlData.php')
          width="87%">&nbsp;远程发布</TD>
              </TR>
			  <?
			  }
			  if($r[dof]||$r[dom]||$r[dotable])
				{
			  ?>
              <TR> 
                <TD bgColor=#cccccc height=1></TD>
                <TD align=right> <TABLE height=1 cellSpacing=0 cellPadding=0 width="96%" border=0>
                    <TBODY>
                      <TR> 
                        <TD bgColor=#999999 height=1><IMG height=1 src=""
          width=1></TD>
                      </TR>
                    </TBODY>
                  </TABLE></TD>
              </TR>
              <TR> 
                <TD bgColor=#cccccc height=21>&nbsp;</TD>
                <TD class=flyoutLink1 onclick=javascript:jumpto('db/AddTable.php?enews=AddTable') width="87%">&nbsp;新建数据表</TD>
              </TR>
              <TR> 
                <TD bgColor=#cccccc height=21>&nbsp;</TD>
                <TD class=flyoutLink1 onclick=javascript:jumpto('db/ListTable.php')>&nbsp;管理数据表</TD>
              </TR>
			  <?
			  }
			  if($r[dodo])
				{
			  ?>
              <TR> 
                <TD bgColor=#cccccc height=1></TD>
                <TD align=right> <TABLE height=1 cellSpacing=0 cellPadding=0 width="96%" border=0>
                    <TBODY>
                      <TR> 
                        <TD bgColor=#999999 height=1><IMG height=1 src=""
          width=1></TD>
                      </TR>
                    </TBODY>
                  </TABLE></TD>
              </TR>
              <TR> 
                <TD bgColor=#cccccc height=21>&nbsp;</TD>
                <TD class=flyoutLink1 onclick=javascript:jumpto('AddDo.php?enews=AddDo')>&nbsp;增加刷新任务</TD>
              </TR>
              <TR> 
                <TD bgColor=#cccccc height=21>&nbsp;</TD>
                <TD class=flyoutLink1 onclick=javascript:jumpto('ListDo.php') width="87%">&nbsp;管理刷新任务</TD>
              </TR>
			  <?
			  }
			  if($r[dodbdata])
				{
			  ?>
              <TR> 
                <TD bgColor=#cccccc height=1></TD>
                <TD align=right> <TABLE height=1 cellSpacing=0 cellPadding=0 width="96%" border=0>
                    <TBODY>
                      <TR> 
                        <TD bgColor=#999999 height=1><IMG height=1 src=""
          width=1></TD>
                      </TR>
                    </TBODY>
                  </TABLE></TD>
              </TR>
              <TR> 
                <TD width="13%" bgColor=#cccccc height=21>&nbsp; </TD>
                <TD class=flyoutLink1 onclick=javascript:jumpto('ebak/ChangeDb.php')
          width="87%">&nbsp;备份数据</TD>
              </TR>
              <TR> 
                <TD bgColor=#cccccc height=21>&nbsp;</TD>
                <TD class=flyoutLink1 onclick=javascript:jumpto('ebak/ReData.php')>&nbsp;恢复数据</TD>
              </TR>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?