gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

index.php (1715B)


      1 <div class="container">
      2     <h1>NoteController/index</h1>
      3     <div class="box">
      4 
      5         <!-- echo out the system feedback (error and success messages) -->
      6         <?php $this->renderFeedbackMessages(); ?>
      7 
      8         <h3>What happens here ?</h3>
      9         <p>
     10             This is just a simple CRUD implementation. Creating, reading, updating and deleting things.
     11         </p>
     12         <p>
     13             <form method="post" action="<?php echo Config::get('URL');?>/note/create">
     14                 <label>Text of new note: </label><input type="text" name="note_text" />
     15                 <input type="submit" value='Create this note' autocomplete="off" />
     16             </form>
     17         </p>
     18 
     19         <?php if ($this->notes) { ?>
     20             <table class="note-table">
     21                 <thead>
     22                 <tr>
     23                     <td>Id</td>
     24                     <td>Note</td>
     25                     <td>EDIT</td>
     26                     <td>DELETE</td>
     27                 </tr>
     28                 </thead>
     29                 <tbody>
     30                     <?php foreach($this->notes as $key => $value) { ?>
     31                         <tr>
     32                             <td><?= $value->note_id; ?></td>
     33                             <td><?= htmlentities($value->note_text); ?></td>
     34                             <td><a href="<?= Config::get('URL') . '/note/edit/' . $value->note_id; ?>">Edit</a></td>
     35                             <td><a href="<?= Config::get('URL') . '/note/delete/' . $value->note_id; ?>">Delete</a></td>
     36                         </tr>
     37                     <?php } ?>
     38                 </tbody>
     39             </table>
     40             <?php } else { ?>
     41                 <div>No notes yet. Create some !</div>
     42             <?php } ?>
     43     </div>
     44 </div>