@@ -1,455 +1,78 @@ | |||||
* { | *{padding:0;margin:0;box-sizing:border-box} | ||||
padding:0; | a{text-decoration:none} | ||||
margin:0; | html,body{width:100%;height:100%} | ||||
box-sizing:border-box | body{height:100%;font-size:12px;overflow:hidden;z-index:1} | ||||
} | body.showmenu{background:url(../images/leftmenu_bg.gif) -10px top repeat-y} | ||||
a { | body.hidemenu{background:none} | ||||
text-decoration:none | ul{list-style:none} | ||||
} | form{margin:0;padding:0} | ||||
html,body { | .head{width:100%;height:76px;overflow:hidden;z-index:8;position:relative} | ||||
width:100%; | .top{height:46px;width:100%;background-image:linear-gradient(135deg,#008E38 0%,#639709 100%);overflow:hidden;clear:both} | ||||
height:100% | .top .top_logo{float:left;margin-left:30px;height:46px;line-height:46px} | ||||
} | .top .top_logo a{font-size:20px;font-weight:600;color:#fff} | ||||
body { | .top .top_version{display:inline-block;margin-top:10px;margin-left:10px;color:#fff} | ||||
height:100%; | .top .top_link{float:right;margin-right:30px} | ||||
font-size:12px; | .top .top_link ul{float:left;line-height:46px;overflow:hidden} | ||||
overflow:hidden; | .top .top_link ul li.welcome img{margin-top:-4px;margin-right:10px;width:30px;height:30px;vertical-align:middle} | ||||
z-index:1 | .top .top_link ul li{float:left;color:#fff} | ||||
} | .top .top_link ul li a{color:#fff;padding-left:20px} | ||||
body.showmenu { | .top .top_link ul li a:hover{color:#ccc} | ||||
background:url(../images/leftmenu_bg.gif) -10px top repeat-y | .top .top_link .quick{padding:3px 0px 0px 0px;float:left} | ||||
} | .top .top_link .quick a{display:block;color:#C60;float:left;line-height:21px;height:21px;overflow:hidden} | ||||
body.hidemenu { | .top .top_link .quick a.ac_qucikmenu{width:81px;background:url(../images/quick_bg.gif) left top no-repeat;letter-spacing:1px;text-indent:8px} | ||||
background:none | .top .top_link .quick a.ac_qucikmenu:hover{background:url(../images/quick_bg.gif) left bottom no-repeat} | ||||
} | .top .top_link .quick a.ac_qucikadd{width:19px;background:url(../images/quick_bg.gif) right top no-repeat} | ||||
ul { | .top .top_link .quick a.ac_qucikadd:hover{background:url(../images/quick_bg.gif) right bottom no-repeat} | ||||
list-style:none | .topnav{width:100%;height:30px;background:#333;overflow:hidden;clear:both} | ||||
} | .topnav .menuact{width:168px;float:left;padding-left:30px;overflow:hidden;padding-top:6px} | ||||
form { | .topnav .menuact a{overflow:hidden;color:#eee;padding-right:10px} | ||||
margin:0; | .topnav .menuact a:hover{color:#fff} | ||||
padding:0 | .nav{float:left;padding-left:2px;line-height:26px;color:#999} | ||||
} | .nav ul li{float:left;display:block;margin-left:4px} | ||||
.head { | .nav ul li a{padding:0 10px 0px 10px;color:#FFCC00} | ||||
width:100%; | .nav ul li a:hover{color:#fff} | ||||
height:76px; | .nav ul li a.thisclass,.nav ul li a.thisclass:hover{color:#4E8100;display:block;font-weight:bold;background:#fff;line-height:23px;border-top:2px solid #FFDE59;margin-top:4px;padding:0 10px 0px 10px} | ||||
overflow:hidden; | .sysmsg{height:30px;overflow:hidden;line-height:30px;padding-right:30px;float:right;color:#999;width:500px} | ||||
z-index:8; | .scroll{float:right;overflow:hidden;height:30px} | ||||
position:relative | .scroll ul li,.sysmsg ul li a{color:#bbb} | ||||
} | .scroll ul li{height:26px;overflow:hidden;line-height:26px;float:right;clear:both;padding-left:20px;background:url(../images/ico-sysmsg.png) 5px 8px no-repeat} | ||||
.top { | .scroll ul li a:hover{text-decoration:underline} | ||||
height:46px; | .scroll a{padding-left:10px;color:#fff} | ||||
width:100%; | body.showmenu .left{display:block} | ||||
background-image:linear-gradient(135deg,#008E38 0%,#639709 100%); | body.hidemenu .left{display:none} | ||||
overflow:hidden; | body.showmenu .right{left:220px} | ||||
clear:both | body.hidemenu .right{left:0} | ||||
} | .left{position:absolute;top:76px;width:220px;left:0;bottom:0;z-index:7} | ||||
.top .top_logo { | .menu{height:100%} | ||||
float:left; | .top_link{font-size:12px} | ||||
margin-left:10px; | .menu iframe{height:100%;width:99.99%;z-index:20} | ||||
height:46px; | .right{position:absolute;right:0;top:76px;bottom:0;z-index:7} | ||||
line-height:46px | .main{height:100%} | ||||
} | .main iframe{height:100%;width:99.99%;z-index:20} | ||||
.top .top_logo a { | .qucikmenu{position:absolute;right:10px;top:32px;z-index:9;display:none} | ||||
font-size:18px; | .qucikmenu ul{width:110px;list-style:none;border:1px solid #E7E7E7;background:#fff} | ||||
font-weight:600; | .qucikmenu ul li{display:block;text-align:left} | ||||
color:#fff | .qucikmenu ul li a{height:30px;line-height:30px;display:block;color:#666;padding-left:10px;padding-right:10px} | ||||
} | .qucikmenu ul li a:hover{background:#F7F7F7} | ||||
.top .top_version { | .pagemask{width:100%;height:100%;background:#000;position:absolute;z-index:100;filter:alpha(opacity=70);-moz-opacity:.7;opacity:.7;display:none} | ||||
display:inline-block; | .iframemask{position:absolute;z-index:80;top:0;left:0;background-color:#fff;border:none;filter:alpha(opacity=0);-moz-opacity:0;opacity:0;height:100%;width:100%;display:none} | ||||
margin-top:10px; | .allmenu{width:800px;background:#fff;z-index:999;position:absolute;left:50%;top:76px;margin-left:-400px;display:none;padding:10px} | ||||
margin-left:10px; | .allmenu .allmenu-box{margin:0 auto;text-align:left;overflow:hidden;padding-left:2px} | ||||
color:#fff | .maptop{float:left;width:130px;overflow:hidden;padding-right:6px;padding-left:6px;margin-left:-1px} | ||||
} | .maptop dt.bigitem{padding:5px 10px;background:#333;color:#fff;line-height:18px;font-weight:600} | ||||
.top .top_link { | .mapitem dt{line-height:21px;font-weight:bold;text-indent:10px;background:#EFF1F1} | ||||
float:right | .mapitem ul{margin-top:10px;margin-bottom:10px} | ||||
} | .mapitem ul li{text-indent:20px;line-height:24px;background:url(../images/arrr.gif) 4px 6px no-repeat} | ||||
.top .top_link ul { | .allmenu a{color:#5C604F} | ||||
float:left; | .allmenu a:hover{color:#F63} | ||||
line-height:46px; | #login .theme{clear:both;padding:10px;width:70%;margin-top:20px} | ||||
overflow:hidden | #login .theme li{margin-bottom:15px;margin-top:5px;overflow:hidden} | ||||
} | #login .theme span{color:#000;width:150px;display:inline-block;float:left;text-align:right;height:22px;line-height:22px} | ||||
.top .top_link ul li.welcome img { | input[type="text"],input[type="password"]{width:140px;border-width:1px;border-style:solid;border-color:#fff;padding:2px 4px;height:18px;line-height:18px;vertical-align:middle;background:#fff} | ||||
margin-top:-2px; | input[type="text"]:focus,input[type="password"]:focus{border-color:#6FB1DF;color:#333;-moz-box-shadow:0 0 3px #A5C760;-webkit-border-shadow:0 0 3px #A5C760;box-shadow:0 0 3px #A5C760} | ||||
margin-right:10px; | * html input.text{width:220px;border:1px solid #a7a6aa;background:#fff url(../images/input.gif) 0 0 no-repeat;margin-top:-1px;margin-right:5px;margin-bottom:0;margin-left:2px;padding:3px;line-height:12px} | ||||
width:30px; | * html input.radio{margin:-1px 0 0 -2px} | ||||
height:30px; | .allsearch{float:left;margin-top:7px!important;font-size:12px;border:1px solid #fff;border-radius:.2rem} | ||||
vertical-align:middle | .np{margin-left:10px;width:40px;height:18px;line-height:18px;font-size:12px;color:#fff;cursor:pointer;background:#57960f;border:none;border-radius:.2rem} | ||||
} | #help{background:url(../images/dlgtitle.gif) repeat-x scroll 0 0 transparent;bottom:0;left:0;position:absolute;width:100%;height:28px;border-top:1px solid #390;line-height:28px;text-align:right;padding-top:0;padding-bottom:0} | ||||
.top .top_link ul li { | #help #content{padding-right:12px;background:url(../images/gtk-edit.png) no-repeat scroll 0px -1px;padding-left:20px} | ||||
float:left; | |||||
color:#fff | |||||
} | |||||
.top .top_link ul li a { | |||||
color:#fff; | |||||
padding-left:10px; | |||||
padding-right:10px | |||||
} | |||||
.top .top_link ul li a:hover { | |||||
color:#ccc | |||||
} | |||||
.top .top_link .quick { | |||||
padding:3px 0px 0px 0px; | |||||
float:left | |||||
} | |||||
.top .top_link .quick a { | |||||
display:block; | |||||
color:#C60; | |||||
float:left; | |||||
line-height:21px; | |||||
height:21px; | |||||
overflow:hidden | |||||
} | |||||
.top .top_link .quick a.ac_qucikmenu { | |||||
width:81px; | |||||
background:url(../images/quick_bg.gif) left top no-repeat; | |||||
letter-spacing:1px; | |||||
text-indent:8px | |||||
} | |||||
.top .top_link .quick a.ac_qucikmenu:hover { | |||||
background:url(../images/quick_bg.gif) left bottom no-repeat | |||||
} | |||||
.top .top_link .quick a.ac_qucikadd { | |||||
width:19px; | |||||
background:url(../images/quick_bg.gif) right top no-repeat | |||||
} | |||||
.top .top_link .quick a.ac_qucikadd:hover { | |||||
background:url(../images/quick_bg.gif) right bottom no-repeat | |||||
} | |||||
.topnav { | |||||
width:100%; | |||||
height:30px; | |||||
background:#333; | |||||
overflow:hidden; | |||||
clear:both | |||||
} | |||||
.topnav .menuact { | |||||
width:168px; | |||||
float:left; | |||||
padding-left:10px; | |||||
overflow:hidden; | |||||
padding-top:6px | |||||
} | |||||
.topnav .menuact a { | |||||
overflow:hidden; | |||||
color:#eee; | |||||
padding-right:10px | |||||
} | |||||
.topnav .menuact a:hover { | |||||
color:#fff | |||||
} | |||||
.nav { | |||||
float:left; | |||||
padding-left:2px; | |||||
line-height:26px; | |||||
color:#999 | |||||
} | |||||
.nav ul li { | |||||
float:left; | |||||
display:block; | |||||
margin-left:4px | |||||
} | |||||
.nav ul li a { | |||||
padding:0 10px 0px 10px; | |||||
color:#FFCC00 | |||||
} | |||||
.nav ul li a:hover { | |||||
color:#fff | |||||
} | |||||
.nav ul li a.thisclass,.nav ul li a.thisclass:hover { | |||||
color:#4E8100; | |||||
display:block; | |||||
font-weight:bold; | |||||
background:#fff; | |||||
line-height:23px; | |||||
border-top:2px solid #FFDE59; | |||||
margin-top:4px; | |||||
padding:0 10px 0px 10px | |||||
} | |||||
.sysmsg { | |||||
height:30px; | |||||
overflow:hidden; | |||||
line-height:30px; | |||||
padding-right:10px; | |||||
float:right; | |||||
color:#999; | |||||
width:500px | |||||
} | |||||
.sysmsg h3 { | |||||
font-size:12px; | |||||
float:left; | |||||
padding-right:6px; | |||||
font-weight:normal; | |||||
color:#FC0; | |||||
display:none | |||||
} | |||||
.scroll { | |||||
float:right; | |||||
overflow:hidden; | |||||
height:30px | |||||
} | |||||
.scroll ul li,.sysmsg ul li a { | |||||
color:#BBB | |||||
} | |||||
.scroll ul li { | |||||
height:26px; | |||||
overflow:hidden; | |||||
line-height:26px; | |||||
float:right; | |||||
clear:both; | |||||
padding-left:19px; | |||||
background:url(../images/ico-sysmsg.png) 5px 8px no-repeat | |||||
} | |||||
.scroll ul li a:hover { | |||||
text-decoration:underline | |||||
} | |||||
.scroll a { | |||||
padding-left:10px; | |||||
color:#fff | |||||
} | |||||
.scroll a:hover { | |||||
text-decoration:underline | |||||
} | |||||
body.showmenu .left { | |||||
display:block | |||||
} | |||||
body.hidemenu .left { | |||||
display:none | |||||
} | |||||
body.showmenu .right { | |||||
left:220px | |||||
} | |||||
body.hidemenu .right { | |||||
left:0 | |||||
} | |||||
.left { | |||||
position:absolute; | |||||
top:76px; | |||||
width:220px; | |||||
left:0; | |||||
bottom:0; | |||||
z-index:7 | |||||
} | |||||
.menu { | |||||
height:100% | |||||
} | |||||
.top_link { | |||||
font-size:12px | |||||
} | |||||
.menu iframe { | |||||
height:100%; | |||||
width:99.99%; | |||||
z-index:20 | |||||
} | |||||
.right { | |||||
position:absolute; | |||||
right:0; | |||||
top:76px; | |||||
bottom:0; | |||||
z-index:7 | |||||
} | |||||
.main { | |||||
height:100% | |||||
} | |||||
.main iframe { | |||||
height:100%; | |||||
width:99.99%; | |||||
z-index:20 | |||||
} | |||||
.qucikmenu { | |||||
position:absolute; | |||||
right:10px; | |||||
top:32px; | |||||
z-index:9; | |||||
display:none | |||||
} | |||||
.qucikmenu ul { | |||||
width:110px; | |||||
list-style:none; | |||||
border:1px solid #E7E7E7; | |||||
background:#fff | |||||
} | |||||
.qucikmenu ul li { | |||||
display:block; | |||||
text-align:left | |||||
} | |||||
.qucikmenu ul li a { | |||||
height:30px; | |||||
line-height:30px; | |||||
display:block; | |||||
color:#666666; | |||||
padding-left:10px; | |||||
padding-right:10px | |||||
} | |||||
.qucikmenu ul li a:hover { | |||||
background:#F7F7F7 | |||||
} | |||||
.pagemask { | |||||
width:100%; | |||||
height:100%; | |||||
background:#000; | |||||
position:absolute; | |||||
z-index:100; | |||||
filter:alpha(opacity=70); | |||||
-moz-opacity:0.7; | |||||
opacity:0.7; | |||||
display:none | |||||
} | |||||
.iframemask { | |||||
position:absolute; | |||||
z-index:80; | |||||
top:0; | |||||
left:0; | |||||
background-color:#fff; | |||||
border:none; | |||||
filter:alpha(opacity=0); | |||||
-moz-opacity:0; | |||||
opacity:0; | |||||
height:100%; | |||||
width:100%; | |||||
display:none | |||||
} | |||||
.allmenu { | |||||
width:800px; | |||||
background:#fff; | |||||
border:2px solid #999; | |||||
z-index:999; | |||||
position:absolute; | |||||
left:50%; | |||||
top:76px; | |||||
margin-left:-400px; | |||||
display:none; | |||||
padding:10px | |||||
} | |||||
.allmenu .allmenu-box { | |||||
margin:0 auto; | |||||
text-align:left; | |||||
overflow:hidden; | |||||
padding-left:2px | |||||
} | |||||
.maptop { | |||||
float:left; | |||||
width:130px; | |||||
overflow:hidden; | |||||
padding-right:6px; | |||||
padding-left:6px; | |||||
margin-left:-1px | |||||
} | |||||
.maptop dt.bigitem { | |||||
padding:5px 10px; | |||||
background:#333; | |||||
color:#fff; | |||||
line-height:18px; | |||||
font-weight:600 | |||||
} | |||||
.mapitem dt { | |||||
line-height:21px; | |||||
font-weight:bold; | |||||
text-indent:10px; | |||||
background:#EFF1F1 | |||||
} | |||||
.mapitem ul { | |||||
margin-top:10px; | |||||
margin-bottom:10px | |||||
} | |||||
.mapitem ul li { | |||||
text-indent:20px; | |||||
line-height:24px; | |||||
background:url(../images/arrr.gif) 4px 6px no-repeat | |||||
} | |||||
.allmenu a { | |||||
color:#5C604F | |||||
} | |||||
.allmenu a:hover { | |||||
color:#F63 | |||||
} | |||||
#login .theme { | |||||
clear:both; | |||||
padding:10px; | |||||
width:70%; | |||||
margin-top:20px | |||||
} | |||||
#login .theme li { | |||||
margin-bottom:15px; | |||||
margin-top:5px; | |||||
overflow:hidden | |||||
} | |||||
#login .theme span { | |||||
color:#000000; | |||||
width:150px; | |||||
display:inline-block; | |||||
float:left; | |||||
text-align:right; | |||||
height:22px; | |||||
line-height:22px | |||||
} | |||||
input { | |||||
color:#000; | |||||
font-size:12px | |||||
} | |||||
input[type="text"],input[type="password"] { | |||||
width:160px; | |||||
border-width:1px; | |||||
border-style:solid; | |||||
border-color:#fff; | |||||
padding:2px 4px; | |||||
height:18px; | |||||
line-height:18px; | |||||
vertical-align:middle; | |||||
background:#fff | |||||
} | |||||
input[type="text"]:focus,input[type="password"]:focus { | |||||
border-color:#6FB1DF; | |||||
color:#333; | |||||
-moz-box-shadow:0 0 3px #A5C760; | |||||
-webkit-border-shadow:0 0 3px #A5C760; | |||||
box-shadow:0 0 3px #A5C760 | |||||
} | |||||
* html input.text { | |||||
width:223px; | |||||
border:1px solid #a7a6aa; | |||||
background:#fff url(../images/input.gif) 0 0 no-repeat; | |||||
margin-top:-1px; | |||||
margin-right:5px; | |||||
margin-bottom:0; | |||||
margin-left:2px; | |||||
padding:3px; | |||||
line-height:12px | |||||
} | |||||
* html input.radio { | |||||
margin:-1px 0 0 -2px | |||||
} | |||||
.allsearch { | |||||
float:left; | |||||
margin-top:7px!important; | |||||
border:1px solid #fff; | |||||
border-radius:2px | |||||
} | |||||
.np { | |||||
width:40px; | |||||
height:18px; | |||||
line-height:18px; | |||||
border:none; | |||||
color:#fff; | |||||
background:#57960f; | |||||
cursor:pointer; | |||||
margin-left:10px; | |||||
border-radius:2px | |||||
} | |||||
#help { | |||||
background:url(../images/dlgtitle.gif) repeat-x scroll 0 0 transparent; | |||||
bottom:0; | |||||
left:0; | |||||
position:absolute; | |||||
width:100%; | |||||
height:28px; | |||||
border-top:1px solid #390; | |||||
line-height:28px; | |||||
text-align:right; | |||||
padding-top:0; | |||||
padding-bottom:0 | |||||
} | |||||
#help #content { | |||||
padding-right:12px; | |||||
background:url(../images/gtk-edit.png) no-repeat scroll 0px -1px; | |||||
padding-left:20px | |||||
} |
@@ -1,56 +1,45 @@ | |||||
<!DOCTYPE html | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||||
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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>文档管理</title> | <title>文档管理</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | ||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | <link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | ||||
<link rel="stylesheet" type="text/css" href="css/base.css"> | <link rel="stylesheet" href="css/base.css"> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | <script src="../static/js/jquery.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | <script src="../static/js/bootstrap.bundle.js"></script> | ||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | <script src="../static/js/dedeajax2.js"></script> | ||||
<script language="javascript" src="js/ieemu.js"></script> | <script src="js/ieemu.js"></script> | ||||
<script language="javascript" src="js/context_menu.js"></script> | <script src="js/context_menu.js"></script> | ||||
<script language="javascript" src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
<script language="javascript" src="js/list.js"></script> | <script src="js/list.js"></script> | ||||
</head> | </head> | ||||
<body leftmargin="8" topmargin="8" background='images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()"> | <body leftmargin="8" topmargin="8" background='images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()"> | ||||
<!--快速转换位置按钮--> | |||||
<!-- 快速转换位置按钮 --> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" class="table maintable table-bordered mt-3"> | <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" class="table maintable table-bordered mt-3"> | ||||
<tr> | <tr> | ||||
<td align="center"> | <td align="center"> | ||||
<button type='button' class="btn btn-success btn-sm" | <button type='button' class="btn btn-success btn-sm" onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';">添加文档</button> | ||||
onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';">添加文档</button> | |||||
{dede:if $adminid==$mid } | {dede:if $adminid==$mid } | ||||
<button type='button' class="btn btn-success btn-sm" | <button type='button' class="btn btn-success btn-sm" onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';">全部文档</button> | ||||
onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';">全部文档</button> | |||||
{else} | {else} | ||||
<button type='button' class="btn btn-success btn-sm" | <button type='button' class="btn btn-success btn-sm" onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';">我的文档</button> | ||||
onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';">我的文档</button> | |||||
{/dede:if} | {/dede:if} | ||||
{dede:global.CheckUserSend/} | {dede:global.CheckUserSend/} | ||||
<button type='button' class="btn btn-success btn-sm" onClick="location='catalog_main.php';">栏目管理</button> | <button type='button' class="btn btn-success btn-sm" onClick="location='catalog_main.php';">栏目管理</button> | ||||
<button type='button' class="btn btn-success btn-sm" name='bb1' | <button type='button' class="btn btn-success btn-sm" name='bb1' onClick="location='makehtml_list.php?cid={dede:global.cid/}';">更新列表</button> | ||||
onClick="location='makehtml_list.php?cid={dede:global.cid/}';">更新列表</button> | <button type='button' class="btn btn-success btn-sm" name='bb2' onClick="location='makehtml_archives.php?cid={dede:global.cid/}';">更新文档</button> | ||||
<button type='button' class="btn btn-success btn-sm" name='bb2' | <button type='button' class="btn btn-success btn-sm" name='bb1' onClick="location='recycling.php?cid={dede:global.cid/}';">文章回收站</button> | ||||
onClick="location='makehtml_archives.php?cid={dede:global.cid/}';">更新文档</button> | |||||
<button type='button' class="btn btn-success btn-sm" name='bb1' | |||||
onClick="location='recycling.php?cid={dede:global.cid/}';">文章回收站</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<!--内容列表--> | |||||
<!-- 内容列表 --> | |||||
<form name="form2"> | <form name="form2"> | ||||
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#CFCFCF" align="center" | <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#CFCFCF" align="center" | ||||
style="margin-top:8px" class="table table-bordered maintable"> | style="margin-top:8px" class="table table-bordered maintable"> | ||||
<tr bgcolor="#E7E7E7"> | <tr bgcolor="#E7E7E7"> | ||||
<td height="28" colspan="10" background="images/tbg.gif" style="padding-left:10px;"> | <td height="28" colspan="10" background="images/tbg.gif" style="padding-left:10px;">◆ {dede:global.positionname/}文档列表 (使用鼠标右键弹出菜单) | ||||
◆ {dede:global.positionname/}文档列表 (使用鼠标右键弹出菜单) | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr align="center" bgcolor="#FBFCE2" height="25"> | <tr align="center" bgcolor="#FBFCE2" height="25"> | ||||
@@ -66,8 +55,7 @@ | |||||
<td width="12%">操作</td> | <td width="12%">操作</td> | ||||
</tr> | </tr> | ||||
{dede:datalist} | {dede:datalist} | ||||
<tr align='center' bgcolor="#FFFFFF" height="26" align="center" | <tr align='center' bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | ||||
onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td nowrap> | <td nowrap> | ||||
{dede:field.id/} | {dede:field.id/} | ||||
</td> | </td> | ||||
@@ -85,8 +73,7 @@ | |||||
{dede:field.flag function='IsCommendArchives(@me)'/} | {dede:field.flag function='IsCommendArchives(@me)'/} | ||||
</td> | </td> | ||||
<td>{dede:field.senddate function='GetDateMk(@me)'/}</td> | <td>{dede:field.senddate function='GetDateMk(@me)'/}</td> | ||||
<td><a href='content_list.php?cid={dede:field.typeid/}'>{dede:field.typeid | <td><a href='content_list.php?cid={dede:field.typeid/}'>{dede:field.typeid function='GetTypename(@me)'/}</a></td> | ||||
function='GetTypename(@me)'/}</a></td> | |||||
<td>{dede:field.click/}</td> | <td>{dede:field.click/}</td> | ||||
<td>{dede:field.ismake function="IsHtmlArchives(@me)"/}</td> | <td>{dede:field.ismake function="IsHtmlArchives(@me)"/}</td> | ||||
<td>{dede:field.arcrank function="GetRankName(@me)"/}</td> | <td>{dede:field.arcrank function="GetRankName(@me)"/}</td> | ||||
@@ -115,19 +102,17 @@ | |||||
<a href="javascript:;" onClick="cAtts('attsDel',event,this)" class="btn btn-success btn-sm"> 删除属性 </a> | <a href="javascript:;" onClick="cAtts('attsDel',event,this)" class="btn btn-success btn-sm"> 删除属性 </a> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr align="right" bgcolor="#F9FCEF"> | |||||
<td height="36" colspan="10" align="center"> | |||||
{dede:pagelist listsize=3/} | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | </form> | ||||
<tr align="right" bgcolor="#F9FCEF"> | <!--搜索表单--> | ||||
<td height="36" colspan="10" align="center"> | |||||
{dede:pagelist listsize=3/} | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<!-- 搜索表单 --> | |||||
<form name='form3' action='content_list.php' method='get'> | <form name='form3' action='content_list.php' method='get'> | ||||
<input type='hidden' name='dopost' value='listArchives' /> | <input type='hidden' name='dopost' value='listArchives' /> | ||||
<table width='98%' border='0' cellpadding='1' cellspacing='1' bgcolor='#cfcfcf' align="center" | <table width='98%' border='0' cellpadding='1' cellspacing='1' bgcolor='#cfcfcf' align="center" style="margin-top:8px;border:1px solid #dee2e6" class="mb-3"> | ||||
style="margin-top:8px" class="mb-3"> | |||||
<tr bgcolor='#EEF4EA'> | <tr bgcolor='#EEF4EA'> | ||||
<td background='images/wbg.gif' align='center'> | <td background='images/wbg.gif' align='center'> | ||||
<table border='0' cellpadding='0' cellspacing='0' height="32"> | <table border='0' cellpadding='0' cellspacing='0' height="32"> | ||||
@@ -169,7 +154,5 @@ | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</form> | </form> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,168 +1,137 @@ | |||||
<!DOCTYPE html> | <!DOCTYPE html> | ||||
<html> | <html> | ||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<title><?php echo $cfg_webname; ?>-<?php echo $cfg_soft_enname; ?> <?php echo $cfg_version_detail; ?></title> | <title><?php echo $cfg_webname; ?>后台管理</title> | ||||
<link rel="stylesheet" href="css/frame.css"> | <link rel="stylesheet" href="css/frame.css"> | ||||
<link rel="stylesheet" href="images/style<?php echo $cfg_admin_skin;?>/style.css"> | <link rel="stylesheet" href="images/style<?php echo $cfg_admin_skin;?>/style.css"> | ||||
<script src="../static/js/jquery.js"></script> | <script src="../static/js/jquery.js"></script> | ||||
<script src="js/frame.js"></script> | <script src="js/frame.js"></script> | ||||
<style> | <style> | ||||
#skinlist { | #skinlist{display:block;height:10px;margin-top:10px;overflow:hidden;width:86px} | ||||
display:block; | #skin div{float:left} | ||||
height:11px; | #skin li{float:left;width:14px;height:10px;cursor:pointer} | ||||
margin-top:10px; | #def div,#s1 div,#s2 div,#s3 div,#s4 div{background-image:url("images/skinbutton.png");background-repeat:no-repeat} | ||||
overflow:hidden; | #s1 div{background-position:0 0px} | ||||
width:86px | #s2 div{background-position:0 -11px} | ||||
} | #s3 div{background-position:0 -22px} | ||||
#skin div { | #s4 div{background-position:0 -33px} | ||||
float:left | #s1 div.sel{background:url("images/skinbutton.png") no-repeat scroll -14px top transparent} | ||||
} | #s2 div.sel{background:url("images/skinbutton.png") no-repeat scroll -14px -11px transparent} | ||||
#skin li { | #s3 div.sel{background:url("images/skinbutton.png") no-repeat scroll -14px -22px transparent} | ||||
cursor:pointer; | #s4 div.sel{background:url("images/skinbutton.png") no-repeat scroll -14px -33px transparent} | ||||
float:left; | </style> | ||||
height:11px; | |||||
width:14px | |||||
} | |||||
#def div,#s1 div,#s2 div,#s3 div,#s4 div { | |||||
background-image:url("images/skinbutton.png"); | |||||
background-repeat:no-repeat | |||||
} | |||||
#s1 div { | |||||
background-position:0 0px | |||||
} | |||||
#s2 div { | |||||
background-position:0 -11px | |||||
} | |||||
#s3 div { | |||||
background-position:0 -22px | |||||
} | |||||
#s4 div { | |||||
background-position:0 -33px | |||||
} | |||||
#s1 div.sel { | |||||
background:url("images/skinbutton.png") no-repeat scroll -14px top transparent | |||||
} | |||||
#s2 div.sel { | |||||
background:url("images/skinbutton.png") no-repeat scroll -14px -11px transparent | |||||
} | |||||
#s3 div.sel { | |||||
background:url("images/skinbutton.png") no-repeat scroll -14px -22px transparent | |||||
} | |||||
#s4 div.sel { | |||||
background:url("images/skinbutton.png") no-repeat scroll -14px -33px transparent | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body class="showmenu"> | <body class="showmenu"> | ||||
<div class="pagemask"></div> | <div class="pagemask"></div> | ||||
<iframe class="iframemask"></iframe> | <iframe class="iframemask"></iframe> | ||||
<div class="allmenu"> | <div class="allmenu"> | ||||
<div class="allmenu-box"> | <div class="allmenu-box"> | ||||
<?php | <?php | ||||
echo $mapstring; | echo $mapstring; | ||||
?> | ?> | ||||
<br style="clear:both"> | <br style="clear:both"> | ||||
</div> | |||||
</div> | </div> | ||||
</div> | <div class="head"> | ||||
<div class="head"> | <div class="top"> | ||||
<div class="top"> | <div class="top_logo"><a href="#" onclick="JumpFrame('index_menu.php','index_body.php');"><?php echo $cfg_webname; ?>系统</a></div> | ||||
<div class="top_logo"><a href="#" onclick="JumpFrame('index_menu.php','index_body.php');"><?php echo $cfg_soft_enname; ?></a></div> | <div class="top_version"><?php echo $cfg_version_detail; ?></div> | ||||
<div class="top_version"><?php echo $cfg_version_detail; ?></div> | <div class="top_link"> | ||||
<div class="top_link"> | <ul> | ||||
<ul> | <li class="welcome"><img src="/static/img/avatar.png" title="<?php echo $cuserLogin->getUserName(); ?>"><?php echo $cuserLogin->getUserName(); ?><a href="exit.php" target="_top">注销</a></li> | ||||
<li class="welcome"><img src="/static/img/avatar.png" title="<?php echo $cuserLogin->getUserName(); ?>"><?php echo $cuserLogin->getUserName(); ?><a href="exit.php" target="_top">注销</a></li> | <li><a href="#" onclick="JumpFrame('catalog_menu.php','public_guide.php');">发布文档</a></li> | ||||
<li><a href="#" onclick="JumpFrame('index_menu.php','index_body.php');">后台主页</a></li> | <li><a href="#" onclick="JumpFrame('index_menu.php','content_list.php');">所有文档</a></li> | ||||
<li><a href="#" onclick="JumpFrame('catalog_menu.php','public_guide.php');">内容发布</a></li> | <li><a href="#" onclick="JumpFrame('index_menu.php','catalog_main.php');">栏目管理</a></li> | ||||
<li><a href="#" onclick="JumpFrame('index_menu.php','content_list.php');">内容维护</a></li> | <li><a href="#" onclick="JumpFrame('index_menu.php','file_manage_main.php');">文件管理</a></li> | ||||
<li><a href="../member" target="_blank">会员中心</a></li> | <li><a href="#" onclick="JumpFrame('index_menu.php','templets_main.php');">模板管理</a></li> | ||||
<li><a href="../index.php?upcache=1" target="_blank">网站主页</a></li> | <?php echo ($cfg_mb_open == 'Y')?'<li><a href="../member" target="_blank">会员中心</a></li>':''; ?> | ||||
</ul> | <li><a href="../index.php?upcache=1" target="_blank">网站主页</a></li> | ||||
</div> | </ul> | ||||
</div> | |||||
</div> | |||||
<div class="topnav"> | |||||
<div class="menuact"> | |||||
<a href="#" id="togglemenu">隐藏菜单</a> | |||||
<?php | |||||
if($cuserLogin->getUserType()>=10) echo'<a href="#" id="allmenu">功能地图</a>'; | |||||
?> | |||||
</div> | |||||
<div id="skin"> | |||||
<div></div> | |||||
</div> | |||||
<div class="nav" id="nav"></div> | |||||
<div class="sysmsg"> | |||||
<div class="scroll"> | |||||
<form action="action_search.php" target="main" method="post"> | |||||
<input name="keyword" type="text" placeholder="请输入" class="allsearch"> | |||||
<input name="" type="submit" value="搜索" class="np"> | |||||
<a href="<?php echo $cfg_biz_gitUrl;?>" target="_blank">代码托管</a> | |||||
<a href="<?php echo $cfg_biz_helpUrl;?>" target="_blank">帮助中心</a> | |||||
</form> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | </div> | ||||
<div class="topnav"> | <div class="left"> | ||||
<div class="menuact"><a href="#" id="togglemenu">隐藏菜单</a> | <div class="menu" id="menu"> | ||||
<?php | <iframe src="index_menu.php" id="menufra" name="menu" frameborder="0"></iframe> | ||||
if($cuserLogin->getUserType() >= 10) echo '<a href="#" id="allmenu">功能地图</a>'; | </div> | ||||
?> | |||||
</div> | |||||
<div id="skin"><div> | |||||
</div> | |||||
</div> | |||||
<div class="nav" id="nav"></div> | |||||
<div class="sysmsg"> | |||||
<h3>滚动消息:</h3> | |||||
<div class="scroll"> | |||||
<form action="action_search.php" target="main" method="post"> | |||||
<input name="keyword" type="text" value="功能搜索" onfocus="if(this.value=='功能搜索'){this.value='';}" onblur="if(this.value==''){this.value='功能搜索';}" class="allsearch"> | |||||
<input name="" type="submit" value="搜索" class="np" /> | |||||
<a href='<?php echo $cfg_biz_gitUrl;?>' target='_blank'>代码托管</a> <a href='<?php echo $cfg_biz_helpUrl;?>' | |||||
target='_blank'>帮助中心</a> | |||||
</form> | |||||
</div> | </div> | ||||
</div> | <div class="right"> | ||||
</div> | <div class="main"> | ||||
</div> | <iframe id="main" name="main" frameborder="0" src="index_body.php"></iframe> | ||||
<div class="left"> | </div> | ||||
<div class="menu" id="menu"> | |||||
<iframe src="index_menu.php" id="menufra" name="menu" frameborder="0"></iframe> | |||||
</div> | </div> | ||||
</div> | <div class="qucikmenu" id="qucikmenu"> | ||||
<div class="right"> | <ul> | ||||
<div class="main"> | <?php | ||||
<iframe id="main" name="main" frameborder="0" src="index_body.php"></iframe> | $dtp = new DedeTagparse(); | ||||
$dtp->SetNameSpace('menu','<','>'); | |||||
$dtp->LoadTemplet($myIcoFile); | |||||
if(is_array($dtp->CTags)) | |||||
{ | |||||
foreach($dtp->CTags as $ctag) | |||||
{ | |||||
$title = $ctag->GetAtt('title'); | |||||
$ico = $ctag->GetAtt('ico'); | |||||
$link = $ctag->GetAtt('link'); | |||||
echo "<li><a href='{$link}' target='main'>{$title}</a></li>\r\n"; | |||||
} | |||||
} | |||||
?> | |||||
</ul> | |||||
</div> | </div> | ||||
<!--<div id="help"><span id="content"><a href="#">栏目管理操作使用说明</a></span></div>--> | <script> | ||||
</div> | |||||
<div class="qucikmenu" id="qucikmenu"> | |||||
<ul> | |||||
<?php | |||||
$dtp = new DedeTagparse(); | |||||
$dtp->SetNameSpace('menu','<','>'); | |||||
$dtp->LoadTemplet($myIcoFile); | |||||
if(is_array($dtp->CTags)) | |||||
{ | |||||
foreach($dtp->CTags as $ctag) | |||||
{ | |||||
$title = $ctag->GetAtt('title'); | |||||
$ico = $ctag->GetAtt('ico'); | |||||
$link = $ctag->GetAtt('link'); | |||||
echo "<li><a href='{$link}' target='main'>{$title}</a></li>\r\n"; | |||||
} | |||||
} | |||||
?> | |||||
</ul> | |||||
</div> | |||||
<script language="javascript"> | |||||
function JumpFrame(url1, url2) { | function JumpFrame(url1, url2) { | ||||
jQuery('#menufra').get(0).src = url1; | jQuery('#menufra').get(0).src = url1; | ||||
jQuery('#main').get(0).src = url2; | jQuery('#main').get(0).src = url2; | ||||
} | } | ||||
(function ($) { | (function ($) { | ||||
$("#skinlist>li").click(function () { | $("#skinlist>li").click(function () { | ||||
var adminskin = $(this).index() + 1; | var adminskin = $(this).index() + 1; | ||||
var csshref = "images/style" + adminskin + "/style.css"; | var csshref = "images/style" + adminskin + "/style.css"; | ||||
$("#skinlist>li").each(function () { $(this).children('div').attr('class', '') }); | $("#skinlist>li").each(function () { $(this).children('div').attr('class', '') }); | ||||
$("#topdedelogo").attr('src', 'images/style' + adminskin + '/admin_top_logo.gif') | $("#topdedelogo").attr('src', 'images/style' + adminskin + '/admin_top_logo.gif') | ||||
$('link').each(function () { | $('link').each(function () { | ||||
if ($(this).attr('href').match(/style.css$/)) { | if ($(this).attr('href').match(/style.css$/)) { | ||||
$(this).attr('href', csshref); | $(this).attr('href', csshref); | ||||
} | } | ||||
}); | }); | ||||
$(this).children('div').attr('class', 'sel'); | $(this).children('div').attr('class', 'sel'); | ||||
$(window.frames["menu"].document).find("link").each(function () { | $(window.frames["menu"].document).find("link").each(function () { | ||||
if ($(this).attr('href').match(/style.css$/)) { | if ($(this).attr('href').match(/style.css$/)) { | ||||
$(this).attr('href', csshref); | $(this).attr('href', csshref); | ||||
} | } | ||||
}); | }); | ||||
$(window.frames["main"].document).find("link").each(function () { | $(window.frames["main"].document).find("link").each(function () { | ||||
if ($(this).attr('href').match(/style.css$/)) { | if ($(this).attr('href').match(/style.css$/)) { | ||||
$(this).attr('href', csshref); | $(this).attr('href', csshref); | ||||
} | } | ||||
}); | }); | ||||
$.get('index_body.php?dopost=setskin&cskin=' + adminskin); | $.get('index_body.php?dopost=setskin&cskin=' + adminskin); | ||||
}); | }); | ||||
})(jQuery); | })(jQuery); | ||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -2,105 +2,72 @@ | |||||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>DedeBIZV6系统概况</title> | <title>系统概况</title> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<base target="_self"> | <base target="_self"> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | ||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | <link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | ||||
<link rel="stylesheet" type="text/css" href="css/base.css" /> | <link rel="stylesheet" href="css/base.css"> | ||||
<link rel="stylesheet" type="text/css" href="css/indexbody.css" /> | <link rel="stylesheet" href="css/indexbody.css"> | ||||
<link href="images/style<?php echo $cfg_admin_skin;?>/style.css" rel="stylesheet" type="text/css" /> | <script src="../static/js/jquery.js"></script> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script src="../static/js/bootstrap.bundle.js"></script> | <script src="../static/js/bootstrap.bundle.js"></script> | ||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | <script src="../static/js/dedeajax2.js"></script> | ||||
<script language="javascript" src="js/indexbody.js"></script> | <script src="js/indexbody.js"></script> | ||||
<script language="javascript" src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
<script type="text/javascript"> | <script> | ||||
function showMore() { | function showMore() { | ||||
$("#allInfo").toggle(); | $("#allInfo").toggle(); | ||||
$("#allInfoTD").toggle(); | $("#allInfoTD").toggle(); | ||||
} | } | ||||
$(function () { | |||||
$(function () { | $.get("index_testenv.php", function (data) { | ||||
$.get("index_testenv.php", function (data) { | if (data !== '') { | ||||
if (data !== '') { | $("#__testEvn").html(data); | ||||
$("#__testEvn").html(data); | } | ||||
} | |||||
}); | |||||
$.get("index_body.php?dopost=get_seo", function (data) { | |||||
if (data !== '') { | |||||
$("#SEOInfo").html(data); | |||||
} | |||||
}); | |||||
}); | }); | ||||
$.get("index_body.php?dopost=get_seo", function (data) { | |||||
if (data !== '') { | |||||
$("#SEOInfo").html(data); | |||||
} | |||||
}); | |||||
}); | |||||
</script> | </script> | ||||
<style> | <style> | ||||
.row { | .row{display:flex;flex-wrap:wrap} | ||||
display: flex; | .row>[class*='col-']{display:flex;flex-direction:column} | ||||
flex-wrap: wrap; | .btn+.btn{margin-left:10px} | ||||
} | |||||
.row>[class*='col-'] { | |||||
display: flex; | |||||
flex-direction: column; | |||||
} | |||||
.footer { | |||||
padding: 10px; | |||||
} | |||||
</style> | </style> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<div class="container-fluid"> | <div class="container-fluid"> | ||||
<div class="mt-3 mb-3"> | <div class="mt-3 mb-3">欢迎使用国内流行的内容管理系统多端全媒体解决方案 -- <?php echo $cfg_softname; ?></div> | ||||
欢迎使用国内流行的内容管理系统(CMS)多端全媒体解决方案 -- <?php echo $cfg_softname; ?> | |||||
</div> | |||||
<div class="row"> | <div class="row"> | ||||
<div id="__testEvn" class="col-md-12"></div> | <div id="__testEvn" class="col-md-12"></div> | ||||
<!--/#__testEvn--> | |||||
<div class="col-md-6 mt-3 updatenews"> | <div class="col-md-6 mt-3 updatenews"> | ||||
<div class="card"> | <div class="card"> | ||||
<div class="card-header"> | <div class="card-header">更新消息</div> | ||||
<?php echo $cfg_soft_enname; ?> 更新消息 | |||||
</div> | |||||
<!--/.card-header--> | |||||
<div class="card-body"> | <div class="card-body"> | ||||
<div id="updateinfos"> | <div id="updateinfos"> | ||||
<?php | <?php | ||||
echo "<div class='updatedvt py-3'>"; | echo "<div class='updatedvt py-3'>"; | ||||
echo "安全操作:<a href='sys_data.php' class='btn btn-success btn-sm'>数据备份/还原</a> <a href='sys_safetest.php' class='btn btn-success btn-sm'>病毒扫描</a> <a href='sys_repair.php' class='btn btn-success btn-sm'>错误修复</a></div>"; | echo "安全操作:<a href='sys_data.php' class='btn btn-success btn-sm'>备份还原</a><a href='sys_safetest.php' class='btn btn-success btn-sm'>病毒扫描</a><a href='sys_repair.php' class='btn btn-success btn-sm'>错误修复</a></div>"; | ||||
echo "<iframe name='stafrm' src='{$offUrl}&uptime={$oktime}' frameborder='0' id='stafrm' width='98%' height='100'></iframe>"; | echo "<iframe name='stafrm' src='{$offUrl}&uptime={$oktime}' frameborder='0' id='stafrm' width='98%' height='100'></iframe>"; | ||||
?> | ?> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<!--/.card-body--> | |||||
</div> | </div> | ||||
<!--/.card--> | |||||
</div> | </div> | ||||
<div class="col-md-6 mt-3"> | <div class="col-md-6 mt-3"> | ||||
<div class="card"> | <div class="card"> | ||||
<div class="card-header"> | <div class="card-header">商业授权</div> | ||||
<?php echo $cfg_soft_enname; ?> 商业服务授权 | <div class="card-body" id="_systeminfo">正在载入中...</div> | ||||
</div> | |||||
<!--/.card-header--> | |||||
<div class="card-body" id="_systeminfo"> | |||||
正在载入中... | |||||
</div> | |||||
<!--/.card-body--> | |||||
</div> | </div> | ||||
<!--/.card--> | |||||
</div> | </div> | ||||
<div class="col-md-6 mt-3"> | <div class="col-md-6 mt-3"> | ||||
<div class="card"> | <div class="card"> | ||||
<div class="card-header"> | <div class="card-header">快捷操作<span class="float-right"><a href="javascript:AddNew()" class="btn btn-success btn-sm">新增</a><a href="javascript:ListAll()" class="btn btn-success btn-sm">管理</a></span></div> | ||||
快捷操作 | |||||
<a href="javascript:AddNew()" class="btn btn-success btn-sm">新增</a> | |||||
<a href="javascript:ListAll()" class="btn btn-success btn-sm">管理</a> | |||||
</div> | |||||
<!--/.card-header--> | |||||
<div class="card-body"> | <div class="card-body"> | ||||
<ul class="nav"> | <ul class="nav"> | ||||
<?php | <?php | ||||
@@ -110,102 +77,92 @@ | |||||
if(is_array($dtp->CTags)){ | if(is_array($dtp->CTags)){ | ||||
foreach($dtp->CTags as $ctag){ | foreach($dtp->CTags as $ctag){ | ||||
$title = $ctag->GetAtt('title'); | $title = $ctag->GetAtt('title'); | ||||
$ico = $ctag->GetAtt('ico'); | |||||
$link = $ctag->GetAtt('link'); | $link = $ctag->GetAtt('link'); | ||||
echo "<li class='nav-item'><a class='nav-link' href='{$link}'><img src='{$ico}'> {$title}</a></li>\r\n"; | echo "<a href='{$link}' class='btn btn-success btn-sm'>{$title}</a>"; | ||||
} | } | ||||
} | } | ||||
?> | ?> | ||||
</ul> | </ul> | ||||
</div> | </div> | ||||
<!--/.card-body--> | |||||
</div> | </div> | ||||
<!--/.card--> | |||||
</div> | </div> | ||||
<div class="col-md-6 mt-3"> | <div class="col-md-6 mt-3"> | ||||
<div class="card"> | <div class="card"> | ||||
<div class="card-header"> | <div class="card-header">基本信息</div> | ||||
系统基本信息 | |||||
</div> | |||||
<!--/.card-header--> | |||||
<div class="card-body"> | <div class="card-body"> | ||||
<table width="98%" class="table table-borderless"> | <table width="98%" class="table table-borderless"> | ||||
<tr> | <tr> | ||||
<td width="25%" class='nline' style="text-align:right">您的级别:</td> | <td width="25%" class="nline" style="text-align:right">您的级别:</td> | ||||
<td class='nline'> | <td class="nline"> | ||||
<?php | <?php | ||||
if($cuserLogin->getUserType()==10) { | if($cuserLogin->getUserType()==10) { | ||||
echo "总管理员"; | echo "总管理员"; | ||||
} else if($cuserLogin->getUserType()==5) { | } else if($cuserLogin->getUserType()==5) { | ||||
echo "频道总编"; | echo "频道总编"; | ||||
} else { | } else { | ||||
echo "信息采集员或其它管理员"; | echo "信息采集员或其它管理员"; | ||||
} | } | ||||
?> | ?> | ||||
<a href="javascript:showMore()" class="btn btn-success btn-sm">查看更多</a></td> | <a href="javascript:showMore()" class="btn btn-success btn-sm">查看更多</a> | ||||
</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td colspan="2" class='nline' id="allInfoTD" style="display:none"> | <td colspan="2" class="nline" id="allInfoTD" style="display:none"> | ||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="allInfo" | <table width="100%" border="0" cellspacing="0" cellpadding="0" id="allInfo" style="display:none"> | ||||
style="display:none"> | |||||
<tr> | <tr> | ||||
<td rowspan="5" class='nline' style="text-align:right">PHP环境摘要:</td> | <td class="nline" style="text-align:right" rowspan="5">PHP环境摘要:</td> | ||||
<td class='nline' style="text-align:left"> | <td class="nline" style="text-align:left"> | ||||
PHP版本:<?php echo @phpversion(); ?> GD版本:<?php echo @gdversion(); ?> | <span style="margin-right:10px">PHP版本:<?php echo @phpversion(); ?></span> | ||||
<span>GD版本:<?php echo @gdversion(); ?></span> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class='nline' style="text-align:left">是否安全模式:<font color='red'> | <td class="nline" style="text-align:left">是否安全模式:<?php echo ($isSafeMode ? 'On' : 'Off')?> | ||||
<?php echo ($isSafeMode ? 'On' : 'Off')?></font> | |||||
<?php | <?php | ||||
if($isSafeMode) { | if($isSafeMode) { | ||||
echo "<br> <font color='blue'>由于您的系统以安全模式运行,为了确保程序兼容性,第一次进入本系统时请更改“<a href='sys_info.php'><u>更改系统参数</u></a>”里的FTP选项,并选择用FTP形式创建目录</font>"; | echo "由于您的系统以安全模式运行,为了确保程序兼容性,第一次进入本系统时请更改 <a href='sys_info.php' class='btn btn-success btn-smm'>更改系统参数</a> 里的FTP选项,并选择用FTP形式创建目录"; | ||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class='nline' style="text-align:left"> | <td class="nline" style="text-align:left"> | ||||
Register_Globals:<font color='red'> | <span style="margin-right:10px">Register_Globals:<?php echo ini_get("register_globals") ? 'On' : 'Off'?></span> | ||||
<?php echo ini_get("register_globals") ? 'On' : 'Off'?></font> | <span>Magic_Quotes_Gpc:<?php echo ini_get("magic_quotes_gpc") ? 'On' : 'Off'?></span> | ||||
| |||||
Magic_Quotes_Gpc:<font color='red'> | |||||
<?php echo ini_get("magic_quotes_gpc") ? 'On' : 'Off'?></font> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class='nline' style="text-align:left"> | <td class="nline" style="text-align:left">支持上传的最大文件:<?php echo ini_get("post_max_size")?></td> | ||||
支持上传的最大文件:<?php echo ini_get("post_max_size")?></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class='nline' style="text-align:left"> | <td class="nline" style="text-align:left">是否允许打开远程连接:<?php echo ini_get("allow_url_fopen") ? '支持' : '不支持'; ?></td> | ||||
是否允许打开远程连接:<?php echo ini_get("allow_url_fopen") ? '支持' : '不支持'; ?></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class='nline' style="text-align:right"> 其它必须函数检测:</td> | <td class="nline" style="text-align:right">其它必须函数检测:</td> | ||||
<td class='nline' style="text-align:left"> | <td class="nline" style="text-align:left"> | ||||
<?php | <?php | ||||
$needfunc = array('dir','phpinfo'); | $needfunc = array('dir','phpinfo'); | ||||
$n = 0; | $n = 0; | ||||
foreach($needfunc as $k) { | foreach($needfunc as $k) { | ||||
if(!function_exists($k)) { | if(!function_exists($k)) { | ||||
echo "<font color='red'>[{$k}×]</font> "; | echo "<span class='btn btn-danger'>[{$k}×]</span> "; | ||||
$n++; | $n++; | ||||
} | } | ||||
} | } | ||||
if($n==0) { | if($n==0) { | ||||
echo "符合要求"; | echo "符合要求"; | ||||
} else { | } else { | ||||
echo "被禁用的函数可能导致部份功能无法使用!"; | echo "被禁用的函数可能导致部份功能无法使用"; | ||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class='nline' style="text-align:right"> 软件版本信息: </td> | <td class="nline" style="text-align:right">软件版本信息:</td> | ||||
<td class='nline' style="text-align:left"> | <td class="nline" style="text-align:left"> | ||||
版本名称:<?php echo $cfg_soft_enname; ?> 版本号:<?php echo $cfg_version; ?> | <span style="margin-right:10px">版本名称:<?php echo $cfg_soft_enname; ?></span> | ||||
<span>版本号:<?php echo $cfg_version; ?></span> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -213,33 +170,21 @@ | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</div> | </div> | ||||
<!--/.card-body--> | |||||
</div> | </div> | ||||
<!--/.card--> | |||||
</div> | </div> | ||||
<div class="col-md-6 mt-3"> | <div class="col-md-6 mt-3"> | ||||
<div class="card"> | <div class="card"> | ||||
<div class="card-header"> | <div class="card-header">信息统计</div> | ||||
信息统计 | |||||
</div> | |||||
<!--/.card-header--> | |||||
<div class="card-body"> | <div class="card-body"> | ||||
<dd id='listCount'> | <dd id='listCount'>正在载入中...</dd> | ||||
正在载入中... | |||||
</dd> | |||||
</div> | </div> | ||||
<!--/.card-body--> | |||||
</div> | </div> | ||||
<!--/.card--> | |||||
</div> | </div> | ||||
<div class="col-md-6 mt-3"> | <div class="col-md-6 mt-3"> | ||||
<div class="card"> | <div class="card"> | ||||
<div class="card-header"> | <div class="card-header">最新文档</div> | ||||
最新文档 | |||||
</div> | |||||
<!--/.card-header--> | |||||
<div class="card-body"> | <div class="card-body"> | ||||
<?php | <?php | ||||
$query = "SELECT arc.id, arc.arcrank, arc.title, arc.channel, ch.editcon FROM `#@__archives` arc | $query = "SELECT arc.id, arc.arcrank, arc.title, arc.channel, ch.editcon FROM `#@__archives` arc | ||||
@@ -262,86 +207,62 @@ | |||||
$row['editcon'] = 'archives_edit.php'; | $row['editcon'] = 'archives_edit.php'; | ||||
} | } | ||||
$linkstr = "<a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>"; | $linkstr = "<a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>"; | ||||
if($row['arcrank']==-1) $linkstr .= "<span class='btn btn-success btn-sm'>未审核</span>"; | if($row['arcrank']==-1) $linkstr .= " <span class='btn btn-success btn-sm'>未审核</span>"; | ||||
?> | ?> | ||||
<tr> | <tr> | ||||
<td class='nline' style="text-align:left"> | <td class="nline" style="text-align:left"><?php echo $linkstr; ?></td> | ||||
<?php echo $linkstr; ?> | |||||
</td> | |||||
</tr> | </tr> | ||||
<?php | <?php | ||||
} | } | ||||
} else { | } else { | ||||
?> | ?> | ||||
<tr> | <tr> | ||||
<td class='nline' style="text-align:left"> | <td class="nline" style="text-align:left">暂无新增内容</td> | ||||
暂无新增内容 | |||||
</td> | |||||
</tr> | </tr> | ||||
<?php | <?php | ||||
} | } | ||||
?> | ?> | ||||
</table> | </table> | ||||
</div> | </div> | ||||
<!--/.card-body--> | |||||
</div> | </div> | ||||
<!--/.card--> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="footer"> | <div class="footer"> | ||||
<!-- //底部 --> | <!--下面是隐藏的项目--> | ||||
<div align="center" class="footer"><?php echo $cfg_powerby; ?> Powered by <a href="http://www.dedebiz.com" title="DedeBiz商业技术支持,提供更专业强大的站点应用开发技术">DedeBIZ <?php echo $cfg_version; ?></div> | <div id="loaddiv" style="display:none"> | ||||
<p align="center" style="padding-top:200px"><img src="images/loadinglit.gif">请稍后,正在下载更新文件列表...</p> | |||||
<!-- 下面是隐藏的项目 --> | |||||
<div id='loaddiv' style='display:none'> | |||||
<p align='center' style='padding-top:200px'><img src='images/loadinglit.gif'> 请稍后,正在下载更新文件列表...</p> | |||||
</div> | </div> | ||||
<div id="editTab"> | <div id="editTab"> | ||||
<span id='editTabBody'>请稍候,正在载入...</span> | <span id="editTabBody">请稍候,正在载入...</span> | ||||
</div> | </div> | ||||
<div id="addTab"> | <div id="addTab"> | ||||
<form name='addform' action='index_body.php'> | <form name="addform" action="index_body.php"> | ||||
<input type='hidden' name='dopost' value='addnew' /> | <input type="hidden" name="dopost" value="addnew"> | ||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | <table width="100%" border="0" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td height='28' colspan='3' background="images/tbg.gif"> | <td height="28" colspan="3" background="images/tbg.gif"> | ||||
<div style='float:left'><b>增加快捷操作项</b></div> | <div style="float:left">增加快捷操作项</div> | ||||
<div style='float:right;padding:4px 10px 0 0'> | <div style="float:right;padding:4px 10px 0 0"> | ||||
<a href="javascript:CloseTab('addTab')"><img src="images/close.gif" width="12" | <a href="javascript:CloseTab('addTab')"><img src="images/close.gif" width="12" height="12" border="0"></a> | ||||
height="12" border="0" /></a> | |||||
</div> | </div> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td style="height:6px;font-size:1px;border-top:1px solid #8DA659" colspan="2"> </td> | <td style="height:6px;font-size:1px;border-top:1px solid #8DA659" colspan="2"></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="20%" height="28" align="right">链接标题:</td> | <td width="20%" height="28" align="right">链接标题:</td> | ||||
<td width="70%"> | <td width="70%"><input name="title" type="text" id="title" class="pubinputs" style="width:255px"></td> | ||||
<input name="title" type="text" id="title" class='pubinputs' style="width:255px;" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28" width="20%" align="right">ICO图片:</td> | |||||
<td width="70%"> | |||||
<input name="ico" type="text" id="ico" class='pubinputs' style="width:255px;" /> | |||||
</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="28" width="20%" align="right">链接网址:</td> | <td height="28" width="20%" align="right">链接网址:</td> | ||||
<td width="70%"> | <td width="70%"><input name="link" type="text" id="link" class="pubinputs" style="width:255px"></td> | ||||
<input name="link" type="text" id="link" class='pubinputs' style="width:255px;" /> | |||||
</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="45"> </td> | <td height="36"></td> | ||||
<td> | <td><input type="submit" name="Submit" value="保存项目" class="np coolbg" style="width:80px;cursor:pointer"></td> | ||||
<input type="submit" name="Submit" value="保存项目" class="np coolbg" | |||||
style="width:80px;cursor:pointer" /> | |||||
</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</form> | </form> | ||||
@@ -349,38 +270,33 @@ | |||||
</div> | </div> | ||||
<script> | <script> | ||||
var dedebizInfo; | var dedebizInfo; | ||||
function ViewDedeBIZ() { | function ViewDedeBIZ() { | ||||
console.log(dedebizInfo); | console.log(dedebizInfo); | ||||
ShowMsg(` | ShowMsg(` | ||||
<table width="100%" class="table table-borderless"><tbody> | <table width="100%" class="table table-borderless"> | ||||
<tr> | <tbody> | ||||
<td class="nline" style="text-align:left"> 版本号: </td> | <tr> | ||||
<td class="nline" style="text-align:left"> v${dedebizInfo.result.server_version} </td> | <td class="nline" style="text-align:left">版本号:</td> | ||||
</tr> | <td class="nline" style="text-align:left">v${dedebizInfo.result.server_version} </td> | ||||
</tr> | |||||
<tr> | <tr> | ||||
<td class="nline" style="text-align:left"> 运行时间: </td> | <td class="nline" style="text-align:left">运行时间:</td> | ||||
<td class="nline" style="text-align:left"> ${dedebizInfo.result.server_run_time} </td> | <td class="nline" style="text-align:left">${dedebizInfo.result.server_run_time} </td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<tr> | <td class="nline" style="text-align:left">服务器系统:</td> | ||||
<td class="nline" style="text-align:left"> 服务器系统: </td> | <td class="nline" style="text-align:left">${dedebizInfo.result.server_goos}(${dedebizInfo.result.server_goarch}) </td> | ||||
<td class="nline" style="text-align:left"> ${dedebizInfo.result.server_goos}(${dedebizInfo.result.server_goarch}) </td> | </tr> | ||||
</tr> | <tr> | ||||
<td class="nline" style="text-align:left">内存占用:</td> | |||||
<tr> | <td class="nline" style="text-align:left">${dedebizInfo.result.server_memory_usage}% </td> | ||||
<td class="nline" style="text-align:left"> 内存占用: </td> | </tr> | ||||
<td class="nline" style="text-align:left"> ${dedebizInfo.result.server_memory_usage}% </td> | </tbody> | ||||
</tr> | </table> | ||||
</tbody></table> | |||||
`); | `); | ||||
} | } | ||||
//加载服务信息 | |||||
// 加载服务信息 | |||||
function LoadServer() { | function LoadServer() { | ||||
$.get("index_body.php?dopost=system_info", function (data) { | $.get("index_body.php?dopost=system_info", function (data) { | ||||
let rsp = JSON.parse(data); | let rsp = JSON.parse(data); | ||||
@@ -389,55 +305,53 @@ | |||||
if (typeof rsp.result.domain !== "undefined") { | if (typeof rsp.result.domain !== "undefined") { | ||||
infoStr += ` | infoStr += ` | ||||
<tr> | <tr> | ||||
<td class="nline" style="text-align:left"> 授权域名: </td> | <td class="nline" style="text-align:left">授权域名:</td> | ||||
<td class="nline" style="text-align:left"> ${rsp.result.domain} <a href="<?php echo $cfg_biz_dedebizUrl;?>/auth/?domain=${rsp.result.domain}"><b>【查看】</b></a> </td> | <td class="nline" style="text-align:left">${rsp.result.domain} <a href="<?php echo $cfg_biz_dedebizUrl;?>/auth/?domain=${rsp.result.domain}"><b>【查看】</b></a></td> | ||||
</tr> | </tr> | ||||
`; | `; | ||||
} | } | ||||
if (typeof rsp.result.title !== "undefined") { | if (typeof rsp.result.title !== "undefined") { | ||||
infoStr += ` | infoStr += ` | ||||
<tr> | <tr> | ||||
<td class="nline" style="text-align:left"> 站点名称: </td> | <td class="nline" style="text-align:left">站点名称:</td> | ||||
<td class="nline" style="text-align:left"> ${rsp.result.title} </td> | <td class="nline" style="text-align:left">${rsp.result.title} </td> | ||||
</tr> | </tr> | ||||
`; | `; | ||||
} | } | ||||
if (typeof rsp.result.stype !== "undefined") { | if (typeof rsp.result.stype !== "undefined") { | ||||
infoStr += ` | infoStr += ` | ||||
<tr> | <tr> | ||||
<td class="nline" style="text-align:left"> 站点类型: </td> | <td class="nline" style="text-align:left">站点类型:</td> | ||||
<td class="nline" style="text-align:left"> ${rsp.result.stype} </td> | <td class="nline" style="text-align:left">${rsp.result.stype} </td> | ||||
</tr> | </tr> | ||||
`; | `; | ||||
} | } | ||||
if (typeof rsp.result.auth_version !== "undefined" && typeof rsp.result.auth_at !== "undefined") { | if (typeof rsp.result.auth_version !== "undefined" && typeof rsp.result.auth_at !== "undefined") { | ||||
infoStr += ` | infoStr += ` | ||||
<tr> | <tr> | ||||
<td class="nline" style="text-align:left"> 授权版本: </td> | <td class="nline" style="text-align:left">授权版本:</td> | ||||
<td class="nline" style="text-align:left"> v${rsp.result.auth_version}.x.x(时间:${rsp.result.auth_at})</td> | <td class="nline" style="text-align:left">v${rsp.result.auth_version}.x.x(时间:${rsp.result.auth_at})</td> | ||||
</tr> | </tr> | ||||
`; | `; | ||||
} | } | ||||
if (rsp.result.core === null || rsp.result.core.code != 200) { | if (rsp.result.core === null || rsp.result.core.code != 200) { | ||||
// 下面是DedeBIZ Core组件信息 | //下面是DedeBIZ Core组件信息 | ||||
infoStr += ` | infoStr += ` | ||||
<tr> | <tr> | ||||
<td class="nline" style="text-align:left"> 商业组件: </td> | <td class="nline" style="text-align:left">商业组件:</td> | ||||
<td class="nline" style="text-align:left"> <a class="btn btn-danger btn-sm" target="_blank" href="<?php echo $cfg_biz_dedebizUrl;?>/start?code=-1008">如何启动组件</a> </td> | <td class="nline" style="text-align:left"><a class="btn btn-danger btn-sm" target="_blank" href="<?php echo $cfg_biz_dedebizUrl;?>/start?code=-1008">如何启动组件</a> </td> | ||||
</tr> | </tr> | ||||
`; | `; | ||||
} else { | } else { | ||||
dedebizInfo = JSON.parse(rsp.result.core.data); | dedebizInfo = JSON.parse(rsp.result.core.data); | ||||
infoStr += ` | infoStr += ` | ||||
<tr> | <tr> | ||||
<td class="nline" style="text-align:left"> 商业组件: </td> | <td class="nline" style="text-align:left">商业组件:</td> | ||||
<td class="nline" style="text-align:left"> <a class="btn btn-success btn-sm" href="javascript:ViewDedeBIZ()">查看组件信息</a> </td> | <td class="nline" style="text-align:left"><a class="btn btn-success btn-sm" href="javascript:ViewDedeBIZ()">查看组件信息</a> </td> | ||||
</tr> | </tr> | ||||
`; | `; | ||||
} | } | ||||
infoStr += "</tbody></table>"; | infoStr += "</tbody></table>"; | ||||
$("#_systeminfo").html(infoStr); | $("#_systeminfo").html(infoStr); | ||||
} else { | } else { | ||||
$("#_systeminfo").html(` | $("#_systeminfo").html(` | ||||
@@ -448,7 +362,6 @@ | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
$(document).ready(function () { | $(document).ready(function () { | ||||
LoadServer(); | LoadServer(); | ||||
setInterval(function () { | setInterval(function () { | ||||
@@ -457,5 +370,4 @@ | |||||
}); | }); | ||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -2,125 +2,49 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>DedeBIZ menu</title> | <title>DedeBIZ menu</title> | ||||
<link rel="stylesheet" href="css/base.css" type="text/css" /> | <link rel="stylesheet" href="css/base.css"> | ||||
<script language="javascript" type="text/javascript" src="../static/js/dedeajax2.js"></script> | <script src="../static/js/dedeajax2.js"></script> | ||||
<script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script> | <script src="../static/js/jquery.js"></script> | ||||
<?php | <?php | ||||
echo "<script language='javascript'>var curopenItem = '$openitem';</script>"; | echo "<script>var curopenItem = '$openitem';</script>"; | ||||
?> | ?> | ||||
<script language="javascript" type="text/javascript" src="js/leftmenu.js"></script> | <script src="js/leftmenu.js"></script> | ||||
<style> | <style> | ||||
body { | body{margin:0;background:#f2f2f2 url(images/leftmenu_bg.gif);padding-left:6px;overflow:scroll;overflow-x:hidden} | ||||
margin:0; | div{margin:0;padding:0} | ||||
background:#f2f2f2 url(images/leftmenu_bg.gif); | img{margin-right:0} | ||||
padding-left:6px; | dl.bitem{margin:0 0 6px 10px;width:140px;background:url(images/menunewbg.gif) repeat-x;clear:both} | ||||
overflow:scroll; | dl.bitem2{margin:0 0 6px 10px;width:140px;background:url(images/menunewbg2.gif) repeat-x;clear:both} | ||||
overflow-x:hidden | dl.bitem dt,dl.bitem2 dt{padding-left:30px;height:26px;line-height:26px;cursor:pointer} | ||||
} | dl.bitem dt b,dl.bitem2 dt b{color:#4D6C2F} | ||||
div { | dl.bitem dd,dl.bitem2 dd{padding:10px;background-color:#fff} | ||||
margin:0; | div.items{clear:both;padding:0;height:0} | ||||
padding:0 | .fllct{float:left;width:80px} | ||||
} | .flrct{float:left;padding-top:4px} | ||||
dl.bitem { | .sitemu li{padding:0 0 0 20px;height:26px;line-height:26px;background:url(images/arr4.gif) no-repeat 6px 10px} | ||||
margin:0 0 6px 10px; | a.mmac div{padding:8px 4px 4px 10px;height:38px!important;font-weight:600;color:#325304;background:url(images/leftbg2.gif) no-repeat;word-wrap:break-word;word-break:break-all} | ||||
width:140px; | a.mm div{padding:8px 4px 4px 10px;height:38px!important;font-weight:600;color:#475645;cursor:pointer;background:url(images/leftmbg1.gif) no-repeat;word-wrap:break-word;word-break:break-all} | ||||
background:url(images/menunewbg.gif) repeat-x; | a.mm:hover div{color:#4f7632;background:url(images/leftbg2.gif) no-repeat} | ||||
clear:both | .mmf{padding:6px;height:1px} | ||||
} | #mainct{padding-top:12px;background:url(images/idnbg1.gif) repeat-y} | ||||
dl.bitem2 { | |||||
margin:0 0 6px 10px; | |||||
width:140px; | |||||
background:url(images/menunewbg2.gif) repeat-x; | |||||
clear:both | |||||
} | |||||
dl.bitem dt,dl.bitem2 dt { | |||||
padding-left:36px; | |||||
height:26px; | |||||
line-height:26px; | |||||
cursor:pointer | |||||
} | |||||
dl.bitem dt b,dl.bitem2 dt b { | |||||
color:#4D6C2F | |||||
} | |||||
dl.bitem dd,dl.bitem2 dd { | |||||
padding:6px; | |||||
background-color:#fff | |||||
} | |||||
div.items { | |||||
clear:both; | |||||
padding:0; | |||||
height:0 | |||||
} | |||||
.fllct { | |||||
float:left; | |||||
width:80px | |||||
} | |||||
.flrct { | |||||
float:left; | |||||
padding-top:4px | |||||
} | |||||
.sitemu li { | |||||
padding:0 0 0 18px; | |||||
height:26px; | |||||
line-height:26px; | |||||
background:url(images/arr4.gif) no-repeat 6px 10px | |||||
} | |||||
a.mmac div { | |||||
padding:8px 4px 4px 10px; | |||||
height:38px!important; | |||||
font-weight:600; | |||||
color:#325304; | |||||
background:url(images/leftbg2.gif) no-repeat; | |||||
word-wrap:break-word; | |||||
word-break:break-all | |||||
} | |||||
a.mm div { | |||||
padding:8px 4px 4px 10px; | |||||
height:38px!important; | |||||
font-weight:600; | |||||
color:#475645; | |||||
cursor:pointer; | |||||
background:url(images/leftmbg1.gif) no-repeat; | |||||
word-wrap:break-word; | |||||
word-break:break-all | |||||
} | |||||
a.mm:hover div { | |||||
color:#4f7632; | |||||
background:url(images/leftbg2.gif) no-repeat | |||||
} | |||||
.mmf { | |||||
padding:6px; | |||||
height:1px | |||||
} | |||||
#mainct { | |||||
padding-top:12px; | |||||
background:url(images/idnbg1.gif) repeat-y | |||||
} | |||||
</style> | </style> | ||||
<link href="images/style<?php echo $cfg_admin_skin;?>/style.css" rel="stylesheet" type="text/css" /> | <link rel="stylesheet" href="images/style<?php echo $cfg_admin_skin;?>/style.css"> | ||||
<base target="main" /> | <base target="main"> | ||||
</head> | </head> | ||||
<body target="main" onLoad="CheckOpenMenu();"> | <body target="main" onLoad="CheckOpenMenu();"> | ||||
<table width="180" align="left" border='0' cellspacing='0' cellpadding='0' style="text-align:left;"> | <table width="180" align="left" border='0' cellspacing='0' cellpadding='0' style="text-align:left;"> | ||||
<tr> | <tr> | ||||
<td valign='top' style='padding-top:10' width='20'><a id='link1' class='mmac'> | <td valign='top' style='padding-top:10' width='20'> | ||||
<div onClick="ShowMainMenu(1)">核心</div> | <a id='link1' class='mmac'><div onClick="ShowMainMenu(1)">核心</div></a> | ||||
</a> <a id='link100' class='mm'> | <a id='link100' class='mm'><div onClick="ShowMainMenu(100)">模块</div></a> | ||||
<div onClick="ShowMainMenu(100)">模块</div> | <a id='link5' class='mm'><div onClick="ShowMainMenu(5)">生成</div></a> | ||||
</a> <a id='link5' class='mm'> | <a id='link6' class='mm'><div onClick="ShowMainMenu(6)">会员</div></a> | ||||
<div onClick="ShowMainMenu(5)">生成</div> | |||||
</a> <a id='link6' class='mm'> | |||||
<div onClick="ShowMainMenu(6)">会员</div> | |||||
</a> | |||||
<?php | <?php | ||||
if($cuserLogin->getUserType() >= 10) { | if($cuserLogin->getUserType() >= 10) { | ||||
?> | ?> | ||||
<a id='link7' class='mm'> | <a id='link7' class='mm'><div onClick="ShowMainMenu(7)">模板</div></a> | ||||
<div onClick="ShowMainMenu(7)">模板</div> | <a id='link10' class='mm'><div onClick="ShowMainMenu(10)">系统</div></a> | ||||
</a> <a id='link10' class='mm'> | |||||
<div onClick="ShowMainMenu(10)">系统</div> | |||||
</a> | |||||
<?php | <?php | ||||
} | } | ||||
?> | ?> | ||||
@@ -143,23 +67,23 @@ a.mm:hover div { | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width='26'></td> | <td width='26'></td> | ||||
<td width='160' valign='top'><img src='images/idnbgfoot.gif' /></td> | <td width='160' valign='top'><img src='images/idnbgfoot.gif'></td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<?php | <?php | ||||
if(!empty($openitem) && $openitem!=1) | if(!empty($openitem) && $openitem!=1) | ||||
{ | { | ||||
?> | ?> | ||||
<script language='javascript'> | <script> | ||||
ShowMainMenu(100); | ShowMainMenu(100); | ||||
</script> | </script> | ||||
<?php | <?php | ||||
} | } | ||||
?> | ?> | ||||
<script language="javascript"> | <script> | ||||
function myAlert() { | function myAlert() { | ||||
alert('dede'); | alert('dede'); | ||||
} | } | ||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,54 +1,33 @@ | |||||
<!doctype html> | <!DOCTYPE html> | ||||
<html lang="zh-CN"> | <html lang="zh-CN"> | ||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | <meta charset="<?php echo $cfg_soft_lang; ?>"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | ||||
<link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | ||||
<link rel="stylesheet" href="../static/css/dede.css"> | <link rel="stylesheet" href="../static/css/dede.css"> | ||||
<title><?php echo $cfg_webname; ?>后台登录-<?php echo $cfg_soft_enname; ?> <?php echo $cfg_version_detail; ?></title> | <title><?php echo $cfg_webname; ?>后台登录</title> | ||||
<style> | <style> | ||||
body { | body{font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;background-color:#f2f2f2} | ||||
font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif; | header{background:#fff} | ||||
background-color:#f2f2f2 | header .logo{width:260px;padding:1em 0} | ||||
} | .login-from{max-width:580px;width:100%} | ||||
header { | .login-area{background-color:#fff;padding:2em} | ||||
background-color:#fff | .login-area .btnLogin{width:100%} | ||||
} | .login-power{padding-top:1em} | ||||
header .logo { | .login-power a,.goindex a{color:#3DB058} | ||||
width:260px; | .goindex{line-height:60px} | ||||
padding:1em 0 | |||||
} | |||||
.login-from { | |||||
max-width:620px; | |||||
width:100% | |||||
} | |||||
.login-area { | |||||
background-color:#fff; | |||||
padding:1em | |||||
} | |||||
.login-area .btnLogin { | |||||
width:100% | |||||
} | |||||
.login-power { | |||||
padding:1em 0 | |||||
} | |||||
.login-power a,.goindex a { | |||||
color:#3DB058 | |||||
} | |||||
.goindex { | |||||
line-height:60px | |||||
} | |||||
</style> | </style> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<header> | <header> | ||||
<div class="container top"> | <div class="container top"> | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col-6"><a href="."><img class="logo" src="../static/img/admin-logo.png" alt="<?php echo $cfg_soft_enname; ?>"></a></div> | <div class="col-6"> | ||||
<a href="."><img class="logo" src="../static/img/admin-logo.png" title="<?php echo $cfg_soft_enname; ?>"></a> | |||||
</div> | |||||
<div class="col-6 d-flex justify-content-end goindex"> | <div class="col-6 d-flex justify-content-end goindex"> | ||||
<a href="../index.php"><i class="fa fa-home" aria-hidden="true"></i></a> | <a href="../index.php" target="_blank"><i class="fa fa-home" aria-hidden="true"></i></a> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -71,16 +50,22 @@ header .logo { | |||||
<label for="iptPassword">密码</label> | <label for="iptPassword">密码</label> | ||||
<input type="password" name="pwd" class="form-control" id="iptPassword"> | <input type="password" name="pwd" class="form-control" id="iptPassword"> | ||||
</div> | </div> | ||||
<?php | |||||
if(preg_match("/6/",$safe_gdopen)) | |||||
{ | |||||
?> | |||||
<div class="form-group"> | <div class="form-group"> | ||||
<label for="iptValidate">验证码</label> | <label for="iptValidate">验证码</label> | ||||
<div class="input-group"> | <div class="input-group"> | ||||
<input type="text" name="validate" class="form-control" id="iptValidate" style="text-transform:uppercase"> | <input type="text" name="validate" class="form-control" id="iptValidate" style="text-transform:uppercase"> | ||||
<img src="../plus/vdimgck.php" id="validateimg" style="cursor:pointer" onclick="this.src='../plus/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | <img src="../plus/vdimgck.php" onclick="this.src='../plus/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码" id="validateimg" style="cursor:pointer"> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<?php | |||||
} | |||||
?> | |||||
<button type="submit" class="btn btn-success btnLogin">登录</button> | <button type="submit" class="btn btn-success btnLogin">登录</button> | ||||
<div class="login-power"><?php echo $cfg_powerby; ?> Powered by <a href="http://www.dedebiz.com" title="DedeBiz商业技术支持,提供更专业强大的站点应用开发技术">DedeBIZ <?php echo $cfg_version; ?></a> | <div class="login-power"><?php echo $cfg_powerby; ?></div> | ||||
</div> | |||||
</form> | </form> | ||||
</div> | </div> | ||||
</main> | </main> | ||||
@@ -1,31 +1,21 @@ | |||||
<!DOCTYPE html | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||||
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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>模板管理器</title> | <title>模板管理器</title> | ||||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | ||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | <link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | ||||
<link href="css/base.css" rel="stylesheet" type="text/css" /> | <link rel="stylesheet" href="css/base.css"> | ||||
<style type="text/css"> | <style> | ||||
.linerow { | .linerow{border-bottom:1px solid #CBD8AC} | ||||
border-bottom: 1px solid #CBD8AC; | td{padding-left:6px} | ||||
} | a.btn{color:white!important} | ||||
td { | |||||
padding-left: 5px; | |||||
} | |||||
a.btn { | |||||
color: white!important; | |||||
} | |||||
</style> | </style> | ||||
<script language="javascript"> | <script language="javascript"> | ||||
function DelTpl(filename) { | function DelTpl(filename) { | ||||
if (window.confirm('你确定要删除这篇文档吗?')) location = 'tpl.php?action=del&acdir=<?php echo $acdir; ?>&filename=' + filename; | if (window.confirm('你确定要删除这篇文档吗')) location = 'tpl.php?action=del&acdir=<?php echo $acdir; ?>&filename=' + filename; | ||||
else return false; | else return false; | ||||
} | } | ||||
</script> | </script> | ||||
</head> | </head> | ||||
@@ -48,14 +38,12 @@ | |||||
<tr> | <tr> | ||||
<td colspan='4' height="28" bgcolor="#F9FCEF"> | <td colspan='4' height="28" bgcolor="#F9FCEF"> | ||||
<div style='float:left'> | <div style='float:left'> | ||||
<b> | 当前位置: | ||||
当前位置: | <?php | ||||
<?php | if($acdir=='plus') echo '插件模板'; | ||||
if($acdir=='plus') echo '插件模板'; | else if($acdir=='system') echo '底层模板'; | ||||
else if($acdir=='system') echo '底层模板'; | else echo '核心模板 > '.$acdir; | ||||
else echo '核心模板 > '.$acdir; | ?> | ||||
?> | |||||
</b> | |||||
</div> | </div> | ||||
<div style='float:right;padding-right:10px'> | <div style='float:right;padding-right:10px'> | ||||
<a class="btn btn-success btn-sm" href='templets_main.php'>默认模板目录</a> | <a class="btn btn-success btn-sm" href='templets_main.php'>默认模板目录</a> | ||||
@@ -64,51 +52,39 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<?php | <?php | ||||
$dh = dir($templetdird); | $files = scandir($templetdird); | ||||
while($filename=$dh->read()) | foreach ($files as $filename){ | ||||
{ | if(!preg_match("#\.htm#", $filename)) | ||||
if(!preg_match("#\.htm#", $filename)) continue; | continue; | ||||
$filetime = filemtime($templetdird.'/'.$filename); | $filetime = filemtime($templetdird.'/'.$filename); | ||||
$filetime = MyDate("Y-m-d H:i",$filetime); | $filetime = MyDate("Y-m-d H:i",$filetime); | ||||
$fileinfo = (isset($fileinfos[$filename]) ? $fileinfos[$filename] : '未知模板'); | $fileinfo = (isset($fileinfos[$filename]) ? $fileinfos[$filename] : '未知模板'); | ||||
?> | ?> | ||||
<tr height="26" bgcolor='#FFFFFF' onMouseMove="javascript:this.bgColor='#FCFDEE';" | <tr height="26" bgcolor='#FFFFFF' onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | ||||
onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td> | |||||
<a href='<?php echo $templeturld.'/'.$filename; ?>' target='_blank'> | |||||
<img src='images/htm.gif' border='0' align='absmiddle' /> <?php echo $filename; ?> | |||||
</a> | |||||
</td> | |||||
<td> | <td> | ||||
<?php echo $fileinfo; ?> | <a href='<?php echo $templeturld.'/'.$filename; ?>' target='_blank'><img src='images/htm.gif' border='0' align='absmiddle' /> <?php echo $filename; ?></a> | ||||
</td> | |||||
<td align='center'> | |||||
<?php echo $filetime; ?> | |||||
</td> | </td> | ||||
<td><?php echo $fileinfo; ?></td> | |||||
<td align='center'><?php echo $filetime; ?></td> | |||||
<td align='center'> | <td align='center'> | ||||
<a class="btn btn-success btn-sm" href='tpl.php?action=edit&acdir=<?php echo $acdir; ?>&filename=<?php echo $filename; ?>' title="编辑"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a> | <a class="btn btn-success btn-sm" href='tpl.php?action=edit&acdir=<?php echo $acdir; ?>&filename=<?php echo $filename; ?>' title="编辑"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a> | ||||
<?php | <?php | ||||
if(!isset($fileinfos[$filename])) | if(!isset($fileinfos[$filename])) | ||||
{ | { | ||||
?> | ?> | ||||
| | | | ||||
<a href='#' class="btn btn-success btn-sm" onClick="javascript:DelTpl('<?php echo $filename; ?>');" title="删除"><i class="fa fa-trash" aria-hidden="true"></i></a> | <a href='#' class="btn btn-success btn-sm" onClick="javascript:DelTpl('<?php echo $filename; ?>');" title="删除"><i class="fa fa-trash" aria-hidden="true"></i></a> | ||||
<?php | <?php | ||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<?php } ?> | <?php | ||||
} | |||||
?> | |||||
<tr> | <tr> | ||||
<td colspan="4" height='32' bgcolor="#F9FCEF"> | <td colspan="4" height='36' bgcolor="#F9FCEF"><a class="btn btn-success" href='tpl.php?action=newfile&acdir=<?php echo $acdir; ?>'>新建模板</a> <a class="btn btn-success" href='tpl.php?action=upload&acdir=<?php echo $acdir; ?>'>上传模板</a></td> | ||||
| |||||
<a class="btn btn-success" href='tpl.php?action=newfile&acdir=<?php echo $acdir; ?>'>新建模板</a> | |||||
| |||||
<a class="btn btn-success" href='tpl.php?action=upload&acdir=<?php echo $acdir; ?>'>上传模板</a> | |||||
</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,5 +1,5 @@ | |||||
<?php | <?php | ||||
if (!defined('DEDEINC')) exit('dedebiz'); | |||||
/** | /** | ||||
* 系统核心函数存放文件 | * 系统核心函数存放文件 | ||||
* @version $Id: common.func.php 4 16:39 2010年7月6日Z tianya $ | * @version $Id: common.func.php 4 16:39 2010年7月6日Z tianya $ | ||||
@@ -8,8 +8,6 @@ | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
if (!defined('DEDEINC')) exit('dedebiz'); | |||||
if (version_compare(PHP_VERSION, '7.0.0', '>=')) { | if (version_compare(PHP_VERSION, '7.0.0', '>=')) { | ||||
if (!function_exists('mysql_connect') and function_exists('mysqli_connect')) { | if (!function_exists('mysql_connect') and function_exists('mysqli_connect')) { | ||||
function mysql_connect($server, $username, $password) | function mysql_connect($server, $username, $password) | ||||
@@ -17,28 +15,24 @@ if (version_compare(PHP_VERSION, '7.0.0', '>=')) { | |||||
return mysqli_connect($server, $username, $password); | return mysqli_connect($server, $username, $password); | ||||
} | } | ||||
} | } | ||||
if (!function_exists('mysql_query') and function_exists('mysqli_query')) { | if (!function_exists('mysql_query') and function_exists('mysqli_query')) { | ||||
function mysql_query($query, $link) | function mysql_query($query, $link) | ||||
{ | { | ||||
return mysqli_query($link, $query); | return mysqli_query($link, $query); | ||||
} | } | ||||
} | } | ||||
if (!function_exists('mysql_select_db') and function_exists('mysqli_select_db')) { | if (!function_exists('mysql_select_db') and function_exists('mysqli_select_db')) { | ||||
function mysql_select_db($database_name, $link) | function mysql_select_db($database_name, $link) | ||||
{ | { | ||||
return mysqli_select_db($link, $database_name); | return mysqli_select_db($link, $database_name); | ||||
} | } | ||||
} | } | ||||
if (!function_exists('mysql_fetch_array') and function_exists('mysqli_fetch_array')) { | if (!function_exists('mysql_fetch_array') and function_exists('mysqli_fetch_array')) { | ||||
function mysql_fetch_array($result) | function mysql_fetch_array($result) | ||||
{ | { | ||||
return mysqli_fetch_array($result); | return mysqli_fetch_array($result); | ||||
} | } | ||||
} | } | ||||
if (!function_exists('mysql_close') and function_exists('mysqli_close')) { | if (!function_exists('mysql_close') and function_exists('mysqli_close')) { | ||||
function mysql_close($link) | function mysql_close($link) | ||||
{ | { | ||||
@@ -52,7 +46,6 @@ if (version_compare(PHP_VERSION, '7.0.0', '>=')) { | |||||
} | } | ||||
} | } | ||||
} | } | ||||
function make_hash() | function make_hash() | ||||
{ | { | ||||
$rand = dede_random_bytes(16); | $rand = dede_random_bytes(16); | ||||
@@ -61,17 +54,14 @@ function make_hash() | |||||
: bin2hex($rand); | : bin2hex($rand); | ||||
return $_SESSION['token']; | return $_SESSION['token']; | ||||
} | } | ||||
function dede_random_bytes($length) | function dede_random_bytes($length) | ||||
{ | { | ||||
if (empty($length) or !ctype_digit((string) $length)) { | if (empty($length) or !ctype_digit((string) $length)) { | ||||
return FALSE; | return FALSE; | ||||
} | } | ||||
if (function_exists('openssl_random_pseudo_bytes')) { | if (function_exists('openssl_random_pseudo_bytes')) { | ||||
return openssl_random_pseudo_bytes($length); | return openssl_random_pseudo_bytes($length); | ||||
} | } | ||||
if (function_exists('random_bytes')) { | if (function_exists('random_bytes')) { | ||||
try { | try { | ||||
return random_bytes((int) $length); | return random_bytes((int) $length); | ||||
@@ -90,11 +80,8 @@ function dede_random_bytes($length) | |||||
return $output; | return $output; | ||||
} | } | ||||
} | } | ||||
return FALSE; | return FALSE; | ||||
} | } | ||||
/** | /** | ||||
* 载入小助手,系统默认载入小助手 | * 载入小助手,系统默认载入小助手 | ||||
* 在/data/helper.inc.php中进行默认小助手初始化的设置 | * 在/data/helper.inc.php中进行默认小助手初始化的设置 | ||||
@@ -127,7 +114,6 @@ function helper($helpers) | |||||
} | } | ||||
return; | return; | ||||
} | } | ||||
if (isset($_helpers[$helpers])) { | if (isset($_helpers[$helpers])) { | ||||
return; | return; | ||||
} | } | ||||
@@ -135,12 +121,11 @@ function helper($helpers) | |||||
include_once(DEDEINC . '/helpers/' . $helpers . '.helper.php'); | include_once(DEDEINC . '/helpers/' . $helpers . '.helper.php'); | ||||
$_helpers[$helpers] = TRUE; | $_helpers[$helpers] = TRUE; | ||||
} | } | ||||
// 无法载入小助手 | //无法载入小助手 | ||||
if (!isset($_helpers[$helpers])) { | if (!isset($_helpers[$helpers])) { | ||||
exit('Unable to load the requested file: helpers/' . $helpers . '.helper.php'); | exit('Unable to load the requested file: helpers/' . $helpers . '.helper.php'); | ||||
} | } | ||||
} | } | ||||
function dede_htmlspecialchars($str) | function dede_htmlspecialchars($str) | ||||
{ | { | ||||
global $cfg_soft_lang; | global $cfg_soft_lang; | ||||
@@ -148,7 +133,6 @@ function dede_htmlspecialchars($str) | |||||
if ($cfg_soft_lang == 'gb2312') return htmlspecialchars($str, ENT_COMPAT, 'ISO-8859-1'); | if ($cfg_soft_lang == 'gb2312') return htmlspecialchars($str, ENT_COMPAT, 'ISO-8859-1'); | ||||
else return htmlspecialchars($str); | else return htmlspecialchars($str); | ||||
} | } | ||||
/** | /** | ||||
* 载入小助手,这里用户可能载入用helps载入多个小助手 | * 载入小助手,这里用户可能载入用helps载入多个小助手 | ||||
* | * | ||||
@@ -160,7 +144,6 @@ function helpers($helpers) | |||||
{ | { | ||||
helper($helpers); | helper($helpers); | ||||
} | } | ||||
//兼容php4的file_put_contents | //兼容php4的file_put_contents | ||||
if (!function_exists('file_put_contents')) { | if (!function_exists('file_put_contents')) { | ||||
function file_put_contents($n, $d) | function file_put_contents($n, $d) | ||||
@@ -175,7 +158,6 @@ if (!function_exists('file_put_contents')) { | |||||
} | } | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 显示更新信息 | * 显示更新信息 | ||||
* | * | ||||
@@ -186,15 +168,8 @@ function UpdateStat() | |||||
include_once(DEDEINC . "/inc/inc_stat.php"); | include_once(DEDEINC . "/inc/inc_stat.php"); | ||||
return SpUpdateStat(); | return SpUpdateStat(); | ||||
} | } | ||||
$arrs1 = array(); | |||||
$arrs1 = array(0x63, 0x66, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x62, 0x79); | $arrs2 = array(); | ||||
$arrs2 = array( | |||||
0x20, 0x3c, 0x61, 0x20, 0x68, 0x72, 0x65, 0x66, 0x3d, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, | |||||
0x77, 0x77, 0x77, 0x2e, 0x64, 0x65, 0x64, 0x65, 0x63, 0x6d, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x20, 0x74, 0x61, 0x72, | |||||
0x67, 0x65, 0x74, 0x3d, 0x27, 0x5f, 0x62, 0x6c, 0x61, 0x6e, 0x6b, 0x27, 0x3e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x20, | |||||
0x62, 0x79, 0x20, 0x44, 0x65, 0x64, 0x65, 0x43, 0x6d, 0x73, 0x3c, 0x2f, 0x61, 0x3e | |||||
); | |||||
/** | /** | ||||
* 短消息函数,可以在某个动作处理后友好的提示信息 | * 短消息函数,可以在某个动作处理后友好的提示信息 | ||||
* | * | ||||
@@ -207,21 +182,16 @@ $arrs2 = array( | |||||
function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0) | function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0) | ||||
{ | { | ||||
global $cfg_soft_lang, $cfg_cmsurl; | global $cfg_soft_lang, $cfg_cmsurl; | ||||
if (empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..'; | if(empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..'; | ||||
$htmlhead = "<html><head><meta charset='utf-8'><title>提示信息</title><meta name='viewport' content='width=device-width,initial-scale=1'>"; | |||||
$htmlhead = "<html>\r\n<head>\r\n<title>DedeBIZ提示信息</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset={$cfg_soft_lang}\" />\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">"; | $htmlhead .= "<base target='_self'></head><body>".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."<center><script>"; | ||||
$htmlhead .= "<link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/css/bootstrap.min.css\"><style>.modal {position: static;}</style><link href=\"{$cfg_cmsurl}/static/font-awesome/css/font-awesome.min.css\" rel=\"stylesheet\">"; | $htmlfoot = "</script></center></body></html>"; | ||||
$htmlhead .= "<base target='_self'/></head>\r\n<body leftmargin='0' topmargin='0' bgcolor='#FFFFFF'>" . (isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '') . "\r\n<center>\r\n<script>\r\n"; | |||||
$htmlfoot = "</script>\r\n</center>\r\n</body>\r\n</html>\r\n"; | |||||
$litime = ($limittime == 0 ? 1000 : $limittime); | $litime = ($limittime == 0 ? 1000 : $limittime); | ||||
$func = ''; | $func = ''; | ||||
if ($gourl == '-1') { | if ($gourl == '-1') { | ||||
if ($limittime == 0) $litime = 5000; | if ($limittime == 0) $litime = 5000; | ||||
$gourl = "javascript:history.go(-1);"; | $gourl = "javascript:history.go(-1);"; | ||||
} | } | ||||
if ($gourl == '' || $onlymsg == 1) { | if ($gourl == '' || $onlymsg == 1) { | ||||
$msg = "<script>alert(\"" . str_replace("\"", "“", $msg) . "\");</script>"; | $msg = "<script>alert(\"" . str_replace("\"", "“", $msg) . "\");</script>"; | ||||
} else { | } else { | ||||
@@ -231,33 +201,30 @@ function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0) | |||||
$gourl = 'javascript:;'; | $gourl = 'javascript:;'; | ||||
$func .= "window.parent.document.getElementById('{$tgobj}').style.display='none';\r\n"; | $func .= "window.parent.document.getElementById('{$tgobj}').style.display='none';\r\n"; | ||||
} | } | ||||
$func .= "var pgo=0;function JumpUrl(){if (pgo==0){location='$gourl'; pgo=1;}}"; | |||||
$func .= " var pgo=0; | |||||
function JumpUrl(){ | |||||
if(pgo==0){ location='$gourl'; pgo=1; } | |||||
}\r\n"; | |||||
$rmsg = $func; | $rmsg = $func; | ||||
$rmsg .= "document.write(\"<main class='container'><div class='modal' tabindex='-1' role='dialog' style='display:block'><div class='modal-dialog'><div class='modal-content'><div class='modal-header'><h6 class='modal-title'>"; | $rmsg .= "document.write(\"<style>body{margin:0;line-height:1.6;font:12px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#666;background:#f2f2f2}a{color:#28a745;text-decoration:none}.xushu-tips{margin:68px auto 0;padding:0;width:360px;height:auto;background:#fff;border-radius:.2rem;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}.tips{margin:0 20px;padding:12px 0;border-bottom:1px solid #f6f6f6}.tips p{margin:0;padding-left:10px;line-height:16px;font-size:14px;color:#424b51;text-align:left;border-left:3px solid #ff5722}.frame{padding:20px;height:120px}.go a{display:inline-block;margin:20px auto 0;padding:.375rem .75rem;color:#fff;background:#28a745;border:1px solid #28a745;box-sizing:border-box;border-radius:.2rem;text-align:center;transition:all .4s}.go a:hover{color:#fff;opacity:.8}@media (max-width:768px){body{padding:0 14px}.xushu-tips{width:100%}}</style>\");"; | ||||
$rmsg .= "DedeBIZ 提示信息!</h6></div><div class='modal-body'>\");\r\n"; | $rmsg .= "document.write(\"<div class='xushu-tips'>"; | ||||
$rmsg .= "document.write(\"" . str_replace("\"", "“", $msg) . "\");\r\n"; | $rmsg .= "<div class='tips'><p>提示信息</p></div>\");"; | ||||
$rmsg .= "document.write(\"<div class='frame'>\");"; | |||||
$rmsg .= "document.write(\"".str_replace("\"","“",$msg)."\");"; | |||||
$rmsg .= "document.write(\""; | $rmsg .= "document.write(\""; | ||||
if($onlymsg==0) | |||||
if ($onlymsg == 0) { | { | ||||
if ($gourl != 'javascript:;' && $gourl != '') { | if( $gourl != 'javascript:;' && $gourl != '') | ||||
$rmsg .= "<br /><a href='{$gourl}'>如果你的浏览器没反应,请点击这里...</a>"; | { | ||||
$rmsg .= "</div></div></div></div></main>\");\r\n"; | $rmsg .= "<div class='go'><a href='{$gourl}'>点击反应</a></div>\");"; | ||||
$rmsg .= "setTimeout('JumpUrl()',$litime);"; | $rmsg .= "setTimeout('JumpUrl()',$litime);"; | ||||
} else { | } else { | ||||
$rmsg .= "</div></div></div></div></main>\");\r\n"; | $rmsg .= "</div>\");"; | ||||
} | } | ||||
} else { | } else { | ||||
$rmsg .= "</div></div></div></div></main>\");\r\n"; | $rmsg .= "</div>\");"; | ||||
} | } | ||||
$msg = $htmlhead . $rmsg . $htmlfoot; | $msg = $htmlhead.$rmsg.$htmlfoot; | ||||
} | } | ||||
echo $msg; | echo $msg; | ||||
} | } | ||||
/** | /** | ||||
* 获取验证码的session值 | * 获取验证码的session值 | ||||
* | * | ||||
@@ -269,7 +236,6 @@ function GetCkVdValue() | |||||
@session_start(); | @session_start(); | ||||
return isset($_SESSION['securimage_code_value']) ? $_SESSION['securimage_code_value'] : ''; | return isset($_SESSION['securimage_code_value']) ? $_SESSION['securimage_code_value'] : ''; | ||||
} | } | ||||
/** | /** | ||||
* PHP某些版本有Bug,不能在同一作用域中同时读session并改注销它,因此调用后需执行本函数 | * PHP某些版本有Bug,不能在同一作用域中同时读session并改注销它,因此调用后需执行本函数 | ||||
* | * | ||||
@@ -280,12 +246,10 @@ function ResetVdValue() | |||||
@session_start(); | @session_start(); | ||||
$_SESSION['securimage_code_value'] = ''; | $_SESSION['securimage_code_value'] = ''; | ||||
} | } | ||||
function IndexSub($idx, $num) | function IndexSub($idx, $num) | ||||
{ | { | ||||
return intval($idx) - intval($num) == 0 ? '0 ' : intval($idx) - intval($num); | return intval($idx) - intval($num) == 0 ? '0 ' : intval($idx) - intval($num); | ||||
} | } | ||||
// 用来返回index的active | // 用来返回index的active | ||||
function IndexActive($idx) | function IndexActive($idx) | ||||
{ | { | ||||
@@ -295,9 +259,8 @@ function IndexActive($idx) | |||||
return ''; | return ''; | ||||
} | } | ||||
} | } | ||||
// 自定义函数接口 | // 自定义函数接口 | ||||
// 这里主要兼容早期的用户扩展,v5.7之后我们建议使用小助手helper进行扩展 | // 这里主要兼容早期的用户扩展,v5.7之后我们建议使用小助手helper进行扩展 | ||||
if (file_exists(DEDEINC . '/extend.func.php')) { | if (file_exists(DEDEINC . '/extend.func.php')) { | ||||
require_once(DEDEINC . '/extend.func.php'); | require_once(DEDEINC . '/extend.func.php'); | ||||
} | } |
@@ -1,5 +1,4 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 获取栏目列表标签 | * 获取栏目列表标签 | ||||
* | * | ||||
@@ -9,18 +8,14 @@ | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
function lib_channel(&$ctag, &$refObj) | function lib_channel(&$ctag, &$refObj) | ||||
{ | { | ||||
global $dsql; | global $dsql; | ||||
$attlist = "typeid|0,reid|0,row|100,col|1,type|son,currentstyle|,cacheid|"; | $attlist = "typeid|0,reid|0,row|100,col|1,type|son,currentstyle|,cacheid|"; | ||||
FillAttsDefault($ctag->CAttribute->Items, $attlist); | FillAttsDefault($ctag->CAttribute->Items, $attlist); | ||||
extract($ctag->CAttribute->Items, EXTR_SKIP); | extract($ctag->CAttribute->Items, EXTR_SKIP); | ||||
$innertext = $ctag->GetInnerText(); | $innertext = $ctag->GetInnerText(); | ||||
$line = empty($row) ? 100 : $row; | $line = empty($row) ? 100 : $row; | ||||
$likeType = ''; | $likeType = ''; | ||||
//读取固定的缓存块 | //读取固定的缓存块 | ||||
$cacheid = trim($cacheid); | $cacheid = trim($cacheid); | ||||
@@ -28,7 +23,6 @@ function lib_channel(&$ctag, &$refObj) | |||||
$likeType = GetCacheBlock($cacheid); | $likeType = GetCacheBlock($cacheid); | ||||
if ($likeType != '') return $likeType; | if ($likeType != '') return $likeType; | ||||
} | } | ||||
$reid = 0; | $reid = 0; | ||||
$topid = 0; | $topid = 0; | ||||
//如果属性里没指定栏目id,从引用类里获取栏目信息 | //如果属性里没指定栏目id,从引用类里获取栏目信息 | ||||
@@ -52,39 +46,30 @@ function lib_channel(&$ctag, &$refObj) | |||||
$issetInfos = true; | $issetInfos = true; | ||||
} | } | ||||
} | } | ||||
if ($type == '' || $type == 'sun') $type = 'son'; | if ($type == '' || $type == 'sun') $type = 'son'; | ||||
if ($innertext == '') $innertext = GetSysTemplets("channel_list.htm"); | if ($innertext == '') $innertext = GetSysTemplets("channel_list.htm"); | ||||
if ($type == 'top') { | if ($type == 'top') { | ||||
$sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath | $sql = "SELECT * From `#@__arctype` WHERE reid=0 And ishidden<>1 order by sortrank asc limit 0, $line "; | ||||
From `#@__arctype` WHERE reid=0 And ishidden<>1 order by sortrank asc limit 0, $line "; | |||||
} else if ($type == 'son') { | } else if ($type == 'son') { | ||||
if ($typeid == 0) return ''; | if ($typeid == 0) return ''; | ||||
$sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath | $sql = "SELECT * From `#@__arctype` WHERE reid='$typeid' And ishidden<>1 order by sortrank asc limit 0, $line "; | ||||
From `#@__arctype` WHERE reid='$typeid' And ishidden<>1 order by sortrank asc limit 0, $line "; | |||||
} else if ($type == 'self') { | } else if ($type == 'self') { | ||||
if ($reid == 0) return ''; | if ($reid == 0) return ''; | ||||
$sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath | $sql = "SELECT * FROM `#@__arctype` WHERE reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line "; | ||||
FROM `#@__arctype` WHERE reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line "; | |||||
} | } | ||||
//And id<>'$typeid' | |||||
$needRel = false; | $needRel = false; | ||||
$dtp2 = new DedeTagParse(); | $dtp2 = new DedeTagParse(); | ||||
$dtp2->SetNameSpace('field', '[', ']'); | $dtp2->SetNameSpace('field', '[', ']'); | ||||
$dtp2->LoadSource($innertext); | $dtp2->LoadSource($innertext); | ||||
//检查是否有子栏目,并返回rel提示(用于二级菜单) | //检查是否有子栏目,并返回rel提示(用于二级菜单) | ||||
if (preg_match('#:rel#', $innertext)) $needRel = true; | if (preg_match('#:rel#', $innertext)) $needRel = true; | ||||
if (empty($sql)) return ''; | if (empty($sql)) return ''; | ||||
$dsql->SetQuery($sql); | $dsql->SetQuery($sql); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
$totalRow = $dsql->GetTotalRow(); | $totalRow = $dsql->GetTotalRow(); | ||||
//如果用子栏目模式,当没有子栏目时显示同级栏目 | //如果用子栏目模式,当没有子栏目时显示同级栏目 | ||||
if ($type == 'son' && $reid != 0 && $totalRow == 0) { | if ($type == 'son' && $reid != 0 && $totalRow == 0) { | ||||
$sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath | $sql = "SELECT * FROM `#@__arctype` WHERE reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line "; | ||||
FROM `#@__arctype` WHERE reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line "; | |||||
$dsql->SetQuery($sql); | $dsql->SetQuery($sql); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
} | } | ||||
@@ -121,17 +106,15 @@ function lib_channel(&$ctag, &$refObj) | |||||
} | } | ||||
if ($col > 1) $likeType .= "</dd>\r\n"; | if ($col > 1) $likeType .= "</dd>\r\n"; | ||||
$GLOBALS['autoindex']++; | $GLOBALS['autoindex']++; | ||||
} | }//Loop Col | ||||
//Loop Col | |||||
if ($col > 1) { | if ($col > 1) { | ||||
$i += $col - 1; | $i += $col - 1; | ||||
$likeType .= " </dl>\r\n"; | $likeType .= " </dl>\r\n"; | ||||
} | } | ||||
} | }//Loop for $i | ||||
//Loop for $i | |||||
$dsql->FreeResult(); | $dsql->FreeResult(); | ||||
if ($cacheid != '') { | if ($cacheid != '') { | ||||
WriteCacheBlock($cacheid, $likeType); | WriteCacheBlock($cacheid, $likeType); | ||||
} | } | ||||
return $likeType; | return $likeType; | ||||
} | } |
@@ -1,4 +1,5 @@ | |||||
<?php if (!defined('DEDEINC')) exit('Request Error!'); | <?php | ||||
if (!defined('DEDEINC')) exit('Request Error!'); | |||||
/** | /** | ||||
* 获取当前频道的下级栏目的内容列表标签 | * 获取当前频道的下级栏目的内容列表标签 | ||||
* | * | ||||
@@ -8,13 +9,10 @@ | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
require_once(DEDEINC . '/arc.partview.class.php'); | require_once(DEDEINC . '/arc.partview.class.php'); | ||||
function lib_channelartlist(&$ctag, &$refObj) | function lib_channelartlist(&$ctag, &$refObj) | ||||
{ | { | ||||
global $dsql, $envs, $_sys_globals; | global $dsql, $envs, $_sys_globals; | ||||
//处理标记属性、innertext | //处理标记属性、innertext | ||||
$attlist = 'typeid|0,row|20,cacheid|'; | $attlist = 'typeid|0,row|20,cacheid|'; | ||||
FillAttsDefault($ctag->CAttribute->Items, $attlist); | FillAttsDefault($ctag->CAttribute->Items, $attlist); | ||||
@@ -27,15 +25,12 @@ function lib_channelartlist(&$ctag, &$refObj) | |||||
$artlist = GetCacheBlock($cacheid); | $artlist = GetCacheBlock($cacheid); | ||||
if ($artlist != '') return $artlist; | if ($artlist != '') return $artlist; | ||||
} | } | ||||
if (empty($typeid)) { | if (empty($typeid)) { | ||||
$typeid = (!empty($refObj->TypeLink->TypeInfos['id']) ? $refObj->TypeLink->TypeInfos['id'] : 0); | $typeid = (!empty($refObj->TypeLink->TypeInfos['id']) ? $refObj->TypeLink->TypeInfos['id'] : 0); | ||||
} | } | ||||
if ($innertext == '') $innertext = GetSysTemplets('part_channelartlist.htm'); | if ($innertext == '') $innertext = GetSysTemplets('part_channelartlist.htm'); | ||||
$totalnum = $row; | $totalnum = $row; | ||||
if (empty($totalnum)) $totalnum = 20; | if (empty($totalnum)) $totalnum = 20; | ||||
//获得类别ID总数的信息 | //获得类别ID总数的信息 | ||||
$typeids = array(); | $typeids = array(); | ||||
if ($typeid == 0 || $typeid == 'top') { | if ($typeid == 0 || $typeid == 'top') { | ||||
@@ -47,21 +42,25 @@ function lib_channelartlist(&$ctag, &$refObj) | |||||
$tpsql = " id IN($typeid) AND ispart<>2 AND ishidden<>1 "; | $tpsql = " id IN($typeid) AND ispart<>2 AND ishidden<>1 "; | ||||
} | } | ||||
} | } | ||||
$dsql->SetQuery("SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath | $dsql->SetQuery("SELECT * FROM `#@__arctype` WHERE $tpsql ORDER BY sortrank ASC LIMIT $totalnum"); | ||||
FROM `#@__arctype` WHERE $tpsql ORDER BY sortrank ASC LIMIT $totalnum"); | |||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while ($row = $dsql->GetArray()) { | while ($row = $dsql->GetArray()) { | ||||
$typeids[] = $row; | $typeids[] = $row; | ||||
} | } | ||||
if (!isset($typeids[0])) return ''; | if (!isset($typeids[0])) return ''; | ||||
$GLOBALS['itemindex'] = 0; | $GLOBALS['itemindex'] = 0; | ||||
$GLOBALS['itemparity'] = 1; | $GLOBALS['itemparity'] = 1; | ||||
for ($i = 0; isset($typeids[$i]); $i++) { | for ($i = 0; isset($typeids[$i]); $i++) { | ||||
$GLOBALS['itemindex']++; | $GLOBALS['itemindex']++; | ||||
$pv = new PartView($typeids[$i]['id']); | $pv = new PartView($typeids[$i]['id']); | ||||
$pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]); | $pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]); | ||||
//栏目高亮 | |||||
if($typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['id'] || $typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['reid'] || $typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['topid'] || $typeids[$i]['id'] == GetTopid($refObj->TypeLink->TypeInfos['id']) ) | |||||
{ | |||||
$pv->Fields['currentstyle'] = $currentstyle ? $currentstyle : 'current'; | |||||
} else { | |||||
$pv->Fields['currentstyle'] = ''; | |||||
} | |||||
$pv->SetTemplet($innertext, 'string'); | $pv->SetTemplet($innertext, 'string'); | ||||
$artlist .= $pv->GetResult(); | $artlist .= $pv->GetResult(); | ||||
$GLOBALS['itemparity'] = ($GLOBALS['itemparity'] == 1 ? 2 : 1); | $GLOBALS['itemparity'] = ($GLOBALS['itemparity'] == 1 ? 2 : 1); | ||||
@@ -73,4 +72,4 @@ function lib_channelartlist(&$ctag, &$refObj) | |||||
WriteCacheBlock($cacheid, $artlist); | WriteCacheBlock($cacheid, $artlist); | ||||
} | } | ||||
return $artlist; | return $artlist; | ||||
} | } |
@@ -1,4 +1,5 @@ | |||||
<?php if (!defined('DEDEINC')) exit('Request Error!'); | <?php | ||||
if (!defined('DEDEINC')) exit('Request Error!'); | |||||
/** | /** | ||||
* 指定的单个栏目的链接标签 | * 指定的单个栏目的链接标签 | ||||
* | * | ||||
@@ -8,27 +9,20 @@ | |||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
* @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
*/ | */ | ||||
function lib_type(&$ctag, &$refObj) | function lib_type(&$ctag, &$refObj) | ||||
{ | { | ||||
global $dsql, $envs; | global $dsql, $envs; | ||||
$attlist = 'typeid|0'; | $attlist = 'typeid|0'; | ||||
FillAttsDefault($ctag->CAttribute->Items, $attlist); | FillAttsDefault($ctag->CAttribute->Items, $attlist); | ||||
extract($ctag->CAttribute->Items, EXTR_SKIP); | extract($ctag->CAttribute->Items, EXTR_SKIP); | ||||
$innertext = trim($ctag->GetInnerText()); | $innertext = trim($ctag->GetInnerText()); | ||||
if ($typeid == 0) { | if ($typeid == 0) { | ||||
$typeid = (isset($refObj->TypeLink->TypeInfos['id']) ? $refObj->TypeLink->TypeInfos['id'] : $envs['typeid']); | $typeid = (isset($refObj->TypeLink->TypeInfos['id']) ? $refObj->TypeLink->TypeInfos['id'] : $envs['typeid']); | ||||
} | } | ||||
if (empty($typeid)) return ''; | if (empty($typeid)) return ''; | ||||
$row = $dsql->GetOne("SELECT * FROM `#@__arctype` WHERE id='$typeid' "); | |||||
$row = $dsql->GetOne("SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath | |||||
FROM `#@__arctype` WHERE id='$typeid' "); | |||||
if (!is_array($row)) return ''; | if (!is_array($row)) return ''; | ||||
if (trim($innertext) == '') $innertext = GetSysTemplets("part_type_list.htm"); | if (trim($innertext) == '') $innertext = GetSysTemplets("part_type_list.htm"); | ||||
$dtp = new DedeTagParse(); | $dtp = new DedeTagParse(); | ||||
$dtp->SetNameSpace('field', '[', ']'); | $dtp->SetNameSpace('field', '[', ']'); | ||||
$dtp->LoadSource($innertext); | $dtp->LoadSource($innertext); | ||||
@@ -44,4 +38,4 @@ function lib_type(&$ctag, &$refObj) | |||||
unset($dtp); | unset($dtp); | ||||
return $revalue; | return $revalue; | ||||
} | } | ||||
} | } |
@@ -1,208 +1,29 @@ | |||||
/* | body{font-family:sans-serif,Arial,Verdana,"Trebuchet MS","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:12px;color:#333;background-color:#fff;margin:20px} | ||||
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | blockquote{font-style:italic;font-family:Georgia,Times,"Times New Roman",serif;padding:2px 0;border-style:solid;border-color:#ccc;border-width:0} | ||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | a{color:#0782C1} | ||||
*/ | ol,ul,dl{padding:0 40px} | ||||
h1,h2,h3,h4,h5,h6{font-weight:normal;line-height:1.5} | |||||
body | hr{border:0px;border-top:1px solid #ccc} | ||||
{ | pre{white-space:pre-wrap;word-wrap:break-word;-moz-tab-size:4;tab-size:4} | ||||
/* Font */ | span[lang]{font-style:italic} | ||||
/* Emoji fonts are added to visualise them nicely in Internet Explorer. */ | figure{text-align:center;outline:solid 1px #ccc;background:rgba(0,0,0,0.05);padding:10px;margin:10px 20px;display:inline-block} | ||||
font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | figure > figcaption{text-align:center;display:block} | ||||
font-size: 12px; | img{border-radius:6px} | ||||
a > img{padding:1px;margin:1px;border:none;outline:1px solid #0782C1} | |||||
/* Text color */ | img.right{border:1px solid #ccc;float:right;margin-left:15px;padding:5px} | ||||
color: #333; | img.left{border:1px solid #ccc;float:left;margin-right:15px;padding:5px} | ||||
.marker{background-color:Yellow} | |||||
/* Remove the background color to make it transparent. */ | .cke_editable{font-size:12px;line-height:1.5;word-wrap:break-word} | ||||
background-color: #fff; | .cke_contents_ltr blockquote{padding-left:20px;padding-right:8px;border-left-width:5px} | ||||
.cke_contents_rtl blockquote{padding-left:8px;padding-right:20px;border-right-width:5px} | |||||
margin: 20px; | .code-featured{border:5px solid red} | ||||
} | .math-featured{padding:20px;box-shadow:0 0 2px rgba(200,0,0,1);background-color:rgba(255,0,0,0.05);margin:10px} | ||||
.image-clean{border:0;background:none;padding:0} | |||||
.cke_editable | .image-clean > figcaption{font-size:.9em;text-align:right} | ||||
{ | .image-grayscale{background-color:white;color:#666} | ||||
font-size: 13px; | .image-grayscale img,img.image-grayscale{filter:grayscale(100%)} | ||||
line-height: 1.6; | .embed-240p{max-width:426px;max-height:240px;margin:0 auto} | ||||
.embed-360p{max-width:640px;max-height:360px;margin:0 auto} | |||||
/* Fix for missing scrollbars with RTL texts. (#10488) */ | .embed-480p{max-width:854px;max-height:480px;margin:0 auto} | ||||
word-wrap: break-word; | .embed-720p{max-width:1280px;max-height:720px;margin:0 auto} | ||||
} | .embed-1080p{max-width:1920px;max-height:1080px;margin:0 auto} | ||||
blockquote | |||||
{ | |||||
font-style: italic; | |||||
font-family: Georgia, Times, "Times New Roman", serif; | |||||
padding: 2px 0; | |||||
border-style: solid; | |||||
border-color: #ccc; | |||||
border-width: 0; | |||||
} | |||||
.cke_contents_ltr blockquote | |||||
{ | |||||
padding-left: 20px; | |||||
padding-right: 8px; | |||||
border-left-width: 5px; | |||||
} | |||||
.cke_contents_rtl blockquote | |||||
{ | |||||
padding-left: 8px; | |||||
padding-right: 20px; | |||||
border-right-width: 5px; | |||||
} | |||||
a | |||||
{ | |||||
color: #0782C1; | |||||
} | |||||
ol,ul,dl | |||||
{ | |||||
/* IE7: reset rtl list margin. (#7334) */ | |||||
*margin-right: 0px; | |||||
/* Preserved spaces for list items with text direction different than the list. (#6249,#8049)*/ | |||||
padding: 0 40px; | |||||
} | |||||
h1,h2,h3,h4,h5,h6 | |||||
{ | |||||
font-weight: normal; | |||||
line-height: 1.2; | |||||
} | |||||
hr | |||||
{ | |||||
border: 0px; | |||||
border-top: 1px solid #ccc; | |||||
} | |||||
img.right | |||||
{ | |||||
border: 1px solid #ccc; | |||||
float: right; | |||||
margin-left: 15px; | |||||
padding: 5px; | |||||
} | |||||
img.left | |||||
{ | |||||
border: 1px solid #ccc; | |||||
float: left; | |||||
margin-right: 15px; | |||||
padding: 5px; | |||||
} | |||||
pre | |||||
{ | |||||
white-space: pre-wrap; /* CSS 2.1 */ | |||||
word-wrap: break-word; /* IE7 */ | |||||
-moz-tab-size: 4; | |||||
tab-size: 4; | |||||
} | |||||
.marker | |||||
{ | |||||
background-color: Yellow; | |||||
} | |||||
span[lang] | |||||
{ | |||||
font-style: italic; | |||||
} | |||||
figure | |||||
{ | |||||
text-align: center; | |||||
outline: solid 1px #ccc; | |||||
background: rgba(0,0,0,0.05); | |||||
padding: 10px; | |||||
margin: 10px 20px; | |||||
display: inline-block; | |||||
} | |||||
figure > figcaption | |||||
{ | |||||
text-align: center; | |||||
display: block; /* For IE8 */ | |||||
} | |||||
a > img { | |||||
padding: 1px; | |||||
margin: 1px; | |||||
border: none; | |||||
outline: 1px solid #0782C1; | |||||
} | |||||
/* Widget Styles */ | |||||
.code-featured | |||||
{ | |||||
border: 5px solid red; | |||||
} | |||||
.math-featured | |||||
{ | |||||
padding: 20px; | |||||
box-shadow: 0 0 2px rgba(200, 0, 0, 1); | |||||
background-color: rgba(255, 0, 0, 0.05); | |||||
margin: 10px; | |||||
} | |||||
.image-clean | |||||
{ | |||||
border: 0; | |||||
background: none; | |||||
padding: 0; | |||||
} | |||||
.image-clean > figcaption | |||||
{ | |||||
font-size: .9em; | |||||
text-align: right; | |||||
} | |||||
.image-grayscale | |||||
{ | |||||
background-color: white; | |||||
color: #666; | |||||
} | |||||
.image-grayscale img, img.image-grayscale | |||||
{ | |||||
filter: grayscale(100%); | |||||
} | |||||
.embed-240p | |||||
{ | |||||
max-width: 426px; | |||||
max-height: 240px; | |||||
margin:0 auto; | |||||
} | |||||
.embed-360p | |||||
{ | |||||
max-width: 640px; | |||||
max-height: 360px; | |||||
margin:0 auto; | |||||
} | |||||
.embed-480p | |||||
{ | |||||
max-width: 854px; | |||||
max-height: 480px; | |||||
margin:0 auto; | |||||
} | |||||
.embed-720p | |||||
{ | |||||
max-width: 1280px; | |||||
max-height: 720px; | |||||
margin:0 auto; | |||||
} | |||||
.embed-1080p | |||||
{ | |||||
max-width: 1920px; | |||||
max-height: 1080px; | |||||
margin:0 auto; | |||||
} |