Newer
Older
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
<?php
class crons{
private $db;
private $config;
function __construct(){
global $datenbank,$grundconfig;
$this->db = $datenbank;
$this->config = $grundconfig;
}
public function liste(){
$aus = '<table class="table table-striped">
<tr>
<th>Cron</th>
<th>Laufzeit</th>
<th>URL</th>
</tr>';
$result = $this->db->get_results("SELECT * FROM ". PREFIX . CRONS ." ");
foreach($result AS $res){
$aus .= '
<tr>
<td><b>' . $res->bezeichnung . '</b><br>
<small><i>ID: ' . $res->id . '</i></small>
</td>
<td class="text-center">
<font color="#000080">' . date("d.m.Y - H:i:s", $res->laufzeit) . '</font>
</td>
<td class="text-center">
<a href="../cron.php?id=' . $res->id . '&pw=' . $this->config->cron_pw . '" target="_blank"><img src="images/gruen.gif" width="15" height="15" border="0" alt="Ausführen"></a>
</td>
</tr>
';
}
$aus .= '</table>';
return $aus;
}