diff --git a/application/modules/dev/views/scripts/bootiso/index.phtml b/application/modules/dev/views/scripts/bootiso/index.phtml
index 453f316..cb06be6 100644
--- a/application/modules/dev/views/scripts/bootiso/index.phtml
+++ b/application/modules/dev/views/scripts/bootiso/index.phtml
@@ -1,4 +1,4 @@
-
BootISO
+
BootMedien
formButton('createbootiso', 'Create BootISO', array(
'onclick' => 'self.location="/dev/bootiso/createbootiso"',
'class' => 'addbutton'))?>
@@ -8,26 +8,35 @@
Title |
GroupID |
MembershipID |
-
FbGui Path |
+
PrebootID |
Serialnumber |
Created |
Expires |
Public |
-
Actions |
+
Actions |
bootisolist)==0)
- echo " There are no BootISO's entries for the Bootmenuto display." ?>
+ echo " There are no BootISO's entries to display." ?>
bootisolist as $bootiso): ?>
| escape($bootiso->getID()); ?> |
escape($bootiso->getTitle()); ?> |
escape($bootiso->getGroupID()); ?> |
escape($bootiso->getMembershipID()); ?> |
- escape($bootiso->getPath_fbgui()); ?> |
+ escape($bootiso->getPrebootID()) . "] " . $this->prebootlist[$bootiso->getID()]; ?> |
escape($bootiso->getSerialnumber()); ?> |
escape(date('Y-m-d H:i:s', $bootiso->getCreated())); ?> |
escape($bootiso->getExpires()); ?> |
escape($bootiso->getPublic()); ?> |
+  |
url(
array(
'module' => 'dev',
diff --git a/application/modules/dev/views/scripts/preboot/createpreboot.phtml b/application/modules/dev/views/scripts/preboot/createpreboot.phtml
new file mode 100644
index 0000000..19d1595
--- /dev/null
+++ b/application/modules/dev/views/scripts/preboot/createpreboot.phtml
@@ -0,0 +1,4 @@
+createprebootForm->setAction($this->url());
+echo $this->createprebootForm;
+?>
diff --git a/application/modules/dev/views/scripts/preboot/editpreboot.phtml b/application/modules/dev/views/scripts/preboot/editpreboot.phtml
new file mode 100644
index 0000000..a8f9c42
--- /dev/null
+++ b/application/modules/dev/views/scripts/preboot/editpreboot.phtml
@@ -0,0 +1,4 @@
+editprebootForm->setAction($this->url());
+echo $this->editprebootForm;
+?>
diff --git a/application/modules/dev/views/scripts/preboot/index.phtml b/application/modules/dev/views/scripts/preboot/index.phtml
new file mode 100644
index 0000000..eec8f1b
--- /dev/null
+++ b/application/modules/dev/views/scripts/preboot/index.phtml
@@ -0,0 +1,57 @@
+Preboot
+formButton('createpreboot', 'Create PreBoot', array(
+ 'onclick' => 'self.location="/dev/preboot/createpreboot"',
+ 'class' => 'addbutton'))?>
+
+
+
+ | ID |
+ Title |
+ GroupID |
+ MembershipID |
+ Preboot Path |
+ Actions |
+
+ prebootlist)==0)
+ echo " There are no Preboot entries to display." ?>
+ prebootlist as $preboot): ?>
+ |
+ | escape($preboot->getID()); ?> |
+ escape($preboot->getTitle()); ?> |
+ escape($preboot->getGroupID()); ?> |
+ escape($preboot->getMembershipID()); ?> |
+ escape($preboot->getPath_preboot()); ?> |
+ update[$preboot->getID()]==true): ?>
+  |
+
+  |
+
+  |
+  |
+
+
+
\ No newline at end of file
diff --git a/pbs.sql b/pbs.sql
index 594be86..bfac5e0 100644
--- a/pbs.sql
+++ b/pbs.sql
@@ -188,7 +188,7 @@ CREATE TABLE IF NOT EXISTS `pbs_bootiso` (
`title` varchar(30) NOT NULL,
`membershipID` int(11),
`groupID` int(11) NOT NULL,
- `path_fbgui` varchar(30) NOT NULL,
+ `prebootID` int(11) NOT NULL,
`serialnumber` int(11) NOT NULL,
`created` VARCHAR(14) NOT NULL,
`expires` VARCHAR(14),
@@ -200,8 +200,24 @@ CREATE TABLE IF NOT EXISTS `pbs_bootiso` (
ALTER TABLE `pbs_bootiso`
ADD CONSTRAINT `pbs_bootiso_ibfk_1` FOREIGN KEY (`membershipID`) REFERENCES `pbs_membership` (`membershipID`) ON DELETE SET NULL,
- ADD CONSTRAINT `pbs_bootiso_ibfk_2` FOREIGN KEY (`groupID`) REFERENCES `pbs_group` (`groupID`) ON DELETE CASCADE;
+ ADD CONSTRAINT `pbs_bootiso_ibfk_2` FOREIGN KEY (`groupID`) REFERENCES `pbs_group` (`groupID`) ON DELETE CASCADE,
+ ADD CONSTRAINT `pbs_bootiso_ibfk_3` FOREIGN KEY (`prebootID`) REFERENCES `pbs_preboot` (`prebootID`) ON DELETE CASCADE;
+CREATE TABLE IF NOT EXISTS `pbs_preboot` (
+ `prebootID` int(11) NOT NULL AUTO_INCREMENT,
+ `title` varchar(30) NOT NULL,
+ `membershipID` int(11),
+ `groupID` int(11) NOT NULL,
+ `path_preboot` varchar(30) NOT NULL,
+ PRIMARY KEY (`prebootID`),
+ KEY `membershipID` (`membershipID`),
+ KEY `groupID` (`groupID`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
+
+ALTER TABLE `pbs_preboot`
+ ADD CONSTRAINT `pbs_preboot_ibfk_1` FOREIGN KEY (`membershipID`) REFERENCES `pbs_membership` (`membershipID`) ON DELETE SET NULL,
+ ADD CONSTRAINT `pbs_preboot_ibfk_2` FOREIGN KEY (`groupID`) REFERENCES `pbs_group` (`groupID`) ON DELETE CASCADE;
+
CREATE TABLE IF NOT EXISTS `pbs_client` (
`clientID` int(11) NOT NULL AUTO_INCREMENT,
`macadress` varchar(17) NOT NULL,
diff --git a/public/media/img/download.png b/public/media/img/download.png
new file mode 100644
index 0000000..cd526b2
Binary files /dev/null and b/public/media/img/download.png differ
diff --git a/tests/application/controllers/PrebootControllerTest.php b/tests/application/controllers/PrebootControllerTest.php
new file mode 100644
index 0000000..16c893a
--- /dev/null
+++ b/tests/application/controllers/PrebootControllerTest.php
@@ -0,0 +1,20 @@
+