Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 1.47 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ## index.html.php
  2.  
  3. <pre><?php var_dump($modules) ?></pre>
  4.  
  5. <table>
  6.         <tr>
  7.                 <th>Name</th>
  8.                 <th>Executable</th>
  9.                 <th>Actions</th>
  10.         </tr>
  11.  
  12.         <?php foreach ($modules as $m) : ?>
  13.         <tr>
  14.                 <td><?= $m['name'] ?></td>
  15.                 <td><?= $m['exec_name'] ?></td>
  16.                 <td></td>
  17.         </tr>
  18.         <?php endforeach ?>
  19.        
  20. </table>
  21.  
  22. ## output [html]
  23.  
  24. <!doctype html>
  25. <html>
  26. <head>
  27.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   <title>Cron Manager > Modules</title>
  28.         <link rel="stylesheet" type="text/css" href="/css/debug.css" />
  29.         <link rel="stylesheet" type="text/css" href="/css/lithium.css" />
  30.        
  31.        
  32.         <link href="/favicon.ico" title="Icon" type="image/x-icon" rel="icon" />
  33.         <link href="/favicon.ico" title="Icon" type="image/x-icon" rel="shortcut icon" /></head>
  34.         <body class="app">
  35.                 <div id="container">
  36.                         <div id="header">
  37.                                 <h1>Cron Manager</h1>
  38.                         </div>
  39.                         <div id="content">
  40.                                 <pre>
  41.                                 array(1) {
  42.                                   [0]=>
  43.                                   array(5) {
  44.                                     ["id"]=>
  45.                                     string(1) "1"
  46.                                     ["active"]=>
  47.                                     string(1) "1"
  48.                                     ["name"]=>
  49.                                     string(4) "Test"
  50.                                     ["exec_name"]=>
  51.                                     string(7) "test.sh"
  52.                                     ["additional_args"]=>
  53.                                     NULL
  54.                                   }
  55.                                 }
  56.                                 </pre>
  57.  
  58.                                 <table>
  59.                                         <tr>
  60.                                                 <th>Name</th>
  61.                                                 <th>Executable</th>
  62.                                                 <th>Actions</th>
  63.                                         </tr>
  64.  
  65.                                         <tr>
  66.                                                 <td></td>
  67.                                                 <td></td>
  68.                                                 <td></td>
  69.                                         </tr>
  70.                                 </table>               
  71.                         </div>
  72.                 </div>
  73.         </body>
  74. </html>