
Untitled
By: a guest on
May 2nd, 2012 | syntax:
None | size: 1.47 KB | hits: 15 | expires: Never
## index.html.php
<pre><?php var_dump($modules) ?></pre>
<table>
<tr>
<th>Name</th>
<th>Executable</th>
<th>Actions</th>
</tr>
<?php foreach ($modules as $m) : ?>
<tr>
<td><?= $m['name'] ?></td>
<td><?= $m['exec_name'] ?></td>
<td></td>
</tr>
<?php endforeach ?>
</table>
## output [html]
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Cron Manager > Modules</title>
<link rel="stylesheet" type="text/css" href="/css/debug.css" />
<link rel="stylesheet" type="text/css" href="/css/lithium.css" />
<link href="/favicon.ico" title="Icon" type="image/x-icon" rel="icon" />
<link href="/favicon.ico" title="Icon" type="image/x-icon" rel="shortcut icon" /></head>
<body class="app">
<div id="container">
<div id="header">
<h1>Cron Manager</h1>
</div>
<div id="content">
<pre>
array(1) {
[0]=>
array(5) {
["id"]=>
string(1) "1"
["active"]=>
string(1) "1"
["name"]=>
string(4) "Test"
["exec_name"]=>
string(7) "test.sh"
["additional_args"]=>
NULL
}
}
</pre>
<table>
<tr>
<th>Name</th>
<th>Executable</th>
<th>Actions</th>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
</div>
</body>
</html>