Browse Source

Update mychannel_edit.php

tags/6.2.8
叙述、别离 1 year ago
parent
commit
9dbba9ff4e
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/admin/mychannel_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) {
@@ -126,7 +126,7 @@ if ($dopost == "show") {
$win->Display();
exit();
}
$msg = "无信息";
$msg = "操作失败";
$exconfig = stripslashes($exconfig);
$dtp = new DedeTagParse();
$dtp->SetNameSpace('channel', '<', '>');
@@ -160,7 +160,7 @@ if ($dopost == "show") {
}
$rs = $dsql->ExecuteNoneQuery($tabsql);
if (!$rs) {
GotoStaMsg("创建表失败!".$dsql->GetError());
GotoStaMsg("创建表失败".$dsql->GetError());
exit();
}
if ($fields['issystem'] == 1) $fields['issystem'] = 0;


Loading…
Cancel
Save