summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authorSimon2011-03-08 16:40:30 +0100
committerSimon2011-03-08 16:40:30 +0100
commit90daca1a5ec239dfb7f44e54f1c22cf299181143 (patch)
treea8e91fd36e90e8a5dcedfcaeaa92099b5ca962f8 /application/views
parentsession hinzugefügt (diff)
downloadpbs2-90daca1a5ec239dfb7f44e54f1c22cf299181143.tar.gz
pbs2-90daca1a5ec239dfb7f44e54f1c22cf299181143.tar.xz
pbs2-90daca1a5ec239dfb7f44e54f1c22cf299181143.zip
create, edit, delete session - fehlt noch mit selectboxen && sql-data abgeändert
Diffstat (limited to 'application/views')
-rw-r--r--application/views/scripts/session/createsession.phtml6
-rw-r--r--application/views/scripts/session/editsession.phtml6
-rw-r--r--application/views/scripts/session/index.phtml49
3 files changed, 58 insertions, 3 deletions
diff --git a/application/views/scripts/session/createsession.phtml b/application/views/scripts/session/createsession.phtml
index 81c476e..11fe7ce 100644
--- a/application/views/scripts/session/createsession.phtml
+++ b/application/views/scripts/session/createsession.phtml
@@ -1 +1,5 @@
-<br /><br /><center>View script for controller <b>Session</b> and script/action name <b>createsession</b></center> \ No newline at end of file
+<h1>create session</h1>
+
+<?php
+echo $this->createsession;
+?>
diff --git a/application/views/scripts/session/editsession.phtml b/application/views/scripts/session/editsession.phtml
index 987a332..88fb273 100644
--- a/application/views/scripts/session/editsession.phtml
+++ b/application/views/scripts/session/editsession.phtml
@@ -1 +1,5 @@
-<br /><br /><center>View script for controller <b>Session</b> and script/action name <b>editsession</b></center> \ No newline at end of file
+<h1>edit session</h1>
+
+<?php
+echo $this->editsession;
+?>
diff --git a/application/views/scripts/session/index.phtml b/application/views/scripts/session/index.phtml
index fe3c2d4..d26e818 100644
--- a/application/views/scripts/session/index.phtml
+++ b/application/views/scripts/session/index.phtml
@@ -1 +1,48 @@
-<br /><br /><center>View script for controller <b>Session</b> and script/action name <b>index</b></center> \ No newline at end of file
+<h1>Session</h1>
+
+<p><a href="<?php echo $this->url(
+ array(
+ 'controller' => 'session',
+ 'action' => 'createsession'
+ ),
+ 'default',
+ true) ?>">create new session</a></p>
+
+<table border=1>
+<tr>
+ <th>SessionID</th>
+ <th>ClientID</th>
+ <th>BootosID</th>
+ <th>BootIsoID</th>
+ <th>Time</th>
+ <th>IP</th>
+ <th>IPv6</th>
+</tr>
+<?php foreach ($this->sessions as $session): ?>
+ <tr>
+ <td><?php echo $this->escape($session->getID()) ?></td>
+ <td><?php echo $this->escape($session->getClientID()) ?></td>
+ <td><?php echo $this->escape($session->getBootosID()) ?></td>
+ <td><?php echo $this->escape($session->getBootisoID()) ?></td>
+ <td><?php echo $this->escape($session->getTime()) ?></td>
+ <td><?php echo $this->escape($session->getIp()) ?></td>
+ <td><?php echo $this->escape($session->getIp6()) ?></td>
+ <td><a href="<?php echo $this->url(
+ array(
+ 'controller' => 'session',
+ 'action' => 'editsession',
+ 'sessionID' => $session->getID()
+ ),
+ 'default',
+ true) ?>">edit filter</a></td>
+ <td><a href="<?php echo $this->url(
+ array(
+ 'controller' => 'session',
+ 'action' => 'deletesession',
+ 'sessionID' => $session->getID()
+ ),
+ 'default',
+ true) ?>">delete filter</a></td>
+ </tr>
+<?php endforeach ?>
+</table>