国内流行的内容管理系统(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.

87 lines
4.1KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>计划任务</title>
  7. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  8. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link href="css/base.css" rel="stylesheet" type="text/css">
  10. </head>
  11. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  12. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3">
  13. <form name="form1" action="content_att.php" method="post">
  14. <input type="hidden" name="dopost" value="save">
  15. <tr>
  16. <td height="28" colspan="6" background='images/tbg.gif'>
  17. <table width="96%" border="0" cellspacing="1" cellpadding="1" class="table table-borderless">
  18. <tr>
  19. <td width="24%" style="padding-left:10px;"><b>计划任务</b> </td>
  20. <td width="76%" align="right">
  21. <a href="sys_task_add.php" class="btn btn-secondary btn-sm">增加一个新任务</a>
  22. </td>
  23. </tr>
  24. </table>
  25. </td>
  26. </tr>
  27. <tr bgcolor="#FBFCE2" height="24" align="center">
  28. <td width="24%">任务程序</td>
  29. <td width="30%">任务说明</td>
  30. <td width="8%">是否启用</td>
  31. <td width="8%">运行时间</td>
  32. <td width="18%">上次运行时间</td>
  33. <td width="12%">管理</td>
  34. </tr>
  35. <?php
  36. $dsql->SetQuery("Select id,taskname,dourl,islock,runtype,runtime,starttime,endtime,freq,lastrun,description From `#@__sys_task` order by id desc ");
  37. $dsql->Execute();
  38. while($row = $dsql->GetObject())
  39. {
  40. ?>
  41. <tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';"
  42. onMouseOut="javascript:this.bgColor='#FFFFFF';">
  43. <td>
  44. <?php echo $row->taskname; ?><br />
  45. <?php echo $row->dourl; ?>
  46. </td>
  47. <td>
  48. <?php echo $row->description; ?>
  49. </td>
  50. <td>
  51. <?php echo ($row->islock==0 ? '启用' : '禁用'); ?>
  52. </td>
  53. <td>
  54. <?php echo $row->runtime; ?>
  55. </td>
  56. <td>
  57. <?php echo (empty($row->lastrun) ? '没运行过' : GetDateTimeMk($row->lastrun)); ?>
  58. </td>
  59. <td>
  60. <a href='sys_task_edit.php?id=<?php echo $row->id; ?>' class="btn btn-secondary btn-sm">修改</a>
  61. <a href='#'
  62. onClick="(window.confirm('你确实要删除这个任务么!') ? location='sys_task.php?dopost=del&id=<?php echo $row->id; ?>' : '')" class="btn btn-secondary btn-sm">删除</a>
  63. </td>
  64. </tr>
  65. <?php
  66. }
  67. ?>
  68. <tr>
  69. <td colspan="6" bgcolor="#F9FCEF" style="padding-left:16px;">
  70. <a href='#'
  71. onClick="document.getElementById('helpmsg').style.display=(document.getElementById('helpmsg').style.display=='none' ? 'block' : 'none');"><img
  72. src='images/help.gif' /><b>计划任务执行的说明</b></a>
  73. <div id='helpmsg' style='display:none;margin-top:6px;line-height:200%;'>
  74. ·为了确保任务能执行完全,建议使用Dede的客户端工具,否则只能通过JS触发,但JS触发有很多不确定因素会导致任务不能完成;<br />
  75. ·JS触发方式:在所有文档页面中用JS调用/plus/task.php?client=js(必须禁用计划任务的密码,<a
  76. href='sys_info.php'><u>系统配置参数-&gt;其它选项</u></a>);<br />
  77. ·自行定制客户端:直接访问“http://网址/plus/task.php?clientpwd=管理密码”,会返回其中一个可执行任务的网址(没有可用任务则返回串:notask),然后客户端运行这个网址即可。
  78. </div>
  79. </td>
  80. </tr>
  81. </form>
  82. </table>
  83. </body>
  84. </html>