summaryrefslogtreecommitdiffstats
path: root/application/modules/fbgui
diff options
context:
space:
mode:
authorSimon2011-04-27 10:34:24 +0200
committerSimon2011-04-27 10:34:24 +0200
commit0f80803af0947e51a877b683f1fd1ccf5f85a030 (patch)
tree5e176e7c2738b0b876de8faa8de1212e295b8d8b /application/modules/fbgui
parentBugFix Person... (diff)
downloadpbs2-0f80803af0947e51a877b683f1fd1ccf5f85a030.tar.gz
pbs2-0f80803af0947e51a877b683f1fd1ccf5f85a030.tar.xz
pbs2-0f80803af0947e51a877b683f1fd1ccf5f85a030.zip
Meldung bei 'kein Bootmenu'
Diffstat (limited to 'application/modules/fbgui')
-rw-r--r--application/modules/fbgui/controllers/IndexController.php9
-rw-r--r--application/modules/fbgui/views/scripts/index/index.phtml12
2 files changed, 19 insertions, 2 deletions
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php
index 1401be3..3f59873 100644
--- a/application/modules/fbgui/controllers/IndexController.php
+++ b/application/modules/fbgui/controllers/IndexController.php
@@ -143,6 +143,15 @@ class Fbgui_IndexController extends Zend_Controller_Action
// 'Your alphasessionID is '.$session->getAlphasessionID(),
// 'Your client is '.$session->getClientID(),
// 'there is no bootmenu for you');
+ if (!Zend_Auth::getInstance()->hasIdentity()) {
+ $this->view->loginmenu = true;
+ $pbsNotifier = new Pbs_Notifier();
+ $this->view->notification = $pbsNotifier->notify("There is no default BootMenu, please Login to get your BootMenu.",'info');
+ }
+ else{
+ $pbsNotifier = new Pbs_Notifier();
+ $this->view->notification = $pbsNotifier->notify("You have no BootMenu.",'info');
+ }
$this->view->nobootmenu = true;
}
}
diff --git a/application/modules/fbgui/views/scripts/index/index.phtml b/application/modules/fbgui/views/scripts/index/index.phtml
index 8a5f0e6..1e8994b 100644
--- a/application/modules/fbgui/views/scripts/index/index.phtml
+++ b/application/modules/fbgui/views/scripts/index/index.phtml
@@ -1,11 +1,19 @@
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php if($this->nobootmenu === true):?>
+ <?php if($this->loginmenu):?>
<div class="fbguilogin selectswitch" style=''>
<div style='font-size:16px;font-weight:bold;margin-bottom:5px;'>Login</div>
- <i>There is no BootMenu to show. Please login to get your BootMenu.</i>
+ <i>This is not your Bootmenu. Select this to get your own Bootmenu.</i>
<input type="hidden" class="id" value="login"/>
</div>
+ <?php else:?>
+ <div class="fbguilogin selectswitch" style=''>
+ <div style='font-size:16px;font-weight:bold;margin-bottom:5px;'>Logout</div>
+ <i>Select this to logout and get to the default BootMenu.</i>
+ <input type="hidden" class="id" value="logout"/>
+ </div>
+ <?php endif;?>
<script type="text/javascript">
var activeElement = 0;
$(document).ready(function(){
@@ -82,7 +90,7 @@
</script>
<input style="display:none;" type='text' id="selectedBootOs" />
<button onClick="start();" id='startbutton' class="fbguistart" style='font-size:16px;font-weight:bold;margin-bottom:5px;'>
- Login
+ <?php echo ($this->loginmenu)?'Login':'Logout'; ?>
</button>
<div class='clear'></div>
<?php endif; ?>