From 63f10832656c4e526486aa1b19ed6c2e66efb08a Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Tue, 5 Jul 2011 17:20:34 +0200 Subject: pool select --- application/controllers/EventController.php | 1 + application/views/scripts/event/index.phtml | 133 +++--- public/media/css/style.css | 607 ++++++++++++++-------------- 3 files changed, 382 insertions(+), 359 deletions(-) diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php index e62b228..dc25fbd 100644 --- a/application/controllers/EventController.php +++ b/application/controllers/EventController.php @@ -101,6 +101,7 @@ class EventController extends Zend_Controller_Action $params = $this->getRequest()->getParams(); $this->view->params = $params; $this->view->eventlist = $eventlist; + $this->view->poollist = $poollist; } public function addAction() diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml index e2564d1..cde9ce2 100644 --- a/application/views/scripts/event/index.phtml +++ b/application/views/scripts/event/index.phtml @@ -3,77 +3,92 @@ 'onclick' => 'self.location="/event/add/"', 'class' => 'addbutton')) ?> + +
+
eventlist)==0) - echo "You haven't events yet"; -else +if(count($this->eventlist)>0) { +?> + +eventlist as $pool => $poolEvents): if(count($poolEvents)==0) break; ?> -

+

\ No newline at end of file diff --git a/public/media/css/style.css b/public/media/css/style.css index 127c671..db88efa 100644 --- a/public/media/css/style.css +++ b/public/media/css/style.css @@ -1,604 +1,606 @@ body { - font-family: sans, arial; - width: 100%; - height: 100%; - margin: 0; - padding: 0; + font-family: sans, arial; + width: 100%; + height: 100%; + margin: 0; + padding: 0; } #logo { - height: 200px; - width: 200px; - background: url(/media/img/unilogo-200x66.png) bottom right no-repeat; + height: 200px; + width: 200px; + background: url(/media/img/unilogo-200x66.png) bottom right no-repeat; } #logo-bar-gray { - position: relative; - top: 116px; - left: 0px; - height: 4px; - width: 132px; - background-color: #cacac8; - /*border:1px solid red;*/ + position: relative; + top: 116px; + left: 0px; + height: 4px; + width: 132px; + background-color: #cacac8; + /*border:1px solid red;*/ } #logo-bar-red { - position: relative; - top: 0px; - left: 0px; - height: 4px; - width: 22px; - background-color: #c1002a; - /*border:1px solid red;*/ + position: relative; + top: 0px; + left: 0px; + height: 4px; + width: 22px; + background-color: #c1002a; + /*border:1px solid red;*/ } #sidepannel { - float: left; - font-size: 12px; + float: left; + font-size: 12px; } #footer { - margin: 0; - bottom: 0px; - border-top: 1px solid #ccc; - background-color: #004A99; - text-align: right; - font-size: 10.5px; - line-height: 12px; - color: #FFF; + margin: 0; + bottom: 0px; + border-top: 1px solid #ccc; + background-color: #004A99; + text-align: right; + font-size: 10.5px; + line-height: 12px; + color: #FFF; } + .footer { - text-align: right; - font-size: 10px; - font-family: Verdana, Arial; - padding: 5px 2px 5px 0px; + text-align: right; + font-size: 10px; + font-family: Verdana, Arial; + padding: 5px 2px 5px 0px; } #main { - margin-left: 200px; - width: 800px; + margin-left: 200px; + width: 800px; } #head-bg { - height: 116px; - background-color: #004A99; - + height: 116px; + background-color: #004A99; } #head { - height: 116px; - background: url(/media/img/siegel-93x55.png) bottom left no-repeat, - url(/media/img/sub-logo-small-transparent.png) bottom right no-repeat; + height: 116px; + background: url(/media/img/siegel-93x55.png) bottom left no-repeat, url(/media/img/sub-logo-small-transparent.png) bottom right no-repeat; } -#head h1,h2 { - color: white; +#head h1, h2 { + color: white; } #head h1 { - font-size: 22px; - padding-top: 30px; - padding-left: 54px; - padding-bottom: 4px; - margin: 0; + font-size: 22px; + padding-top: 30px; + padding-left: 54px; + padding-bottom: 4px; + margin: 0; } #head h2 { - font-size: 12px; - padding: 0; - margin: 0; - padding-left: 64px; + font-size: 12px; + padding: 0; + margin: 0; + padding-left: 64px; } #logo-bar-red { - position: relative; - top: 0px; - left: 0px; - height: 4px; - width: 22px; - background-color: #c1002a; - /*border:1px solid red;*/ + position: relative; + top: 0px; + left: 0px; + height: 4px; + width: 22px; + background-color: #c1002a; + /*border:1px solid red;*/ } #head-titlebar { - height: 22px; - line-height: 22px; - font-size: 13px; - padding-left: 10px; - background-color: #cacac8; + height: 22px; + line-height: 22px; + font-size: 13px; + padding-left: 10px; + background-color: #cacac8; } #content { - padding: 10px; - font-size: 13px; - min-height: 400px; - background-color: #F2F3F1; - overflow:auto; + padding: 10px; + font-size: 13px; + min-height: 400px; + background-color: #F2F3F1; + overflow: auto; } + #content img { - border:none; + border: none; } #debug { - text-align: left; - position: absolute; - top: 0px; - right: 0px; - width: 400px; + text-align: left; + position: absolute; + top: 0px; + right: 0px; + width: 400px; } #debug .v1 { - text-align: right; + text-align: right; } #debug a { - font-size: 10px; - margin-right: 5px; - color: #009; + font-size: 10px; + margin-right: 5px; + color: #009; } #debug a img { - border: none; + border: none; } /* ###################################################### */ .portletNavigationTree { - width: 160px; - padding: 0; - margin: 0 0 21px 0; - background-color: #ffffff; - border-bottom: none; - overflow: hidden; + width: 160px; + padding: 0; + margin: 0 0 21px 0; + background-color: #ffffff; + border-bottom: none; + overflow: hidden; } .portletNavigationTree .portletItem { - border-left: none; - border-right: none; + border-left: none; + border-right: none; } .portletNavigationTree dt { - display: none; + display: none; } -.portletNavigationTree ul,.portletNavigationTree ul li,.portletNavigationTree dd,.portletNavigationTree div - { - margin: 0; - padding: 0; +.portletNavigationTree ul, .portletNavigationTree ul li, .portletNavigationTree dd, .portletNavigationTree div { + margin: 0; + padding: 0; } .portletNavigationTree ul li { - margin: 0; - border-bottom: 1px solid #fff; - list-style: none; + margin: 0; + border-bottom: 1px solid #fff; + list-style: none; } .portletNavigationTree ul li.navTreeLastItem { - border-bottom: none; + border-bottom: none; } .portletNavigationTree li.navTreeItem a { - display: block; - width: auto; - padding: 3px 0; - margin: 0; - text-decoration: none; - color: #363534; - background: #c9cac8; + display: block; + width: auto; + padding: 3px 0; + margin: 0; + text-decoration: none; + color: #363534; + background: #c9cac8; } /* - navTreeLevel0 - */ .portletNavigationTree ul.navTreeLevel0 a { - padding-left: 4px; + padding-left: 4px; } .portletNavigationTree ul.navTreeLevel0 a:hover { - background: #004a99; - color: #fff; + background: #004a99; + color: #fff; } .portletNavigationTree ul.navTreeLevel0 a.navTreeCurrentItem { - background: #004a99 !important; - color: #fff; - margin-left: 0px; - padding-left: 4px; + background: #004a99 !important; + color: #fff; + margin-left: 0px; + padding-left: 4px; } .portletNavigationTree ul.navTreeLevel0 li { - background: url(/media/img/navigationLevel0.gif) repeat-y left top - #c9cac8; - padding-left: 4px; + background: url(/media/img/navigationLevel0.gif) repeat-y left top #c9cac8; + padding-left: 4px; } /* - navTreeLevel1 - */ .portletNavigationTree ul.navTreeLevel1 { - /* border-top: 1px solid #fff; */ - margin: 0 0 0 0px; + /* border-top: 1px solid #fff; */ + margin: 0 0 0 0px; } .portletNavigationTree ul.navTreeLevel1 a { - background: #d5d6d2; - color: #363534; - padding-left: 4px; + background: #d5d6d2; + color: #363534; + padding-left: 4px; } .portletNavigationTree ul.navTreeLevel1 a:hover { - background: #2a6ebb; - color: #fff; + background: #2a6ebb; + color: #fff; } .portletNavigationTree ul.navTreeLevel1 li { - background: url(/media/img/navigationLevel1.gif) repeat-y 0px top; + background: url(/media/img/navigationLevel1.gif) repeat-y 0px top; } .portletNavigationTree ul.navTreeLevel1 a.navTreeCurrentItem { - background: #2a6ebb !important; - color: #fff; - margin-left: 0px; + background: #2a6ebb !important; + color: #fff; + margin-left: 0px; } .portletNavigationTree ul.navTreeLevel1 li.navTreeLastItem { - border-bottom: none; + border-bottom: none; } /* - navTreeLevel2 - */ .portletNavigationTree ul.navTreeLevel2 { - border-top: 1px solid #fff; - margin: 0; + border-top: 1px solid #fff; + margin: 0; } .portletNavigationTree ul.navTreeLevel2 a { - background: #e0e1dd; - margin-left: 0px; - padding-left: 4px; + background: #e0e1dd; + margin-left: 0px; + padding-left: 4px; } .portletNavigationTree ul.navTreeLevel2 a:hover { - background: #6f9ad3; - color: #fff; + background: #6f9ad3; + color: #fff; } .portletNavigationTree ul.navTreeLevel2 li { - background: url(/media/img/navigationLevel2.gif) repeat-y left top; + background: url(/media/img/navigationLevel2.gif) repeat-y left top; } .portletNavigationTree ul.navTreeLevel2 li.navTreeLastItem { - border: none; + border: none; } .portletNavigationTree ul.navTreeLevel2 a.navTreeCurrentItem { - background: #6f9ad3 !important; - color: #fff !important; + background: #6f9ad3 !important; + color: #fff !important; } .portletNavigationTree ul.navTreeLevel2 a.navTreeItemInPath { - background: #6f9ad3 !important; - color: #fff !important; + background: #6f9ad3 !important; + color: #fff !important; } /* ################################################### */ #content h1 { - display: block; - text-align: center; - margin: 5px auto; + display: block; + text-align: center; + margin: 5px auto; } #content h2 { - display: block; - text-align: center; - color: #000; + display: block; + text-align: center; + color: #000; } table { - width: 100%; + width: 100%; } th { - font-size: 12px; - border: 1px solid #999; + font-size: 12px; + border: 1px solid #999; } -th .code{ - font-size: 9px; - color:#666; - display:none; + +th .code { + font-size: 9px; + color: #666; + display: none; } td { - font-size: 12px; - border: 1px solid #CCC; + font-size: 12px; + border: 1px solid #CCC; } div.searchsub { - margin-left:10px; - font-size:10px; + margin-left: 10px; + font-size: 10px; } -div.dsf{ - cursor:pointer; + +div.dsf { + cursor: pointer; } -.updatebutton,.addbutton { - float: right; +.updatebutton, .addbutton { + float: right; } .updatebutton:before { - content: url(/media/img/update.png) ' '; + content: url(/media/img/update.png) ' '; } .addbutton:before { - content: url(/media/img/create.png) ' '; + content: url(/media/img/create.png) ' '; } + .searchbutton:before { - content: url(/media/img/search.png) ' '; + content: url(/media/img/search.png) ' '; } + .keyboardbutton:before { - content: url(/media/img/keyboard.png) ' '; + content: url(/media/img/keyboard.png) ' '; } .rightbutton { - float: right; + float: right; } .leftbutton { - float: left; + float: left; } .monospace { - font-family: Courier New, monospace; + font-family: Courier New, monospace; } dl.zend_form dt { - width: 180px; - float: left; - font-family: verdana, arial; - font-size: 12px; + width: 180px; + float: left; + font-family: verdana, arial; + font-size: 12px; } dl.zend_form dd { - margin-left: 120px; + margin-left: 120px; } dl.zend_form dd * { - font-size: 12px; + font-size: 12px; } -input[disabled], input[readonly], select[disabled], select[readonly], checkbox[disabled], checkbox[readonly], textarea[disabled], textarea[readonly] { - background-color: #EEE; - cursor: default; +input[disabled], input[readonly], select[disabled], select[readonly], checkbox[disabled], checkbox[readonly], textarea[disabled], textarea[readonly] { + background-color: #EEE; + cursor: default; } tr.entry { - background-color: #FFF5CC; + background-color: #FFF5CC; } tr.entry td { - padding-left: 3px; + padding-left: 3px; } -tr.detail>td { - border: none; +tr.detail > td { + border: none; } td.arrowtop { - vertical-align: top; - text-align: center; + vertical-align: top; + text-align: center; } tr.detail table tr td { - background-color: #E2EFE1; - padding-left: 3px; + background-color: #E2EFE1; + padding-left: 3px; } tr td.action { - text-align: center; - width: 20px; + text-align: center; + width: 20px; } td.action img { - border: none; + border: none; } .clear { - clear: both; + clear: both; } .bold { - font-weight: bold; + font-weight: bold; } - /* boxes */ -.okbox,.warningbox,.errorbox,.infobox { - margin: 10px 0px; - padding: 10px 10px 10px 40px; - border-width: 1px; - color: #555; +.okbox, .warningbox, .errorbox, .infobox { + margin: 10px 0px; + padding: 10px 10px 10px 40px; + border-width: 1px; + color: #555; } -.checkbox a,.warningbox a,.errorbox a { - color: #555; +.checkbox a, .warningbox a, .errorbox a { + color: #555; } -.infobox a { - color: #777; +.infobox a { + color: #777; } .warningbox { - border: 1px solid #CCC; - background: #FFFFAA url('/media/img/box_warning.png') no-repeat; - background-position: 10px center; + border: 1px solid #CCC; + background: #FFFFAA url('/media/img/box_warning.png') no-repeat; + background-position: 10px center; } .errorbox { - border: 1px solid #990000; - background: #FF9999 url('/media/img/box_error.png') no-repeat; - background-position: 10px center; + border: 1px solid #990000; + background: #FF9999 url('/media/img/box_error.png') no-repeat; + background-position: 10px center; } .okbox { - border: 1px solid #339933; - background: #BBFFBB url('/media/img/box_check.png') no-repeat; - background-position: 10px center; + border: 1px solid #339933; + background: #BBFFBB url('/media/img/box_check.png') no-repeat; + background-position: 10px center; } .infobox { - border: 1px solid #CCC; - background: #FFFFFF url('/media/img/box_info.png') no-repeat; - background-position: 10px center; - color: #777; + border: 1px solid #CCC; + background: #FFFFFF url('/media/img/box_info.png') no-repeat; + background-position: 10px center; + color: #777; } + /* Pagination */ .pbs_pagination { - display:block; - text-align:center; - height:22px; - line-height:21px; - padding-top:3px; - font-family:Arial, Helvetica, sans-serif; - font-size:12px; - font-weight:normal; -} - -.pbs_pagination a:link, .pbs_pagination a:visited{ - padding:7px; - padding-top:2px; - padding-bottom:2px; - border:1px solid #EBEBEB; - margin-left:10px; - text-decoration:none; - background-color:#FFF; - color:#0072bc; - width:22px; - font-weight:normal; + display: block; + text-align: center; + height: 22px; + line-height: 21px; + padding-top: 3px; + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; + font-weight: normal; +} + +.pbs_pagination a:link, .pbs_pagination a:visited { + padding: 7px; + padding-top: 2px; + padding-bottom: 2px; + border: 1px solid #EBEBEB; + margin-left: 10px; + text-decoration: none; + background-color: #FFF; + color: #0072bc; + width: 22px; + font-weight: normal; } .pbs_pagination a:hover { - background-color:#DDEEFF; - border:1px solid #BBDDFF; - color:#0072BC; + background-color: #DDEEFF; + border: 1px solid #BBDDFF; + color: #0072BC; } .pbs_pagination .active { - padding:7px; - padding-top:2px; - padding-bottom:2px; - border:1px solid #BBDDFF; - margin-left:10px; - text-decoration:none; - background-color:#DDEEFF; - color:#0072BC; - cursor:default; + padding: 7px; + padding-top: 2px; + padding-bottom: 2px; + border: 1px solid #BBDDFF; + margin-left: 10px; + text-decoration: none; + background-color: #DDEEFF; + color: #0072BC; + cursor: default; } .pbs_pagination .disabled { - padding:7px; - padding-top:2px; - padding-bottom:2px; - border:1px solid #EBEBEB; - margin-left:10px; - text-decoration:none; - background-color:#FFF; - color:#D7D7D7; - cursor:default; + padding: 7px; + padding-top: 2px; + padding-bottom: 2px; + border: 1px solid #EBEBEB; + margin-left: 10px; + text-decoration: none; + background-color: #FFF; + color: #D7D7D7; + cursor: default; } table.json td { - border-style: none !important; + border-style: none !important; } -.highlight { - background-color: yellow; +.highlight { + background-color: yellow; } .helpericon { - vertical-align:text-top; + vertical-align: text-top; } .helper { - display: none; + display: none; } - .dashboard ul { - padding: 0px; + padding: 0px; } .dashboard li { - list-style: none; - border: 1px solid black; - -moz-border-radius: 1em 4em 1em 4em; - border-radius: 1em 4em 1em 4em; - padding: 10px 40px; - margin: 10px; - background-color: #FFF; + list-style: none; + border: 1px solid black; + -moz-border-radius: 1em 4em 1em 4em; + border-radius: 1em 4em 1em 4em; + padding: 10px 40px; + margin: 10px; + background-color: #FFF; } .dashboard a { - color: #000; - text-decoration: none; + color: #000; + text-decoration: none; } .bottomimg { - text-align: center; + text-align: center; } -fieldset legend{ - font-weight: bold; - font-size:14px; +fieldset legend { + font-weight: bold; + font-size: 14px; } + fieldset { - border:none; - border-top:1px solid black; + border: none; + border-top: 1px solid black; } #rights-element dl fieldset dt { - width: 325px; + width: 325px; } #rights-element dl fieldset { - margin-bottom: 10px; - width: 350px; + margin-bottom: 10px; + width: 350px; } #fieldset-rights { - margin-top: 10px; - border: 0px; - margin-left: 0; - padding: 0; + margin-top: 10px; + border: 0px; + margin-left: 0; + padding: 0; } #fieldset-rights legend { - padding-left: 0; + padding-left: 0; } #fieldset-rights dl legend { - padding-left: 2px; + padding-left: 2px; } #rights-element dd { - margin-left: 0px; + margin-left: 0px; } #rights-element { - margin-left: 0px; + margin-left: 0px; } #rights-label { - width: 0px; + width: 0px; } /* */ .listelement { - clear: both; - padding-top: 10px; - margin: 10px 0px; + clear: both; + padding-top: 10px; + margin: 10px 0px; } .listelement .element { - border: 1px solid black; - margin: 5px 0px; - padding: 5px; - -moz-border-radius: 3px; - border-radius: 3px; - background-color: white; + border: 1px solid black; + margin: 5px 0px; + padding: 5px; + -moz-border-radius: 3px; + border-radius: 3px; + background-color: white; } .listelement .element:nth-child(even) { @@ -740,6 +742,11 @@ fieldset { font-weight: normal; } +div.hidden { + visibility: hidden; +} + + /* css for timepicker */ .ui-timepicker-div .ui-widget-header{ margin-bottom: 8px; } .ui-timepicker-div dl{ text-align: left; } -- cgit v1.2.3-55-g7522