Browse Source

Merge branch 'adminstyle' into develop

develop
tianya 6 months ago
parent
commit
251b73097f
100 changed files with 1151 additions and 959 deletions
  1. +2
    -0
      docs/changelog.md
  2. +1
    -1
      src/admin/ad_add.php
  3. +1
    -1
      src/admin/catalog_do.php
  4. +76
    -124
      src/admin/dialog/select_images.php
  5. +116
    -118
      src/admin/dialog/select_media.php
  6. +92
    -94
      src/admin/dialog/select_soft.php
  7. +138
    -140
      src/admin/dialog/select_templets.php
  8. +9
    -9
      src/admin/inc/inc_catalog_options.php
  9. +1
    -1
      src/admin/index_body.php
  10. +2
    -2
      src/admin/member_pmall.php
  11. +1
    -6
      src/admin/mychannel_edit.php
  12. +8
    -7
      src/admin/statistics_list.php
  13. +0
    -1
      src/admin/sys_admin_user_edit.php
  14. +1
    -1
      src/admin/sys_group_edit.php
  15. +4
    -4
      src/admin/sys_info.php
  16. +1
    -1
      src/admin/tags_main.php
  17. +2
    -2
      src/admin/templets/album_add.htm
  18. +3
    -3
      src/admin/templets/album_edit.htm
  19. +1
    -1
      src/admin/templets/archives_add.htm
  20. +1
    -1
      src/admin/templets/archives_edit.htm
  21. +1
    -1
      src/admin/templets/archives_sg_add.htm
  22. +1
    -1
      src/admin/templets/archives_sg_edit.htm
  23. +1
    -1
      src/admin/templets/article_add.htm
  24. +1
    -1
      src/admin/templets/article_edit.htm
  25. +1
    -1
      src/admin/templets/file_manage_main.htm
  26. +1
    -1
      src/admin/templets/freelist_main.htm
  27. +10
    -6
      src/admin/templets/index.htm
  28. +4
    -1
      src/admin/templets/index_body.htm
  29. +1
    -1
      src/admin/templets/mychannel_edit.htm
  30. +3
    -3
      src/admin/templets/mychannel_field_add.htm
  31. +3
    -3
      src/admin/templets/mychannel_field_edit.htm
  32. +1
    -1
      src/admin/templets/search_keywords_main.htm
  33. +1
    -1
      src/admin/templets/soft_add.htm
  34. +1
    -1
      src/admin/templets/soft_edit.htm
  35. +1
    -1
      src/admin/templets/spec_add.htm
  36. +1
    -1
      src/admin/templets/spec_edit.htm
  37. +16
    -16
      src/admin/templets/stepselect_main.htm
  38. +17
    -0
      src/apps/diy.php
  39. +0
    -1
      src/apps/jump.php
  40. +1
    -1
      src/apps/showphoto.php
  41. +1
    -1
      src/install/config.cache.inc.php
  42. +4
    -4
      src/install/install.html
  43. +2
    -2
      src/install/sql-dfdata.txt
  44. +140
    -29
      src/static/ckeditor/contents.css
  45. +51
    -33
      src/static/web/css/admin.css
  46. +4
    -3
      src/static/web/css/style.css
  47. +1
    -1
      src/static/web/js/admin.main.js
  48. +1
    -1
      src/system/libraries/dedehttpdown.class.php
  49. +30
    -54
      src/system/libraries/mail.class.php
  50. +8
    -8
      src/system/libraries/oxwindow.class.php
  51. +200
    -0
      src/system/libraries/webwindow.class.php
  52. +4
    -4
      src/system/typelink/typelink.class.php
  53. +17
    -19
      src/system/typelink/typeunit.class.admin.php
  54. +4
    -6
      src/theme/apps/download_links.htm
  55. +5
    -7
      src/theme/apps/flink_add.htm
  56. +4
    -6
      src/theme/apps/flink_list.htm
  57. +4
    -6
      src/theme/apps/list_diyform.htm
  58. +5
    -7
      src/theme/apps/post_diyform.htm
  59. +4
    -6
      src/theme/apps/recommend.htm
  60. +4
    -6
      src/theme/apps/showphoto.htm
  61. +5
    -7
      src/theme/apps/view_diyform.htm
  62. +4
    -6
      src/theme/apps/view_msg.htm
  63. +4
    -6
      src/theme/apps/view_msg_catalog.htm
  64. +4
    -6
      src/theme/apps/vote.htm
  65. +4
    -6
      src/theme/dedebiz/article_article.htm
  66. +4
    -6
      src/theme/dedebiz/article_default.htm
  67. +4
    -6
      src/theme/dedebiz/article_default_sg.htm
  68. +4
    -6
      src/theme/dedebiz/article_image.htm
  69. +4
    -6
      src/theme/dedebiz/article_infos.htm
  70. +4
    -6
      src/theme/dedebiz/article_soft.htm
  71. +4
    -6
      src/theme/dedebiz/article_spec.htm
  72. +2
    -2
      src/theme/dedebiz/head.htm
  73. +4
    -6
      src/theme/dedebiz/index_article.htm
  74. +4
    -6
      src/theme/dedebiz/index_default.htm
  75. +4
    -6
      src/theme/dedebiz/index_default_sg.htm
  76. +4
    -6
      src/theme/dedebiz/index_image.htm
  77. +4
    -6
      src/theme/dedebiz/index_infos.htm
  78. +4
    -6
      src/theme/dedebiz/index_soft.htm
  79. +4
    -6
      src/theme/dedebiz/list_article.htm
  80. +4
    -6
      src/theme/dedebiz/list_default.htm
  81. +4
    -6
      src/theme/dedebiz/list_default_sg.htm
  82. +4
    -6
      src/theme/dedebiz/list_free.htm
  83. +4
    -6
      src/theme/dedebiz/list_image.htm
  84. +4
    -6
      src/theme/dedebiz/list_infos.htm
  85. +4
    -6
      src/theme/dedebiz/list_soft.htm
  86. +4
    -6
      src/theme/dedebiz/list_spec.htm
  87. +4
    -6
      src/theme/dedebiz/tag.htm
  88. +5
    -7
      src/theme/dedebiz/tag_list.htm
  89. +1
    -1
      src/theme/dedebiz/widget_menu.htm
  90. +1
    -1
      src/theme/dedebiz/widget_search.htm
  91. +1
    -2
      src/user/album_add.php
  92. +1
    -2
      src/user/album_edit.php
  93. +1
    -2
      src/user/archives_add.php
  94. +1
    -2
      src/user/archives_edit.php
  95. +2
    -3
      src/user/archives_sg_add.php
  96. +2
    -3
      src/user/archives_sg_edit.php
  97. +1
    -2
      src/user/article_add.php
  98. +1
    -2
      src/user/article_edit.php
  99. +7
    -9
      src/user/buy_action.php
  100. +1
    -1
      src/user/inc/archives_check.php

+ 2
- 0
docs/changelog.md View File

@@ -4,8 +4,10 @@
# V6.3.2
- 重做后台管理;
- 增加流量统计列表功能;
- 增加自定义表单留言自动发送邮件通知;
- 优化后台链接官方资源加载超时保持流畅;
- 优化图片自动alt移至扩展函数;
- 优化选择图片;
- 优化Cookie函数,增加samesite属性等设置;
- 修正文档标题和软件演示字符限制问题;
- 修正富文本复制粘贴功能;


+ 1
- 1
src/admin/ad_add.php View File

@@ -55,7 +55,7 @@ if ($dopost == "save") {
}
$query = "INSERT INTO `#@__myad` (clsid,typeid,tagname,adname,timeset,starttime,endtime,normbody,expbody) VALUES ('$clsid','$typeid','$tagname','$adname','$timeset','$starttime','$endtime','$normbody','$expbody');";
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功添加一广告", "ad_main.php");
ShowMsg("成功添加一广告", "ad_main.php");
exit();
}
$dsql->Execute('dd', 'SELECT * FROM `#@__myadtype` ORDER BY id DESC');


+ 1
- 1
src/admin/catalog_do.php View File

@@ -156,7 +156,7 @@ else if ($dopost == "GetSunListsMenu") {
PutCookie('lastCid', $cid, 3600 * 24, "/");
$tu = new TypeUnit();
$tu->dsql = $dsql;
$tu->LogicListAllSunType($cid, " ");
$tu->LogicListAllSunType($cid, "");
$tu->Close();
}
//合并栏目


+ 76
- 124
src/admin/dialog/select_images.php View File

@@ -54,117 +54,88 @@ if (!empty($iseditor)) {
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<title>选择图片</title>
<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/web/css/admin.css">
<script src="/static/web/js/jquery.min.js"></script>
</head>
<body>
<div class="upload-bg">
<div class="card shadow-sm">
<div class="card-header">选择图片</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless icon">
<thead>
<tr>
<td colspan="3">
<form name="myform" action="select_images_post.php" method="POST" enctype="multipart/form-data">
<?php $noeditor = !empty($noeditor) ? "<input type='hidden' name='noeditor' value='yes'>" : ''; echo $noeditor;?>
<input type="hidden" name="activepath" value="<?php echo $activepath ?>">
<input type="hidden" name="f" value="<?php echo $f ?>">
<input type="hidden" name="v" value="<?php echo $v ?>">
<input type="hidden" name="iseditor" value="<?php echo $iseditor ?>">
<input type="hidden" name="imgstick" value="<?php echo $imgstick ?>">
<input type="hidden" name="CKEditorFuncNum" value="<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1;?>">
<input type="hidden" name="job" value="upload">
<input type="file" name="imgfile">
<label><input type="checkbox" name="needwatermark" value="1" <?php if ($photo_markup == '1') echo 'checked';?>> 水印</label>
<label><input type="checkbox" name="resize" value="1"> 缩小</label>
<label>宽:<input type="text" name="iwidth" value="<?php echo $cfg_ddimg_width ?>" class="admin-input-xs"></label>
<label>高:<input type="text" name="iheight" value="<?php echo $cfg_ddimg_height ?>" class="admin-input-xs"></label>
<button type="submit" class="btn btn-success btn-sm">上传</button>
</form>
</td>
</tr>
<tr>
<td scope="col">文件名称</td>
<td scope="col">文件大小</td>
<td scope="col">修改时间</td>
</tr>
</thead>
<tbody>
<?php
$dh = scandir($inpath);
$ty1 = '';
$ty2 = '';
foreach ($dh as $file) {
//计算文件大小和创建时间
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) {
$filesize = filesize("$inpath/$file");
$filesize = $filesize / 1024;
if ($filesize != "")
if ($filesize < 0.1) {
@list($ty1, $ty2) = explode("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 2);
} else {
@list($ty1, $ty2) = explode("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 1);
}
$filetime = filemtime("$inpath/$file");
$filetime = MyDate("Y-m-d H:i:s", $filetime);
}
if ($file == ".") continue;
else if ($file == "..") {
if ($activepath == "") continue;
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath);
$line = "<tr>
<td colspan='2'><a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 上级目录</a></td>
<td>当前目录:$activepath</td>
</tr>";
echo $line;
} else if (is_dir("$inpath/$file")) {
if (preg_match("#^_(.*)$#i", $file)) continue;
if (preg_match("#^\.(.*)$#i", $file)) continue;
$line = "<tr>
<td colspan='3'><a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode("$activepath/$file").$addparm."'><img src='/static/web/img/icon_dir.png'> $file</a></td>
</tr>";
echo "$line";
} else if (preg_match("#\.(".$cfg_imgtype.")#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
if ($file == $comeback) $lstyle = "text-danger";
else $lstyle = '';
$line = "<tr>
<td>
<a href='$reurl' onclick=\"ReturnImg('$reurl');\" class=\"tipsimg $lstyle\"><img src='$reurl' title='$file'> $file</a>
</td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(jpg)#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
if ($file == $comeback) $lstyle = "text-danger";
else $lstyle = '';
$line = "<tr>
<td><a href='$reurl' onclick=\"ReturnImg('$reurl');\" class=\"tipsimg $lstyle\"><img src='$reurl' title='$file'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
}
}
?>
</tbody>
</table>
</div>
</div>
<body class="p-3">
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="myform" action="select_images_post.php" method="POST" enctype="multipart/form-data">
<?php $noeditor = !empty($noeditor) ? "<input type='hidden' name='noeditor' value='yes'>" : ''; echo $noeditor;?>
<input type="hidden" name="activepath" value="<?php echo $activepath ?>">
<input type="hidden" name="f" value="<?php echo $f ?>">
<input type="hidden" name="v" value="<?php echo $v ?>">
<input type="hidden" name="iseditor" value="<?php echo $iseditor ?>">
<input type="hidden" name="imgstick" value="<?php echo $imgstick ?>">
<input type="hidden" name="CKEditorFuncNum" value="<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1;?>">
<input type="hidden" name="job" value="upload">
<input type="file" name="imgfile">
<label><input type="checkbox" name="needwatermark" value="1" <?php if ($photo_markup == '1') echo 'checked';?>> 水印</label>
<label><input type="checkbox" name="resize" value="1"> 缩小</label>
<label><input type="text" name="iwidth" value="<?php echo $cfg_ddimg_width ?>" class="admin-input-xs"> 宽</label>
<label><input type="text" name="iheight" value="<?php echo $cfg_ddimg_height ?>" class="admin-input-xs"> 高</label>
<button type="submit" class="btn btn-success btn-sm">上传</button>
</form>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">选择图片</div>
<div class="card-body opt">
<?php
$dh = scandir($inpath);
foreach ($dh as $file) {
if ($file == ".") continue;
else if ($file == "..") {
if ($activepath == "") continue;
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath);
$line = "<div class='d-flex justify-content-between mb-3'>
<a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a>
<span>当前目录:$activepath</span>
</div>";
echo $line;
} else if (is_dir("$inpath/$file")) {
if (preg_match("#^_(.*)$#i", $file)) continue;
if (preg_match("#^\.(.*)$#i", $file)) continue;
$line = "<div class='list'>
<a href='select_images.php?imgstick=$imgstick&v=$v&f=$f&activepath=".urlencode("$activepath/$file").$addparm."'>
<img src='/static/web/img/icon_dir.png'>
<span>$file</span>
</a>
</div>";
echo "$line";
} else if (preg_match("#\.(".$cfg_imgtype.")#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$line = "<div class='list'>
<a href='$reurl' onclick=\"ReturnImg('$reurl');\" $lstyle>
<img src='$reurl' title='$file'>
<span>$file</span>
</a>
</div>";
echo "$line";
} else if (preg_match("#\.(jpg)#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$line = "<div class='list'>
<a href='$reurl' onclick=\"ReturnImg('$reurl');\" $lstyle>
<img src='$reurl' title='$file'>
<span>$file</span>
</a>
</div>";
echo "$line";
}
}
?>
</div>
</div>
<script>
@@ -205,25 +176,6 @@ if (!empty($iseditor)) {
}
window.close();
}
$(function() {
var x = 10;
var y = 10;
$(".tipsimg").mouseover(function(e) {
var toolimg = "<div id='toolimg'><img src='" + this.href + "'></div>";
$("body").append(toolimg);
$("#toolimg").css({
"top": (e.pageY + y) + "px",
"left": (e.pageX + x) + "px"
}).show("fast");
}).mouseout(function() {
$("#toolimg").remove();
}).mousemove(function(e) {
$("#toolimg").css({
"top": (e.pageY + y) + "px",
"left": (e.pageX + x) + "px"
});
});
});
</script>
</body>
</html>

+ 116
- 118
src/admin/dialog/select_media.php View File

@@ -44,131 +44,129 @@ if (!empty($noeditor)) {
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<title>选择多媒体</title>
<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<div class="upload-bg">
<div class="card shadow-sm">
<div class="card-header">选择多媒体</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless icon">
<thead>
<tr>
<td colspan="3">
<form name="myform" action="select_media_post.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="activepath" value="<?php echo $activepath ?>">
<?php $noeditor = !empty($noeditor) ? "<input type='hidden' name='noeditor' value='yes'>" : ''; echo $noeditor;?>
<input type="hidden" name="f" value="<?php echo $f ?>">
<input type="hidden" name="job" value="upload">
<input type="hidden" name="CKEditorFuncNum" value="<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1;?>">
<input type="file" name="uploadfile">
<button type="submit" class="btn btn-success btn-sm">上传</button>
</form>
</td>
</tr>
<tr>
<td scope="col">文件名称</td>
<td scope="col">文件大小</td>
<td scope="col">修改时间</td>
</tr>
</thead>
<tbody>
<?php
$dh = scandir($inpath);
$ty1 = '';
$ty2 = '';
foreach ($dh as $file) {
//计算文件大小和创建时间
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) {
$filesize = filesize("$inpath/$file");
$filesize = $filesize / 1024;
if ($filesize != "")
if ($filesize < 0.1) {
@list($ty1, $ty2) = split("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 2);
} else {
@list($ty1, $ty2) = split("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 1);
}
$filetime = filemtime("$inpath/$file");
$filetime = MyDate("Y-m-d H:i:s", $filetime);
}
//判断文件类型并作处理
if ($file == ".") continue;
else if ($file == "..") {
if ($activepath == "") continue;
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath);
$line = "<tr>
<td><a href='select_media.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 上级目录</a></td>
<td colspan='2'>当前目录:$activepath</td>
</tr>";
echo $line;
} else if (is_dir("$inpath/$file")) {
if (preg_match("#^_(.*)$#i", $file)) continue;
if (preg_match("#^\.(.*)$#i", $file)) continue;
$line = "<tr>
<td colspan='3'><a href=select_media.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src='/static/web/img/icon_dir.png'> $file</a></td>
</tr>";
echo "$line";
} else if (preg_match("#\.(swf|fly|fla|flv)#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_flash.png'> $file</a></td>
<td>$filesize KB</td>
<td align='center'>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(wmv|avi)#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_video.png'> $file</a></td>
<td>$filesize KB</td>
<td align='center'>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(rm|rmvb|mp3|mp4)#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_rm.png'> $file</a></td>
<td>$filesize KB</td>
<td align='center'>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(mp3|wma)#", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_music.png'> $file</a></td>
<td>$filesize KB</td>
<td align='center'>$filetime</td>
</tr>";
echo "$line";
<body class="p-3">
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="myform" action="select_media_post.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="activepath" value="<?php echo $activepath ?>">
<?php $noeditor = !empty($noeditor) ? "<input type='hidden' name='noeditor' value='yes'>" : ''; echo $noeditor;?>
<input type="hidden" name="f" value="<?php echo $f ?>">
<input type="hidden" name="job" value="upload">
<input type="hidden" name="CKEditorFuncNum" value="<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1;?>">
<input type="file" name="uploadfile">
<button type="submit" class="btn btn-success btn-sm">上传</button>
</form>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">选择多媒体</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless icon">
<thead>
<tr>
<td scope="col">文件名称</td>
<td scope="col">文件大小</td>
<td scope="col">修改时间</td>
</tr>
</thead>
<tbody>
<?php
$dh = scandir($inpath);
$ty1 = '';
$ty2 = '';
foreach ($dh as $file) {
//计算文件大小和创建时间
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) {
$filesize = filesize("$inpath/$file");
$filesize = $filesize / 1024;
if ($filesize != "")
if ($filesize < 0.1) {
@list($ty1, $ty2) = split("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 2);
} else {
@list($ty1, $ty2) = split("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 1);
}
$filetime = filemtime("$inpath/$file");
$filetime = MyDate("Y-m-d H:i:s", $filetime);
}
//判断文件类型并作处理
if ($file == ".") continue;
else if ($file == "..") {
if ($activepath == "") continue;
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath);
$line = "<tr>
<td><a href='select_media.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td>
<td colspan='2'>当前目录:$activepath</td>
</tr>";
echo $line;
} else if (is_dir("$inpath/$file")) {
if (preg_match("#^_(.*)$#i", $file)) continue;
if (preg_match("#^\.(.*)$#i", $file)) continue;
$line = "<tr>
<td colspan='3'><a href=select_media.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src='/static/web/img/icon_dir.png'> $file</a></td>
</tr>";
echo "$line";
} else if (preg_match("#\.(swf|fly|fla|flv)#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_flash.png'> $file</a></td>
<td>$filesize KB</td>
<td align='center'>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(wmv|avi)#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_video.png'> $file</a></td>
<td>$filesize KB</td>
<td align='center'>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(rm|rmvb|mp3|mp4)#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_rm.png'> $file</a></td>
<td>$filesize KB</td>
<td align='center'>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(mp3|wma)#", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_music.png'> $file</a></td>
<td>$filesize KB</td>
<td align='center'>$filetime</td>
</tr>";
echo "$line";
}
?>
</tbody>
</table>
</div>
}
?>
</tbody>
</table>
</div>
</div>
</div>


+ 92
- 94
src/admin/dialog/select_soft.php View File

@@ -44,106 +44,104 @@ if (!empty($noeditor)) {
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<title>选择软件</title>
<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body>
<div class="upload-bg">
<div class="card shadow-sm">
<div class="card-header">选择软件</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless icon">
<thead>
<tr>
<td colspan="3">
<form name="myform" action="select_soft_post.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="activepath" value="<?php echo $activepath ?>">
<?php $noeditor = !empty($noeditor) ? "<input type='hidden' name='noeditor' value='yes'>" : ''; echo $noeditor;?>
<input type="hidden" name="f" value="<?php echo $f ?>">
<input type="hidden" name="job" value="upload">
<input type="file" name="uploadfile">
<label>改名:<input type="text" name="newname" class="admin-input-sm"></label>
<button type="submit" class="btn btn-success btn-sm">保存</button>
</form>
</td>
</tr>
<tr>
<td scope="col">文件名称</td>
<td scope="col">文件大小</td>
<td scope="col">修改时间</td>
</tr>
</thead>
<tbody>
<?php
$dh = scandir($inpath);
$ty1 = $ty2 = '';
foreach ($dh as $file) {
//计算文件大小和创建时间
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) {
$filesize = filesize("$inpath/$file");
$filesize = $filesize / 1024;
if ($filesize != "")
if ($filesize < 0.1) {
@list($ty1, $ty2) = split("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 2);
} else {
@list($ty1, $ty2) = split("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 1);
}
$filetime = filemtime("$inpath/$file");
$filetime = MyDate("Y-m-d H:i:s", $filetime);
}
//判断文件类型并作处理
if ($file == ".") continue;
else if ($file == "..") {
if ($activepath == "") continue;
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath);
$line = "<tr>
<td><a href='select_soft.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 上级目录</a></td>
<td colspan='2'>当前目录:$activepath</td>
</tr>\r\n";
echo $line;
} else if (is_dir("$inpath/$file")) {
if (preg_match("#^_(.*)$#i", $file)) continue;
if (preg_match("#^\.(.*)$#i", $file)) continue;
$line = "<tr>
<td colspan='3'><a href=select_soft.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src='/static/web/img/icon_dir.png'> $file</a></td>
</tr>";
echo "$line";
} else if (preg_match("#\.(zip|rar|tgr.gz)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_zip.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_exe.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
}
<body class="p-3">
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="myform" action="select_soft_post.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="activepath" value="<?php echo $activepath ?>">
<?php $noeditor = !empty($noeditor) ? "<input type='hidden' name='noeditor' value='yes'>" : ''; echo $noeditor;?>
<input type="hidden" name="f" value="<?php echo $f ?>">
<input type="hidden" name="job" value="upload">
<input type="file" name="uploadfile">
<label>重命名:<input type="text" name="newname" class="admin-input-sm"></label>
<button type="submit" class="btn btn-success btn-sm">保存</button>
</form>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">选择软件</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless icon">
<thead>
<tr>
<td scope="col">文件名称</td>
<td scope="col">文件大小</td>
<td scope="col">修改时间</td>
</tr>
</thead>
<tbody>
<?php
$dh = scandir($inpath);
$ty1 = $ty2 = '';
foreach ($dh as $file) {
//计算文件大小和创建时间
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) {
$filesize = filesize("$inpath/$file");
$filesize = $filesize / 1024;
if ($filesize != "")
if ($filesize < 0.1) {
@list($ty1, $ty2) = split("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 2);
} else {
@list($ty1, $ty2) = split("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 1);
}
$filetime = filemtime("$inpath/$file");
$filetime = MyDate("Y-m-d H:i:s", $filetime);
}
//判断文件类型并作处理
if ($file == ".") continue;
else if ($file == "..") {
if ($activepath == "") continue;
$tmp = preg_replace("#[\/][^\/]*$#i", "", $activepath);
$line = "<tr>
<td><a href='select_soft.php?f=$f&activepath=".urlencode($tmp).$addparm."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td>
<td colspan='2'>当前目录:$activepath</td>
</tr>\r\n";
echo $line;
} else if (is_dir("$inpath/$file")) {
if (preg_match("#^_(.*)$#i", $file)) continue;
if (preg_match("#^\.(.*)$#i", $file)) continue;
$line = "<tr>
<td colspan='3'><a href=select_soft.php?f=$f&activepath=".urlencode("$activepath/$file").$addparm."><img src='/static/web/img/icon_dir.png'> $file</a></td>
</tr>";
echo "$line";
} else if (preg_match("#\.(zip|rar|tgr.gz)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_zip.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_exe.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
}
?>
</tbody>
</table>
</div>
}
?>
</tbody>
</table>
</div>
</div>
</div>


+ 138
- 140
src/admin/dialog/select_templets.php View File

@@ -35,153 +35,151 @@ if (empty($comeback)) {
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<title>选择模板</title>
<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/web/css/admin.css">
</head>
<body >
<div class="upload-bg">
<div class="card shadow-sm">
<div class="card-header">选择模板</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless icon">
<thead>
<tr>
<td colspan="3">
<form name="myform" action="select_templets_post.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="activepath" value="<?php echo $activepath ?>">
<input type="hidden" name="f" value="<?php echo $f ?>">
<input type="hidden" name="job" value="upload">
<input type="file" name="uploadfile">
<label>改名:<input type="text" name="filename" class="admin-input-sm"></label>
<button type="submit" class="btn btn-success btn-sm">保存</button>
</form>
</td>
</tr>
<tr>
<td scope="col">文件名称</td>
<td scope="col">文件大小</td>
<td scope="col">修改时间</td>
</tr>
</thead>
<tbody>
<?php
$dh = scandir($inpath);
$ty1 = '';
$ty2 = '';
foreach ($dh as $file) {
//计算文件大小和创建时间
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) {
$filesize = filesize("$inpath/$file");
$filesize = $filesize / 1024;
if ($filesize != "")
if ($filesize < 0.1) {
@list($ty1, $ty2) = split("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 2);
} else {
@list($ty1, $ty2) = split("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 1);
}
$filetime = filemtime("$inpath/$file");
$filetime = MyDate("Y-m-d H:i:s", $filetime);
}
//判断文件类型并作处理
if ($file == ".") continue;
else if ($file == "..") {
if ($activepath == "") continue;
$tmp = preg_replace("#[\/][^\/]*$#", "", $activepath);
$line = "<tr>
<td><a href='select_templets.php?f=$f&activepath=".urlencode($tmp)."'><img src='/static/web/img/icon_dir2.png'> 上级目录</a></td>
<td colspan='2'>当前目录:$activepath</td>
</tr>\r\n";
echo $line;
} else if (is_dir("$inpath/$file")) {
if (preg_match("#^_(.*)$#i", $file)) continue;
if (preg_match("#^\.(.*)$#i", $file)) continue;
$line = "<tr>
<td colspan='3'><a href=select_templets.php?f=$f&activepath=".urlencode("$activepath/$file")."><img src='/static/web/img/icon_dir.png'> $file</a></td>
</tr>";
echo "$line";
} else if (preg_match("#\.(htm|html)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_htm.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(css)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."/#", "", $reurl);
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_css.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(js)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_js.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(jpg)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='$reurl'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(gif|png)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='$reurl'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(txt)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_text.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td></tr>";
echo "$line";
<body class="p-3">
<div class="card shadow-sm mb-3">
<div class="card-body">
<form name="myform" action="select_templets_post.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="activepath" value="<?php echo $activepath ?>">
<input type="hidden" name="f" value="<?php echo $f ?>">
<input type="hidden" name="job" value="upload">
<input type="file" name="uploadfile">
<label>重命名:<input type="text" name="filename" class="admin-input-sm"></label>
<button type="submit" class="btn btn-success btn-sm">保存</button>
</form>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header">选择模板</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless icon">
<thead>
<tr>
<td scope="col">文件名称</td>
<td scope="col">文件大小</td>
<td scope="col">修改时间</td>
</tr>
</thead>
<tbody>
<?php
$dh = scandir($inpath);
$ty1 = '';
$ty2 = '';
foreach ($dh as $file) {
//计算文件大小和创建时间
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) {
$filesize = filesize("$inpath/$file");
$filesize = $filesize / 1024;
if ($filesize != "")
if ($filesize < 0.1) {
@list($ty1, $ty2) = split("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 2);
} else {
@list($ty1, $ty2) = split("\.", $filesize);
$filesize = $ty1.".".substr($ty2, 0, 1);
}
$filetime = filemtime("$inpath/$file");
$filetime = MyDate("Y-m-d H:i:s", $filetime);
}
//判断文件类型并作处理
if ($file == ".") continue;
else if ($file == "..") {
if ($activepath == "") continue;
$tmp = preg_replace("#[\/][^\/]*$#", "", $activepath);
$line = "<tr>
<td><a href='select_templets.php?f=$f&activepath=".urlencode($tmp)."'><img src='/static/web/img/icon_dir2.png'> 返回上级</a></td>
<td colspan='2'>当前目录:$activepath</td>
</tr>\r\n";
echo $line;
} else if (is_dir("$inpath/$file")) {
if (preg_match("#^_(.*)$#i", $file)) continue;
if (preg_match("#^\.(.*)$#i", $file)) continue;
$line = "<tr>
<td colspan='3'><a href=select_templets.php?f=$f&activepath=".urlencode("$activepath/$file")."><img src='/static/web/img/icon_dir.png'> $file</a></td>
</tr>";
echo "$line";
} else if (preg_match("#\.(htm|html)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_htm.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(css)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."/#", "", $reurl);
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_css.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(js)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_js.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(jpg)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='$reurl'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(gif|png)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='$reurl'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
echo "$line";
} else if (preg_match("#\.(txt)#i", $file)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = '';
$reurl = "$activeurl/$file";
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_text.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td></tr>";
echo "$line";
}
?>
</tbody>
</table>
</div>
}
?>
</tbody>
</table>
</div>
</div>
</div>


+ 9
- 9
src/admin/inc/inc_catalog_options.php View File

@@ -28,7 +28,7 @@ function GetOptionList($selid = 0, $userCatalog = 0, $channeltype = 0)
//当前选中的栏目
if ($selid > 0) {
$row = $dsql->GetOne("SELECT id,typename,ispart,channeltype FROM `#@__arctype` WHERE id='$selid'");
if ($row['ispart'] == 1) $OptionArrayList .= "<option value='".$row['id']."' class='option1' selected='selected'>".$row['typename']."(封面栏目)</option>";
if ($row['ispart'] == 1) $OptionArrayList .= "<option value='".$row['id']."' class='opt-ion1' selected='selected'>".$row['typename']."(封面栏目)</option>";
else $OptionArrayList .= "<option value='".$row['id']."' selected='selected'>".$row['typename']."</option>";
}
//是否限定会员管理的栏目
@@ -60,16 +60,16 @@ function GetOptionList($selid = 0, $userCatalog = 0, $channeltype = 0)
$sonCats = '';
LogicGetOptionArray($row->id, '─', $channeltype, $dsql, $sonCats);
if ($sonCats != '') {
if ($row->ispart == 1) $OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename." - 封面栏目</option>";
else if ($row->ispart == 2) $OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename." - 外部栏目</option>";
else if (empty($channeltype) && $row->ispart != 0) $OptionArrayList .= "<option value='".$row->id."' class='option2'>".$row->typename."-".$channels[$row->channeltype]."</option>";
else $OptionArrayList .= "<option value='".$row->id."' class='option3'>".$row->typename."</option>";
if ($row->ispart == 1) $OptionArrayList .= "<option value='".$row->id."' class='opt-ion1'>".$row->typename." - 封面栏目</option>";
else if ($row->ispart == 2) $OptionArrayList .= "<option value='".$row->id."' class='opt-ion1'>".$row->typename." - 外部栏目</option>";
else if (empty($channeltype) && $row->ispart != 0) $OptionArrayList .= "<option value='".$row->id."' class='opt-ion2'>".$row->typename."-".$channels[$row->channeltype]."</option>";
else $OptionArrayList .= "<option value='".$row->id."' class='opt-ion3'>".$row->typename."</option>";
$OptionArrayList .= $sonCats;
} else {
if ($row->ispart == 0 && (!empty($channeltype) && $row->channeltype == $channeltype)) {
$OptionArrayList .= "<option value='".$row->id."' class='option3'>".$row->typename."</option>";
$OptionArrayList .= "<option value='".$row->id."' class='opt-ion3'>".$row->typename."</option>";
} else if ($row->ispart == 0 && empty($channeltype)) {
$OptionArrayList .= "<option value='".$row->id."' class='option3'>".$row->typename."</option>";
$OptionArrayList .= "<option value='".$row->id."' class='opt-ion3'>".$row->typename."</option>";
}
}
}
@@ -85,9 +85,9 @@ function LogicGetOptionArray($id, $step, $channeltype, &$dsql, &$sonCats)
continue;
}
if ($row->channeltype == $channeltype && $row->ispart == 1) {
$sonCats .= "<option value='".$row->id."' class='option1'>└$step ".$row->typename."</option>";
$sonCats .= "<option value='".$row->id."' class='opt-ion1'>└$step ".$row->typename."</option>";
} else if (($row->channeltype == $channeltype && $row->ispart == 0) || empty($channeltype)) {
$sonCats .= "<option value='".$row->id."' class='option3'>└$step ".$row->typename."</option>";
$sonCats .= "<option value='".$row->id."' class='opt-ion3'>└$step ".$row->typename."</option>";
}
LogicGetOptionArray($row->id, $step.'─', $channeltype, $dsql, $sonCats);
}


+ 1
- 1
src/admin/index_body.php View File

@@ -57,7 +57,7 @@ if (empty($dopost)) {
}
$rowarcrank = $row['arcrank']==-1 ? '待审核' : '已审核';
$pubdate = GetDateMk($row['pubdate']);
$row['title'] = cn_substr($row['title'], 50);
$row['title'] = cn_substr($row['title'], 40);
echo "<tr><td><a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a></td><td width='70'>{$rowarcrank}</td><td width='110'>{$pubdate}</td></tr>";
}
?>


+ 2
- 2
src/admin/member_pmall.php View File

@@ -21,10 +21,10 @@ if ($action == "post") {
$subject = cn_substrR(HtmlReplace($subject), 70);
$message = cn_substrR(HtmlReplace($message), 1000);
if (!isset($subject) || empty($subject)) {
ShowMsg('短信标题不能为空!', '-1');
ShowMsg('短信标题不能为空', '-1');
exit();
} else if (!isset($message) || empty($message)) {
ShowMsg('请填写短信文档!', '-1');
ShowMsg('请填写短信文档', '-1');
exit();
}
$rs = $dsql->ExecuteNoneQuery("INSERT INTO `#@__member_pms` (floginid,fromid,toid,tologinid,folder,hasview,subject,sendtime,writetime,message,isadmin) VALUES ('$floginid','$fromid','$toid','$tologinid','outbox','0','$subject','$sendtime','$writetime','$message','1');");


+ 1
- 6
src/admin/mychannel_edit.php View File

@@ -95,7 +95,6 @@ if ($dopost == "show") {
$channelconfig .= "<channel:{$k}>$v</channel:{$k}>\r\n";
}
$wintitle = "导出指定文档模型规则";
$wecome_info = "<a href='mychannel_main.php'>文档模型管理</a> - 导出文档模型规则";
$win = new OxWindow();
$win->Init();
$win->AddTitle("导出{$row['typename']}文档模型规则");
@@ -104,7 +103,6 @@ if ($dopost == "show") {
exit();
} else if ($dopost == "exportin") {
$wintitle = "导入指定文档模型规则";
$wecome_info = "<a href='mychannel_main.php'>文档模型管理</a> - 导入文档模型规则";
$win = new OxWindow();
$win->Init("mychannel_edit.php", "/static/web/js/admin.blank.js", "post");
$win->AddHidden("dopost", "exportinok");
@@ -116,9 +114,8 @@ if ($dopost == "show") {
require_once(DEDEADMIN."/inc/inc_admin_channel.php");
function GotoStaMsg($msg)
{
global $wintitle, $wecome_info, $winform;
global $wintitle, $winform;
$wintitle = "导入指定文档模型规则";
$wecome_info = "<a href='mychannel_main.php'>文档模型管理</a> - 导入文档模型规则";
$win = new OxWindow();
$win->Init();
$win->AddMsgItem($msg);
@@ -286,7 +283,6 @@ if ($dopost == "show") {
require_once(DEDEINC."/libraries/oxwindow.class.php");
$row = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$id'");
$wintitle = "查看模型应用模板";
$wecome_info = "<a href='mychannel_main.php'>文档模型管理</a> - 模型应用模板";
$win = new OxWindow();
$win->Init("", "/static/web/js/admin.blank.js", "");
$win->AddTitle("栏目".$row['typename']."默认模板文件说明");
@@ -325,7 +321,6 @@ if ($dopost == "show") {
if ($job == "") {
require_once(DEDEINC."/libraries/oxwindow.class.php");
$wintitle = "删除指定文档模型";
$wecome_info = "<a href='mychannel_main.php'>文档模型管理</a> - 删除文档模型";
$win = new OxWindow();
$win->Init("mychannel_edit.php", "/static/web/js/admin.blank.js", "POST");
$win->AddHidden("job", "yes");


+ 8
- 7
src/admin/statistics_list.php View File

@@ -15,13 +15,13 @@ function RenderUrlType($t) {
case 1:
return "列表";
case 2:
return "内容";
return "文档";
case 3:
return "搜索";
case 4:
return "Tag";
return "标签";
default:
return "其他";
return "综合";
}
}
//检查权限
@@ -30,15 +30,16 @@ if ($id == 0 && $reid == 0) {
}
$ip = isset($ip) ? HtmlReplace(trim($ip)) : '';
if (empty($mobile)) $mobile = '';
if ($dopost=="delete") {
if ($dopost == "delete") {
$ids = explode('`',$aids);
$dquery = "";
foreach ($ids as $id) {
foreach ($ids as $id)
{
$id = intval($id);
if ($dquery=="") $dquery .= "id='$id' ";
if ($dquery == "") $dquery .= "id='$id' ";
else $dquery .= " OR id='$id' ";
}
if($dquery!="") $dquery = " WHERE ".$dquery;
if ($dquery != "") $dquery = " WHERE ".$dquery;
$dsql->ExecuteNoneQuery("DELETE FROM `#@__statistics_detail` $dquery");
ShowMsg("成功删除指定的记录", "statistics_list.php");
exit();


+ 0
- 1
src/admin/sys_admin_user_edit.php View File

@@ -78,7 +78,6 @@ if ($dopost == 'saveedit') {
$safecode = substr(md5($cfg_cookie_encode.$randcode), 0, 24);
require_once(DEDEINC."/libraries/oxwindow.class.php");
$wintitle = "删除指定管理员";
$wecome_info = "<a href='sys_admin_user.php'>系统帐号管理</a> - 删除管理员";
$win = new OxWindow();
$win->Init("sys_admin_user_edit.php", "/static/web/js/admin.blank.js", "POST");
$win->AddHidden("dopost", $dopost);


+ 1
- 1
src/admin/sys_group_edit.php View File

@@ -13,7 +13,7 @@ CheckPurview('sys_Group');
if (empty($dopost)) $dopost = '';
if ($dopost == 'save') {
if ($rank == 10) {
ShowMsg('超级管理员的权限不允许修改!', 'sys_group.php');
ShowMsg('超级管理员的权限不允许修改', 'sys_group.php');
exit();
}
$purview = '';


+ 4
- 4
src/admin/sys_info.php View File

@@ -68,12 +68,12 @@ else if ($dopost == 'add') {
$nvarvalue = preg_replace("[^0-9.]","", $nvarvalue);
}
if (trim($nvarname) == '' || preg_match("#[^a-z_]#i", $nvarname)) {
ShowMsg("变量名不能为空并且必须为[a-z_]组成", "-1");
ShowMsg("变量名不能为空并且必须为a-z_组成", "-1");
exit();
}
$row = $dsql->GetOne("SELECT varname FROM `#@__sysconfig` WHERE varname LIKE '$nvarname' ");
if (is_array($row)) {
ShowMsg("变量名称已经存在", "-1");
ShowMsg("变量名称已经存在", "-1");
exit();
}
$row = $dsql->GetOne("SELECT aid FROM `#@__sysconfig` ORDER BY aid DESC");
@@ -86,11 +86,11 @@ else if ($dopost == 'add') {
exit();
}
if (!is_writeable($configfile)) {
ShowMsg("成功保存变量,由于".$configfile."无法写入,因此不能更新配置文件", "sys_info.php?gp=$vargroup");
ShowMsg("成功保存变量,由于".$configfile."无法写入,更新配置文件失败", "sys_info.php?gp=$vargroup");
exit();
} else {
ReWriteConfig();
ShowMsg("成功保存变量并更新配置文件", "sys_info.php?gp=$vargroup");
ShowMsg("成功添加一则变量", "sys_info.php?gp=$vargroup");
exit();
}
}


+ 1
- 1
src/admin/tags_main.php View File

@@ -16,7 +16,7 @@ if (empty($tag)) $tag = '';
if (empty($action)) {
$orderby = empty($orderby) ? 'id' : preg_replace("#[^a-z]#i", '', $orderby);
$orderway = isset($orderway) && $orderway == 'asc' ? 'asc' : 'desc';
if (!empty($tag)) $where = " where tag like '%$tag%'";
if (!empty($tag)) $where = " WHERE tag like '%$tag%'";
else $where = '';
$neworderway = ($orderway == 'desc' ? 'asc' : 'desc');
$query = "SELECT * FROM `#@__tagindex` $where ORDER BY $orderby $orderway";


+ 2
- 2
src/admin/templets/album_add.htm View File

@@ -75,7 +75,7 @@
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-sm btn-success delete">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">
@@ -163,7 +163,7 @@
</tr>
<tr>
<td>本地上传</td>
<td colspan="3"><span class="btn btn-success btn-sm fileinput-button">上传多图<input type="file" name="files[]" id="iptAlbumImages" multiple></span></td>
<td colspan="3"><span class="btn btn-success btn-sm opt-button">上传多图<input type="file" name="files[]" id="iptAlbumImages" multiple></span></td>
</tr>
<tr id="handfield">
<td colspan="4"><div id="gallery"></div></td>


+ 3
- 3
src/admin/templets/album_edit.htm View File

@@ -76,7 +76,7 @@
<td colspan="3">
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
@@ -182,7 +182,7 @@
$fhtml .= "<input type='hidden' name='imgddurl{$j}' value='{$litimg}'>";
$fhtml .= "<div class='atlas-head'><img src='{$litimg}' id='lit{$j}'></div>";
$fhtml .= "<div class='atlas-body'><input type='text' name='imgmsg{$j}' value='".$ctag->GetAtt('text')."' class='atlas-input' placeholder='请输入图片注释'></div>";
$fhtml .= "<div class='atlas-foot'><span class='btn btn-success btn-sm fileinput-button'>更换<input type='file' name='imgfile{$j}' for='item{$j}' class='atlasedit'></span><a href=\"javascript:delAlbPicOld('$bigimg',$j)\" class=\"btn btn-danger btn-sm\">删除</a></div>";
$fhtml .= "<div class='atlas-foot'><span class='btn btn-success btn-sm opt-button'>更换<input type='file' name='imgfile{$j}' for='item{$j}' class='atlasedit'></span><a href=\"javascript:delAlbPicOld('$bigimg',$j)\" class=\"btn btn-danger btn-sm\">删除</a></div>";
$fhtml .= "</div>";
echo $fhtml;
$j++;
@@ -197,7 +197,7 @@
</tr>
<tr>
<td>本地上传</td>
<td colspan="3"><span class="btn btn-success btn-sm fileinput-button">上传多图<input type="file" name="files[]" id="iptAlbumImages" multiple></span></td>
<td colspan="3"><span class="btn btn-success btn-sm opt-button">上传多图<input type="file" name="files[]" id="iptAlbumImages" multiple></span></td>
</tr>
<tr>
<td colspan="4">


+ 1
- 1
src/admin/templets/archives_add.htm View File

@@ -71,7 +71,7 @@
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success delete">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">


+ 1
- 1
src/admin/templets/archives_edit.htm View File

@@ -72,7 +72,7 @@
<td colspan="3">
<input name="picname" type="text" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button id="btnClearAll" type="button" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">


+ 1
- 1
src/admin/templets/archives_sg_add.htm View File

@@ -58,7 +58,7 @@
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">


+ 1
- 1
src/admin/templets/archives_sg_edit.htm View File

@@ -62,7 +62,7 @@
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg" value="<?php echo $addRow['litpic']?>">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($addRow['litpic']!='') echo $addRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">


+ 1
- 1
src/admin/templets/article_add.htm View File

@@ -70,7 +70,7 @@
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">


+ 1
- 1
src/admin/templets/article_edit.htm View File

@@ -77,7 +77,7 @@
<td colspan="3">
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button id="btnClearAll" type="button" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">


+ 1
- 1
src/admin/templets/file_manage_main.htm View File

@@ -17,7 +17,7 @@
<div class="card-header">文件管理器</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td scope="col">文件名称</td>


+ 1
- 1
src/admin/templets/freelist_main.htm View File

@@ -69,7 +69,7 @@
var ahtml = "<ul class='pagination justify-content-center'>";
var startloop = 1;
var endnum = 0;
ahtml += "<li class='page-item disabled'><span class='page-link'>" + pagenum + "页" + totalrow + "</span></li>";
ahtml += "<li class='page-item disabled'><span class='page-link'>" + pagenum + "页" + totalrow + "</span></li>";
if (pageno > 1 && pageno != 1) ahtml += "<li class='page-item disabled'><a href='javascript:;' class='page-link' onclick='LoadPage(1)'>首页</a></li>";
if (pageno > 1) ahtml += "<li class='page-item'><a href='javascript:;' class='page-link' onclick='LoadPage(" + (pageno - 1) + ")'>上页</a></li>";
if (startnum >= pagenum - listsize) {


+ 10
- 6
src/admin/templets/index.htm View File

@@ -26,10 +26,11 @@
<ul class="navbar-nav mr-lg-auto">
<li class="nav-item"><a class="nav-link" href="javascript:;" id="togglemenu"><i class="fa fa-dedent" title="侧边伸缩"></i></a></li>
<?php if ($cuserLogin->getUserType() >= 5) {?>
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="catalog_main.php" target="main"><i class="fa fa-bars" title="栏目管理"></i></a></li>
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="catalog_main.php" target="main"><i class="fa fa-navicon" title="栏目管理"></i></a></li>
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="tags_main.php" target="main"><i class="fa fa-tags" title="标签管理"></i></a></li>
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="statistics_list.php" target="main"><i class="fa fa-bar-chart" title="流量统计"></i></a></li>
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="file_manage_main.php<?php echo DEDEBIZ_SAFE_MODE ? '?activepath='.$cfg_medias_dir:'';?>" target="main"><i class="fa fa-folder" title="文件管理"></i></a></li>
<li class="nav-item"><a class="nav-link" href="diy_main.php" target="main"><i class="fa fa-area-chart" title="自定义表单管理"></i></a></li>
<li class="nav-item"><a class="nav-link" href="diy_main.php" target="main"><i class="fa fa-wpforms" title="自定义表单"></i></a></li>
<?php }?>
<?php if (!DEDEBIZ_SAFE_MODE) {?>
<li class="nav-item d-none d-lg-block"><a class="nav-link" href="templets_main.php" target="main"><i class="fa fa-cube" title="主题模板"></i></a></li>
@@ -41,13 +42,16 @@
<li class="nav-item d-none d-lg-block">
<form action="action_search.php" method="post" target="main">
<input type="text" name="keyword" placeholder="功能搜索" class="admin-input-sm ml-3">
<button type="submit" class="search"><i class="fa fa-search"></i></button>
<button type="submit" class="btn btn-sm search"><i class="fa fa-search"></i></button>
</form>
</li>
</ul>
<div class="user pr-3 d-none d-lg-block">
<a href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID();?>&dopost=edit" target="main"><img src="<?php echo $cuserLogin->getUserFace();?>"><?php echo $cuserLogin->getUserName();?></a>
<a href="exit.php" class="ml-3">退了</a>
<div class="d-none d-lg-block">
<ul class="nav">
<li class="nav-item"><a class="nav-link" href="javascript:document.getElementById('main').contentWindow.location.reload(true);"><i class="fa fa-refresh" title="刷新页面"></i></a></li>
<li class="nav-item"><a class="nav-link user" href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID();?>&dopost=edit" target="main"><img src="<?php echo $cuserLogin->getUserFace();?>"><?php echo $cuserLogin->getUserName();?></a></li>
<li class="nav-item"><a class="nav-link" href="exit.php"><i class="fa fa-power-off" title="退了"></i></a></li>
</ul>
</div>
</nav>
</header>


+ 4
- 1
src/admin/templets/index_body.htm View File

@@ -21,7 +21,10 @@
<div id="body-tips" class="w-100"></div>
<div class="w-100 pb-3">
<div class="card shadow-sm">
<div class="card-header"><i class="fa fa-bar-chart"></i> 流量统计表</div>
<div class="card-header d-flex justify-content-between">
<span><i class="fa fa-bar-chart"></i> 流量统计表</span>
<a href="statistics_list.php" target="main">查看列表</a>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">


+ 1
- 1
src/admin/templets/mychannel_edit.htm View File

@@ -101,7 +101,7 @@
</tr>
<tr>
<td>列表附加字段</td>
<td><input type="text" name="listfields" id="listfields" class="admin-input-lg" value="<?php echo $row['listfields'];?>" class="w-50">(用英文逗号隔开,标签{dede:list channelid='模型id' addfields='字段1,字段2'}{/dede:list},标记[field:name/]调用)</td>
<td><input type="text" name="listfields" id="listfields" class="admin-input-lg" value="<?php echo $row['listfields'];?>" class="w-50">(用英文逗号隔开,标签{dede:list channelid='模型id' addfields='字段1,字段2'}[field:name/]{/dede:list}调用)</td>
</tr>
<tr>
<td>投稿标题使用名称</td>


+ 3
- 3
src/admin/templets/mychannel_field_add.htm View File

@@ -48,7 +48,7 @@
<td>
<label><input type="checkbox" name="notsend" id="notsend" value="1"> 投稿和采集禁用字段</label>
<label><input type="checkbox" name="islist" id="islist" value="1"> 添加到列表附加字段</label>
<span>(标签{dede:list channelid='模型id' addfields='字段1,字段2'}{/dede:list},标记[field:name/]调用)</span>
<span>(标签{dede:list channelid='模型id' addfields='字段1,字段2'}[field:name/]{/dede:list}调用)</span>
</td>
</tr>
<tr>
@@ -94,9 +94,9 @@
{
if ($k==$channelid) {
$nid = $arr['nid'];
echo "<option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>";
echo "<option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>";
} else {
echo "<option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>";
echo "<option value='{$k}'>{$arr['typename']} {$arr['nid']}</option>";
}
}
?>


+ 3
- 3
src/admin/templets/mychannel_field_edit.htm View File

@@ -49,7 +49,7 @@
<td>
<label><input type="checkbox" name="notsend" id="notsend" value="1" <?php echo ($ctag->GetAtt('notsend')==1 ? "checked" : "");?>> 投稿和采集禁用字段</label>
<label><input type="checkbox" name="islist" id="islist" value="1" <?php echo ($ctag->GetAtt('islist')==1 ? "checked" : "");?>> 添加到列表附加字段</label>
<span>(标签{dede:list channelid='模型id' addfields='字段1,字段2'}{/dede:list},标记[field:name/]调用)</span>
<span>(标签{dede:list channelid='模型id' addfields='字段1,字段2'}[field:name/]{/dede:list}调用)</span>
</td>
</tr>
<tr>
@@ -106,9 +106,9 @@
{
if ($k==$channelid) {
$nid = $arr['nid'];
echo "<option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>";
echo "<option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>";
} else {
echo "<option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>";
echo "<option value='{$k}'>{$arr['typename']} {$arr['nid']}</option>";
}
}
?>


+ 1
- 1
src/admin/templets/search_keywords_main.htm View File

@@ -101,7 +101,7 @@
var ahtml = "<ul class='pagination justify-content-center'>";
var startloop = 1;
var endnum = 0;
ahtml += "<li class='page-item disabled'><span class='page-link'>" + pagenum + "页" + totalrow + "</span></li>";
ahtml += "<li class='page-item disabled'><span class='page-link'>" + pagenum + "页" + totalrow + "</span></li>";
if (pageno > 1 && pageno != 1) ahtml += "<li class='page-item'><a href='javascript:LoadPage(1);' class='page-link'>首页</a></li>";
if (pageno > 1) ahtml += "<li class='page-item'><a href='javascript:LoadPage(" + (pageno - 1) + ");' class='page-link'>上页</a></li>";
if (startnum >= pagenum - listsize) {


+ 1
- 1
src/admin/templets/soft_add.htm View File

@@ -87,7 +87,7 @@
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">


+ 1
- 1
src/admin/templets/soft_edit.htm View File

@@ -88,7 +88,7 @@
<td colspan="3">
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">


+ 1
- 1
src/admin/templets/spec_add.htm View File

@@ -99,7 +99,7 @@
<td colspan="3">
<input type="text" name="picname" id="picname" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img id="litPic" src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md ml-3">


+ 1
- 1
src/admin/templets/spec_edit.htm View File

@@ -98,7 +98,7 @@
<td colspan="3">
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
<span class="btn btn-success btn-sm fileinput-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
<button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
<img id="litPic" src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">


+ 16
- 16
src/admin/templets/stepselect_main.htm View File

@@ -187,27 +187,27 @@
if ($topvalue % 500 != 0) $arr['issign'] = 2;
?>
<div class="card shadow-sm mb-3">
<div class="card-body">
<form action="stepselect_main.php" method="post">
<input type="hidden" name="action" value="addenum_save">
<input type="hidden" name="issign" value="<?php echo $arr['issign'];?>">
<input type="hidden" name="egroup" value="<?php echo $arr['egroup'];?>">
<select name="topvalue" onChange="ChangePage2(this);" class="admin-input-sm mr-2">
<option value="0"><?php echo $selgroup;?></option>
<?php echo $options;?>
</select>
<input type="text" name="ename" class="admin-input-lg" placeholder="请填分类名称">
<button type="submit" class="btn btn-success btn-sm">添加分类</button>
<?php if ($egroup=='nativeplace') {echo "<a href='stepselect_main.php?action=exarea' class='btn btn-success btn-sm'>导入默认地区</a>";}?>
</form>
</div>
</div>
<div class="card shadow-sm">
<div class="card-header"><?php echo $selgroup;?></div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless table-hover">
<thead>
<tr>
<td colspan="8">
<form action="stepselect_main.php" method="post">
<input type="hidden" name="action" value="addenum_save">
<input type="hidden" name="issign" value="<?php echo $arr['issign'];?>">
<input type="hidden" name="egroup" value="<?php echo $arr['egroup'];?>">
<select name="topvalue" onChange="ChangePage2(this);" class="admin-input-sm mr-2">
<option value="0"><?php echo $selgroup;?></option>
<?php echo $options;?>
</select>
<input type="text" name="ename" class="admin-input-lg" placeholder="请填分类名称">
<button type="submit" class="btn btn-success btn-sm">添加分类</button>
<?php if ($egroup=='nativeplace') {echo "<a href='stepselect_main.php?action=exarea' class='btn btn-success btn-sm'>导入默认地区</a>";}?>
</form>
</td>
</tr>
<tr>
<td scope="col">选择</td>
<td scope="col">id</td>


+ 17
- 0
src/apps/diy.php View File

@@ -70,6 +70,23 @@ if ($action == 'post') {
$query = "INSERT INTO `{$diy->table}` (`id`, `ifcheck` $addvar) VALUES (NULL, 0 $addvalue); ";
if ($dsql->ExecuteNoneQuery($query)) {
$id = $dsql->GetLastID();
$mailtitle = "{$diy->name}通知";
$mailbody = '';
foreach($diy->getFieldList() as $field=>$fieldvalue)
{
$mailbody .= "{$fieldvalue[0]}:{${$field}}\r\n";
}
$headers = "From: ".$cfg_adminemail."Reply-To: ".$cfg_adminemail;
$mailbody = mb_convert_encoding($mailbody, "GBK", "UTF-8");
if ($cfg_sendmail_bysmtp == 'Y' && !empty($cfg_smtp_server)) {
$mailtype = 'TXT';
require_once(DEDEINC.'/libraries/mail.class.php');
$smtp = new smtp($cfg_smtp_server, $cfg_smtp_port, true, $cfg_smtp_usermail, $cfg_smtp_password);
$smtp->debug = false;
$smtp->sendmail($cfg_adminemail, $cfg_webname, $cfg_smtp_usermail, $mailtitle, $mailbody, $mailtype);
} else {
@mail($cfg_adminemail, $mailtitle, $mailbody, $headers);
}
if ($diy->public == 2) {
$goto = "diy.php?action=list&diyid={$diy->diyid}";
$bkmsg = '提交成功,正在前往表单列表';


+ 0
- 1
src/apps/jump.php View File

@@ -22,7 +22,6 @@ if (preg_match("#^http#", $url)) {
//如果不是本站点的,则需要点击进行跳转
$wintitle = "将要访问";
$msg = "<code>$url</code><div class='mt-3'><a href='$url' class='btn btn-success btn-sm'>继续访问</a></div>";
$wecome_info = "页面跳转提示";
$win = new OxWindow();
$win->AddTitle("您将要访问的链接不属于当前站点,请留意账号安全");
$win->AddMsgItem($msg);


+ 1
- 1
src/apps/showphoto.php View File

@@ -37,7 +37,7 @@ if (is_array($arcRow)) {
$arcRow['sitepath']
);
} else {
ShowMsg('无法浏览未知文档!', '-1');
ShowMsg('无法浏览未知文档', '-1');
exit();
}
if (empty($mx)) $mx = $cfg_album_width;


+ 1
- 1
src/install/config.cache.inc.php View File

@@ -3,7 +3,7 @@ $cfg_basehost = '~baseurl~';
$cfg_cookie_encode = '~cookieEncode~';
$cfg_indexurl = '~indexurl~';
$cfg_backup_dir = 'backupdata';
$cfg_indexname = '网站首页';
$cfg_indexname = '首页';
$cfg_indexseotitle = 'DedeBIZ';
$cfg_webname = '~webname~';
$cfg_adminemail = '~adminmail~';


+ 4
- 4
src/install/install.html View File

@@ -19,10 +19,10 @@
<a href="https://www.dedebiz.com" target="_blank" class="logo"><img src="/static/web/img/logo.png" title="DedeBIZ"></a>
</div>
<div class="col-7">
<div class="text-right">
<a href="https://www.dedebiz.com/service" target="_blank"><i class="fa fa-handshake-o"></i> 技术服务</a>
<a href="https://www.dedebiz.com/help" target="_blank" class="ml-3"><i class="fa fa-question-circle"></i> 帮助中心</a>
</div>
<ul class="nav justify-content-end">
<li class="nav-item"><a class="nav-link" href="https://www.dedebiz.com/auth" target="_blank">授权说明</a></li>
<li class="nav-item"><a class="nav-link pr-0" href="https://www.dedebiz.com/help" target="_blank">帮助中心</a></li>
</ul>
</div>
</div>
</div>


+ 2
- 2
src/install/sql-dfdata.txt View File

@@ -3931,7 +3931,7 @@ INSERT INTO `#@__sysconfig` VALUES ('1','cfg_basehost','站点网址','1','strin
('2','cfg_cookie_encode','Cookies加密码','2','string',''),
('3','cfg_indexurl','首页链接','1','string','/'),
('4','cfg_backup_dir','数据备份目录,存data文件夹里','2','string','backupdata'),
('5','cfg_indexname','首页链接名','1','string','网站首页'),
('5','cfg_indexname','首页链接名','1','string','首页'),
('6','cfg_indexseotitle','首页SEO标题','1','string','DedeBIZ'),
('7','cfg_webname','网站名称','1','string','我的网站'),
('8','cfg_adminemail','网站发信邮箱','2','string','support@dedebiz.com'),
@@ -4027,7 +4027,7 @@ INSERT INTO `#@__sysconfig` VALUES ('1','cfg_basehost','站点网址','1','strin
('98','cfg_cache_type','文档ID,content标签最终文档,修改后需要更新缓存','6','string','id'),
('99','cfg_max_face','会员上传头像大小限制(KB)','3','number','2024'),
('100','cfg_typedir_df','栏目生成目录形式(不显示默认页,则是/a/b/c)','2','bool','Y'),
('101','cfg_makeindex','发布文档后马上更新网站首页','6','bool','N'),
('101','cfg_makeindex','发布文档后马上更新首页','6','bool','N'),
('105','cfg_make_prenext','发布文档后马上更新上下篇','6','bool','N'),
('103','cfg_make_andcat','发布文档后马上更新相关栏目','6','bool','N'),
('104','cfg_feedback_forbid','是否禁止所有评论,包括禁止顶踩等','5','bool','N'),


+ 140
- 29
src/static/ckeditor/contents.css View File

@@ -1,29 +1,140 @@
body{line-height:1.6;letter-spacing:0.5px;font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#6c757d;background:#fff}
blockquote{padding:10px 0;font-style:italic;border-style:solid;border-color:#ccc;border-width:0}
a{color:#007bff}
ol,ul,dl{padding:0 20px}
h1,h2,h3,h4,h5,h6{line-height:1.2;font-weight:600;color:#343a40}
hr{border:0px;border-top:1px solid #ccc}
pre{white-space:pre-wrap;word-wrap:break-word;-moz-tab-size:3;tab-size:3}
span[lang]{font-style:italic}
figure{display:inline-block;margin:10px 20px;padding:10px;background:rgba(0,0,0,0.05);outline:solid 1px #ccc;text-align:center}
figure>figcaption{display:block;text-align:center}
img{max-width:100%;border-radius:0.5rem}
a>img{margin:1px;padding:1px;border:none;outline:1px solid #0782C1}
img.right{float:right;margin-left:15px;padding:5px;border:1px solid #ccc}
img.left{float:left;margin-right:15px;padding:5px;border:1px solid #ccc}
.marker{background-color:Yellow}
.cke_editable{font-size:14px;word-wrap:break-word}
.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}
.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}
body {
line-height:1.6;
letter-spacing:0.5px;
font-size:14px;
font-family:"Poppins","Helvetica Neue",Arial,"Microsoft JhengHei",sans-serif;
color:#6c757d;
background:#fff
}
blockquote {
padding:10px 0;
font-style:italic;
border-style:solid;
border-color:#ccc;
border-width:0
}
a {
color:#007bff
}
ol,ul,dl {
padding:0 20px
}
h1,h2,h3,h4,h5,h6 {
line-height:1.2;
font-weight:600;
color:#343a40
}
hr {
border:0px;
border-top:1px solid #ccc
}
pre {
white-space:pre-wrap;
word-wrap:break-word;
-moz-tab-size:3;
tab-size:3
}
span[lang] {
font-style:italic
}
figure {
display:inline-block;
margin:10px 20px;
padding:10px;
background:rgba(0,0,0,0.05);
outline:solid 1px #ccc;
text-align:center
}
figure>figcaption {
display:block;
text-align:center
}
img {
max-width:100%;
border-radius:0.5rem
}
a>img {
margin:1px;
padding:1px;
border:none;
outline:1px solid #0782C1
}
img.right {
float:right;
margin-left:15px;
padding:5px;
border:1px solid #ccc
}
img.left {
float:left;
margin-right:15px;
padding:5px;
border:1px solid #ccc
}
.marker {
background-color:Yellow
}
.cke_editable {
font-size:14px;
word-wrap:break-word
}
.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
}
.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
}

+ 51
- 33
src/static/web/css/admin.css View File

@@ -18,7 +18,7 @@ body {
line-height:1.6;
letter-spacing:0.5px;
font-size:14px;
font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;
font-family:"Poppins","Helvetica Neue",Arial,"Microsoft JhengHei",sans-serif;
color:var(--gray);
background:var(--bg)
}
@@ -80,7 +80,7 @@ input[type=radio],input[type=checkbox],input[type=radio]:focus,input[type=checkb
vertical-align:middle
}
select {
padding:0.375rem 0.75rem;
padding:0.25rem 0.75rem;
height:30px;
color:var(--gray);
background:var(--white);
@@ -228,12 +228,9 @@ input:focus,select:focus,textarea:focus {
}
.admin-head .nav-item .search {
position:absolute;
top:20px;
right:0.25rem;
line-height:20px;
color:var(--gray);
background:0;
border:0
top:16px;
right:0;
color:var(--gray)
}
.admin-head .nav-link {
padding:0 1rem!important
@@ -290,20 +287,11 @@ body.menu-show .body-right {
top:13px;
left:1rem
}
#open {
border-left:3px solid var(--green)
}
.side-menu .menu-item .fa,.side-menu .sub-item .fa {
position:absolute;
top:13px;
right:1rem
}
#open .menu-link,#open .fa-angle-down,.side-menu .sub-item.active a {
color:var(--green)
}
#open .fa-angle-down {
transform:rotate(180deg)
}
.side-menu .menu-sub {
display:none
}
@@ -313,6 +301,15 @@ body.menu-show .body-right {
height:40px;
line-height:40px
}
#open {
border-left:3px solid var(--green)
}
#open .menu-link,#open .fa-angle-down,.side-menu .sub-item.active a {
color:var(--green)
}
#open .fa-angle-down {
transform:rotate(180deg)
}
.body-right {
padding:1rem;
position:absolute;
@@ -397,6 +394,7 @@ body.menu-show .body-right {
}
.mysource,.mywriter {
width:500px;
border:1px solid var(--gray-300);
z-index:19994
}
.atlas {
@@ -590,16 +588,15 @@ body.menu-show .body-right {
display:flex;
flex-wrap:wrap
}
.upload-bg {
margin:1rem;
background:var(--white)
}
.w-65 {
width:65%
}
.w-35 {
width:35%
}
.column:hover {
background:rgba(0,0,0,0.075)
}
.breadcrumb {
padding:0;
background:none
@@ -625,6 +622,10 @@ body.menu-show .body-right {
margin-bottom:0;
color:var(--gray)
}
.table.icon img {
width:20px;
height:20px
}
.table th,.table td {
padding:0.5rem 1rem 0.5rem 0;
vertical-align:middle
@@ -636,25 +637,42 @@ body.menu-show .body-right {
font-size:14px!important;
color:inherit
}
.icon img {
width:20px;
height:20px
.opt .list {
display:inline-block;
margin-right:1rem;
margin-bottom:1rem;
padding:1rem;
width:134px;
background:var(--light);
text-align:center
}
.option1 {
.opt .list img {
display:block;
margin:0 auto 1rem;
max-width:89px;
max-height:50px
}
.opt .list span {
display:block;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap
}
.opt-ion1 {
background:var(--gray-300)
}
.option2 {
.opt-ion2 {
background:var(--gray-500)
}
.option3 {
.opt-ion3 {
background:var(--white)
}
.fileinput-button {
.opt-button {
display:inline-block;
position:relative;
overflow:hidden
}
.fileinput-button input {
.opt-button input {
position:absolute;
top:0;
right:0;
@@ -717,14 +735,14 @@ body.menu-show .body-right {
.admin-input-xs {
width:70px
}
a:hover,body.menu-hide .body-right,body.menu-show .body-right,.sidemenu .submenu li:hover,.table-hover tbody tr:hover {
a:hover,body.menu-hide .body-right,body.menu-show .body-right,.sidemenu .submenu li:hover,.column:hover,.table-hover tbody tr:hover {
transition:all 0.5s
}
span.page-link {
color:var(--white);
background:var(--green)
}
input,select,textarea,.upload-bg,.colordlg,.pubdlg,.quickselitem .topcat,.mysource,.mywriter,#edsta,.cke_chrome,.cke_inner,.pagination,.card,.form-control,.btn,.alert,.rounded {
input,select,textarea,.upload-bg,.colordlg,.pubdlg,.quickselitem .topcat,.mysource,.mywriter,.opt .list,#edsta,.cke_chrome,.cke_inner,.pagination,.card,.form-control,.btn,.alert,.rounded {
border-radius:var(--b-radius)!important
}
.cke_top {
@@ -755,7 +773,7 @@ input,select,textarea,.upload-bg,.colordlg,.pubdlg,.quickselitem .topcat,.mysour
font-size:12px
}
.btn-xs {
padding:0.2rem;
padding:0.15rem;
line-height:1;
font-size:12px;
border-radius:var(--b-radius-sm)!important
@@ -764,7 +782,7 @@ input,select,textarea,.upload-bg,.colordlg,.pubdlg,.quickselitem .topcat,.mysour
margin-left:0.5rem
}
.shadow-sm {
box-shadow:0 .125rem 0.25rem rgba(0,0,0,.025)!important
box-shadow:0 .125rem 0.25rem rgba(0,0,0,0.015)!important
}
@media (min-width:1199px) {
.modal-dialog {


+ 4
- 3
src/static/web/css/style.css View File

@@ -21,7 +21,7 @@ body {
line-height:1.6;
letter-spacing:0.5px;
font-size:14px;
font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;
font-family:"Poppins","Helvetica Neue",Arial,"Microsoft JhengHei",sans-serif;
color:var(--gray);
background:var(--bg)
}
@@ -372,6 +372,7 @@ input[type=radio],input[type=checkbox],input[type=radio]:focus,input[type=checkb
color:var(--white)
}
.list-group-flush>.list-group-item {
border:0;
cursor:pointer
}
.input-group-append .btn-sm {
@@ -411,7 +412,7 @@ input[type=radio],input[type=checkbox],input[type=radio]:focus,input[type=checkb
.admin-input-xs {
width:70px
}
a:hover,.item-theme:hover,.item-news:hover {
a:hover,.item-theme:hover,.item-news:hover,.table-hover tbody tr:hover {
transition:all 0.5s
}
.navbar-toggler,.dropdown-menu,.breadcrumb,.cke_chrome,.cke_inner,.pagination,.form-control,.btn,.alert,.rounded {
@@ -446,7 +447,7 @@ a:hover,.item-theme:hover,.item-news:hover {
margin-left:0.5rem
}
.shadow-sm {
box-shadow:0 .125rem 0.25rem rgba(0,0,0,.025)!important
box-shadow:0 .125rem 0.25rem rgba(0,0,0,0.015)!important
}
.btn-send,#validateimg {
border-radius:0 var(--b-radius) var(--b-radius) 0;


+ 1
- 1
src/static/web/js/admin.main.js View File

@@ -382,7 +382,7 @@ function uploadImage(litpicImgSrc) {
$("#picname").val(d.data.image_url);
}
}).catch((error) => {
alert("上传缩略图错误");
alert("上传缩略图失败,请重新修改图片上传");
});
}
function SetThumb(srcURL) {


+ 1
- 1
src/system/libraries/dedehttpdown.class.php View File

@@ -379,7 +379,7 @@ class DedeHttpDown
return TRUE;
}
if (!$this->PrivateOpenHost()) {
$this->m_error .= "打开远程主机出错!";
$this->m_error .= "打开远程主机出错";
return FALSE;
}
$this->reTry++;


+ 30
- 54
src/system/libraries/mail.class.php View File

@@ -52,21 +52,19 @@ class smtp
{
$header .= "Cc: ".$cc."\r\n";
}
$header .= "From: $webname<".$from.">\r\n";
$header .= "From: $webname<".$from.">\r\n";
$subject = "=?".$GLOBALS['cfg_soft_lang']."?B?".base64_encode($subject)."?=";
$header .= "Subject: ".$subject."\r\n";
$header .= $additional_headers;
$header .= "Date: ".date("r")."\r\n";
$header .= "X-Mailer:By Redhat (PHP/".phpversion().")\r\n";
$header .= "Subject: ".$subject."\r\n";
$header .= $additional_headers;
$header .= "Date: ".date("r")."\r\n";
$header .= "X-Mailer:By Redhat (PHP/".phpversion().")\r\n";
list($msec, $sec) = explode(" ", microtime());
$header .= "Message-ID: <".date("YmdHis", $sec).".".($msec * 1000000).".".$mail_from.">\r\n";
$TO = explode(",", $this->strip_comment($to));
if ($cc != "")
{
$TO = explode(",", $this->strip_comment($to));
if ($cc != "") {
$TO = array_merge($TO, explode(",", $this->strip_comment($cc)));
}
if ($bcc != "")
{
if ($bcc != "") {
$TO = array_merge($TO, explode(",", $this->strip_comment($bcc)));
}
$sent = TRUE;
@@ -75,14 +73,12 @@ class smtp
$headerto = "To: ".$rcpt_to."\r\n";
$headerall = $header.$headerto;
$rcpt_to = $this->get_address($rcpt_to);
if (!$this->smtp_sockopen($rcpt_to))
{
if (!$this->smtp_sockopen($rcpt_to)) {
$this->log_write("Error: Cannot send email to ".$rcpt_to."\n");
$sent = FALSE;
continue;
}
if ($this->smtp_send($this->host_name, $mail_from, $rcpt_to, $headerall, $body))
{
if ($this->smtp_send($this->host_name, $mail_from, $rcpt_to, $headerall, $body)) {
$this->log_write("E-mail has been sent to <".$rcpt_to.">\n");
} else {
$this->log_write("Error: Cannot send email to <".$rcpt_to.">\n");
@@ -106,55 +102,43 @@ class smtp
*/
function smtp_send($helo, $from, $to, $header, $body = "")
{
if (!$this->smtp_putcmd("HELO", $helo))
{
if (!$this->smtp_putcmd("HELO", $helo)) {
return $this->smtp_error("sending HELO command");
}
if ($this->auth)
{
if (!$this->smtp_putcmd("AUTH LOGIN"))
{
if ($this->auth) {
if (!$this->smtp_putcmd("AUTH LOGIN")) {
return $this->smtp_error("sending AUTH LOGIN command");
}
if (!$this->smtp_putcmd("", base64_encode($this->user)))
{
if (!$this->smtp_putcmd("", base64_encode($this->user))) {
return $this->smtp_error("sending HELO command");
}
if (!$this->smtp_putcmd("", base64_encode($this->pass)))
{
if (!$this->smtp_putcmd("", base64_encode($this->pass))) {
return $this->smtp_error("sending HELO command");
}
}
if (!$this->smtp_putcmd("MAIL", "FROM:<".$from.">"))
{
if (!$this->smtp_putcmd("MAIL", "FROM:<".$from.">")) {
return $this->smtp_error("sending MAIL FROM command");
}
if (!$this->smtp_putcmd("RCPT", "TO:<".$to.">"))
{
if (!$this->smtp_putcmd("RCPT", "TO:<".$to.">")) {
return $this->smtp_error("sending RCPT TO command");
}
if (!$this->smtp_putcmd("DATA"))
{
if (!$this->smtp_putcmd("DATA")) {
return $this->smtp_error("sending DATA command");
}
if (!$this->smtp_message($header, $body))
{
if (!$this->smtp_message($header, $body)) {
return $this->smtp_error("sending message");
}
if (!$this->smtp_eom())
{
if (!$this->smtp_eom()) {
return $this->smtp_error("sending <CR><LF>.<CR><LF> [EOM]");
}
if (!$this->smtp_putcmd("QUIT"))
{
if (!$this->smtp_putcmd("QUIT")) {
return $this->smtp_error("sending QUIT command");
}
return TRUE;
}
function smtp_sockopen($address)
{
if ($this->relay_host == "")
{
if ($this->relay_host == "") {
return $this->smtp_sockopen_mx($address);
} else {
return $this->smtp_sockopen_relay();
@@ -164,8 +148,7 @@ class smtp
{
$this->log_write("Trying to ".$this->relay_host.":".$this->smtp_port."\n");
$this->sock = @fsockopen($this->relay_host, $this->smtp_port, $errno, $errstr, $this->time_out);
if (!($this->sock && $this->smtp_ok()))
{
if (!($this->sock && $this->smtp_ok())) {
$this->log_write("Error: Cannot connenct to relay host ".$this->relay_host."\n");
$this->log_write("Error: ".$errstr." (".$errno.")\n");
return FALSE;
@@ -176,8 +159,7 @@ class smtp
function smtp_sockopen_mx($address)
{
$domain = preg_replace("/^.+@([^@]+)$/i", "\1", $address);
if (!@getmxrr($domain, $MXHOSTS))
{
if (!@getmxrr($domain, $MXHOSTS)) {
$this->log_write("Error: Cannot resolve MX \"".$domain."\"\n");
return FALSE;
}
@@ -213,8 +195,7 @@ class smtp
{
$response = str_replace("\r\n", "", fgets($this->sock, 512));
$this->smtp_debug($response."\n");
if (!preg_match("#^[23]#", $response))
{
if (!preg_match("#^[23]#", $response)) {
fputs($this->sock, "QUIT\r\n");
fgets($this->sock, 512);
$this->log_write("Error: Remote host returned \"".$response."\"\n");
@@ -224,10 +205,8 @@ class smtp
}
function smtp_putcmd($cmd, $arg = "")
{
if ($arg != "")
{
if ($cmd == "")
{
if ($arg != "") {
if ($cmd == "") {
$cmd = $arg;
} else {
$cmd = $cmd." ".$arg;
@@ -245,13 +224,11 @@ class smtp
function log_write($message)
{
$this->smtp_debug($message);
if ($this->log_file == "")
{
if ($this->log_file == "") {
return TRUE;
}
$message = date("M d H:i:s ").get_current_user()."[".getmypid()."]: ".$message;
if (!@file_exists($this->log_file) || !($fp = @fopen($this->log_file, "a")))
{
if (!@file_exists($this->log_file) || !($fp = @fopen($this->log_file, "a"))) {
$this->smtp_debug("Warning: Cannot open log file \"".$this->log_file."\"\n");
return FALSE;;
}
@@ -277,8 +254,7 @@ class smtp
}
function smtp_debug($message)
{
if ($this->debug)
{
if ($this->debug) {
echo $message;
}
}


+ 8
- 8
src/system/libraries/oxwindow.class.php View File

@@ -1,13 +1,13 @@
<?php
if (!defined('DEDEINC')) exit ('dedebiz');
/**
* 提示对话框
* 后台提示对话框
*
* @version $id:oxwindow.class.php 2 13:53 2010-11-11 tianya $
* @package .Libraries
* @copyright Copyright (c) 2022, .COM
* @license https://www..com/license
* @link https://www..com
* @package DedeBIZ.Libraries
* @copyright Copyright (c) 2022 DedeBIZ.COM
* @license GNU GPL v2 (https://www.dedebiz.com/license)
* @link https://www.dedebiz.com
*/
require_once(DEDEINC."/dedetag.class.php");
class OxWindow
@@ -197,9 +197,9 @@ class OxWindow
*/
function Display($modfile = "")
{
global $cfg_templets_dir, $wecome_info, $cfg_basedir;
if (empty($wecome_info)) {
$wecome_info = "提示对话框";
global $cfg_templets_dir, $wintitle, $cfg_basedir;
if (empty($wintitle)) {
$wintitle = "提示对话框";
}
$ctp = new DedeTagParse();
if ($modfile == '') {


+ 200
- 0
src/system/libraries/webwindow.class.php View File

@@ -0,0 +1,200 @@
<?php
if (!defined('DEDEINC')) exit ('dedebiz');
/**
* 前台提示对话框
*
* @version $id:WebWindow.class.php 2 13:53 2010-11-11 tianya $
* @package DedeBIZ.Libraries
* @copyright Copyright (c) 2022 DedeBIZ.COM
* @license GNU GPL v2 (https://www.dedebiz.com/license)
* @link https://www.dedebiz.com
*/
require_once(DEDEINC."/dedetag.class.php");
class WebWindow
{
var $myWin = '';
var $myWinItem = '';
var $checkCode = '';
var $formName = '';
var $tmpCode = "//checkcode";
var $hasStart = false;
/**
* 初始化为含表单的页面
*
* @param string $formaction 表单操作action
* @param string $checkScript 检测验证脚本
* @param string $formmethod 表单类型
* @param string $formname 表单名称
* @return void
*/
function Init($formaction = "", $checkScript = "/static/web/js/admin.blank.js", $formmethod = "POST", $formname = "myform")
{
$this->myWin .= "<script>";
if ($checkScript != "" && file_exists($checkScript)) {
$fp = fopen($checkScript, "r");
$this->myWin .= fread($fp, filesize($checkScript));
fclose($fp);
} else {
$this->myWin .= "function CheckSubmit(){return true;}";
}
$this->myWin .= "</script>";
$this->formName = $formname;
$this->myWin .= "<form name='$formname' action='$formaction' method='$formmethod' onSubmit='return CheckSubmit();'>";
}
/**
* 添加隐藏域
*
* @param string $iname 隐藏域名称
* @param string $ivalue 隐藏域值
* @return void
*/
function AddHidden($iname, $ivalue)
{
$this->myWin .= "<input type='hidden' name='$iname' value='$ivalue'>";
}
/**
* 开始窗口
*
* @return void
*/
function StartWin()
{
$this->myWin .= "<div class='table-responsive'>";
}
/**
* 添加单列信息
*
* @access public
* @param string $ivalue 信息
* @return void
*/
function AddMsgItem($ivalue)
{
$this->myWinItem .= $ivalue;
}
/**
* 结束窗口
*
* @param bool $isform
* @return void
*/
function CloseWin($isform = true)
{
if (!$isform) {
$this->myWin .= "</div>";
} else {
$this->myWin .= "</div></form>";
}
}
/**
* 添加自定义脚本
*
* @param string $scripts
* @return void
*/
function SetCheckScript($scripts)
{
$pos = strpos($this->myWin, $this->tmpCode);
if ($pos > 0) {
$this->myWin = substr_replace($this->myWin, $scripts, $pos, strlen($this->tmpCode));
}
}
/**
* 获取窗口
*
* @param string $wintype 菜单类型
* @param string $msg 短消息
* @param bool $isform 是否是表单
* @return string
*/
function GetWindow($wintype = "save", $msg = "", $isform = true)
{
global $cfg_static_dir;
$this->StartWin();
$this->myWin .= $this->myWinItem;
$tt = '';
switch ($wintype) {
case 'back':
$tt = "返回";
break;
case 'ok':
$tt = "确定";
break;
case 'reset':
$tt = "重置";
break;
case 'search':
$tt = "搜索";
break;
default:
$tt = "保存";
break;
}
if ($wintype != "") {
if ($wintype != "hand") {
$this->myWin .= "<div class='text-center'>
<button type='submit' class='btn btn-success btn-sm'>$tt</button>
<button type='button' class='btn btn-outline-success btn-sm' onclick='javascript:history.go(-1);'>返回</button>
</div>";
} else {
if ($msg != "") {
$this->myWin .= "<div class='mb-3'>$msg</div>
<div class='text-center'>
<button type='button' class='btn btn-success btn-sm' onclick='javascript:history.go(-1);'>返回</button></td>
</div>";
} else {
$this->myWin .= '';
}
}
}
$this->CloseWin($isform);
return $this->myWin;
}
/**
* 显示页面
*
* @access public
* @param string $modfile 模型模板
* @return string
*/
function Display($modfile = "")
{
global $cfg_member_dir, $wintitle, $cfg_basedir;
if (empty($wintitle)) {
$wintitle = "提示对话框";
}
$ctp = new DedeTagParse();
if ($modfile == '') {
$ctp->LoadTemplate($cfg_basedir.$cfg_member_dir.'/templets/win_templet.htm');
} else {
$ctp->LoadTemplate($modfile);
}
$emnum = $ctp->Count;
for ($i = 0; $i <= $emnum; $i++) {
if (isset($GLOBALS[$ctp->CTags[$i]->GetTagName()])) {
$ctp->Assign($i, $GLOBALS[$ctp->CTags[$i]->GetTagName()]);
}
}
$ctp->Display();
$ctp->Clear();
}
}
/**
* 显示一个不带表单的普通提示
*
* @access public
* @param string $msg 提示信息
* @param string $title 提示标题
* @return string
*/
function ShowMsgWin($msg, $title)
{
$win = new WebWindow();
$win->Init();
$win->mainTitle = "系统提示";
$win->AddTitle($title);
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand");
$win->Display();
}
?>

+ 4
- 4
src/system/typelink/typelink.class.php View File

@@ -102,7 +102,7 @@ class TypeLink
$this->LogicGetPosition($this->TypeInfos['reid'], true);
}
$this->valuePosition = $indexpage.$this->SplitSymbol.$this->valuePosition;
return $this->valuePosition.$this->SplitSymbol;
return $this->valuePosition;
} else {
$this->valuePositionName = $this->TypeInfos['typename'];
if ($this->TypeInfos['reid'] != 0) {
@@ -171,7 +171,7 @@ class TypeLink
$row = $this->dsql->GetOne("SELECT id,typename,ispart,channeltype FROM `#@__arctype` WHERE id='$hid'");
$channeltype = $row['channeltype'];
if ($row['ispart'] == 1) {
$this->OptionArrayList .= "<option value='".$row['id']."' class='option1' selected>".$row['typename']."</option>\r\n";
$this->OptionArrayList .= "<option value='".$row['id']."' class='opt-ion1' selected>".$row['typename']."</option>\r\n";
} else {
$this->OptionArrayList .= "<option value='".$row['id']."' selected>".$row['typename']."</option>\r\n";
}
@@ -205,7 +205,7 @@ class TypeLink
while ($row = $this->dsql->GetObject()) {
if ($row->id != $hid) {
if ($row->ispart == 1) {
$this->OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename."</option>\r\n";
$this->OptionArrayList .= "<option value='".$row->id."' class='opt-ion1'>".$row->typename."</option>\r\n";
} else {
$this->OptionArrayList .= "<option value='".$row->id."'>".$row->typename."</option>\r\n";
}
@@ -234,7 +234,7 @@ class TypeLink
if (!in_array($row->id, $oper)) continue;
}
if ($row->ispart == 1) {
$this->OptionArrayList .= "<option value='".$row->id."' class='option1'>└$step ".$row->typename."</option>\r\n";
$this->OptionArrayList .= "<option value='".$row->id."' class='opt-ion1'>└$step ".$row->typename."</option>\r\n";
} else {
$this->OptionArrayList .= "<option value='".$row->id."'>└$step ".$row->typename."</option>\r\n";
}


+ 17
- 19
src/system/typelink/typeunit.class.admin.php View File

@@ -107,9 +107,9 @@ class TypeUnit
$nss = '';
}
if ($ispart == 0) {
//列表栏目
//列表栏目
echo <<<tpl
<div class='d-flex justify-content-between mb-3'>
<div class='column d-flex justify-content-between py-2'>
<div class='left'>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
<span class='btn btn-success btn-sm'>列表</span>
@@ -130,9 +130,9 @@ echo <<<tpl
</div>
tpl;
} else if ($ispart == 1) {
//封面栏目
//封面栏目
echo <<<tpl
<div class='d-flex justify-content-between mb-3'>
<div class='column d-flex justify-content-between py-2'>
<div class='left'>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
<span class='btn btn-warning btn-sm'>封面</span>
@@ -152,9 +152,9 @@ echo <<<tpl
</div>
tpl;
} else if ($ispart == 2) {
//外部栏目
//外部栏目
echo <<<tpl
<div class='d-flex justify-content-between mb-3'>
<div class='column d-flex justify-content-between py-2'>
<div class='left'>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
<span class='btn btn-primary btn-sm'>外部</span>
@@ -176,9 +176,7 @@ tpl;
echo "<div id='suns".$id."'>";
$lastid = GetCookie('lastCid');
if ($channel == $id || $lastid == $id || isset($GLOBALS['exallct']) || $cfg_admin_channel == 'array') {
//echo "<table>";
$this->LogicListAllSunType($id, " ");
//echo "</table>";
$this->LogicListAllSunType($id, "");
}
echo "</div>";
$i++;
@@ -219,11 +217,11 @@ tpl;
} else {
$nss = '';
} if ($ispart == 0) {
//列表栏目
//列表栏目
echo <<<tpl
<div class='d-flex justify-content-between mb-3'>
<div class='column d-flex justify-content-between py-2'>
<div class='left'>
{$step}
<span>└─{$step}</span>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
<span class='btn btn-success btn-sm'>列表</span>
{$nss}
@@ -243,11 +241,11 @@ echo <<<tpl
</div>
tpl;
} else if ($ispart == 1) {
//封面栏目
//封面栏目
echo <<<tpl
<div class='d-flex justify-content-between mb-3'>
<div class='column d-flex justify-content-between py-2'>
<div class='left'>
{$step}
<span>└─{$step}</span>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
<span class='btn btn-warning btn-sm'>封面</span>
{$nss}
@@ -266,11 +264,11 @@ echo <<<tpl
</div>
tpl;
} else if ($ispart == 2) {
//外部栏目
//外部栏目
echo <<<tpl
<div class='d-flex justify-content-between mb-3'>
<div class='column d-flex justify-content-between py-2'>
<div class='left'>
{$step}
<span>└─{$step}</span>
<span class='btn btn-light btn-sm'><i id='icon{$id}' onclick="LoadSuns('suns{$id}',{$id});" class='fa fa-plus-square'></i></span>
<span class='btn btn-primary btn-sm'>外部</span>
{$nss}
@@ -288,7 +286,7 @@ echo <<<tpl
tpl;
}
echo "<div id='suns".$id."' style='".(isset($GLOBALS['exallct'])? "" : "display:none")."'>";
$this->LogicListAllSunType($id, $step." ");
$this->LogicListAllSunType($id, $step."──");
echo "</div>";
}
}


+ 4
- 6
src/theme/apps/download_links.htm View File

@@ -11,12 +11,10 @@
<body>
<?php obtaintheme('top.htm');?>
<main class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><?php echo $title;?>下载地址</li>
</ol>
</nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><?php echo $title;?>下载地址</li>
</ol>
<table class="table mb-0">
<tr>
<td><?php echo $title;?>下载地址列表</td>


+ 5
- 7
src/theme/apps/flink_add.htm View File

@@ -11,13 +11,11 @@
<body>
<?php obtaintheme('top.htm');?>
<main class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><a href="<?php echo $cfg_phpurl;?>/flink.php">友情链接</a></li>
<li class="breadcrumb-item">申请链接</li>
</ol>
</nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><a href="<?php echo $cfg_phpurl;?>/flink.php">友情链接</a></li>
<li class="breadcrumb-item">申请链接</li>
</ol>
<form name="form1" action="<?php echo $cfg_phpurl?>/flink.php" method="post">
<input type="hidden" name="dopost" value="save">
<table class="table mb-0">


+ 4
- 6
src/theme/apps/flink_list.htm View File

@@ -11,12 +11,10 @@
<body>
<?php obtaintheme('top.htm');?>
<main class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item">友情链接</li>
</ol>
</nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item">友情链接</li>
</ol>
<div class="mb-3">
<a href="<?php echo $cfg_phpurl;?>/flink.php?dopost=add" class="btn btn-success btn-sm">申请链接</a>
</div>


+ 4
- 6
src/theme/apps/list_diyform.htm View File

@@ -11,12 +11,10 @@
<body>
<?php obtaintheme('top.htm');?>
<main class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><a href="<?php echo $cfg_phpurl?>/diy.php?action=list&diyid=<?php echo $diy->diyid;?>"><?php echo $diy->name;?>列表</a></li>
</ol>
</nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><a href="<?php echo $cfg_phpurl?>/diy.php?action=list&diyid=<?php echo $diy->diyid;?>"><?php echo $diy->name;?>列表</a></li>
</ol>
<div class="mb-3">
<a href="<?php echo $cfg_phpurl?>/diy.php?action=post&diyid=<?php echo $diy->diyid;?>" class="btn btn-success btn-sm">发布信息</a>
</div>


+ 5
- 7
src/theme/apps/post_diyform.htm View File

@@ -12,13 +12,11 @@
<body>
<?php obtaintheme('top.htm');?>
<main class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><a href="<?php echo $cfg_phpurl?>/diy.php?action=list&diyid=<?php echo $diy->diyid;?>"><?php echo $diy->name;?>列表</a></li>
<li class="breadcrumb-item"><?php echo $diy->name;?>发布</li>
</ol>
</nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><a href="<?php echo $cfg_phpurl?>/diy.php?action=list&diyid=<?php echo $diy->diyid;?>"><?php echo $diy->name;?>列表</a></li>
<li class="breadcrumb-item"><?php echo $diy->name;?>发布</li>
</ol>
<div class="mb-3">
<a href="<?php echo $cfg_phpurl?>/diy.php?action=list&diyid=<?php echo $diy->diyid;?>" class="btn btn-success btn-sm">返回列表</a>
</div>


+ 4
- 6
src/theme/apps/recommend.htm View File

@@ -11,12 +11,10 @@
<body>
<?php obtaintheme('top.htm');?>
<main class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item">推荐<?php echo $title;?></li>
</ol>
</nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item">推荐<?php echo $title;?></li>
</ol>
<form name="form1" action="<?php echo $cfg_phpurl?>/recommend.php" method="post">
<input type="hidden" name="arcurl" value="<?php echo $arcurl;?>">
<input type="hidden" name="action" value="send">


+ 4
- 6
src/theme/apps/showphoto.htm View File

@@ -11,12 +11,10 @@
<body>
<?php obtaintheme('top.htm');?>
<main class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><?php echo $arctitle;?></li>
</ol>
</nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><?php echo $arctitle;?></li>
</ol>
<table class="table mb-0">
<tr>
<td>


+ 5
- 7
src/theme/apps/view_diyform.htm View File

@@ -11,13 +11,11 @@
<body>
<?php obtaintheme('top.htm');?>
<main class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><a href="<?php echo $cfg_phpurl?>/diy.php?action=list&diyid=<?php echo $diy->diyid;?>"><?php echo $diy->name;?>列表</a></li>
<li class="breadcrumb-item"><?php echo $diy->name;?>查看</li>
</ol>
</nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><a href="<?php echo $cfg_phpurl?>/diy.php?action=list&diyid=<?php echo $diy->diyid;?>"><?php echo $diy->name;?>列表</a></li>
<li class="breadcrumb-item"><?php echo $diy->name;?>查看</li>
</ol>
<div class="mb-3">
<a href="<?php echo $cfg_phpurl?>/diy.php?action=post&diyid=<?php echo $diy->diyid;?>" class="btn btn-success btn-sm">发布信息</a>
</div>


+ 4
- 6
src/theme/apps/view_msg.htm View File

@@ -11,12 +11,10 @@
<body>
<?php obtaintheme('top.htm');?>
<main class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item">文档错误提示</li>
</ol>
</nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item">文档错误提示</li>
</ol>
<table class="table mb-0">
<tr>
<td colspan="2"><?php echo $moremsg;?></td>


+ 4
- 6
src/theme/apps/view_msg_catalog.htm View File

@@ -11,12 +11,10 @@
<body>
<?php obtaintheme('top.htm');?>
<main class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item">栏目错误提示</li>
</ol>
</nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item">栏目错误提示</li>
</ol>
<table class="table mb-0">
<tr>
<td colspan="2"><?php echo $moremsg;?></td>


+ 4
- 6
src/theme/apps/vote.htm View File

@@ -11,12 +11,10 @@
<body>
<?php obtaintheme('top.htm');?>
<main class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><?php echo $voname?></li>
</ol>
</nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">首页</a></li>
<li class="breadcrumb-item"><?php echo $voname?></li>
</ol>
<p>投票开始时间:<?php echo $starttime;?></p>
<p>投票结束时间:<?php echo $endtime;?></p>
<p>投票人数:<?php echo $totalcount;?></p>


+ 4
- 6
src/theme/dedebiz/article_article.htm View File

@@ -15,12 +15,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/article_default.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/article_default_sg.htm View File

@@ -15,12 +15,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/article_image.htm View File

@@ -62,12 +62,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/article_infos.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/article_soft.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/article_spec.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 2
- 2
src/theme/dedebiz/head.htm View File

@@ -1,10 +1,10 @@
<header class="container py-3">
<div class="navbar navbar-expand-lg navbar-dark bg-success shadow-sm rounded">
<a href="/" class="navbar-brand d-lg-none">{dede:global.cfg_webname/}</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarMenu" aria-controls="navbarMenu" aria-expanded="false">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsDede" aria-controls="navbarsDede" aria-expanded="false">
<span class="navbar-toggler-icon"></span>
</button>
<nav class="collapse navbar-collapse" id="navbarMenu">
<nav class="collapse navbar-collapse" id="navbarsDede">
<ul class="navbar-nav mr-auto">
<li class="nav-item"><a href="/" class="nav-link {dede:field name='typeid' runphp='yes'}(@me=='')?@me='active':@me='';{/dede:field}">首页</a></li>
{dede:channelartlist typeid='top' row='10'}


+ 4
- 6
src/theme/dedebiz/index_article.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/index_default.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/index_default_sg.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/index_image.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<section class="container py-3">
<div class="row biz-mb">{dede:channelartlist}


+ 4
- 6
src/theme/dedebiz/index_infos.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/index_soft.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<section class="container py-3">
<div class="row biz-mb">{dede:channelartlist}


+ 4
- 6
src/theme/dedebiz/list_article.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/list_default.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/list_default_sg.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/list_free.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/list_image.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/list_infos.htm View File

@@ -15,12 +15,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/list_soft.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/list_spec.htm View File

@@ -14,12 +14,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
{dede:field name='position'/}
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 4
- 6
src/theme/dedebiz/tag.htm View File

@@ -15,12 +15,10 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
<li class="breadcrumb-item">标签页</li>
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
<li class="breadcrumb-item">标签页</li>
</ol>
</div>
<main class="container py-3">
<div class="item-tag mb-3">


+ 5
- 7
src/theme/dedebiz/tag_list.htm View File

@@ -14,13 +14,11 @@
{dede:include filename='top.htm'/}
{dede:include filename='head.htm'/}
<div class="container py-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
<li class="breadcrumb-item"><a href="{dede:field.position/}">标签云</a></li>
<li class="breadcrumb-item">{dede:field.title/}</li>
</ol>
</nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item">当前位置</li>
<li class="breadcrumb-item"><a href="{dede:field.position/}">标签云</a></li>
<li class="breadcrumb-item">{dede:field.title/}</li>
</ol>
</div>
<main class="container py-3">
<div class="row">


+ 1
- 1
src/theme/dedebiz/widget_menu.htm View File

@@ -1,6 +1,6 @@
<div class="item-article bg-white shadow-sm rounded p-3">
<h2 class="mb-3">推荐栏目</h2>
<ul>{dede:channelartlist row='10' typeid='top'}
<li><a href="{dede:field.typeurl/}"><i class="fa fa-navicon mr-1"></i>{dede:field.typename/}</a></li>{/dede:channelartlist}
<li><a href="{dede:field.typeurl/}"><i class="fa fa-navicon mr-2"></i>{dede:field.typename/}</a></li>{/dede:channelartlist}
</ul>
</div>

+ 1
- 1
src/theme/dedebiz/widget_search.htm View File

@@ -3,7 +3,7 @@
<input type="hidden" name="kwtype" value="0">
<div class="input-group">
<input name="q" type="text" class="form-control" placeholder="请输入关键词">
<div class="input-group-append"><button type="submit" id="validateimg" class="btn btn-success btn-sm"><i class="fa fa-search"></i></button></div>
<div class="input-group-append"><button type="submit" class="btn btn-success"><i class="fa fa-search"></i></button></div>
</div>
</form>
</div>

+ 1
- 2
src/user/album_add.php View File

@@ -147,8 +147,7 @@ if (empty($dopost)) {
//返回成功信息
$msg = "<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>浏览文档</a><a href='album_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布文档</a><a href='album_edit.php?aid=".$arcID."&channelid=$channelid' class='btn btn-success btn-sm'>修改文档</a><a href='content_list.php?channelid={$channelid}' class='btn btn-success btn-sm'>返回文档列表</a>";
$wintitle = "成功发布图片文档";
$wecome_info = "图片管理 - 发布图片文档";
$win = new OxWindow();
$win = new WebWindow();
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", false);
$win->Display(DEDEMEMBER."/templets/win_templet.htm");


+ 1
- 2
src/user/album_edit.php View File

@@ -125,8 +125,7 @@ if (empty($dopost)) {
$msg = "<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>浏览文档</a><a href='album_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布文档</a><a href='archives_do.php?channelid=$channelid&aid=".$aid."&dopost=edit' class='btn btn-success btn-sm'>修改文档</a><a href='content_list.php?channelid=$channelid' class='btn btn-success btn-sm'>返回文档列表</a>";
//提交后返回提交页面
$wintitle = "成功修改图片文档";
$wecome_info = "图片管理 - 修改图片文档";
$win = new OxWindow();
$win = new WebWindow();
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", false);
$win->Display(DEDEMEMBER."/templets/win_templet.htm");


+ 1
- 2
src/user/archives_add.php View File

@@ -124,8 +124,7 @@ if (empty($dopost)) {
//返回成功信息
$msg = "<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>浏览文档</a><a href='archives_add.php?cid=$typeid&channelid=$channelid' class='btn btn-success btn-sm'>发布文档</a><a href='archives_edit.php?channelid=$channelid&aid=$arcID' class='btn btn-success btn-sm'>修改文档</a><a href='content_list.php?channelid={$channelid}' class='btn btn-success btn-sm'>返回文档列表</a>";
$wintitle = "成功发布自定义文档";
$wecome_info = "文档管理 - 发布自定义文档";
$win = new OxWindow();
$win = new WebWindow();
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", false);
$win->Display(DEDEMEMBER."/templets/win_templet.htm");


+ 1
- 2
src/user/archives_edit.php View File

@@ -92,8 +92,7 @@ if (empty($dopost)) {
//返回成功信息
$msg = "<a class='btn btn-success btn-sm' href='$artUrl' target='_blank'>浏览文档</a><a href='archives_add.php?cid=$typeid&channelid=$channelid' class='btn btn-success btn-sm'>发布文档</a><a href='archives_edit.php?channelid=$channelid&aid=".$aid."' class='btn btn-success btn-sm'>修改文档</a><a href='content_list.php?channelid=$channelid' class='btn btn-success btn-sm'>返回文档列表</a>";
$wintitle = "成功修改自定义文档";
$wecome_info = "文档管理 - 修改自定义文档";
$win = new OxWindow();
$win = new WebWindow();
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", false);
$win->Display(DEDEMEMBER."/templets/win_templet.htm");


+ 2
- 3
src/user/archives_sg_add.php View File

@@ -43,7 +43,7 @@ if (empty($dopost)) {
exit();
} else if ($dopost == 'save') {
include_once(DEDEINC."/image.func.php");
include_once(DEDEINC."/libraries/oxwindow.class.php");
include_once(DEDEINC."/libraries/webwindow.class.php");
//游客需要校验验证码
if ($cfg_ml->M_ID === 0) {
$svali = GetCkVdValue();
@@ -154,8 +154,7 @@ if (empty($dopost)) {
//返回成功信息
$msg = "<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>浏览文档</a><a href='archives_sg_add.php?channelid=$channelid' class='btn btn-success btn-sm'>发布文档</a><a href='archives_sg_edit.php?channelid=$channelid&aid=$arcID' class='btn btn-success btn-sm'>修改文档</a><a href='content_sg_list.php?channelid={$channelid}' class='btn btn-success btn-sm'>返回文档列表</a>";
$wintitle = "成功发布分类文档";
$wecome_info = "文档管理 - 发布分类文档";
$win = new OxWindow();
$win = new WebWindow();
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", false);
$win->Display(DEDEMEMBER."/templets/win_templet.htm");


+ 2
- 3
src/user/archives_sg_edit.php View File

@@ -36,7 +36,7 @@ if (empty($dopost)) {
exit();
} else if ($dopost == 'save') {
require_once(DEDEINC."/image.func.php");
require_once(DEDEINC."/libraries/oxwindow.class.php");
require_once(DEDEINC."/libraries/webwindow.class.php");
$flag = '';
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$userip = GetIP();
@@ -108,8 +108,7 @@ if (empty($dopost)) {
//返回成功信息
$msg = "<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>浏览文档</a><a href='archives_sg_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布文档</a><a href='archives_do.php?channelid=$channelid&aid=".$aid."&dopost=edit' class='btn btn-success btn-sm'>修改文档</a><a href='content_sg_list.php?channelid=$channelid' class='btn btn-success btn-sm'>返回文档列表</a>";
$wintitle = "成功修改分类文档";
$wecome_info = "文档管理 - 修改分类文档";
$win = new OxWindow();
$win = new WebWindow();
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", false);
$win->Display(DEDEMEMBER."/templets/win_templet.htm");


+ 1
- 2
src/user/article_add.php View File

@@ -113,8 +113,7 @@ if (empty($dopost)) {
//返回成功信息
$msg = "<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>浏览文档</a><a href='article_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布文档</a><a href='article_edit.php?channelid=$channelid&aid=$arcID' class='btn btn-success btn-sm'>修改文档</a><a href='content_list.php?channelid={$channelid}' class='btn btn-success btn-sm'>返回管理文档</a>";
$wintitle = "成功发布文档";
$wecome_info = "文档管理 - 发布文档";
$win = new OxWindow();
$win = new WebWindow();
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", false);
$win->Display(DEDEMEMBER."/templets/win_templet.htm");


+ 1
- 2
src/user/article_edit.php View File

@@ -87,8 +87,7 @@ if (empty($dopost)) {
//返回成功信息
$msg = "<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>浏览文档</a><a href='article_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布文档</a><a href='archives_do.php?channelid=$channelid&aid=".$aid."&dopost=edit' class='btn btn-success btn-sm'>修改文档</a><a href='content_list.php?channelid=$channelid' class='btn btn-success btn-sm'>返回管理文档</a>";
$wintitle = "成功修改文档";
$wecome_info = "文档管理 - 修改文档";
$win = new OxWindow();
$win = new WebWindow();
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", false);
$win->Display(DEDEMEMBER."/templets/win_templet.htm");


+ 7
- 9
src/user/buy_action.php View File

@@ -178,7 +178,7 @@ if ($paytype === 0) {
}
if ($paytype === 1) {
//微信支付
include_once(DEDEINC.'/libraries/oxwindow.class.php');
include_once(DEDEINC.'/libraries/webwindow.class.php');
$pInfo = $dsql->GetOne("SELECT * FROM `#@__sys_payment` WHERE id = $paytype");
$pData = (array)json_decode($pInfo['config']);
$config = array(
@@ -205,9 +205,8 @@ if ($paytype === 0) {
height : 300,
correctLevel : 3
});qrcode.makeCode("'.$payurl.'");</script>';
$wintitle = "使用微信支付";
$wecome_info = "微信支付";//这个空格不要去
$win = new OxWindow();
$wintitle = "微信支付";//这个空格不要去
$win = new WebWindow();
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", false);
$win->Display(DEDEMEMBER."/templets/win_templet.htm");
@@ -216,7 +215,7 @@ if ($paytype === 0) {
exit;
}
} elseif ($paytype === 2) {
include_once(DEDEINC.'/libraries/oxwindow.class.php');
include_once(DEDEINC.'/libraries/webwindow.class.php');
$pInfo = $dsql->GetOne("SELECT * FROM `#@__sys_payment` WHERE id = $paytype");
$pData = (array)json_decode($pInfo['config']);
$config = array(
@@ -243,14 +242,13 @@ if ($paytype === 0) {
exit;
}
} elseif ($paytype === 3) {
include_once(DEDEINC.'/libraries/oxwindow.class.php');
include_once(DEDEINC.'/libraries/webwindow.class.php');
//银行转账
$pInfo = $dsql->GetOne("SELECT * FROM `#@__sys_payment` WHERE id = $paytype");
$pData = (array)json_decode($pInfo['config']);
$msg = "<p>请汇款至如下账户:</p><p>账户名:{$pData['AccountName']}</p><p>账号:{$pData['AccountNO']}</p><p>开户行:{$pData['Name']}</p><p>备注:{$buyid}</p><p>如您已经完成转账,请点击下面按钮,等待管理员确认后即可完成充值</p><div><a href='buy_action.php?dopost=bank_ok&buyid={$buyid}' class='btn btn-success btn-sm'>已完成银行转账</a> <a href='operation.php' class='btn btn-outline-success btn-sm'>返回订单管理</a></div>";
$wintitle = "使用银行转账";
$wecome_info = "银行转账";//这个空格不要去
$win = new OxWindow();
$wintitle = "银行转账";//这个空格不要去
$win = new WebWindow();
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", false);
$win->Display(DEDEMEMBER."/templets/win_templet.htm");


+ 1
- 1
src/user/inc/archives_check.php View File

@@ -10,7 +10,7 @@ if (!defined('DEDEMEMBER')) exit ('dedebiz');
* @link https://www.dedebiz.com
*/
include_once(DEDEINC.'/image.func.php');
include_once(DEDEINC.'/libraries/oxwindow.class.php');
include_once(DEDEINC.'/libraries/webwindow.class.php');
//校验CSRF
CheckCSRF();
$flag = '';


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save