diff options
| author | michael pereira | 2011-03-30 02:20:17 +0200 |
|---|---|---|
| committer | michael pereira | 2011-03-30 02:20:17 +0200 |
| commit | 07cf31616a364c310144bde46af1cb20a3be7687 (patch) | |
| tree | 9c94c5ee926ef8e0dbc32a16a970b447f6cb0a50 /application/modules/user/views/scripts/bootiso | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-07cf31616a364c310144bde46af1cb20a3be7687.tar.gz pbs2-07cf31616a364c310144bde46af1cb20a3be7687.tar.xz pbs2-07cf31616a364c310144bde46af1cb20a3be7687.zip | |
BootIso Controller fertig
Diffstat (limited to 'application/modules/user/views/scripts/bootiso')
3 files changed, 75 insertions, 1 deletions
diff --git a/application/modules/user/views/scripts/bootiso/createbootiso.phtml b/application/modules/user/views/scripts/bootiso/createbootiso.phtml new file mode 100644 index 0000000..a577073 --- /dev/null +++ b/application/modules/user/views/scripts/bootiso/createbootiso.phtml @@ -0,0 +1,4 @@ +<?php +$this->bootisoForm; +echo $this->bootisoForm; +?> diff --git a/application/modules/user/views/scripts/bootiso/editbootiso.phtml b/application/modules/user/views/scripts/bootiso/editbootiso.phtml new file mode 100644 index 0000000..a577073 --- /dev/null +++ b/application/modules/user/views/scripts/bootiso/editbootiso.phtml @@ -0,0 +1,4 @@ +<?php +$this->bootisoForm; +echo $this->bootisoForm; +?> diff --git a/application/modules/user/views/scripts/bootiso/index.phtml b/application/modules/user/views/scripts/bootiso/index.phtml index 5d756d0..4e1d15d 100644 --- a/application/modules/user/views/scripts/bootiso/index.phtml +++ b/application/modules/user/views/scripts/bootiso/index.phtml @@ -1 +1,67 @@ -<br /><br /><center>View script for controller <b>Bootiso</b> and script/action name <b>index</b></center>
\ No newline at end of file +<h1>BootMedien</h1> +<?php if($this->notification != ''){echo $this->notification;} ?> +<?php echo $this->formButton('createbootiso', 'Create BootISO', array( + 'onclick' => 'self.location="/user/bootiso/createbootiso"', + 'class' => 'addbutton'))?> +<table> + <tr> + <th>ID</th> + <th>Title</th> + <th>GroupID</th> + <th>MembershipID</th> + <th>PrebootID</th> + <th>Serialnumber</th> + <th>Created</th> + <th>Expires</th> + <th>Public</th> + <th colspan=3>Actions</th> + </tr> + <?php if(count($this->bootisolist)==0) + echo "</table> There are no BootISO's entries to display." ?> + <?php foreach ($this->bootisolist as $bootiso): ?> + <tr class=entry> + <td><?php echo $this->escape($bootiso->getID()); ?></td> + <td><?php echo $this->escape($bootiso->getTitle()); ?></td> + <td><?php echo $this->escape($bootiso->getGroupID()); ?></td> + <td><?php echo $this->escape($bootiso->getMembershipID()); ?></td> + <td><?php echo "[" . $this->escape($bootiso->getPrebootID()) . "] " . $this->prebootlist[$bootiso->getID()]; ?></td> + <td><?php echo $this->escape($bootiso->getSerialnumber()); ?></td> + <td><?php echo $this->escape(date('Y-m-d H:i:s', $bootiso->getCreated())); ?></td> + <td><?php echo $this->escape($bootiso->getExpires()); ?></td> + <td><?php echo $this->escape($bootiso->getPublic()); ?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'bootiso', + 'action' => 'downloadbootiso', + 'prebootID' => $bootiso->getprebootID(), + 'bootisoID' => $bootiso->getID() + ), + 'default', + true, false) ?>"><img src='/media/img/download.png' alt='Download BootMedium' /></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'bootiso', + 'action' => 'editbootiso', + 'bootisoID' => $bootiso->getID() + ), + 'default', + true, false) ?>"><img src='/media/img/edit.png' alt='Edit BootISO' /></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'bootiso', + 'action' => 'deletebootiso', + 'bootisoID' => $bootiso->getID() + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete BootISO'/></a></td> + </tr> + <?php endforeach; ?> +</table> + + + + + |
