|
@@ -16,11 +16,11 @@ if (empty($dopost)) $dopost = ""; |
|
|
$id = isset($id) && is_numeric($id) ? $id : 0; |
|
|
$id = isset($id) && is_numeric($id) ? $id : 0; |
|
|
if ($dopost == "show") { |
|
|
if ($dopost == "show") { |
|
|
$dsql->ExecuteNoneQuery("UPDATE `#@__channeltype` SET isshow=1 WHERE id='$id' "); |
|
|
$dsql->ExecuteNoneQuery("UPDATE `#@__channeltype` SET isshow=1 WHERE id='$id' "); |
|
|
ShowMsg("启用一个模型", "mychannel_main.php"); |
|
|
|
|
|
|
|
|
ShowMsg("启用一个文档模型", "mychannel_main.php"); |
|
|
exit(); |
|
|
exit(); |
|
|
} else if ($dopost == "hide") { |
|
|
} else if ($dopost == "hide") { |
|
|
$dsql->ExecuteNoneQuery("UPDATE `#@__channeltype` SET isshow=0 WHERE id='$id'"); |
|
|
$dsql->ExecuteNoneQuery("UPDATE `#@__channeltype` SET isshow=0 WHERE id='$id'"); |
|
|
ShowMsg("隐藏一个模型", "mychannel_main.php"); |
|
|
|
|
|
|
|
|
ShowMsg("隐藏一个文档模型", "mychannel_main.php"); |
|
|
exit(); |
|
|
exit(); |
|
|
} else if ($dopost == "copystart") { |
|
|
} else if ($dopost == "copystart") { |
|
|
if ($id == -1) { |
|
|
if ($id == -1) { |
|
@@ -126,7 +126,7 @@ if ($dopost == "show") { |
|
|
$win->Display(); |
|
|
$win->Display(); |
|
|
exit(); |
|
|
exit(); |
|
|
} |
|
|
} |
|
|
$msg = "无信息"; |
|
|
|
|
|
|
|
|
$msg = "操作失败"; |
|
|
$exconfig = stripslashes($exconfig); |
|
|
$exconfig = stripslashes($exconfig); |
|
|
$dtp = new DedeTagParse(); |
|
|
$dtp = new DedeTagParse(); |
|
|
$dtp->SetNameSpace('channel', '<', '>'); |
|
|
$dtp->SetNameSpace('channel', '<', '>'); |
|
@@ -160,7 +160,7 @@ if ($dopost == "show") { |
|
|
} |
|
|
} |
|
|
$rs = $dsql->ExecuteNoneQuery($tabsql); |
|
|
$rs = $dsql->ExecuteNoneQuery($tabsql); |
|
|
if (!$rs) { |
|
|
if (!$rs) { |
|
|
GotoStaMsg("创建表失败!".$dsql->GetError()); |
|
|
|
|
|
|
|
|
GotoStaMsg("创建表失败".$dsql->GetError()); |
|
|
exit(); |
|
|
exit(); |
|
|
} |
|
|
} |
|
|
if ($fields['issystem'] == 1) $fields['issystem'] = 0; |
|
|
if ($fields['issystem'] == 1) $fields['issystem'] = 0; |
|
|