国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3KB

  1. <?php
  2. /**
  3. * 编辑任务
  4. *
  5. * @version $Id: sys_task_edit.php 1 23:07 2010年7月20日Z tianya $
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2020, DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license
  9. * @link https://www.dedebiz.com
  10. */
  11. require(dirname(__FILE__) . "/config.php");
  12. CheckPurview('sys_Task');
  13. if (empty($dopost)) $dopost = '';
  14. if ($dopost == 'save') {
  15. $starttime = empty($starttime) ? 0 : GetMkTime($starttime);
  16. $endtime = empty($endtime) ? 0 : GetMkTime($endtime);
  17. $runtime = $h . ':' . $m;
  18. $query = "UPDATE `#@__sys_task`
  19. SET `taskname` = '$taskname',
  20. `dourl` = '$dourl',
  21. `islock` = '$nislock',
  22. `runtype` = '$runtype',
  23. `runtime` = '$runtime',
  24. `starttime` = '$starttime',
  25. `endtime` = '$endtime',
  26. `freq` = '$freq',
  27. `description` = '$description',
  28. `parameter` = '$parameter'
  29. WHERE id='$id' ";
  30. $rs = $dsql->ExecuteNoneQuery($query);
  31. if ($rs) {
  32. ShowMsg('成功修改一个任务!', 'sys_task.php');
  33. } else {
  34. ShowMsg('修改任务失败!' . $dsql->GetError(), 'javascript:;');
  35. }
  36. exit();
  37. }
  38. $row = $dsql->GetOne("SELECT * FROM `#@__sys_task` WHERE id='$id' ");
  39. include DedeInclude('templets/sys_task_edit.htm');