Browse Source

优化菜单管理

tags/6.2.0
xushubieli 1 year ago
parent
commit
71dd4320b6
8 changed files with 25 additions and 25 deletions
  1. +6
    -6
      src/admin/module_main.php
  2. +1
    -1
      src/admin/module_make.php
  3. +1
    -1
      src/admin/module_upload.php
  4. +2
    -2
      src/admin/mychannel_edit.php
  5. +4
    -4
      src/admin/sys_repair.php
  6. +1
    -1
      src/admin/tpl.php
  7. +1
    -1
      src/system/libraries/oxwindow.class.php
  8. +9
    -9
      src/system/typelink/typeunit.class.admin.php

+ 6
- 6
src/admin/module_main.php View File

@@ -141,7 +141,7 @@ else if ($action == 'setup') {
}
}
$prvdir = "<table cellpadding='1' cellspacing='1'>\r\n";
$prvdir .= "<tr style='background:#fbfce2'><th width='270'>目录</td><th align='center'>可写</td></tr>\r\n";
$prvdir .= "<tr bgcolor='#fbfce2'><th width='270'>目录</td><th align='center'>可写</td></tr>\r\n";
foreach ($prvdirs as $k => $v) {
if ($v) $cw = '√';
else $cw = "<span class='text-danger'>×</span>";
@@ -215,7 +215,7 @@ else if ($action == 'setup') {
</td>
</tr>
</table>";
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow("ok", "");
$win->Display();
$dm->Clear();
@@ -327,7 +327,7 @@ else if ($action == 'del') {
<td colspan='2'>删除模块仅删除这个模块的安装包文件,如果您已经安装,请执行<a href='module_main.php?hash={$hash}&action=uninstall'>卸载程序</a>来删除</td>
</tr>
</table>";
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow("ok", "");
$win->Display();
$dm->Clear();
@@ -405,7 +405,7 @@ else if ($action == 'uninstall') {
</td>
</tr>
</table>";
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow("ok", "");
$win->Display();
$dm->Clear();
@@ -461,7 +461,7 @@ else if ($action == 'showreadme') {
$win->Init("module_main.php", "js/blank.js", "post");
$wecome_info = "模块管理";
$win->AddTitle("<a href='module_main.php'>模块管理</a> &gt; 使用说明:");
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow("hand");
$win->Display();
exit();
@@ -539,7 +539,7 @@ else if ($action == 'view') {
</td>
</tr>
</table>";
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow('hand', '');
$win->Display();
$dm->Clear();


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

@@ -89,7 +89,7 @@ else if ($action == 'make') {
move_uploaded_file($readme, $mdir."/{$hashcode}-r.html") or die("您没填写说明或上传说明文件");
$readmef = $dm->GetEncodeFile($mdir."/{$hashcode}-r.html", TRUE);
} else {
$readmetxt = "<p style='line-height:26px'>".$readmetxt;
$readmetxt = "<p>".$readmetxt;
$readmetxt = preg_replace("#[\r\n]{1,}#", "<br>\r\n", $readmetxt);
$readmetxt .= "</p>";
$readmef = base64_encode(trim($readmetxt));


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

@@ -99,7 +99,7 @@ if ($action == 'upload') {
<td><input name='upfile' type='file' id='upfile' style='width:390px'></td>
</tr>
</table>";
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow('ok', '');
$win->Display();
exit();

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

@@ -86,7 +86,7 @@ else if ($dopost == "copystart") {
</tr>
</table>
";
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow("ok", "");
$win->Display();
exit();
@@ -343,7 +343,7 @@ else if ($dopost == "gettemplets") {
频道封面模板:{$defaulttemplate}/index_{$row['nid']}.htm
<a href='tpl.php?acdir={$cfg_df_style}&action=edit&filename=index_{$row['nid']}.htm'>[修改]</a>
";
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow("hand", "");
$win->Display();
exit();


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

@@ -33,7 +33,7 @@ if (empty($dopost)) {
</tr>
</table>
";
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow('hand', '');
$win->Display();
exit();
@@ -64,7 +64,7 @@ else if ($dopost == 1) {
</tr>
</table>
";
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow('hand', '');
$win->Display();
exit();
@@ -140,7 +140,7 @@ else if ($dopost == 2) {
</tr>
</table>
";
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow('hand', '');
$win->Display();
exit();
@@ -197,7 +197,7 @@ else if ($dopost == 3) {
</tr>
</table>
";
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow('hand', '');
$win->Display();
exit();

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

@@ -138,7 +138,7 @@ else if ($action == 'upload') {
</tr>
</table>
";
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow('ok', '');
$win->Display();
exit();


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

@@ -249,7 +249,7 @@ function ShowMsgWin($msg, $title)
$win->Init();
$win->mainTitle = "系统提示:";
$win->AddTitle($title);
$win->AddMsgItem("<div style='line-height:26px'>$msg</div>");
$win->AddMsgItem("<div>$msg</div>");
$winform = $win->GetWindow("hand");
$win->Display();
}

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

@@ -109,7 +109,7 @@ class TypeUnit
$id = $row->id;
$rank = $row->sortrank;
if ($row->ishidden == '1') {
$nss = "<span class='text-danger'>[隐藏]</span>";
$nss = "<span class='text-danger mr-2'>[隐藏]</span>";
} else {
$nss = '';
}
@@ -117,7 +117,7 @@ class TypeUnit
//普通列表
if ($ispart == 0) {
echo "<tr>";
echo "<td style='background:#fbfce2;' class='bline'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o' style='cursor:pointer'></i><input type='checkbox' name='tids[]' value='{$id}' style='margin:0 10px'><a href='catalog_do.php?cid=".$id."&dopost=listArchives'>{$nss}".$typeName."[id:".$id."]</a>(文档:".$this->GetTotalArc($id).")<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>";
echo "<td class='bline' bgcolor='#fbfce2'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-2 ml-2'><span class='text-success mr-2'>[列表]</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-2'>".$typeName."</span></a>[id:".$id."](文档数:".$this->GetTotalArc($id).")<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>";
echo "</td><td align='right'>";
echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览'><i class='btn btn-sm fa fa-globe'></i></a>";
echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='内容'><i class='btn btn-sm fa fa-bars'></i></a>";
@@ -130,7 +130,7 @@ class TypeUnit
//带封面的频道
else if ($ispart == 1) {
echo "<tr>";
echo "<td style='background:#fbfce2;' class='bline'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o' style='cursor:pointer'></i><input type='checkbox' name='tids[]' value='{$id}' style='margin:0 10px'><a href='catalog_do.php?cid=".$id."&dopost=listArchives'>{$nss}".$typeName."[id:".$id."]</a> <a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>";
echo "<td class='bline' bgcolor='#fbfce2'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-2 ml-2'><span class='text-warning mr-2'>[封面]</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-2'>".$typeName."</span></a>[id:".$id."]<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>";
echo "</td><td align='right'>";
echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览'><i class='btn btn-sm fa fa-globe'></i></a>";
echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='内容'><i class='btn btn-sm fa fa-bars'></i></a>";
@@ -142,8 +142,8 @@ class TypeUnit
}
//独立页面
else if ($ispart == 2) {
echo "<tr bgcolor='#fbfce2'>";
echo "<td class='bline2'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o' style='cursor:pointer'></i><input type='checkbox' name='tids[]' value='{$id}' style='margin:0 10px'><a href='catalog_edit.php?id=".$id."'>{$nss}".$typeName."[id:".$id."]</a><a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>";
echo "<tr>";
echo "<td class='bline2' bgcolor='#fbfce2'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-2 ml-2'><span class='text-danger mr-2'>[外部]</span>{$nss}<a href='catalog_edit.php?id=".$id."'><span class='mr-2'>".$typeName."</span></a>[id:".$id."]<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>";
echo "</td><td align='right'>";
echo "<a href='{$typeDir}' target='_blank' title='预览'><i class='btn btn-sm fa fa-globe'></i></a>";
echo "<a href='catalog_edit.php?id={$id}' title='修改'><i class='btn btn-sm fa fa-pencil-square-o'></i></a>";
@@ -192,7 +192,7 @@ class TypeUnit
}
$rank = $row->sortrank;
if ($row->ishidden == '1') {
$nss = "<span class='text-danger'>[隐藏]</span>";
$nss = "<span class='text-danger mr-2'>[隐藏]</span>";
} else {
$nss = '';
}
@@ -202,7 +202,7 @@ class TypeUnit
echo "<td class='nbline'>";
echo "<table width='98%' cellspacing='0' cellpadding='0'>";
echo "<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"><td width='50%'>";
echo "$step<i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o' style='cursor:pointer'></i><input type='checkbox' name='tids[]' value='{$id}' style='margin:0 10px'><a href='catalog_do.php?cid=".$id."&dopost=listArchives'>{$nss}".$typeName."[id:".$id."]</a>(文档:".$this->GetTotalArc($id).")<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>";
echo "$step<i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-2 ml-2'><span class='text-success mr-2'>[列表]</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-2'>".$typeName."</span></a>[id:".$id."](文档数:".$this->GetTotalArc($id).")<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>";
echo "</td><td align='right'>";
echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览'><i class='btn btn-sm fa fa-globe'></i></a>";
echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='内容'><i class='btn btn-sm fa fa-bars'></i></a>";
@@ -216,7 +216,7 @@ class TypeUnit
else if ($ispart == 1) {
echo "<tr>";
echo "<td class='nbline'><table width='98%' cellspacing='0' cellpadding='0'><tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"><td width='50%'>";
echo "$step<i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o' style='cursor:pointer'></i><input type='checkbox' name='tids[]' value='{$id}' style='margin:0 10px'><a href='catalog_do.php?cid=".$id."&dopost=listArchives'>{$nss}".$typeName."[id:".$id."]</a><a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>";
echo "$step<i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-2 ml-2'><span class='text-warning mr-2'>[封面]</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-2'>".$typeName."</span></a>[id:".$id."]<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>";
echo "</td><td align='right'>";
echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览'><i class='btn btn-sm fa fa-globe'></i></a>";
echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='内容'><i class='btn btn-sm fa fa-bars'></i></a>";
@@ -231,7 +231,7 @@ class TypeUnit
echo "<tr>";
echo "<td class='bline2'><table width='98%' cellspacing='0' cellpadding='0'>";
echo "<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"><td width='50%'>";
echo "$step<i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o' style='cursor:pointer'></i><input type='checkbox' name='tids[]' value='{$id}' style='margin:0 10px'><a href='catalog_do.php?cid=".$id."&dopost=listArchives'>{$nss}".$typeName."[id:".$id."]</a><a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>";
echo "$step<i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-2 ml-2'><span class='text-danger mr-2'>[外部]</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-2'>".$typeName."</span></a>[id:".$id."]<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>";
echo "</td><td align='right'>";
echo "<a href='{$typeDir}' target='_blank' title='预览'><i class='btn btn-sm fa fa-globe'></i></a>";
echo "<a href='catalog_edit.php?id={$id}' title='修改'><i class='btn btn-sm fa fa-pencil-square-o'></i></a>";


Loading…
Cancel
Save