@@ -46,9 +46,11 @@ if (!empty($noeditor)) { | |||
$addparm .= '&noeditor=yes'; | |||
} | |||
?> | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>选择图片</title> | |||
<link rel="stylesheet" href="../../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../../static/web/font/css/font-awesome.min.css"> | |||
@@ -40,9 +40,11 @@ if (!empty($noeditor)) { | |||
$addparm .= '&noeditor=yes'; | |||
} | |||
?> | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | |||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>选择多媒体</title> | |||
<link rel="stylesheet" href="../../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../../static/web/font/css/font-awesome.min.css"> | |||
@@ -39,9 +39,11 @@ if (!empty($noeditor)) { | |||
$addparm .= '&noeditor=yes'; | |||
} | |||
?> | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>选择软件</title> | |||
<link rel="stylesheet" href="../../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../../static/web/font/css/font-awesome.min.css"> | |||
@@ -31,9 +31,11 @@ if (empty($comeback)) { | |||
$comeback = ''; | |||
} | |||
?> | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>选择模板</title> | |||
<link rel="stylesheet" href="../../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../../static/web/font/css/font-awesome.min.css"> | |||
@@ -1,73 +0,0 @@ | |||
<?php | |||
/** | |||
* 设置某频道为默认发布 | |||
* | |||
* @version $Id: public_guide.php 1 15:46 2010年7月20日Z tianya $ | |||
* @package DedeBIZ.Administrator | |||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||
* @license https://www.dedebiz.com/license | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
require_once(DEDEINC."/libraries/oxwindow.class.php"); | |||
if (empty($action)) $action = ''; | |||
/*-------------------- | |||
function __SetDefault(); | |||
----------------------*/ | |||
if ($action == 'setdefault') { | |||
CheckPurview('sys_Edit'); | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__channeltype` SET isdefault=0 WHERE id<>'$cid'"); | |||
if ($cid != 0) { | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__channeltype` SET isdefault=1 WHERE id='$cid'"); | |||
} | |||
$win = new OxWindow(); | |||
$win->Init(); | |||
$win->mainTitle = "内容发布向导"; | |||
$wecome_info = "<a href='public_guide.php?action=edit'>内容发布向导</a>"; | |||
$win->AddTitle("<a href='public_guide.php?action=edit'>内容发布向导</a> > 设置默认发布表单"); | |||
if ($cid == 0) { | |||
$msg = " | |||
成功取消默认发布表单 | |||
<hr style='width:90%' size='1' /> | |||
您目前想要进行的操作:<a href='public_guide.php?action=edit'>返回发布向导页</a> | |||
"; | |||
} else { | |||
$msg = " | |||
成功保存默认发布表单,以后点击“内容发布”面板将直接跳转到您选择的内容发布页 | |||
<hr style='width:90%' size='1' /> | |||
您目前想要进行的操作:<a href='public_guide.php'>转到默认发布表单</a> <a href='public_guide.php?action=edit'>返回发布向导页</a> | |||
"; | |||
} | |||
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>"); | |||
$winform = $win->GetWindow("hand"); | |||
$win->Display(); | |||
exit(); | |||
} | |||
//以下为正常浏览的内容 | |||
/*-------------------- | |||
function __PageShow(); | |||
----------------------*/ | |||
$row = $dsql->GetOne("SELECT id,addcon FROM `#@__channeltype` WHERE isdefault='1' "); | |||
//已经设置了默认发布表单 | |||
if (is_array($row) && $action != 'edit') { | |||
$addcon = $row['addcon']; | |||
if ($addcon == '') { | |||
$addcon = 'archives_add.php'; | |||
} | |||
$channelid = $row['id']; | |||
$cid = 0; | |||
require_once(DEDEADMIN.'/'.$addcon); | |||
exit(); | |||
} | |||
//没有设置默认发布表单 | |||
else { | |||
$dsql->SetQuery("SELECT id,typename,mancon,isdefault,addtable FROM `#@__channeltype` WHERE id<>-1 And isshow=1 "); | |||
$dsql->Execute(); | |||
} | |||
include DedeInclude('templets/public_guide.htm'); | |||
//获取频道栏目数 | |||
function GetCatalogs(&$dsql, $cid) | |||
{ | |||
$row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__arctype` WHERE channeltype='$cid' "); | |||
return (!is_array($row) ? '0' : $row['dd']); | |||
} |
@@ -1,6 +1,6 @@ | |||
<?php | |||
/** | |||
* 数据库备份/还原 | |||
* 数据库备份还原 | |||
* | |||
* @version $Id: sys_data.php 1 17:19 2010年7月20日Z tianya $ | |||
* @package DedeBIZ.Administrator | |||
@@ -254,7 +254,7 @@ else if ($dopost == 'redat') { | |||
function PutInfo($msg1, $msg2) | |||
{ | |||
global $cfg_soft_lang; | |||
$msginfo = "<html><head><meta charset='utf-8'><meta name='viewport' content='width=device-width,initial-scale=1'><title>提示信息</title><style>body{margin:0;line-height:1.5;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#424b51;background:#f6f6f6}a{color:#28a745;text-decoration:none}.tips{margin:70px auto 0;padding:0;width:430px;height:auto;background:#fff;border-radius:.2rem}.tips-head{margin:0 20px;padding:16px 0;border-bottom:1px solid #f8f8f8}.tips-head p{margin:0;padding-left:10px;line-height:16px;text-align:left;border-left:3px solid #dc3545}.tips-box{padding:20px;min-height:120px;color:#424b51}.btn a{display:inline-block;margin:20px auto 0;padding:.375rem .75rem;font-size:12px;color:#fff;background:#28a745;border-radius:.2rem;text-align:center;transition:all .6s}.btn a:focus{background:#006829;border-color:#005b24;box-shadow:0 0 0 0.2rem rgba(38,159,86,.5)}@media (max-width:768px){body{padding:0 15px}.tips{width:100%}}</style></head><body><center><div class='tips'><div class='tips-head'><p>提示信息</p></div><div class='tips-box'>{$msg1}{$msg2}</div></div>"; | |||
$msginfo = "<!DOCTYPE html><html><head><meta charset='utf-8'><meta http-equiv='X-UA-Compatible' content='IE=Edge,chrome=1'><title>提示信息</title><style>body{margin:0;line-height:1.5;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#424b51;background:#f6f6f6}a{color:#28a745;text-decoration:none}.tips{margin:70px auto 0;padding:0;width:430px;height:auto;background:#fff;border-radius:.2rem}.tips-head{margin:0 20px;padding:16px 0;border-bottom:1px solid #f8f8f8}.tips-head p{margin:0;padding-left:10px;line-height:16px;text-align:left;border-left:3px solid #dc3545}.tips-box{padding:20px;min-height:120px;color:#424b51}.btn a{display:inline-block;margin:20px auto 0;padding:.375rem .75rem;font-size:12px;color:#fff;background:#28a745;border-radius:.2rem;text-align:center;transition:all .6s}.btn a:focus{background:#006829;border-color:#005b24;box-shadow:0 0 0 0.2rem rgba(38,159,86,.5)}@media (max-width:768px){body{padding:0 15px}.tips{width:100%}}</style></head><body><center><div class='tips'><div class='tips-head'><p>提示信息</p></div><div class='tips-box'>{$msg1}{$msg2}</div></div>"; | |||
echo $msginfo."</center></body></html>"; | |||
} | |||
function RpLine($str) | |||
@@ -3,6 +3,7 @@ | |||
<head> | |||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | |||
<meta name="robots" content="noindex,nofollow"> | |||
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title><?php echo $cfg_webname; ?>后台管理</title> | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
@@ -100,7 +101,6 @@ | |||
<?php | |||
} | |||
?> | |||
<li><a target="main" href="public_guide.php">发布文档</a></li> | |||
<li><a target="main" href="makehtml_all.php">更新整站</a></li> | |||
<?php echo ($cfg_mb_open=='Y')?'<li><a href="../user" target="_blank">会员中心</a></li>':''; ?> | |||
<li><a href="../index.php?upcache=1" target="_blank">网站主页</a></li> | |||
@@ -1,107 +0,0 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
<title>内容发布向导</title> | |||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||
<script src="../static/web/js/jquery.min.js" language="javascript" type="text/javascript"></script> | |||
<script src="../static/web/js/bootstrap.bundle.min.js"></script> | |||
<script language="javascript" src="js/main.js"></script> | |||
<script language='javascript'> | |||
var selCheckbox = ''; | |||
function ResetBox(selid) | |||
{ | |||
var selobj = document.getElementById(selid); | |||
var preobj = null; | |||
if(selCheckbox!='') preobj = document.getElementById(selCheckbox); | |||
if(selobj.checked){ | |||
if(preobj!=null && selid != selCheckbox) preobj.checked = false; | |||
selCheckbox = selid; | |||
} else { | |||
if(selCheckbox == selid) selCheckbox = ''; | |||
} | |||
} | |||
function SetDefault() | |||
{ | |||
if(selCheckbox==''){ | |||
ShowMsg("您没有选中需要设置为默认的栏目"); | |||
} else { | |||
var selobj = document.getElementById(selCheckbox); | |||
location="public_guide.php?action=setdefault&cid="+selobj.value; | |||
} | |||
} | |||
function ResetDefault(){ | |||
location="public_guide.php?action=setdefault&cid=0"; | |||
} | |||
</script> | |||
</head> | |||
<body> | |||
<table width="98%" cellpadding="1" cellspacing="1" align="center" style="border:1px solid #dee2e6;" class="table maintable table-borderless mt-3"> | |||
<tr align="center"> | |||
<td height="120" align="left"> | |||
<table width="100%" cellspacing="0" cellpadding="6"> | |||
<tr> | |||
<td>内容发布说明<br> | |||
1.必须先建立与频道内容模型关连的栏目才能发布内容(<a href="catalog_main.php">栏目管理</a>)<br> | |||
2.如果您设置了某频道为默认发布表单,以后将不再显示此向导,而是直接显示您所选的频道的发布表单,如果想要发布其它频道的内容,可以从左边的目录树中选择,如果以后您想要修改默认发布表单,请点击目录树上方的“发布向导”图标</td> | |||
</tr> | |||
</table> | |||
<table width="100%" cellpadding="3" cellspacing="1" class="table"> | |||
<tr height="26" align="center" bgcolor="#F8FCF1"> | |||
<td width="8%" >选择</td> | |||
<td width="8%">频道ID</td> | |||
<td width="20%">频道内容模型</td> | |||
<td width="23%">附加表</td> | |||
<td width="10%">栏目数</td> | |||
<td>操作选项</td> | |||
</tr> | |||
<?php | |||
$i=0; | |||
while($row = $dsql->GetArray()){ | |||
$i++; | |||
$row['mancon'] = ($row['mancon']=='' ? 'content_list.php?channelid='.$row['id'] : $row['mancon'].'?channelid='.$row['id']); | |||
$checkbox = ($row['isdefault']==0 ? '' : ' checked'); | |||
if($checkbox!=''){ | |||
echo "<script language='javascript'>selCheckbox='cid{$i}';</script>"; | |||
} | |||
$catnum = GetCatalogs($dsql,$row['id']); | |||
?> | |||
<tr height="26" align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||
<td><input type="checkbox" name="cid<?php echo $i; ?>" id="cid<?php echo $i; ?>" onClick="ResetBox('cid<?php echo $i; ?>')" value="<?php echo $row['id']; ?>" class="np" <?php echo $checkbox; ?>/></td> | |||
<td><?php echo $row['id']; ?></td> | |||
<td><?php echo $row['typename']; ?></td> | |||
<td><?php echo $row['addtable']; ?></td> | |||
<td><?php echo $catnum; ?></td> | |||
<td align="left"> | |||
<a href="catalog_main.php" class="btn btn-success btn-sm">管理栏目</a> | |||
<?php | |||
if ($catnum>0) { | |||
?> | |||
<a href="<?php echo $row['mancon']; ?>" class="btn btn-success btn-sm">管理内容</a> | |||
<a href="catalog_do.php?channelid=<?php echo $row['id']; ?>&cid=0&dopost=addArchives" class="btn btn-success btn-sm">发布内容</a> | |||
<?php } else { ?> | |||
<span class="text-success ml-3">管理内容</span> | |||
<span class="text-success ml-3">发布内容</span> | |||
<?php } ?> | |||
</td> | |||
</tr> | |||
<?php | |||
} | |||
?> | |||
</table> | |||
<table width="100%" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td> | |||
<button name="b1" type="button" id="b1" onClick="SetDefault()" class="btn btn-success btn-sm">把所选的频道表单设为默认表单</button> | |||
<button name="b2" type="button" id="b2" onClick="ResetDefault()" class="btn btn-success btn-sm">取消默认表单</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
</body> | |||
</html> |
@@ -210,7 +210,7 @@ function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0) | |||
{ | |||
global $cfg_soft_lang, $cfg_cmsurl; | |||
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'><base target='_self'></head>"; | |||
$htmlhead = "<!DOCTYPE html><html><head><meta charset='utf-8'><meta http-equiv='X-UA-Compatible' content='IE=Edge,chrome=1'><title>提示信息</title><base target='_self'></head>"; | |||
$htmlhead .= "<body><center><script>"; | |||
$htmlfoot = "</script></center></body></html>"; | |||
$litime = ($limittime == 0 ? 1000 : $limittime); | |||