summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/bootmenu
diff options
context:
space:
mode:
authormichael pereira2011-04-01 13:56:29 +0200
committermichael pereira2011-04-01 13:56:29 +0200
commit2dd4004af95ab7e11813281c19a7e32aa0119e5a (patch)
tree91293df21ae0bc44a2848306d037e6a288a6d711 /application/modules/user/views/scripts/bootmenu
parentbootos controller fertig (diff)
downloadpbs2-2dd4004af95ab7e11813281c19a7e32aa0119e5a.tar.gz
pbs2-2dd4004af95ab7e11813281c19a7e32aa0119e5a.tar.xz
pbs2-2dd4004af95ab7e11813281c19a7e32aa0119e5a.zip
bootmenu
Diffstat (limited to 'application/modules/user/views/scripts/bootmenu')
-rw-r--r--application/modules/user/views/scripts/bootmenu/addbootmenuentry.phtml4
-rw-r--r--application/modules/user/views/scripts/bootmenu/createbootmenu.phtml4
-rw-r--r--application/modules/user/views/scripts/bootmenu/editbootmenu.phtml4
-rw-r--r--application/modules/user/views/scripts/bootmenu/editbootmenuentry.phtml4
-rw-r--r--application/modules/user/views/scripts/bootmenu/index.phtml127
5 files changed, 142 insertions, 1 deletions
diff --git a/application/modules/user/views/scripts/bootmenu/addbootmenuentry.phtml b/application/modules/user/views/scripts/bootmenu/addbootmenuentry.phtml
new file mode 100644
index 0000000..e5f04e5
--- /dev/null
+++ b/application/modules/user/views/scripts/bootmenu/addbootmenuentry.phtml
@@ -0,0 +1,4 @@
+<?php
+$this->bootmenuentryForm;
+echo $this->bootmenuentryForm;
+?> \ No newline at end of file
diff --git a/application/modules/user/views/scripts/bootmenu/createbootmenu.phtml b/application/modules/user/views/scripts/bootmenu/createbootmenu.phtml
new file mode 100644
index 0000000..bdf9218
--- /dev/null
+++ b/application/modules/user/views/scripts/bootmenu/createbootmenu.phtml
@@ -0,0 +1,4 @@
+<?php
+$this->bootmenuForm;
+echo $this->bootmenuForm;
+?>
diff --git a/application/modules/user/views/scripts/bootmenu/editbootmenu.phtml b/application/modules/user/views/scripts/bootmenu/editbootmenu.phtml
new file mode 100644
index 0000000..bdf9218
--- /dev/null
+++ b/application/modules/user/views/scripts/bootmenu/editbootmenu.phtml
@@ -0,0 +1,4 @@
+<?php
+$this->bootmenuForm;
+echo $this->bootmenuForm;
+?>
diff --git a/application/modules/user/views/scripts/bootmenu/editbootmenuentry.phtml b/application/modules/user/views/scripts/bootmenu/editbootmenuentry.phtml
new file mode 100644
index 0000000..e5f04e5
--- /dev/null
+++ b/application/modules/user/views/scripts/bootmenu/editbootmenuentry.phtml
@@ -0,0 +1,4 @@
+<?php
+$this->bootmenuentryForm;
+echo $this->bootmenuentryForm;
+?> \ No newline at end of file
diff --git a/application/modules/user/views/scripts/bootmenu/index.phtml b/application/modules/user/views/scripts/bootmenu/index.phtml
index eab3ca4..d0b8391 100644
--- a/application/modules/user/views/scripts/bootmenu/index.phtml
+++ b/application/modules/user/views/scripts/bootmenu/index.phtml
@@ -1 +1,126 @@
-<br /><br /><center>View script for controller <b>Bootmenu</b> and script/action name <b>index</b></center> \ No newline at end of file
+<h1>BootMenu</h1>
+<?php if($this->notification != ''){echo $this->notification;} ?>
+<?php echo $this->formButton('createbootmenu', 'Create BootMenu', array(
+ 'onclick' => 'self.location="/user/bootmenu/createbootmenu"',
+ 'class' => 'addbutton'))?>
+
+
+<table>
+ <tr>
+ <th>ID</th>
+ <th>Title</th>
+ <th>Changed</th>
+ <th colspan=3>Actions</th>
+ </tr>
+ <?php if(count($this->bootmenulist)==0)
+ echo "</table> There are no BootMenus to display." ?>
+ <?php foreach ($this->bootmenulist as $bootmenu): ?>
+ <tr class=entry>
+ <td><?php echo $this->escape($bootmenu->getID()); ?></td>
+ <td><?php echo $this->escape($bootmenu->getTitle()); ?></td>
+ <td><?php echo $this->escape(date('Y-m-d H:i:s', $bootmenu->getCreated())); ?></td>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'bootmenu',
+ 'action' => 'editbootmenu',
+ 'bootmenuID' => $bootmenu->getID()
+ ),
+ 'default',
+ true, false) ?>"><img src='/media/img/edit.png' alt='Edit Bootmenu'/></a></td>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'bootmenu',
+ 'action' => 'deletebootmenu',
+ 'bootmenuID' => $bootmenu->getID()
+ ),
+ 'default',
+ true) ?>"><img src='/media/img/delete.png' alt='Delete Bootmenu'/></a></td>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'bootmenu',
+ 'action' => 'addbootmenuentry',
+ 'bootmenuID' => $bootmenu->getID(),
+ 'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()])
+ ),
+ 'default',
+ true) ?>"><img src='/media/img/add.png' alt='Add Entry'/></a></td>
+ </tr>
+
+<?php if(count($this->bootmenuentrylist[$bootmenu->getID()]) > 0):?>
+ <tr class=detail>
+ <td class=arrowtop>↳</td>
+ <td colspan=7>
+ <table>
+ <tr>
+ <th></th>
+ <th>ID</th>
+ <th>Title</th>
+ <th>BootOS</th>
+ <th>kcl</th>
+ <th>kclappend</th>
+ <th>Config</th>
+ <th>Position</th>
+ <th colspan=2>Actions</th>
+
+ </tr>
+ <?php foreach ($this->bootmenuentrylist[$bootmenu->getID()] as $bootmenuentry): ?>
+ <tr>
+ <td class='action'>
+ <a href="<?php echo $this->url(
+ array(
+ 'module' => 'dev',
+ 'controller' => 'resource',
+ 'action' => 'getbootmenuentry',
+ 'bootmenuentryID' => $bootmenuentry->getID(),
+ 'alpha' => $_SESSION['alphasessionID']
+ ),
+ 'default',
+ true, false) ?>"><img src='/media/img/play.gif'>
+ </a>
+ </td>
+ <td><?php echo $this->escape($bootmenuentry->getID()); ?></td>
+ <td><?php echo $this->escape($bootmenuentry->getTitle()); ?></td>
+ <td><?php echo $this->escape($bootmenuentry->getBootosID()) ?></td>
+ <td><?php echo $this->escape($bootmenuentry->getKcl()); ?></td>
+ <td><?php echo $this->escape($bootmenuentry->getKclappend()); ?></td>
+ <td><?php echo $this->escape($bootmenuentry->getConfigID()) ?></td>
+ <td><?php echo $this->escape($bootmenuentry->getOrder() + 1); ?></td>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'bootmenu',
+ 'action' => 'editbootmenuentry',
+ 'bootmenuentryID' => $bootmenuentry->getID(),
+ 'bootmenuID' => $bootmenu->getID(),
+ 'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]),
+ 'oldorder' => $bootmenuentry->getOrder()
+ ),
+ 'default',
+ true, false) ?>"><img src='/media/img/edit.png' alt='Edit Entry'/></a></td>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'bootmenu',
+ 'action' => 'removebootmenuentry',
+ 'bootmenuentryID' => $bootmenuentry->getID()
+ ),
+ 'default',
+ true) ?>"><img src='/media/img/delete.png' alt='Remove Entry'/></a></td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+ </td>
+ </tr>
+ <?php endif; ?>
+ <?php endforeach; ?>
+</table>
+
+
+
+
+
+
+