Browse Source

更新提示

tags/6.2.7
叙述、别离 1 year ago
parent
commit
926e5bc1c5
2 changed files with 8 additions and 8 deletions
  1. +4
    -4
      src/admin/mychannel_edit.php
  2. +4
    -4
      src/admin/plus_edit.php

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

@@ -16,11 +16,11 @@ if (empty($dopost)) $dopost = "";
$id = isset($id) && is_numeric($id) ? $id : 0;
if ($dopost == "show") {
$dsql->ExecuteNoneQuery("UPDATE `#@__channeltype` SET isshow=1 WHERE id='$id' ");
ShowMsg("操作成功", "mychannel_main.php");
ShowMsg("启用一个模型", "mychannel_main.php");
exit();
} else if ($dopost == "hide") {
$dsql->ExecuteNoneQuery("UPDATE `#@__channeltype` SET isshow=0 WHERE id='$id'");
ShowMsg("操作成功", "mychannel_main.php");
ShowMsg("隐藏一个模型", "mychannel_main.php");
exit();
} else if ($dopost == "copystart") {
if ($id == -1) {
@@ -227,11 +227,11 @@ if ($dopost == "show") {
}
$rs = $dsql->ExecuteNoneQuery($inquery);
if ($rs) {
ShowMsg("成功文档模型复制,正在前往模型管理", "mychannel_edit.php?id={$newid}&dopost=edit");
ShowMsg("成功复制文档模型,正在前往模型管理", "mychannel_edit.php?id={$newid}&dopost=edit");
exit();
} else {
$errv = $dsql->GetError();
ShowMsg("系统出错,请检查原因,错误提示:mychannel_edit.php?dopost=savecopy $errv", "javascript:;");
ShowMsg("复制模型失败,错误提示:$errv", "javascript:;");
exit();
}
} else if ($dopost == "save") {


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

@@ -13,11 +13,11 @@ CheckPurview('sys_plus');
$aid = preg_replace("#[^0-9]#", "", $aid);
if ($dopost == "show") {
$dsql->ExecuteNoneQuery("UPDATE `#@__plus` SET isshow=1 WHERE aid='$aid';");
ShowMsg("启用一个插件,请刷新侧边导航", "plus_main.php");
ShowMsg("启用一个插件", "plus_main.php");
exit();
} else if ($dopost == "hide") {
$dsql->ExecuteNoneQuery("UPDATE `#@__plus` SET isshow=0 WHERE aid='$aid';");
ShowMsg("隐藏一个插件,请刷新侧边导航", "plus_main.php");
ShowMsg("隐藏一个插件", "plus_main.php");
exit();
} else if ($dopost == "delete") {
if (empty($job)) $job = "";
@@ -32,14 +32,14 @@ if ($dopost == "show") {
$win->AddHidden("dopost", $dopost);
$win->AddHidden("aid", $aid);
$win->AddTitle("您确定要删除<span class='text-primary'>".$title."</span>插件吗");
$win->AddMsgItem("提示:这里仅删除插件导航要干净删除请在模块管理处卸载删除,<a href='module_main.php?moduletype=plus'>模块管理</a>");
$win->AddMsgItem("提示:这里仅删除插件导航,在模块管理处卸载删除干净,<a href='module_main.php?moduletype=plus'>模块管理</a>");
$winform = $win->GetWindow("ok");
$win->Display();
exit();
} else if ($job == "yes") {
//操作
$dsql->ExecuteNoneQuery("DELETE FROM `#@__plus` WHERE aid='$aid';");
ShowMsg("删除一个插件,请刷新侧边导航", "plus_main.php");
ShowMsg("删除一个插件", "plus_main.php");
exit();
}
} else if ($dopost == "saveedit") {


Loading…
Cancel
Save