summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/session
diff options
context:
space:
mode:
authorSimon2011-04-06 17:36:56 +0200
committerSimon2011-04-06 17:36:56 +0200
commit6320fa9c2e21a8a5b87876e3e1fd65f0de402c45 (patch)
treed7a7018eb8663fe178cdb5d6e497b55c39b24adf /application/modules/user/views/scripts/session
parentsuche gefixt (diff)
downloadpbs2-6320fa9c2e21a8a5b87876e3e1fd65f0de402c45.tar.gz
pbs2-6320fa9c2e21a8a5b87876e3e1fd65f0de402c45.tar.xz
pbs2-6320fa9c2e21a8a5b87876e3e1fd65f0de402c45.zip
Layout/Ansicht geändert, BootIso, BootOs,Client,Config,Preboot & Session
Diffstat (limited to 'application/modules/user/views/scripts/session')
-rw-r--r--application/modules/user/views/scripts/session/index.phtml85
1 files changed, 57 insertions, 28 deletions
diff --git a/application/modules/user/views/scripts/session/index.phtml b/application/modules/user/views/scripts/session/index.phtml
index 32c8e04..a5ed851 100644
--- a/application/modules/user/views/scripts/session/index.phtml
+++ b/application/modules/user/views/scripts/session/index.phtml
@@ -1,31 +1,60 @@
<h1>Session</h1>
<?php echo $this->searchform; ?>
-<table>
-<tr>
- <th>ID <span class='code'>sessionID</span></th>
- <th>alphasessionID <span class='code'>alphasessionID</span></th>
- <th>ClientID <span class='code'>clientID</span></th>
- <th>BootmenuentryID <span class='code'>bootmenyentryID</span></th>
- <th>BootOsID <span class='code'>bootosID</span></th>
- <th>BootIsoID <span class='code'>bootisoID</span></th>
- <th>MembershipID <span class='code'>membershipID</span></th>
- <th>Time <span class='code'>time</span></th>
- <th>IP <span class='code'>ip</span></th>
- <th>IPv6 <span class='code'>ip6</span></th>
-</tr>
-<?php foreach ($this->sessions as $session): ?>
- <tr class=entry>
- <td><?php echo $this->escape($session->getID()) ?></td>
- <td><?php echo $this->escape($session->getAlphasessionID()) ?></td>
- <td><?php echo $this->escape($session->getClientID()) ?></td>
- <td><?php echo $this->escape($session->getBootmenuentryID()) ?></td>
- <td><?php echo $this->escape($session->getBootosID()) ?></td>
- <td><?php echo $this->escape($session->getBootisoID()) ?></td>
- <td><?php echo $this->escape($session->getMembershipID()) ?></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>
- </tr>
-<?php endforeach ?>
-</table>
+<div class='searchvars'>
+ <div class='head'>Available searchfilter:</div>
+ <div class='code'>sessionID</div>
+ <div class='code'>alphasessionID</div>
+ <div class='code'>clientID</div>
+ <div class='code'>bootmenyentryID</div>
+ <div class='code'>bootosID</div>
+ <div class='code'>bootisoID</div>
+ <div class='code'>membershipID</div>
+ <div class='code'>time</div>
+ <div class='code'>ip</div>
+ <div class='code'>ip6</div>
+</div>
+
+<div class='listelement'>
+ <?php if(count($this->sessions)==0)
+ echo "There are no Sessions to display." ?>
+ <?php foreach ($this->sessions as $session): ?>
+ <div class='element'>
+ <div class='number'><?php echo $this->escape($session->getID()) ?></div>
+ <div class='content'>
+ <div class='title'>Alphasession <?php echo $this->escape($session->getAlphasessionID()) ?></div>
+ <div class='subtitle'><?php echo $this->escape($session->getTime()) ?></div>
+ <div class='details dispnone'>
+ <label>ClientID</label>
+ <div class='item'><?php echo $this->escape($session->getClientID()) ?>&nbsp;</div>
+ <label>BootmenuentryID</label>
+ <div class='item'><?php echo $this->escape($session->getBootmenuentryID()) ?>&nbsp;</div>
+ <label>BootosID</label>
+ <div class='item'><?php echo $this->escape($session->getBootosID()) ?>&nbsp;</div>
+ <label>BootIsoID</label>
+ <div class='item'><?php echo $this->escape($session->getBootisoID()) ?>&nbsp;</div>
+ <label>MembershipID</label>
+ <div class='item'><?php echo $this->escape($session->getMembershipID()) ?>&nbsp;</div>
+ <label>IP</label>
+ <div class='item'><?php echo $this->escape($session->getIp()) ?>&nbsp;</div>
+ <label>IP6</label>
+ <div class='item'><?php echo $this->escape($session->getIp6()) ?>&nbsp;</div>
+ </div>
+ </div>
+ <div class='clear'></div>
+ </div>
+ <?php endforeach ?>
+</div>
+
<?php echo $this->pagination; ?>
+
+<script>
+$(document).ready(function(){
+ if($('.element').find('.dispnone').length >= 1){
+ $(this).find('.title').css('cursor','pointer');
+
+ $('.title').click(function(){
+ $(this).parent().find('.dispnone').toggle();
+ });
+ }
+});
+</script>