summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts
diff options
context:
space:
mode:
authormichael pereira2011-03-18 19:27:33 +0100
committermichael pereira2011-03-18 19:27:33 +0100
commit87b3b1d9c0cecf76d1eb39cf2548072607de59ea (patch)
tree5d07af0d68e20a38422a72864b3ca68b1a1b07be /application/modules/user/views/scripts
parentBootOs Update implementiert, BootISO anlegen und some fixes (diff)
parentUser-Oberfläche, FBGui-Oberfläche legt Session&Clients an - für Kiosk-System (diff)
downloadpbs2-87b3b1d9c0cecf76d1eb39cf2548072607de59ea.tar.gz
pbs2-87b3b1d9c0cecf76d1eb39cf2548072607de59ea.tar.xz
pbs2-87b3b1d9c0cecf76d1eb39cf2548072607de59ea.zip
newsql geaendert
Diffstat (limited to 'application/modules/user/views/scripts')
-rw-r--r--application/modules/user/views/scripts/filter/addfilter.phtml2
-rw-r--r--application/modules/user/views/scripts/filter/addfilterentry.phtml1
-rw-r--r--application/modules/user/views/scripts/filter/editfilter.phtml1
-rw-r--r--application/modules/user/views/scripts/filter/editfilterentry.phtml1
-rw-r--r--application/modules/user/views/scripts/filter/index.phtml124
-rw-r--r--application/modules/user/views/scripts/filter/removefilter.phtml1
-rw-r--r--application/modules/user/views/scripts/filter/removefilterentry.phtml1
-rw-r--r--application/modules/user/views/scripts/pool/index.phtml10
-rw-r--r--application/modules/user/views/scripts/pool/linkclient.phtml3
9 files changed, 139 insertions, 5 deletions
diff --git a/application/modules/user/views/scripts/filter/addfilter.phtml b/application/modules/user/views/scripts/filter/addfilter.phtml
new file mode 100644
index 0000000..3c7eb9f
--- /dev/null
+++ b/application/modules/user/views/scripts/filter/addfilter.phtml
@@ -0,0 +1,2 @@
+<?php
+echo $this->addfilterform;
diff --git a/application/modules/user/views/scripts/filter/addfilterentry.phtml b/application/modules/user/views/scripts/filter/addfilterentry.phtml
new file mode 100644
index 0000000..f7240c8
--- /dev/null
+++ b/application/modules/user/views/scripts/filter/addfilterentry.phtml
@@ -0,0 +1 @@
+<br /><br /><center>View script for controller <b>Filter</b> and script/action name <b>addfilterentry</b></center> \ No newline at end of file
diff --git a/application/modules/user/views/scripts/filter/editfilter.phtml b/application/modules/user/views/scripts/filter/editfilter.phtml
new file mode 100644
index 0000000..452a096
--- /dev/null
+++ b/application/modules/user/views/scripts/filter/editfilter.phtml
@@ -0,0 +1 @@
+<br /><br /><center>View script for controller <b>Filter</b> and script/action name <b>editfilter</b></center> \ No newline at end of file
diff --git a/application/modules/user/views/scripts/filter/editfilterentry.phtml b/application/modules/user/views/scripts/filter/editfilterentry.phtml
new file mode 100644
index 0000000..60a1f6f
--- /dev/null
+++ b/application/modules/user/views/scripts/filter/editfilterentry.phtml
@@ -0,0 +1 @@
+<br /><br /><center>View script for controller <b>Filter</b> and script/action name <b>editfilterentry</b></center> \ No newline at end of file
diff --git a/application/modules/user/views/scripts/filter/index.phtml b/application/modules/user/views/scripts/filter/index.phtml
index bace90f..94d77d7 100644
--- a/application/modules/user/views/scripts/filter/index.phtml
+++ b/application/modules/user/views/scripts/filter/index.phtml
@@ -1 +1,123 @@
-<br /><br /><center>View script for controller <b>Filter</b> and script/action name <b>index</b></center> \ No newline at end of file
+<h1>Filters</h1>
+<?php if($this->notification != ''){echo $this->notification;} ?>
+<?php echo $this->formButton('createconfig', 'Create Filter', array(
+ 'onclick' => 'self.location="/user/filter/addfilter"',
+ 'class' => 'addbutton'))?>
+
+<?php if ($this->filters): ?>
+ <table>
+ <tr>
+ <th>ID</th>
+ <th>Title</th>
+ <th>Description</th>
+ <th>Priority</th>
+ <th>TargetBootMenu</th>
+ <th colspan=3>Actions</th>
+ </tr>
+ <?php foreach ($this->filters as $filter): ?>
+ <tr class='entry'>
+ <td><?php echo $this->escape($filter->getID()) ?></td>
+ <td><?php echo $this->escape($filter->title) ?></td>
+ <td><?php echo $this->escape($filter->Description) ?></td>
+ <td><?php echo $this->escape($filter->priority) ?></td>
+ <td><?php echo $this->escape($filter->bootmenuID) ?></td>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'filter',
+ 'action' => 'editfilter',
+ 'filterID' => $filter->getID()
+ ),
+ 'default',
+ true) ?>"><img src='/media/img/edit.png' alt='Edit Filter'/></a></td>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'filter',
+ 'action' => 'removefilter',
+ 'filterID' => $filter->getID()
+ ),
+ 'default',
+ true) ?>"><img src='/media/img/delete.png' alt='Delete Filter'/></a></td>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'filter',
+ 'action' => 'addfilterentry',
+ 'filterID' => $filter->getID()
+ ),
+ 'default',
+ true) ?>"><img src='/media/img/add.png' alt='Add Filterentry'/></a></td>
+ </tr>
+ <?php
+ $fe = new Application_Model_FilterEntriesMapper();
+ # print_a($erg = $fe->findBy('filterID',$filter->getID()));
+ $erg = $fe->findBy('filterID',$filter->getID());
+ ?>
+ <?php if (count($erg)>0): ?>
+ <tr class=detail>
+ <td class=arrowtop>↳</td>
+ <td colspan=7>
+ <?php
+
+ ?>
+ <table>
+ <tr>
+ <th>Filtertype</th>
+ <th>Value</th>
+ <th>Value2</th>
+ <th colspan=2>Actions</th>
+ </tr>
+ <?php foreach ($erg as $filterentry): ?>
+
+ <tr>
+ <td><?php
+
+ $filter2 = new Application_Model_FilterTypeMapper();
+ $erg = new Application_Model_FilterType();
+ $filter2->find($filterentry['filtertypeID'],$erg);
+ //name zur ID finden
+ echo "[".$filterentry['filtertypeID']."] ";
+ echo $erg->getFiltertypename();
+
+
+ ?></td>
+ <td><?php echo $filterentry['filtervalue'];?></td>
+ <td><?php echo $filterentry['filtervalue2'];?></td>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'filter',
+ 'action' => 'editfilterentry',
+ 'filterentriesID' => $filterentry['filterentriesID']
+ ),
+ 'default',
+ true) ?>"><img src='/media/img/edit.png' alt='Edit Filterentry'/></a>
+ <td class='action'><a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'filter',
+ 'action' => 'removefilterentry',
+ 'filterentriesID' => $filterentry['filterentriesID']
+ ),
+ 'default',
+ true) ?>"><img src='/media/img/delete.png' alt='Delete Filterentry'/></a>
+ </tr>
+
+ <?php endforeach ?>
+ </table>
+ </td>
+ </tr>
+ <?php endif;?>
+ <?php endforeach ?>
+ </table>
+
+
+<?php else: ?>
+
+ <p>There are no filters to display.</p>
+
+<?php endif;?>
+<?php echo $this->formButton('createconfig', 'Test Filters', array(
+ 'onclick' => 'self.location="/user/filter/testevaluate"',
+ 'class' => 'addbutton'))?>
diff --git a/application/modules/user/views/scripts/filter/removefilter.phtml b/application/modules/user/views/scripts/filter/removefilter.phtml
new file mode 100644
index 0000000..a46f9ec
--- /dev/null
+++ b/application/modules/user/views/scripts/filter/removefilter.phtml
@@ -0,0 +1 @@
+<br /><br /><center>View script for controller <b>Filter</b> and script/action name <b>removefilter</b></center> \ No newline at end of file
diff --git a/application/modules/user/views/scripts/filter/removefilterentry.phtml b/application/modules/user/views/scripts/filter/removefilterentry.phtml
new file mode 100644
index 0000000..dc7189d
--- /dev/null
+++ b/application/modules/user/views/scripts/filter/removefilterentry.phtml
@@ -0,0 +1 @@
+<br /><br /><center>View script for controller <b>Filter</b> and script/action name <b>removefilterentry</b></center> \ No newline at end of file
diff --git a/application/modules/user/views/scripts/pool/index.phtml b/application/modules/user/views/scripts/pool/index.phtml
index 05b880a..e1c0d7c 100644
--- a/application/modules/user/views/scripts/pool/index.phtml
+++ b/application/modules/user/views/scripts/pool/index.phtml
@@ -1,4 +1,5 @@
<h1>Pools</h1>
+<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->formButton('createconfig', 'Create Pool', array(
'onclick' => 'self.location="/user/pool/createpool"',
'class' => 'addbutton'))?>
@@ -14,7 +15,7 @@
</tr>
<?php foreach ($this->pools as $pool): ?>
<tr class=entry>
- <td><?php echo $this->escape($pool->getID()) ?></td>
+ <!--<td><?php echo $this->escape($pool->getID()) ?></td>-->
<td><?php echo $this->escape($pool->getTitle()) ?></td>
<td><?php echo $this->escape($pool->getDescription()) ?></td>
<td><?php echo $this->escape($pool->getLocation()) ?></td>
@@ -56,7 +57,7 @@
<td colspan=6>
<table>
<tr>
- <th>ClientID</th>
+ <!-- <th>ClientID</th> -->
<th>Mac</th>
<th>Hardwarehash</th>
<th>Actions</th>
@@ -64,7 +65,7 @@
<?php
foreach ($clients as $client): ?>
<tr>
- <td><?php echo $client['clientID'];?></td>
+ <!-- <td><?php echo $client['clientID'];?></td> -->
<?php
$cli = new Application_Model_Client();
$clientMapper = new Application_Model_ClientMapper();
@@ -89,6 +90,8 @@
<?php endif;?>
<?php endforeach ?>
</table>
+
+<?php if (count($this->freeclients)>0): ?>
<h2>Free clients</h2>
<table >
<tr>
@@ -123,6 +126,7 @@ foreach ($this->freeclients as $client): ?>
</tr>
<?php endforeach ?>
</table>
+<?php endif;?>
<?php else: ?>
diff --git a/application/modules/user/views/scripts/pool/linkclient.phtml b/application/modules/user/views/scripts/pool/linkclient.phtml
index a2f9a6c..eebe111 100644
--- a/application/modules/user/views/scripts/pool/linkclient.phtml
+++ b/application/modules/user/views/scripts/pool/linkclient.phtml
@@ -1 +1,2 @@
-<br /><br /><center>View script for controller <b>Pool</b> and script/action name <b>linkpool</b></center> \ No newline at end of file
+<?php
+echo $this->poolclient;