ExecuteNoneQuery("Delete From `#@__myppt` where aid='$aid' "); ShowMsg("成功删除幻灯片!",$ENV_GOBACK_URL); exit(); } else if($dopost=='saveedit') { $starttime = GetMkTime($starttime); $endtime = GetMkTime($endtime); $query = "Update `#@__myppt` set orderid='$orderid', title='$title', introduce='$introduce', typeid='$typeid', pic='$pic', url='$url' where aid='$aid' "; $dsql->ExecuteNoneQuery($query); ShowMsg("成功更改幻灯片!",$ENV_GOBACK_URL); exit(); } $row = $dsql->GetOne("Select * From `#@__myppt` where aid='$aid'"); $dsql->Execute('dd','SELECT * FROM `#@__myppttype` ORDER BY id DESC'); $option = ''; while($arr = $dsql->GetArray('dd')) { if ($arr['id'] == $row['typeid']) { $option .= "\n\r"; } else { $option .= "\n\r"; } } include DedeInclude('templets/ppt_edit.htm'); ?>