summaryrefslogtreecommitdiff
path: root/modules/scheduler/views/scheduler_definitions.html.php
blob: 0ab46f2b8acc983fe435de7ad5f4f65271c84cb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-sheduled-tasks">
  <h2> <?= t("Scheduled tasks") ?> </h2>
  <table>
    <tr>
      <th>
        <?= t("Name") ?>
      </th>
      <th>
        <?= t("Next run") ?>
      </th>
      <th>
        <?= t("Interval") ?>
      </th>
      <th>
        <?= t("Status") ?>
      </th>
      <th>
        <?= t("Action") ?>
      </th>
    </tr>
    <? foreach ($schedule_definitions as $entry): ?>
    <tr class="<?= text::alternate("g-odd", "g-even") ?>">
      <td>
        <?= html::clean($entry->name) ?>
      </td>
      <td>
        <?= html::clean($entry->run_date) ?>
      </td>
      <td>
        <?= html::clean($entry->interval) ?>
      </td>
      <td>
        <?= html::clean($entry->status) ?>
      </td>
      <td>
        <a href="<?= url::site("admin/schedule/update_form/$entry->id?csrf=$csrf") ?>"
           class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">
          <?= t("edit") ?>
        </a>
        <a href="<?= url::site("admin/schedule/remove_form/$entry->id?csrf=$csrf") ?>"
           class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">
          <?= t("remove") ?>
        </a>
      </td>
    </tr>
    <? endforeach ?>
  </table>
</div>