From fdfd52073ab48324e0c734faef7b862e7f7172f4 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 15 Apr 2011 14:02:19 +0200 Subject: Ticket #210 - FBgui mit Tastatur bedienbar, inklusive Login --- .../modules/fbgui/controllers/IndexController.php | 22 ++++++----- .../modules/fbgui/views/scripts/auth/login.phtml | 7 +++- .../modules/fbgui/views/scripts/index/index.phtml | 43 +++++++++++++++------- .../modules/fbgui/views/scripts/index/start.phtml | 1 - .../views/scripts/person/selectmembership.phtml | 7 +++- 5 files changed, 53 insertions(+), 27 deletions(-) (limited to 'application') diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php index aba88db..119c810 100644 --- a/application/modules/fbgui/controllers/IndexController.php +++ b/application/modules/fbgui/controllers/IndexController.php @@ -25,11 +25,9 @@ class Fbgui_IndexController extends Zend_Controller_Action { $mySession = new Zend_Session_Namespace('pbs'); - if(!isset($mySession->postdata)) + if(count($mySession->postdata)<=0) $mySession->postdata = $_POST; - print_a($mySession->postdata); - $d = new Pbs_Debug(); $d->debug(array('FBGuiIndexController',$_SERVER['REMOTE_ADDR'],implode("\t",$mySession->postdata))); @@ -104,14 +102,18 @@ class Fbgui_IndexController extends Zend_Controller_Action $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper(); $res = $bootmenuentriesMapper->findBy(array('bootmenuID' => $bootmenuID),false); $this->view->entries = $res; - if (!Zend_Auth::getInstance()->hasIdentity()) { - #echo "Goto Login to get your Bootmenu"; - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify("This is not your Bootmenu. You have to login to get your own Bootmenu.
Click here to login",'info'); + #print_a(Zend_Auth::getInstance()->hasIdentity(),$bm->MembershipID ,$this->membership->getID()); + if (!Zend_Auth::getInstance()->hasIdentity()) { + #$pbsNotifier = new Pbs_Notifier(); + #$this->view->notification = $pbsNotifier->notify("This is not your Bootmenu. You have to login to get your own Bootmenu.
Click here to login",'info'); + $this->view->loginmenu = true; } - if(Zend_Auth::getInstance()->hasIdentity() && $bm->MembershipID != $this->membership->getID() ){ + if(Zend_Auth::getInstance()->hasIdentity()){ + if($bm->MembershipID != '' && $bm->MembershipID == $this->membership->getID()){} + else{ $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify("This is not your Bootmenu. There is currently a BootMenu with a higher priority active.",'info'); + $this->view->notification = $pbsNotifier->notify("This is not your Bootmenu. There is currently a BootMenu with a higher priority active.",'info'); + } } } else{ @@ -129,7 +131,7 @@ class Fbgui_IndexController extends Zend_Controller_Action } } else{ - $this->_redirect('/fbgui/index/error/serialresult/noserial'); + #$this->_redirect('/fbgui/index/error/serialresult/noserial'); } } diff --git a/application/modules/fbgui/views/scripts/auth/login.phtml b/application/modules/fbgui/views/scripts/auth/login.phtml index 7bd6183..09724d4 100644 --- a/application/modules/fbgui/views/scripts/auth/login.phtml +++ b/application/modules/fbgui/views/scripts/auth/login.phtml @@ -3,4 +3,9 @@ $this->loginForm->setAction($this->url()); echo $this->loginForm; ?> -show/hide on-screen keyboard + + diff --git a/application/modules/fbgui/views/scripts/index/index.phtml b/application/modules/fbgui/views/scripts/index/index.phtml index d5fc8f6..45448dd 100644 --- a/application/modules/fbgui/views/scripts/index/index.phtml +++ b/application/modules/fbgui/views/scripts/index/index.phtml @@ -1,18 +1,25 @@ notification != ''){echo $this->notification;} ?> +loginmenu):?> +
+
Login
+ This is not your Bootmenu. Select this to get your own Bootmenu. + +
+ entries)):?>

title;?>

- - entries as $entry):?> +
+ + entries as $k=>$entry):?> find($entry->getBootosID()); - + $bootos = $bootosMapper->find($entry->getBootosID()); ?> -
notificationbot != ''){echo $this->notificationbot;} ?> + + diff --git a/application/modules/fbgui/views/scripts/index/start.phtml b/application/modules/fbgui/views/scripts/index/start.phtml index 6737fc5..e946530 100644 --- a/application/modules/fbgui/views/scripts/index/start.phtml +++ b/application/modules/fbgui/views/scripts/index/start.phtml @@ -109,7 +109,6 @@ function updateProgress(p, s, u){
-back

Downloading

diff --git a/application/modules/fbgui/views/scripts/person/selectmembership.phtml b/application/modules/fbgui/views/scripts/person/selectmembership.phtml index 5f7e5bf..e226b82 100644 --- a/application/modules/fbgui/views/scripts/person/selectmembership.phtml +++ b/application/modules/fbgui/views/scripts/person/selectmembership.phtml @@ -2,4 +2,9 @@ membershipSelectForm->setAction($this->url()); echo $this->membershipSelectForm; -?> \ No newline at end of file +?> + -- cgit v1.2.3-55-g7522