Browse Source

优化

tags/6.3.0
叙述、别离 6 months ago
parent
commit
d6cda42219
13 changed files with 124 additions and 180 deletions
  1. +1
    -1
      src/admin/ad_add.php
  2. +1
    -1
      src/admin/archives_do.php
  3. +6
    -23
      src/admin/dialog/select_images.php
  4. +6
    -18
      src/admin/dialog/select_media.php
  5. +5
    -11
      src/admin/dialog/select_soft.php
  6. +8
    -26
      src/admin/dialog/select_templets.php
  7. +1
    -2
      src/admin/templets/content_i_list.htm
  8. +16
    -16
      src/admin/templets/file_manage_main.htm
  9. +2
    -2
      src/admin/templets/index.htm
  10. +5
    -5
      src/admin/templets/index_body.htm
  11. +1
    -1
      src/admin/templets/member_edit.htm
  12. +57
    -58
      src/install/index.php
  13. +15
    -16
      src/static/web/css/admin.css

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

@@ -39,7 +39,7 @@ if ($dopost == "save") {
} else {
$height = "height=\"{$normbody['height']}\"";
}
$normbody = "<a href=\"{$link}\"><img src=\"{$normbody['url']}\"$width $height border=\"0\" /></a>";
$normbody = "<a href=\"{$link}\"><img src=\"{$normbody['url']}\"$width $height></a>";
} else {
if (empty($normbody['width'])) {
$width = "";


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

@@ -149,7 +149,7 @@ else if ($dopost == "uploadLitpic") {
if (parent.document.getElementById('divpicview'))
{
parent.document.getElementById('divpicview').style.width = '150px';
parent.document.getElementById('divpicview').innerHTML = \"<img src='{$upfile}?n' width='150'>\";
parent.document.getElementById('divpicview').innerHTML = \"<img src='{$upfile}'>\";
}
</script>";
} else {


+ 6
- 23
src/admin/dialog/select_images.php View File

@@ -117,7 +117,7 @@ if (!empty($iseditor)) {
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 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;
@@ -125,7 +125,7 @@ if (!empty($iseditor)) {
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>
<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)) {
@@ -136,8 +136,7 @@ if (!empty($iseditor)) {
else $lstyle = "";
$line = "<tr>
<td>
<a href=\"$reurl\" class=\"toolimg\"><img src='$reurl' title='$file'></a>
<a href=\"javascript:;\" onclick=\"ReturnImg('$reurl');\" $lstyle>$file</a>
<a href='$reurl' onclick=\"ReturnImg('$reurl');\" class=\"tipsimg\" $lstyle><img src='$reurl' title='$file'> $file</a>
</td>
<td>$filesize KB</td>
<td>$filetime</td>
@@ -150,10 +149,7 @@ if (!empty($iseditor)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = "";
$line = "<tr>
<td>
<a href=\"$reurl\" class=\"toolimg\"><img src='$reurl' title='$file'></a>
<a href=\"javascript:;\" onclick=\"ReturnImg('$reurl');\" $lstyle>$file</a>
</td>
<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>";
@@ -168,11 +164,6 @@ if (!empty($iseditor)) {
function nullLink() {
return;
}
function TNav() {
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE';
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF';
else return "OT";
}
//获取地址参数
function getUrlParam(paramName) {
var reParam = new RegExp('(?:[\?&]|&amp;)' + paramName + '=([^&]+)', 'i');
@@ -193,14 +184,6 @@ if (!empty($iseditor)) {
if (window.opener.document.<?php echo $f ?> != null) {
window.opener.document.<?php echo $f ?>.value = reimg;
if (window.opener.document.getElementById('div<?php echo $v ?>')) {
if (TNav() == 'IE') {
//window.opener.document.getElementById('div<?php echo $v ?>').filters.item('DXImageTransform.Microsoft.AlphaImageLoader').src = reimg;
window.opener.document.getElementById('div<?php echo $v ?>').src = reimg;
window.opener.document.getElementById('div<?php echo $v ?>').style.width = '150px';
window.opener.document.getElementById('div<?php echo $v ?>').style.height = '100px';
} else
window.opener.document.getElementById('div<?php echo $v ?>').style.backgroundImage = "url(" + reimg + ")";
} else if (window.opener.document.getElementById('<?php echo $v ?>')) {
window.opener.document.getElementById('<?php echo $v ?>').src = reimg;
}
//适配新的缩略图
@@ -217,8 +200,8 @@ if (!empty($iseditor)) {
}
$(function() {
var x = 10;
var y = 20;
$("a.toolimg").mouseover(function(e) {
var y = 10;
$(".tipsimg").mouseover(function(e) {
var toolimg = "<div id='toolimg'><img src='" + this.href + "'></div>";
$("body").append(toolimg);
$("#toolimg").css({


+ 6
- 18
src/admin/dialog/select_media.php View File

@@ -97,7 +97,7 @@ if (!empty($noeditor)) {
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><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;
@@ -105,7 +105,7 @@ if (!empty($noeditor)) {
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>
<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)) {
@@ -115,10 +115,7 @@ if (!empty($noeditor)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = "";
$line = "<tr>
<td>
<img src='/static/web/img/icon_flash.png'>
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a>
</td>
<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>";
@@ -130,10 +127,7 @@ if (!empty($noeditor)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = "";
$line = "<tr>
<td>
<img src='/static/web/img/icon_video.png'>
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a>
</td>
<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>";
@@ -145,10 +139,7 @@ if (!empty($noeditor)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = "";
$line = "<tr>
<td>
<img src='/static/web/img/icon_rm.png'>
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a>
</td>
<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>";
@@ -160,10 +151,7 @@ if (!empty($noeditor)) {
if ($file == $comeback) $lstyle = "class='text-danger'";
else $lstyle = "";
$line = "<tr>
<td>
<img src='/static/web/img/icon_music.png'>
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a>
</td>
<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>";


+ 5
- 11
src/admin/dialog/select_soft.php View File

@@ -99,7 +99,7 @@ if (!empty($noeditor)) {
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><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;
@@ -107,7 +107,7 @@ if (!empty($noeditor)) {
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>
<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)) {
@@ -117,10 +117,7 @@ if (!empty($noeditor)) {
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
$line = "<tr>
<td>
<img src='/static/web/img/icon_zip.png'>
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a>
</td>
<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>";
@@ -132,10 +129,7 @@ if (!empty($noeditor)) {
$reurl = preg_replace("#^\.\.#", "", $reurl);
$reurl = $reurl;
$line = "<tr>
<td>
<img src='/static/web/img/icon_exe.png'>
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a>
</td>
<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>";
@@ -155,7 +149,7 @@ if (!empty($noeditor)) {
window.opener.CKEDITOR.tools.callFunction(funcNum, reimg);
}
if (typeof window.opener.CKEDITOR.instances["<?php echo $f ?>"] !== "undefined") {
let addonHTML = `<a href='${reimg}' target='_blank'><img src='/static/web/img/icon_addon.png'>附件:${reimg}</a>`;
let addonHTML = `<a href='${reimg}' target='_blank'><img src='/static/web/img/icon_addon.png'> 附件:${reimg}</a>`;
window.opener.CKEDITOR.instances["<?php echo $f ?>"].insertHtml(addonHTML);
}
if (window.opener.document.<?php echo $f ?> != null) {


+ 8
- 26
src/admin/dialog/select_templets.php View File

@@ -87,7 +87,7 @@ if (empty($comeback)) {
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><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;
@@ -95,7 +95,7 @@ if (empty($comeback)) {
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>
<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)) {
@@ -105,10 +105,7 @@ if (empty($comeback)) {
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td>
<img src='/static/web/img/icon_htm.png'>
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a>
</td>
<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>";
@@ -120,10 +117,7 @@ if (empty($comeback)) {
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."/#", "", $reurl);
$line = "<tr>
<td>
<img src='/static/web/img/icon_css.png'>
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a>
</td>
<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>";
@@ -135,10 +129,7 @@ if (empty($comeback)) {
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td>
<img src='/static/web/img/icon_js.png'>
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a>
</td>
<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>";
@@ -150,10 +141,7 @@ if (empty($comeback)) {
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td>
<img src='$reurl'>
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a>
</td>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='$reurl'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
@@ -165,10 +153,7 @@ if (empty($comeback)) {
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td>
<img src='$reurl'>
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a>
</td>
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='$reurl'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
</tr>";
@@ -180,10 +165,7 @@ if (empty($comeback)) {
$reurl = preg_replace("#\.\.#", "", $reurl);
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl);
$line = "<tr>
<td>
<img src='/static/web/img/icon_text.png'>
<a href=\"javascript:ReturnValue('$reurl');\" $lstyle>$file</a>
</td>
<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";


+ 1
- 2
src/admin/templets/content_i_list.htm View File

@@ -81,8 +81,7 @@
<td width="6%"><input type="checkbox" name="arcID" value="{dede:field.id/}"></td>
<td width="6%">{dede:field.id/}</td>
<td width="26%" align="left">
<img src="{dede:field.litpic function='CheckPic(@me)'/}" class="thumbnail-sm">
<a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}{dede:field.flag function='IsCommendArchives(@me)'/}</a>
<a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives"><img src="{dede:field.litpic function='CheckPic(@me)'/}" class="thumbnail-sm"> {dede:field.title/}{dede:field.flag function='IsCommendArchives(@me)'/}</a>
</td>
<td width="10%">{dede:field.senddate function='GetDateTimeMk(@me)'/}</td>
<td width="12%">{dede:field.typeid function='GetTypename(@me)'/}</td>


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

@@ -48,7 +48,7 @@
}
$tmp = preg_replace("#[\/][^\/]*$#i","",$activepath);
$line = "\n<tr>
<td><a href='file_manage_main.php?activepath=".urlencode($tmp)."'><img src='/static/web/img/icon_dir2.png'>上级目录</a></td>
<td><a href='file_manage_main.php?activepath=".urlencode($tmp)."'><img src='/static/web/img/icon_dir2.png'> 上级目录</a></td>
<td colspan='3'>当前目录:$activepath</td>
</tr>";
$dirs[] = $line;
@@ -56,7 +56,7 @@
if (preg_match("#^_(.*)$#i",$file)) continue;
if (preg_match("#^\.(.*)$#i",$file)) continue;
$line = "\n<tr>
<td><a href='file_manage_main.php?activepath=".urlencode("$activepath/$file")."'><img src='/static/web/img/icon_dir.png'>$file</a></td>
<td><a href='file_manage_main.php?activepath=".urlencode("$activepath/$file")."'><img src='/static/web/img/icon_dir.png'> $file</a></td>
<td></td>
<td></td>
<td align='left'>
@@ -67,7 +67,7 @@
$dirs[] = $line;
} else if (preg_match("#\.(gif|png)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='$activeurl/$file'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='$activeurl/$file'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -79,7 +79,7 @@
$files[] = $line;
} else if (preg_match("#\.(jpg)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='$activeurl/$file'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='$activeurl/$file'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -91,7 +91,7 @@
$files[] = $line;
} else if (preg_match("#\.(swf|fla|fly)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_flash.png'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_flash.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -103,7 +103,7 @@
$files[] = $line;
} else if (preg_match("#\.(zip|rar|tar.gz)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_zip.png'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_zip.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -115,7 +115,7 @@
$files[] = $line;
} else if (preg_match("#\.(exe)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_exe.png'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_exe.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -127,7 +127,7 @@
$files[] = $line;
} else if (preg_match("#\.(mp3|wma)#i",$file)) {
$line = "\n<tr >
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_music.png'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_music.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -139,7 +139,7 @@
$files[] = $line;
} else if (preg_match("#\.(wmv|api)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_video.png'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_video.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -151,7 +151,7 @@
$files[] = $line;
} else if (preg_match("#\.(rm|rmvb)#i",$file)) {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_rm.png'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_rm.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -164,7 +164,7 @@
} else if (preg_match("#\.(txt|inc|pl|cgi|asp|xml|xsl|aspx|cfm)#",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_text.png'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_text.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -178,7 +178,7 @@
} else if (preg_match("#\.(htm|html)#i",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_htm.png'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_htm.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -192,7 +192,7 @@
} else if (preg_match("#\.(php)#i",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_php.png'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_php.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -206,7 +206,7 @@
} else if (preg_match("#\.(js)#i",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_js.png'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_js.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -220,7 +220,7 @@
} else if (preg_match("#\.(css)#i",$file)) {
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath);
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_css.png'>$file</a></td>
<td><a href='$activeurl/$file' target='_blank'><img src='/static/web/img/icon_css.png'> $file</a></td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>
@@ -233,7 +233,7 @@
$files[] = $line;
} else {
$line = "\n<tr>
<td><a href='$activeurl/$file' target='_blank'>$file</td>
<td><a href='$activeurl/$file' target='_blank'> $file</td>
<td>$filesize KB</td>
<td>$filetime</td>
<td align='left'>


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

@@ -19,7 +19,7 @@
<a onclick="document.getElementById('browsehappy').style.display='none';" class="browsehappy-close"><i class="fa fa-times"></i></a>
</div>
<?php }?>
<div class="head shadow-sm">
<div class="admin-head shadow-sm">
<div class="logo">
<span class="name"><a href="index_body.php" target="main"><?php echo cn_substr($cfg_webname,8);?></a></span>
<span class="version"><?php echo $cfg_version_detail;?></span>
@@ -50,7 +50,7 @@
</li>
</ul>
</div>
<div class="admin">
<div class="user">
<ul>
<li class="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();?><?php if ($cuserLogin->getUserType() == 10){echo "<span class='btn btn-success btn-xs ml-2'>管理员</span>";} else if ($cuserLogin->getUserType() == 5) {echo "<span class='btn btn-success btn-xs ml-2'>栏目员</span>";} else {echo "<span class='btn btn-success btn-xs ml-2'>文档员</span>";}?></a></li>
<li><a href="exit.php">退了</a></li>


+ 5
- 5
src/admin/templets/index_body.htm View File

@@ -24,7 +24,7 @@
<div class="col-md-12 my-3">
<div class="card">
<div class="card-header">
<span><i class="fa fa-bar-chart mr-2"></i>流量统计表</span>
<span><i class="fa fa-bar-chart"></i> 流量统计表</span>
</div>
<div class="card-body">
<table class="table">
@@ -63,7 +63,7 @@
<div class="col-md-7 my-3">
<div class="card">
<div class="card-header">
<span><i class="fa fa-cogs mr-2"></i>软件信息</span>
<span><i class="fa fa-cogs"></i> 软件信息</span>
</div>
<div class="card-body">
<table class="table table-borderless">
@@ -112,7 +112,7 @@
<div class="col-md-5 my-3">
<div class="card">
<div class="card-header">
<span><i class="fa fa-copyright mr-2"></i>版本授权</span>
<span><i class="fa fa-copyright"></i> 版本授权</span>
<a href="javascript:;" id="systemUpdate" class="float-right">软件更新<span class="updates-dot"></span></a>
</div>
<div class="card-body" id="system-info">正在加载</div>
@@ -121,7 +121,7 @@
<div class="col-md-7 my-3">
<div class="card">
<div class="card-header">
<span><i class="fa fa-line-chart mr-2"></i>流量统计图</span>
<span><i class="fa fa-line-chart"></i> 流量统计图</span>
</div>
<div class="card-body">
<canvas id="statChart"></canvas>
@@ -131,7 +131,7 @@
<div class="col-md-5 my-3">
<div class="card">
<div class="card-header">
<span><i class="fa fa-list mr-2"></i>最新文档</span>
<span><i class="fa fa-list"></i> 最新文档</span>
</div>
<div class="card-body" id="system-word">正在加载</div>
</div>


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

@@ -22,7 +22,7 @@
<?php if ($row['matt']==10) echo '<tr><td colspan="2"><div class="alert alert-info mb-0">该会员关连网站管理员,修改不当会导致无法登录</div></td></tr>';?>
<tr>
<td colspan="2" align="center">
<?php if ($row['face']!='') {echo "<p><img src='{$row['face']}' class='user-img-md m-0'></p>";};echo "<p>".$row['userid']."</p>";?>
<?php if ($row['face']!='') {echo "<p><img src='{$row['face']}' class='user-img-md'></p>";};echo "<p>".$row['userid']."</p>";?>
<p class="m-0">
<span class="btn btn-outline-success btn-sm"><?php echo GetMemberTypeName($row['rank']);?></span>
<span class="btn btn-outline-warning btn-sm"><?php echo GetHonor($row['scores']);?></span>


+ 57
- 58
src/install/index.php View File

@@ -103,15 +103,15 @@ else if ($step==2) {
$db = new SQLite3(DEDEDATA.'/'.$dbname.'.db');
} else {
$dbtype = 'mysql';
$conn = mysql_connect($dbhost,$dbuser,$dbpwd) or die("<script>alert('数据库服务器或登录密码无效,\\n\\n无法连接数据库,请重新设定');history.go(-1);</script>");
mysql_query("CREATE DATABASE IF NOT EXISTS `".$dbname."`;",$conn);
$conn = mysql_connect($dbhost, $dbuser, $dbpwd) or die("<script>alert('数据库服务器或登录密码无效,\\n\\n无法连接数据库,请重新设定');history.go(-1);</script>");
mysql_query("CREATE DATABASE IF NOT EXISTS `".$dbname."`;", $conn);
mysql_select_db($dbname, $conn) or die("<script>alert('选择数据库失败,可能是您没权限,请预先创建一个数据库');history.go(-1);</script>");
//获得数据库版本信息
$rs = mysql_query("SELECT VERSION();",$conn);
$rs = mysql_query("SELECT VERSION();", $conn);
$row = mysql_fetch_array($rs);
$mysqlVersions = explode('.',trim($row[0]));
$mysqlVersion = $mysqlVersions[0].".".$mysqlVersions[1];
mysql_query("SET NAMES '$dblang',character_set_client=binary,sql_mode='';",$conn);
mysql_query("SET NAMES '$dblang',character_set_client=binary,sql_mode='';", $conn);
}
$fp = fopen(dirname(__FILE__)."/common.inc.php","r");
$configStr1 = fread($fp,filesize(dirname(__FILE__)."/common.inc.php"));
@@ -120,33 +120,33 @@ else if ($step==2) {
$configStr2 = fread($fp,filesize(dirname(__FILE__)."/config.cache.inc.php"));
fclose($fp);
//common.inc.php
$configStr1 = str_replace("~dbtype~",$dbtype,$configStr1);
$configStr1 = str_replace("~dbhost~",$dbhost,$configStr1);
$configStr1 = str_replace("~dbname~",$dbname,$configStr1);
$configStr1 = str_replace("~dbuser~",$dbuser,$configStr1);
$configStr1 = str_replace("~dbpwd~",$dbpwd,$configStr1);
$configStr1 = str_replace("~dbprefix~",$dbprefix,$configStr1);
$configStr1 = str_replace("~dblang~",$dblang,$configStr1);
$configStr1 = str_replace("~dbtype~", $dbtype, $configStr1);
$configStr1 = str_replace("~dbhost~", $dbhost, $configStr1);
$configStr1 = str_replace("~dbname~", $dbname, $configStr1);
$configStr1 = str_replace("~dbuser~", $dbuser, $configStr1);
$configStr1 = str_replace("~dbpwd~", $dbpwd, $configStr1);
$configStr1 = str_replace("~dbprefix~", $dbprefix, $configStr1);
$configStr1 = str_replace("~dblang~", $dblang, $configStr1);
@chmod(DEDEDATA,0777);
$fp = fopen(DEDEDATA."/common.inc.php","w") or die("<script>alert('写入配置失败,请检查/data目录是否可写入');history.go(-1);</script>");
fwrite($fp,$configStr1);
fwrite($fp, $configStr1);
fclose($fp);
//config.cache.inc.php
$cmspath = trim(preg_replace("#\/{1,}#", '/', $cmspath));
if ($cmspath!='' && !preg_match("#^\/#", $cmspath)) $cmspath = '/'.$cmspath;
if ($cmspath=='') $indexUrl = '/';
else $indexUrl = $cmspath;
$configStr2 = str_replace("~baseurl~",$baseurl,$configStr2);
$configStr2 = str_replace("~basepath~",$cmspath,$configStr2);
$configStr2 = str_replace("~indexurl~",$indexUrl,$configStr2);
$configStr2 = str_replace("~cookieEncode~",$cookieencode,$configStr2);
$configStr2 = str_replace("~webname~",$webname,$configStr2);
$configStr2 = str_replace("~adminmail~",$adminmail,$configStr2);
$configStr2 = str_replace("~baseurl~", $baseurl, $configStr2);
$configStr2 = str_replace("~basepath~", $cmspath, $configStr2);
$configStr2 = str_replace("~indexurl~", $indexUrl, $configStr2);
$configStr2 = str_replace("~cookieEncode~", $cookieencode, $configStr2);
$configStr2 = str_replace("~webname~", $webname, $configStr2);
$configStr2 = str_replace("~adminmail~", $adminmail, $configStr2);
$fp = fopen(DEDEDATA.'/config.cache.inc.php','w');
fwrite($fp,$configStr2);
fwrite($fp, $configStr2);
fclose($fp);
$fp = fopen(DEDEDATA.'/config.cache.bak.php','w');
fwrite($fp,$configStr2);
fwrite($fp, $configStr2);
fclose($fp);
if ($mysqlVersion >= 4.1) {
$sql4tmp = "ENGINE=MyISAM DEFAULT CHARSET=".$dblang;
@@ -159,30 +159,30 @@ else if ($step==2) {
$line = rtrim(fgets($fp,1024));
if (preg_match("#;$#", $line)) {
$query .= $line."\n";
$query = str_replace('#@__',$dbprefix,$query);
$query = str_replace('#@__', $dbprefix, $query);
if ($dbtype == 'sqlite') {
$query = preg_replace('/character set (.*?) /i','',$query);
$query = preg_replace('/unsigned/i','',$query);
$query = str_replace('TYPE=MyISAM','',$query);
$query = preg_replace ('/TINYINT\(([\d]+)\)/i','INTEGER',$query);
$query = preg_replace ('/mediumint\(([\d]+)\)/i','INTEGER',$query);
$query = preg_replace ('/smallint\(([\d]+)\)/i','INTEGER',$query);
$query = preg_replace('/int\(([\d]+)\)/i','INTEGER',$query);
$query = preg_replace('/auto_increment/i','PRIMARY KEY AUTOINCREMENT',$query);
$query = preg_replace('/,([\t\s ]+)KEY(.*?)MyISAM;/','',$query);
$query = preg_replace('/,([\t\s ]+)KEY(.*?);/',');',$query);
$query = preg_replace('/,([\t\s ]+)UNIQUE KEY(.*?);/',');',$query);
$query = preg_replace('/set\(([^\)]*?)\)/','varchar',$query);
$query = preg_replace('/enum\(([^\)]*?)\)/','varchar',$query);
if (preg_match("/PRIMARY KEY AUTOINCREMENT/",$query)) {
$query = preg_replace('/,([\t\s ]+)PRIMARY KEY([\t\s ]+)\(`([0-9a-zA-Z]+)`\)/i','',$query);
$query = preg_replace('/character set (.*?) /i','', $query);
$query = preg_replace('/unsigned/i','', $query);
$query = str_replace('TYPE=MyISAM','', $query);
$query = preg_replace ('/TINYINT\(([\d]+)\)/i','INTEGER', $query);
$query = preg_replace ('/mediumint\(([\d]+)\)/i','INTEGER', $query);
$query = preg_replace ('/smallint\(([\d]+)\)/i','INTEGER', $query);
$query = preg_replace('/int\(([\d]+)\)/i','INTEGER', $query);
$query = preg_replace('/auto_increment/i','PRIMARY KEY AUTOINCREMENT', $query);
$query = preg_replace('/,([\t\s ]+)KEY(.*?)MyISAM;/','', $query);
$query = preg_replace('/,([\t\s ]+)KEY(.*?);/',');', $query);
$query = preg_replace('/,([\t\s ]+)UNIQUE KEY(.*?);/',');', $query);
$query = preg_replace('/set\(([^\)]*?)\)/','varchar', $query);
$query = preg_replace('/enum\(([^\)]*?)\)/','varchar', $query);
if (preg_match("/PRIMARY KEY AUTOINCREMENT/", $query)) {
$query = preg_replace('/,([\t\s ]+)PRIMARY KEY([\t\s ]+)\(`([0-9a-zA-Z]+)`\)/i','', $query);
}
$db->exec($query);
} else {
if (preg_match('#CREATE#i', $query)) {
$rs = mysql_query(preg_replace("#TYPE=MyISAM#i",$sql4tmp,$query),$conn);
$rs = mysql_query(preg_replace("#TYPE=MyISAM#i", $sql4tmp, $query), $conn);
} else {
$rs = mysql_query($query,$conn);
$rs = mysql_query($query, $conn);
}
}
$query='';
@@ -200,14 +200,14 @@ else if ($step==2) {
if (preg_match("#;$#", $line)) {
if ($dbtype == 'sqlite') {
$query .= $line;
$query = str_replace('#@__',$dbprefix,$query);
$query = str_replace("\'","\"",$query);
$query = str_replace('#@__', $dbprefix, $query);
$query = str_replace("\'","\"", $query);
$db->exec($query);
} else {
$query .= $line;
$query = str_replace('#@__',$dbprefix,$query);
if ($mysqlVersion < 4.1) $rs = mysql_query($query,$conn);
else $rs = mysql_query(str_replace('#~lang~#',$dblang,$query),$conn);
$query = str_replace('#@__', $dbprefix, $query);
if ($mysqlVersion < 4.1) $rs = mysql_query($query, $conn);
else $rs = mysql_query(str_replace('#~lang~#', $dblang, $query), $conn);
}
$query='';
} else if (!preg_match("#^(\/\/|--)#", $line)) {
@@ -217,15 +217,15 @@ else if ($step==2) {
fclose($fp);
//更新配置
$cquery = "UPDATE `{$dbprefix}sysconfig` SET value='{$baseurl}' WHERE varname='cfg_basehost';";
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery,$conn);
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery, $conn);
$cquery = "UPDATE `{$dbprefix}sysconfig` SET value='{$indexUrl}' WHERE varname='cfg_indexurl';";
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery,$conn);
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery, $conn);
$cquery = "UPDATE `{$dbprefix}sysconfig` SET value='{$cookieencode}' WHERE varname='cfg_cookie_encode';";
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery,$conn);
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery, $conn);
$cquery = "UPDATE `{$dbprefix}sysconfig` SET value='{$webname}' WHERE varname='cfg_webname';";
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery,$conn);
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery, $conn);
$cquery = "UPDATE `{$dbprefix}sysconfig` SET value='{$adminmail}' WHERE varname='cfg_adminemail';";
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery,$conn);
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery, $conn);
$pfd = "pwd";
$apwd = substr(md5($adminpwd),5,20);
$upwd = md5($adminpwd);
@@ -236,16 +236,16 @@ else if ($step==2) {
}
//添加管理员帐号
$adminquery = "INSERT INTO `{$dbprefix}admin` (`id`,`usertype`,`userid`,`$pfd`,`uname`,`tname`,`email`,`typeid`,`logintime`,`loginip`) VALUES (1,10,'$adminuser','".$apwd."','admin','','',0,'".time()."','127.0.0.1');";
$dbtype == 'sqlite'? $db->exec($adminquery) : mysql_query($adminquery,$conn);
$dbtype == 'sqlite'? $db->exec($adminquery) : mysql_query($adminquery, $conn);
//关连前台会员帐号
$adminquery = "INSERT INTO `{$dbprefix}member` (`mid`,`mtype`,`userid`,`{$pfd}`,`uname`,`sex`,`rank`,`money`,`email`,`scores`,`matt`,`face`,`safequestion`,`safeanswer`,`jointime`,`joinip`,`logintime`,`loginip`) VALUES ('1','个人','$adminuser','".$upwd."','$adminuser','男','100','0','','10000','10','','0','','".time()."','','0',''); ";
$dbtype == 'sqlite'? $db->exec($adminquery) : mysql_query($adminquery,$conn);
$dbtype == 'sqlite'? $db->exec($adminquery) : mysql_query($adminquery, $conn);
$adminquery = "INSERT INTO `{$dbprefix}member_person` (`mid`,`onlynet`,`sex`,`uname`,`qq`,`msn`,`tel`,`mobile`,`place`,`oldplace`,`birthday`,`star`,`income`,`education`,`height`,`bodytype`,`blood`,`vocation`,`smoke`,`marital`,`house`,`drink`,`datingtype`,`language`,`nature`,`lovemsg`,`address`,`uptime`) VALUES ('1','1','男','{$adminuser}','','','','','0','0','1980-01-01','1','0','0','160','0','0','0','0','0','0','0','0','','','','','0'); ";
$dbtype == 'sqlite'? $db->exec($adminquery) : mysql_query($adminquery,$conn);
$dbtype == 'sqlite'? $db->exec($adminquery) : mysql_query($adminquery, $conn);
$adminquery = "INSERT INTO `{$dbprefix}member_tj` (`mid`,`article`,`album`,`archives`,`homecount`,`pagecount`,`feedback`,`friend`,`stow`) VALUES ('1','0','0','0','0','0','0','0','0'); ";
$dbtype == 'sqlite'? $db->exec($adminquery): mysql_query($adminquery,$conn);
$dbtype == 'sqlite'? $db->exec($adminquery): mysql_query($adminquery, $conn);
$adminquery = "INSERT INTO `{$dbprefix}member_space` (`mid`,`pagesize`,`matt`,`spacename`,`spacelogo`,`spacestyle`,`sign`,`spacenews`) VALUES ('1','10','0','{$adminuser}的个人主页','','person','',''); ";
$dbtype == 'sqlite'? $db->exec($adminquery) : mysql_query($adminquery,$conn);
$dbtype == 'sqlite'? $db->exec($adminquery) : mysql_query($adminquery, $conn);
//锁定程序安装
$fp = fopen(INSLOCKFILE,'w');
fwrite($fp,'ok');
@@ -258,13 +258,13 @@ else if ($step==10) {
header("Pragma:no-cache\r\n");
header("Cache-Control:no-cache\r\n");
header("Expires:0\r\n");
$conn = @mysql_connect($dbhost,$dbuser,$dbpwd);
$conn = @mysql_connect($dbhost, $dbuser, $dbpwd);
$info = "";
if ($conn) {
if (empty($dbname)) {
$info = "信息正确";
$info = "数据库连接正确";
} else {
$info = mysql_select_db($dbname,$conn)? "数据库已经存在,系统覆盖数据库": "数据库不存在,系统自动创建";
$info = mysql_select_db($dbname, $conn)? "数据库已存在,系统将覆盖数据库": "数据库不存在,系统将创建数据库";
}
$result = array(
"code" => 200,
@@ -272,10 +272,9 @@ else if ($step==10) {
);
echo json_encode($result);
} else {
$err = mysql_error();
$result = array(
"code" => -1,
"data" => "数据库连接失败,错误信息:{$err}",
"data" => "数据库连接失败",
);
echo json_encode($result);
}


+ 15
- 16
src/static/web/css/admin.css View File

@@ -5,7 +5,7 @@
body{margin:0;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}
a{color:#6c757d;text-decoration:none}
a:hover{color:#007bff;text-decoration:none}
img{margin-right:10px;max-width:100%;border-radius:0.5rem}
img{max-width:100%;border-radius:0.5rem}
ul,ol,li{margin:0;padding:0}
li{list-style:none}
form,label{margin-bottom:0}
@@ -35,21 +35,20 @@ input:focus,select:focus,textarea:focus{color:#6c757d;background:#fff;border-col
.login-from{margin:5rem auto;width:500px}
.login-box{padding:1.25rem;background:#fff}
.login-box h2{margin:0;line-height:1.2;font-size:24px;font-weight:600;color:#343a40}
.head{width:100%;height:60px;background:linear-gradient(45deg,#1eb867,#009688 80%)}
.head .logo{float:left;padding-left:30px;width:220px}
.head .logo .name a{float:left;height:60px;line-height:60px;font-size:18px;font-weight:600;color:#fff}
.head .logo .version a{float:left;height:60px;line-height:60px;font-size:18px;font-weight:600;color:#fff}
.head .logo .version{float:left;margin-top:18px;margin-left:5px;font-size:12px;color:#fff}
.head .item ul,.head .admin ul{margin:0}
.head .item ul li{float:left;position:relative;padding-left:30px;height:60px;line-height:60px}
.head .item ul li:first-child{padding-left:1rem}
.head .item ul li a,.head .admin ul li a{color:#fff}
.head .item ul li a:hover,.head .admin ul li a:hover{color:#dee2e6}
.head .item .search{position:absolute;top:20px;right:5px;height:20px;line-height:20px;color:#6c757d;background:0;border:0}
.head .admin{float:right;margin-right:30px;height:60px;line-height:60px}
.head .admin img{width:30px;height:30px;border-radius:50%}
.head .admin ul li{float:left;padding-left:30px;height:60px;line-height:60px}
.head .admin ul li:first-child{padding-left:0}
.admin-head{width:100%;height:60px;background:linear-gradient(45deg,#1eb867,#009688 80%)}
.admin-head .logo{float:left;padding-left:30px;width:220px}
.admin-head .logo .name a{float:left;height:60px;line-height:60px;font-size:18px;font-weight:600;color:#fff}
.admin-head .logo .version a{float:left;height:60px;line-height:60px;font-size:18px;font-weight:600;color:#fff}
.admin-head .logo .version{float:left;margin-top:18px;margin-left:5px;font-size:12px;color:#fff}
.admin-head .item ul li{float:left;position:relative;padding-left:30px;height:60px;line-height:60px}
.admin-head .item ul li:first-child{padding-left:1rem}
.admin-head .item ul li a,.admin-head .user ul li a{color:#fff}
.admin-head .item ul li a:hover,.admin-head .user ul li a:hover{color:#dee2e6}
.admin-head .item .search{position:absolute;top:20px;right:5px;height:20px;line-height:20px;color:#6c757d;background:0;border:0}
.admin-head .user{float:right;margin-right:30px;height:60px;line-height:60px}
.admin-head .user img{margin-right:0.5rem;width:30px;height:30px;border-radius:50%}
.admin-head .user ul li{float:left;padding-left:30px;height:60px;line-height:60px}
.admin-head .user ul li:first-child{padding-left:0}
body.menu-hide .menu-left{display:none}
body.menu-hide .body-right{left:0;transition:all 0.5s}
body.menu-show .menu-left{display:block}


Loading…
Cancel
Save