From cf192ca9b5190b5aade9d6ad195127984780f7de Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Wed, 7 Sep 2011 12:31:50 +0200 Subject: verschiedene Änderungen im AddForm --- public/media/css/style.css | 1162 +++++++++++++++++++++----------------------- public/media/js/script.js | 146 ++++-- 2 files changed, 655 insertions(+), 653 deletions(-) (limited to 'public') diff --git a/public/media/css/style.css b/public/media/css/style.css index d6d488a..108fc1a 100644 --- a/public/media/css/style.css +++ b/public/media/css/style.css @@ -1,606 +1,610 @@ 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; + 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; + 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: 205px; + 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; + 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; + 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; + 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) { @@ -614,7 +618,7 @@ fieldset { .listelement .element .number { font-size: 28px; - clear:left; + clear: left; float: left; padding: 0px 5px 0px 0px; width: 40px; @@ -622,9 +626,10 @@ fieldset { color: #CCC; font-style: italic; font-weight: bold; - line-height:26px; + line-height: 26px; } -.listelement .element .smallnumber{ + +.listelement .element .smallnumber { font-size: 10px; float: left; padding: 0px 5px 0px 0px; @@ -632,8 +637,9 @@ fieldset { text-align: center; color: #CCC; font-weight: bold; - line-height:12px; + line-height: 12px; } + .listelement .element .content { margin-left: 50px; } @@ -746,13 +752,26 @@ div.hidden { visibility: hidden; } - /* css for timepicker */ -.ui-timepicker-div .ui-widget-header{ margin-bottom: 8px; } -.ui-timepicker-div dl{ text-align: left; } -.ui-timepicker-div dl dt{ height: 25px; } -.ui-timepicker-div dl dd{ margin: -25px 0 10px 65px; } -.ui-timepicker-div td { font-size: 90%; } +.ui-timepicker-div .ui-widget-header { + margin-bottom: 8px; +} + +.ui-timepicker-div dl { + text-align: left; +} + +.ui-timepicker-div dl dt { + height: 25px; +} + +.ui-timepicker-div dl dd { + margin: -25px 0 10px 65px; +} + +.ui-timepicker-div td { + font-size: 90%; +} /* * FullCalendar v1.5 Stylesheet @@ -764,162 +783,143 @@ div.hidden { * Date: Sat Mar 19 18:59:37 2011 -0700 * */ - - .fc { direction: ltr; text-align: left; - } - +} + .fc table { border-collapse: collapse; border-spacing: 0; - } - -html .fc, -.fc table { +} + +html .fc,.fc table { font-size: 1em; - } - -.fc td, -.fc th { +} + +.fc td,.fc th { padding: 0; vertical-align: top; - } - - +} /* Header ------------------------------------------------------------------------*/ - .fc-header td { white-space: nowrap; - } +} .fc-header-left { width: 25%; text-align: left; - } - +} + .fc-header-center { text-align: center; - } - +} + .fc-header-right { width: 25%; text-align: right; - } - +} + .fc-header-title { display: inline-block; vertical-align: top; - } - +} + .fc-header-title h2 { margin-top: 0; white-space: nowrap; - } - +} + .fc .fc-header-space { padding-left: 10px; - } - +} + .fc-header .fc-button { margin-bottom: 1em; vertical-align: top; - } - -/* buttons edges butting together */ +} +/* buttons edges butting together */ .fc-header .fc-button { margin-right: -1px; - } - +} + .fc-header .fc-corner-right { margin-right: 1px; /* back to normal */ - } - +} + .fc-header .ui-corner-right { margin-right: 0; /* back to normal */ - } - +} + /* button layering (for border precedence) */ - -.fc-header .fc-state-hover, -.fc-header .ui-state-hover { +.fc-header .fc-state-hover,.fc-header .ui-state-hover { z-index: 2; - } - +} + .fc-header .fc-state-down { z-index: 3; - } +} -.fc-header .fc-state-active, -.fc-header .ui-state-active { +.fc-header .fc-state-active,.fc-header .ui-state-active { z-index: 4; - } - - - +} + /* Content ------------------------------------------------------------------------*/ - .fc-content { clear: both; - } - +} + .fc-view { width: 100%; /* needed for view switching (when view is absolute) */ overflow: hidden; - } - - +} /* Cell Styles ------------------------------------------------------------------------*/ - -.fc-widget-header, /* , usually */ -.fc-widget-content { /* , usually */ +.fc-widget-header, /* , usually */ .fc-widget-content { + /* , usually */ border: 1px solid #ccc; - } - -.fc-state-highlight { /* today cell */ /* TODO: add .fc-today to */ +} + +.fc-state-highlight { /* today cell */ + /* TODO: add .fc-today to */ background: #ffc; - } - +} + .fc-cell-overlay { /* semi-transparent rectangle while dragging */ background: #9cf; opacity: .2; - filter: alpha(opacity=20); /* for IE */ - } - - + filter: alpha(opacity = 20); /* for IE */ +} /* Buttons ------------------------------------------------------------------------*/ - .fc-button { position: relative; display: inline-block; cursor: pointer; - } - +} + .fc-state-default { /* non-theme */ border-style: solid; border-width: 1px 0; - } - +} + .fc-button-inner { position: relative; float: left; overflow: hidden; - } - +} + .fc-state-default .fc-button-inner { /* non-theme */ border-style: solid; border-width: 0 1px; - } - +} + .fc-button-content { position: relative; float: left; @@ -927,32 +927,30 @@ html .fc, line-height: 1.9em; padding: 0 .6em; white-space: nowrap; - } - +} + /* icon (for jquery ui) */ - .fc-button-content .fc-icon-wrap { position: relative; float: left; top: 50%; - } - +} + .fc-button-content .ui-icon { position: relative; float: left; - margin-top: -50%; - *margin-top: 0; - *top: -50%; - } - + margin-top: -50%; * + margin-top: 0; * + top: -50%; +} + /* gloss effect */ - .fc-state-default .fc-button-effect { position: absolute; top: 50%; left: 0; - } - +} + .fc-state-default .fc-button-effect span { position: absolute; top: -100px; @@ -964,277 +962,241 @@ html .fc, border-color: #fff; background: #444; opacity: .09; - filter: alpha(opacity=9); - } - + filter: alpha(opacity = 9); +} + /* button states (determines colors) */ - -.fc-state-default, -.fc-state-default .fc-button-inner { +.fc-state-default,.fc-state-default .fc-button-inner { border-style: solid; border-color: #ccc #bbb #aaa; background: #F3F3F3; color: #000; - } - -.fc-state-hover, -.fc-state-hover .fc-button-inner { +} + +.fc-state-hover,.fc-state-hover .fc-button-inner { border-color: #999; - } - -.fc-state-down, -.fc-state-down .fc-button-inner { +} + +.fc-state-down,.fc-state-down .fc-button-inner { border-color: #555; background: #777; - } - -.fc-state-active, -.fc-state-active .fc-button-inner { +} + +.fc-state-active,.fc-state-active .fc-button-inner { border-color: #555; background: #777; color: #fff; - } - -.fc-state-disabled, -.fc-state-disabled .fc-button-inner { +} + +.fc-state-disabled,.fc-state-disabled .fc-button-inner { color: #999; border-color: #ddd; - } - +} + .fc-state-disabled .fc-button-effect { display: none; - } - - +} /* Global Event Styles ------------------------------------------------------------------------*/ - .fc-event { border-style: solid; border-width: 0; font-size: .85em; cursor: default; - } - -a.fc-event, -.fc-event-draggable { +} + +a.fc-event,.fc-event-draggable { cursor: pointer; - } - +} + a.fc-event { text-decoration: none; - } - +} + .fc-rtl .fc-event { text-align: right; - } - +} + .fc-event-skin { - border-color: #36c; /* default BORDER color */ + border-color: #36c; /* default BORDER color */ background-color: #36c; /* default BACKGROUND color */ - color: #fff; /* default TEXT color */ - } - + color: #fff; /* default TEXT color */ +} + .fc-event-inner { position: relative; width: 100%; height: 100%; border-style: solid; border-width: 0; - } - -.fc-event-time, -.fc-event-title { +} + +.fc-event-time,.fc-event-title { padding: 0 1px; - } - -.fc .ui-resizable-handle { /*** TODO: don't use ui-resizable anymore, change class ***/ +} + +.fc .ui-resizable-handle { + /*** TODO: don't use ui-resizable anymore, change class ***/ display: block; position: absolute; z-index: 99999; overflow: hidden; /* hacky spaces (IE6/7) */ - font-size: 300%; /* */ + font-size: 300%; /* */ line-height: 50%; /* */ - } - - - +} + /* Horizontal Events ------------------------------------------------------------------------*/ - .fc-event-hori { border-width: 1px 0; margin-bottom: 1px; - } - +} + /* resizable */ - .fc-event-hori .ui-resizable-e { - top: 0 !important; /* importants override pre jquery ui 1.7 styles */ - right: -3px !important; - width: 7px !important; - height: 100% !important; + top: 0 !important; /* importants override pre jquery ui 1.7 styles */ + right: -3px !important; + width: 7px !important; + height: 100% !important; cursor: e-resize; - } - +} + .fc-event-hori .ui-resizable-w { - top: 0 !important; - left: -3px !important; - width: 7px !important; - height: 100% !important; + top: 0 !important; + left: -3px !important; + width: 7px !important; + height: 100% !important; cursor: w-resize; - } - +} + .fc-event-hori .ui-resizable-handle { _padding-bottom: 14px; /* IE6 had 0 height */ - } - - - +} + /* Fake Rounded Corners (for buttons and events) ------------------------------------------------------------*/ - .fc-corner-left { margin-left: 1px; - } - -.fc-corner-left .fc-button-inner, -.fc-corner-left .fc-event-inner { +} + +.fc-corner-left .fc-button-inner,.fc-corner-left .fc-event-inner { margin-left: -1px; - } - +} + .fc-corner-right { margin-right: 1px; - } - -.fc-corner-right .fc-button-inner, -.fc-corner-right .fc-event-inner { +} + +.fc-corner-right .fc-button-inner,.fc-corner-right .fc-event-inner { margin-right: -1px; - } - +} + .fc-corner-top { margin-top: 1px; - } - +} + .fc-corner-top .fc-event-inner { margin-top: -1px; - } - +} + .fc-corner-bottom { margin-bottom: 1px; - } - +} + .fc-corner-bottom .fc-event-inner { margin-bottom: -1px; - } - - - +} + /* Fake Rounded Corners SPECIFICALLY FOR EVENTS -----------------------------------------------------------------*/ - .fc-corner-left .fc-event-inner { border-left-width: 1px; - } - +} + .fc-corner-right .fc-event-inner { border-right-width: 1px; - } - +} + .fc-corner-top .fc-event-inner { border-top-width: 1px; - } - +} + .fc-corner-bottom .fc-event-inner { border-bottom-width: 1px; - } - - - +} + /* Reusable Separate-border Table ------------------------------------------------------------*/ - table.fc-border-separate { border-collapse: separate; - } - -.fc-border-separate th, -.fc-border-separate td { +} + +.fc-border-separate th,.fc-border-separate td { border-width: 1px 0 0 1px; - } - -.fc-border-separate th.fc-last, -.fc-border-separate td.fc-last { +} + +.fc-border-separate th.fc-last,.fc-border-separate td.fc-last { border-right-width: 1px; - } - -.fc-border-separate tr.fc-last th, -.fc-border-separate tr.fc-last td { +} + +.fc-border-separate tr.fc-last th,.fc-border-separate tr.fc-last td { border-bottom-width: 1px; - } - -.fc-border-separate tbody tr.fc-first td, -.fc-border-separate tbody tr.fc-first th { +} + +.fc-border-separate tbody tr.fc-first td,.fc-border-separate tbody tr.fc-first th + { border-top-width: 0; - } - - +} /* Month View, Basic Week View, Basic Day View ------------------------------------------------------------------------*/ - .fc-grid th { text-align: center; - } - +} + .fc-grid .fc-day-number { float: right; padding: 0 2px; - } - +} + .fc-grid .fc-other-month .fc-day-number { opacity: 0.3; - filter: alpha(opacity=30); /* for IE */ + filter: alpha(opacity = 30); /* for IE */ /* opacity with small font can sometimes look too faded might want to set the 'color' property instead making day-numbers bold also fixes the problem */ - } - +} + .fc-grid .fc-day-content { clear: both; padding: 2px 2px 1px; /* distance between events and day edges */ - } - +} + /* event styles */ - .fc-grid .fc-event-time { font-weight: bold; - } - +} + /* right-to-left */ - .fc-rtl .fc-grid .fc-day-number { float: left; - } - +} + .fc-rtl .fc-grid .fc-event-time { float: right; - } - - +} /* Agenda Week View, Agenda Day View ------------------------------------------------------------------------*/ - .fc-agenda table { border-collapse: separate; - } - +} + .fc-agenda-days th { text-align: center; - } - +} + .fc-agenda .fc-agenda-axis { width: 50px; padding: 0 4px; @@ -1242,96 +1204,87 @@ table.fc-border-separate { text-align: right; white-space: nowrap; font-weight: normal; - } - +} + .fc-agenda .fc-day-content { padding: 2px 2px 1px; - } - +} + /* make axis border take precedence */ - .fc-agenda-days .fc-agenda-axis { border-right-width: 1px; - } - +} + .fc-agenda-days .fc-col0 { border-left-width: 0; - } - +} + /* all-day area */ - .fc-agenda-allday th { border-width: 0 1px; - } - +} + .fc-agenda-allday .fc-day-content { min-height: 34px; /* TODO: doesnt work well in quirksmode */ _height: 34px; - } - +} + /* divider (between all-day and slots) */ - .fc-agenda-divider-inner { height: 2px; overflow: hidden; - } - +} + .fc-widget-header .fc-agenda-divider-inner { background: #eee; - } - +} + /* slot rows */ - .fc-agenda-slots th { border-width: 1px 1px 0; - } - +} + .fc-agenda-slots td { border-width: 1px 0 0; background: none; - } - +} + .fc-agenda-slots td div { height: 20px; - } - -.fc-agenda-slots tr.fc-slot0 th, -.fc-agenda-slots tr.fc-slot0 td { +} + +.fc-agenda-slots tr.fc-slot0 th,.fc-agenda-slots tr.fc-slot0 td { border-top-width: 0; - } +} -.fc-agenda-slots tr.fc-minor th, -.fc-agenda-slots tr.fc-minor td { +.fc-agenda-slots tr.fc-minor th,.fc-agenda-slots tr.fc-minor td { border-top-style: dotted; - } - -.fc-agenda-slots tr.fc-minor th.ui-widget-header { - *border-top-style: solid; /* doesn't work with background in IE6/7 */ - } - +} +.fc-agenda-slots tr.fc-minor th.ui-widget-header { * + border-top-style: solid; /* doesn't work with background in IE6/7 */ +} /* Vertical Events ------------------------------------------------------------------------*/ - .fc-event-vert { border-width: 0 1px; - } - -.fc-event-vert .fc-event-head, -.fc-event-vert .fc-event-content { +} + +.fc-event-vert .fc-event-head,.fc-event-vert .fc-event-content { position: relative; z-index: 2; width: 100%; overflow: hidden; - } - +} + .fc-event-vert .fc-event-time { white-space: nowrap; font-size: 10px; - } - -.fc-event-vert .fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay */ +} + +.fc-event-vert .fc-event-bg { + /* makes the event lighter w/ a semi-transparent overlay */ position: absolute; z-index: 1; top: 0; @@ -1340,28 +1293,29 @@ table.fc-border-separate { height: 100%; background: #fff; opacity: .3; - filter: alpha(opacity=30); - } - -.fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */ -.fc-select-helper .fc-event-bg { - display: none\9; /* for IE6/7/8. nested opacity filters while dragging don't work */ - } - + filter: alpha(opacity = 30); +} + +.fc .ui-draggable-dragging .fc-event-bg, + /* TODO: something nicer like .fc-opacity */ .fc-select-helper .fc-event-bg + { + display: none\9; + /* for IE6/7/8. nested opacity filters while dragging don't work */ +} + /* resizable */ - .fc-event-vert .ui-resizable-s { - bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */ - width: 100% !important; - height: 8px !important; + bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */ + width: 100% !important; + height: 8px !important; overflow: hidden !important; line-height: 8px !important; - font-size: 11px !important; + font-size: 11px !important; font-family: monospace; text-align: center; cursor: s-resize; - } - +} + .fc-agenda .ui-resizable-resizing { /* TODO: better selector */ _overflow: hidden; - } \ No newline at end of file +} \ No newline at end of file diff --git a/public/media/js/script.js b/public/media/js/script.js index c55b996..aac221d 100644 --- a/public/media/js/script.js +++ b/public/media/js/script.js @@ -1,67 +1,115 @@ -$(document).ready(function() { - if($('.listelement .element').find('.dispnone').length >= 1){ - $('.listelement .element').find('.dispnone').parent().find('.title') - .css('cursor','pointer') - .prepend(" ") - .data('toggle','0'); - - $('.listelement .title').click(function(){ - $(this).siblings('.dispnone').toggle(); - if($(this).data('toggle') == '0'){ - $(this).data('toggle','1'); - $(this).find('.toggler img').attr('src','/media/img/down.png') - } - else{ - $(this).data('toggle','0'); - $(this).find('.toggler img').attr('src','/media/img/right.png') - } - }); - } - $('.helpericon').click(function(){ - $('.infobox').slideToggle('fast'); - if($(this).data('info') == '1'){ - $(this).data('info','0').attr('src','/media/img/bulb_off.png'); - } else{ - $(this).data('info','1').attr('src','/media/img/bulb_on.png'); - } - }); - path = window.location.pathname.split('/'); - if (path[2] == 'person' && (path[3] == 'owndetails' || path[3] == 'edit' || path[3] == 'request') && path[4] != 'personID') { - mypath = '/' + path[1] + '/' + path[2] + '/owndetails'; - } else if(path[2] == 'group' && (path[3] == 'show' || path[3] == 'edit') && path[4] != 'groupID') { - mypath = '/' + path[1] + '/' + path[2] + '/show'; - } else { - mypath = '/' + path[1] + '/' + path[2]; - } - $('.portletNavigationTree a').each(function() { - if ($(this).attr('href') == mypath) { - /* console.log($(this).parent()); */ - $(this).addClass('navTreeCurrentNode'); - $(this).addClass('navTreeCurrentItem'); - } - }); -}); +$(document) + .ready( + function() { + if ($('.listelement .element').find('.dispnone').length >= 1) { + $('.listelement .element') + .find('.dispnone') + .parent() + .find('.title') + .css('cursor', 'pointer') + .prepend( + " ") + .data('toggle', '0'); + + $('.listelement .title').click( + function() { + $(this).siblings('.dispnone').toggle(); + if ($(this).data('toggle') == '0') { + $(this).data('toggle', '1'); + $(this).find('.toggler img').attr( + 'src', '/media/img/down.png') + } else { + $(this).data('toggle', '0'); + $(this).find('.toggler img').attr( + 'src', '/media/img/right.png') + } + }); + } + $('.helpericon').click( + function() { + $('.infobox').slideToggle('fast'); + if ($(this).data('info') == '1') { + $(this).data('info', '0').attr('src', + '/media/img/bulb_off.png'); + } else { + $(this).data('info', '1').attr('src', + '/media/img/bulb_on.png'); + } + }); + path = window.location.pathname.split('/'); + if (path[2] == 'person' + && (path[3] == 'owndetails' || path[3] == 'edit' || path[3] == 'request') + && path[4] != 'personID') { + mypath = '/' + path[1] + '/' + path[2] + '/owndetails'; + } else if (path[2] == 'group' + && (path[3] == 'show' || path[3] == 'edit') + && path[4] != 'groupID') { + mypath = '/' + path[1] + '/' + path[2] + '/show'; + } else { + mypath = '/' + path[1] + '/' + path[2]; + } + $('.portletNavigationTree a').each(function() { + if ($(this).attr('href') == mypath) { + /* console.log($(this).parent()); */ + $(this).addClass('navTreeCurrentNode'); + $(this).addClass('navTreeCurrentItem'); + } + }); + }); function checkAllCheckBoxes(exceptions) { - $('input:checkbox').attr('checked','checked'); + $('input:checkbox').attr('checked', 'checked'); return; } function uncheckAllCheckBoxes(exceptions) { - $('input:checkbox').attr('checked',''); + $('input:checkbox').attr('checked', ''); return; } function setVisible(name) { hidden = document.getElementById(name); - if(hidden) { - hidden.style.display="inline"; + if (hidden) { + hidden.style.display = ""; } } function setInvisible(name) { visible = document.getElementById(name); - if(visible) { - visible.style.display="none"; + if (visible) { + visible.style.display = "none"; + } +} + +function eventcategoryfieldChanged(name) { + field = document.getElementById(name); + value = field.value; + options = field.options; + for (i = 0; i < options.length; i++) { + option = options[i]; + if (option.value == field.value) { + break; + } + } + label = option.label; + endLabel = document.getElementById('end-label'); + endElement = document.getElementById('end-element'); + startLabel = document.getElementById('start-label'); + repeat = document.getElementById('repeat'); + if (label == 'Boot' || label == 'Shutdown') { + endLabel.style.display = "none"; + endElement.style.display = "none"; + startLabel.firstChild.firstChild.nodeValue = startLabel.firstChild.firstChild.nodeValue.replace(/Start/g, "Date"); + repeat.checked = false; + } else if (label == 'Lecture') { + endLabel.style.display = ""; + endElement.style.display = ""; + startLabel.firstChild.firstChild.nodeValue = startLabel.firstChild.firstChild.nodeValue.replace(/Date/g, "Start"); + repeat.checked = true; + } else { + endLabel.style.display = ""; + endElement.style.display = ""; + startLabel.firstChild.firstChild.nodeValue = startLabel.firstChild.firstChild.nodeValue.replace(/Date/g, "Start"); + repeat.checked = false; } } \ No newline at end of file -- cgit v1.2.3-55-g7522