fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [9334]


From: Erik Holm-Larsen
Subject: [Fmsystem-commits] [9334]
Date: Wed, 09 May 2012 11:26:12 +0000

Revision: 9334
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9334
Author:   erikhl
Date:     2012-05-09 11:26:12 +0000 (Wed, 09 May 2012)
Log Message:
-----------


Added Paths:
-----------
    trunk/phpgwapi/templates/activitycalendar/
    trunk/phpgwapi/templates/activitycalendar/css/
    trunk/phpgwapi/templates/activitycalendar/css/frontend.css
    trunk/phpgwapi/templates/activitycalendar/footer.tpl
    trunk/phpgwapi/templates/activitycalendar/head.inc.php
    trunk/phpgwapi/templates/activitycalendar/head.tpl
    trunk/phpgwapi/templates/activitycalendar/images/
    trunk/phpgwapi/templates/activitycalendar/images/bergen_logo.png
    trunk/phpgwapi/templates/activitycalendar/images/header_bg.png
    trunk/phpgwapi/templates/activitycalendar/images/header_fg.png
    trunk/phpgwapi/templates/activitycalendar/images/info.png
    trunk/phpgwapi/templates/activitycalendar/images/newlayout/
    trunk/phpgwapi/templates/activitycalendar/images/newlayout/aktivby_logo.jpg
    trunk/phpgwapi/templates/activitycalendar/images/newlayout/bodyBg.gif
    
trunk/phpgwapi/templates/activitycalendar/images/newlayout/footerFjell_inkl_bunnlinje.gif
    trunk/phpgwapi/templates/activitycalendar/images/newlayout/forsidebilde.jpg
    trunk/phpgwapi/templates/activitycalendar/images/newlayout/logo.png
    
trunk/phpgwapi/templates/activitycalendar/images/newlayout/pageContainerBg.gif
    trunk/phpgwapi/templates/activitycalendar/js/
    trunk/phpgwapi/templates/activitycalendar/navbar.inc.php
    trunk/phpgwapi/templates/activitycalendar/navbar.tpl

Added: trunk/phpgwapi/templates/activitycalendar/css/frontend.css
===================================================================
--- trunk/phpgwapi/templates/activitycalendar/css/frontend.css                  
        (rev 0)
+++ trunk/phpgwapi/templates/activitycalendar/css/frontend.css  2012-05-09 
11:26:12 UTC (rev 9334)
@@ -0,0 +1,634 @@
+body {
+    font: normal small verdana,sans-serif;
+    margin: 0;
+    text-align: left;
+    background: white;
+}
+button { padding: .3em .6em; margin: .4em 0;}
+a:link, a:visited { color: black;}
+div#wrapper {}
+ul#metanav {
+    float: right;
+    list-style-type: none;
+       padding-top: 10px;
+}
+ul#metanav a, ul#sidebar a { color: #700; }
+div#content {
+    margin: 0 2em;
+    min-height: 500px;
+}
+#header-search  { 
+    float: right;
+    margin: -1.5em 1em 1em 1em;
+}
+#header-search.hidden  { display: none; }
+#header-search .query { width: 15em;}
+
+div#header {
+    background: url(../images/header_bg.png) repeat-x;
+    height: 129px;
+}
+div#header a {
+       float: left;
+}
+div#logo {
+    width: 125px;
+    height: 114px;
+    margin-left: 10px;
+}
+div#centerimage {
+/*    background: url(../images/header_fg.png) no-repeat;
+       background-position: bottom center;*/
+       margin: 0 auto;
+       padding-top: 4px;
+       height: 109px;
+       overflow: hidden;
+}
+div#footer {
+    border-top: 1px solid #aaa;
+    padding-top: .3em;
+    color: #666;
+    font-size: 90%;
+}
+ul.nav { 
+    list-style-type: 0;
+    padding-left: 0;
+}
+div.clr {clear: both;}
+ul.nav a { color: inherit; }
+ul.nav li { display: inline;}
+ul.nav li:before { content: '⇒ '; font-size: 90%; color: #444;}
+ul.nav li:first-child:before { display: none; }
+#login-bar {
+    clear: right;
+    float: right;
+    padding: .5em 1em 0 0;
+}
+form#search {
+    text-align: center;
+    padding-top: 5em;
+}
+input#search {
+    font-size: 120%;
+    color: #666;
+    width: 20em;
+}
+div.hint {
+       margin-top: 0.4em;
+    font-size: 90%;
+    color: #444;
+}
+div.hint i { color: #383;}
+
+ol#result {
+    padding-left: 0;
+}
+ol#result dl { margin: 0; }
+
+ol#result .header {
+    font-size: 120%;
+    background-color: #eee;
+    border-top: 1px solid #ccc;
+    border-bottom: 1px solid #ccc;
+    padding: .1em 0em .25em .2em;
+    margin-top: .5em;
+}
+ol#result .details {
+}
+ol#result .details h4 {
+    margin: 0.2em 0 0 0;
+    font-weight: normal;
+    font-style: italic;
+    color: #888;
+}
+ol#result .details .col {
+    padding: 0em 0.2em 0.4em 0.2em;
+    /*float: left;*/
+    width: 50%;
+    /*border: 1px solid #eee;*/
+}
+ol#result .details .moreInfo {
+    margin-top: .4em;
+}
+
+ol#result li:last-child {
+       border-bottom: 1px solid #ccc;
+}
+
+dl.form {}
+
+dl.form dt {
+    font-style: italic;
+    font-weight: bolder;
+    margin: .5em 0 .1em 0;
+    color: #002;
+}
+
+dl.form dt label { font-size: 90%; color: #733; font-style: italic;}
+dl.form dd {
+    float: left;
+    margin: 0 0 0 .4em;
+}
+table.fancyTable {
+    border-spacing: 0;
+    border: 1px solid #ccc;
+}
+table.fancyTable thead th {
+    font-weight: normal;
+    border-bottom: 1px solid #777;
+    padding: .1em .3em;
+    font-size: 85%;
+    font-style: italic;
+    color: #744;
+}
+table.fancyTable tbody td {
+    padding: .2em .7em;
+    border-bottom: 1px solid white;
+}
+table.fancyTable tbody tr:hover td {
+    background: #ffe;
+    border-bottom-color: #cca;
+}
+table.fancyTable tbody td.godkand { color: #474; }
+table.fancyTable tbody td.avslag { color: #744; }
+table.fancyTable tbody td.inskickad { color: #447; }
+table.fancyTable tbody td.ny { color: #447; }
+table.fancyTable tbody td a{ color: inherit; text-decoration: inherit;}
+
+div#help {
+    width: 15em;
+    float: right;
+    background: #3287d8;
+    border: 1px solid #66a;
+    border-radius: .6em;
+    -moz-border-radius: .6em;
+    -webkit-border-radius: .6em;
+    color: white;
+}
+div#help dl { margin: .2em .8em; min-height: 10em;}
+div#help dl dd { font-style: italic;}
+div#help h2 { 
+    margin: 0; 
+    font-size: 80%; 
+    padding: .1em .5em;
+    font-weight: normal;
+    border-bottom: 1px solid #67b1ff;
+}
+#weekView tr.time td { border-top: 1px solid #aaa;}
+#weekView tr td:first-child { background: #ddd;}
+
+
+#cloud {
+    text-align: center;
+    list-style-type: none;
+    padding-left: 0;
+    color: #888;
+    margin: 3em 0;
+    font-size: 120%;
+}
+#cloud div { padding: .2em};
+#cloud strong { padding: .2em};
+
+#cloud li { display: inline; white-space: nowrap; padding: 0 .2em;}
+#cloud li.small { font-size: 100%;}
+#cloud li.medium { font-size: 130%;}
+#cloud li.large { font-size: 200%; color: #777;}
+#cloud li.xlarge { font-size: 240%; color: #555;}
+#cloud li:hover { text-decoration: underline; cursor: pointer; }
+
+dl.tooltip  { width: 300px;}
+
+dl.tooltip dt {
+    float: left;
+    clear: left;
+    width: 7em;
+    font-style: italic;
+}
+
+dl.tooltip dd {
+    float: left;
+}
+
+div.info:hover { 
+    background-image: url(../images/info.png);
+    background-repeat: no-repeat;
+    background-position: 100% 0%;
+}
+
+dl.contactinfo {}
+dl.contactinfo dt {
+  margin-left: 1em;
+}
+dl.contactinfo dd {
+  margin-left: 2em;
+}
+
+/*#frontend {
+       width: 900px;
+}*/
+
+#frontend dl.proplist-col {
+       width: 300px;
+}
+
+#frontend dl.proplist-col.main {
+       width: 400px;
+}
+
+#frontend dl.proplist-col.images {
+       float:right;
+       clear:right;
+}
+
+
+
+#frontend h2 { margin-bottom: 0.1em;}
+#frontend dl.proplist.images dd img { width: 300px; border:1px solid #777; 
padding: 1px;}
+#frontend dl.proplist.images dl { margin-bottom: 1.5em; }
+
+#frontend #result dl.proplist.images dt { display: none;}
+#frontend #result dl.proplist.images dd { display: inline; padding-right: 1em;}
+#frontend #result dl.proplist.images dd img { width: auto; height: 120px; 
border:1px solid black;}
+
+
+#agegroup {
+    background: #eee;
+    white-space: nowrap;
+}
+#agegroup, #agegroup td, #agegroup th { width: 1%; }
+#agegroup td, #agegroup th { padding: .1em .3em;}
+#agegroup td input { width: 3em; }
+
+#overlay-info { padding: 1em; }
+#overlay-info h3 { margin: 0 0 .9em 0; }
+#overlay-info dt { font-style: italic; font-weight: bolder; font-size: 90%;}
+#overlay-info dd { padding-left: 2em; }
+#overlay-info .close { float: right; }
+#overlay-info .actions { margin-top: 1em;}
+
+.yui-calendar td.calcell {
+       border:0px !important;
+}
+.yui-skin-sam .yui-dt TABLE TH{
+       border: none !important;
+}
+.yui-skin-sam .yui-dt TABLE TD{
+       border: none !important;
+}
+
+/* CSS for newlayout */
+body{
+color: #575757;
+margin:0;
+padding:0;
+width:100%;
+height:100%;
+background: #fff url('../images/newlayout/bodyBg.gif') repeat-x;text-align: 
center;width:100%;
+}
+
+#wrapper{
+background-color: #fff;
+width: 1000px;
+textalign: left;
+margin: 0 auto;
+overflow: hidden;
+padding: 0 0px 40px;
+}
+
+#header{
+overflow: hidden;
+line-height: 1;
+width: 1000px;
+background-image: none !important;
+height: 130px !important;
+}
+
+#login-bar{
+margin-top:10px;
+}
+
+#login-bar a{
+border-right: 1px solid #575757;
+padding: 0 0.5em;
+line-height: 1.2em;
+}
+
+#logo{
+background: url(../images/newlayout/logo.png) no-repeat;
+float: left;
+height: 75px;
+width: 102px;
+margin: 14px 0 0 49px !important;
+}
+
+#centerimage{
+display: block !important;
+margin-right: 5px !important;
+width: 172px !important;
+height: 108px !important;
+/*background: url(../images/newlayout/aktivby_logo.jpg) no-repeat !important;*/
+/*background-position: bottom center !important;*/
+padding: 22px 0px 0px 100px !important;
+}
+
+#header-search{
+margin: -3em 1em 1em 1em;
+}
+
+#frontend{
+/*background-image: url(../images/newlayout/pageContainerBg.gif);*/
+/*background-repeat: repeat-x;*/
+}
+
+#line{
+border-top: 5px solid #B11F24; 
+clear: left;
+height: 30px;
+width: 960px;
+margin-left: 20px;
+}
+ #content{
+text-align:left;
+}
+
+#cloud{
+text-align:left;
+margin-left: 280px;
+}
+
+#footer{
+border: none !important;
+background:url('../images/newlayout/footerFjell_inkl_bunnlinje.gif') no-repeat 
scroll center top transparent;
+clear:both;
+overflow:auto;
+height:160px;
+}
+
+#footer_address{
+padding-top: 1.5em;
+}
+
+
+dl.proplist,
+dl.proplist-col {
+    margin: 1em 0;
+    padding-left: 2em;
+}
+dl.proplist dt,
+dl.proplist-col dt { 
+    font-style: italic; 
+    font-weight: bolder; 
+    font-size: 90%; 
+    margin: .8em 0 .1em 0;
+}
+
+dl.proplist-col,
+dl.form-col {
+    width: 18em;
+    float: left;
+    text-align: left;
+}
+
+#frontend dl.proplist-col {
+    width: 600px; !important
+}
+
+table#header {
+       margin: 2em;
+       
+       }
+
+div#unit_selector {
+       
+}
+
+div#all_units_key_data {
+       padding-left: 2em;
+       }
+
+div#unit_image {
+       margin-left: 2em;
+       }
+
+div#unit_image img {
+       height:170px;
+}
+
+div.yui-navset {
+       padding-left: 2em;
+       padding-right: 2em;
+       }
+       
+div#contract_selector {
+       padding-left: 1em;
+       padding-top: 1em;
+       }
+       
+img.list_image {
+       margin-right: 5px;
+       float:left;
+       }
+
+a.list_image {
+       float:left;
+       display:inline;
+       }
+
+ol.list_image {
+       float: left;
+       }
+       
+ol.list_image li {
+       padding: 1px;
+}
+       
+dl#key_data  {
+       padding: 2px;
+       }
+       
+       
+dl#key_data dd {
+       padding-bottom: 1em;
+}
+
+table#key_data td {
+       padding-right: 1em;
+       padding: 5px;
+       }
+
+
+.user_menu {
+       list-style:none;
+       height: 100%;
+       padding: 2px;
+       border-style: none none none solid;
+       border-width: 1px;
+       border-color: grey;
+       padding-left: 5px;
+}
+
+.user_menu li {
+       margin: 13px;
+       }
+       
+#area_and_price {
+       list-style:none;
+       height: 100%;
+       padding: 2px;
+       padding-left: 5px;
+       float:right;
+       padding:0.5em 1em 0 0;
+}
+
+#area_and_price li {
+       margin: 13px;
+       }
+       
+#org_units {
+       list-style: none;
+       height: 100%;
+       padding: 2px;
+       padding-left: 5px;
+       float:right;
+       padding:0.5em 1em 0 0;
+}
+
+#org_units li {
+       margin: 13px;
+       }
+       
+#information {
+       list-style:none;
+       height: 100%;
+       padding: 2px;
+       padding-left: 5px;
+       float:right;
+       padding:0.5em 1em 0 0;
+}
+
+#information li {
+       margin: 13px;
+       }
+
+a.header_link {
+       text-decoration: none;
+       float: none;
+       }
+       
+#logo_holder {
+       border: 0 none;
+       font-family:Arial,sans-serif;
+font-size:65%;
+line-height:1.166;
+position: absolute;
+padding:2em;
+}
+
+em#bold {
+       font-weight: bold;
+       }
+
+div#header a {
+       float: none;
+}
+
+.yui-skin-sam .yui-navset .yui-nav, .yui-skin-sam .yui-navset .yui-navset-top 
.yui-nav {
+       border-color: #BF0005;
+       border-width:0 0 2px;
+       }
+       
+.yui-skin-sam .yui-navset .yui-content {
+       background: none repeat scroll 0 0 #F4F2ED;
+}
+
+.yui-skin-sam .yui-navset .yui-nav .selected a, .yui-skin-sam .yui-navset 
.yui-nav .selected a:focus, .yui-skin-sam .yui-navset .yui-nav .selected 
a:hover {
+/*     background:url("../../../../assets/skins/sam/sprite.png") repeat-x 
scroll left -1400px #2647A0;*/
+       }
+       
+div.tickets {
+       margin-top: 1em;
+       }
+
+em.select_header {
+       font-size: larger;
+       padding-top: 10px;
+       }
+
+#contract_price_and_area {
+       float: left;
+       margin: 1em 2em 0 0;
+}
+
+#contract_price_and_area li {
+               margin-bottom: 1em;
+       }
+
+#contract_essentials {
+       float: left;
+       margin: 1em 2em 0 2em;
+       }
+       
+#composites {
+       float: left;
+       margin: 1em 2em 0 2em;
+       }
+       
+       
+#comment {
+       float: left;
+       margin: 1em 2em 0 2em;
+       }
+       
+       #contract_essentials li {
+               margin-bottom: 1em;
+       }
+       
+#contract_parts {
+       float: left;
+       margin: 1em 2em 0 2em;
+       }
+       
+div.toolbar {
+background-color:#EEEEEE;
+border:1px solid #BBBBBB;
+float:left;
+width:100%;
+}
+
+div.toolbar_manual {
+background-color:#EEEEEE;
+border:1px solid #BBBBBB;
+float:left;
+width:100%;
+}
+
+.yui-pg-container {
+       white-space: normal;
+       }
+       
+li.ticket_detail {
+       padding: 5px;
+       margin-left: 5px;
+       }
+
+div.success {
+       font-weight: normal;
+       margin:10px;
+       padding:5px;
+       font-size:1.1em;
+       text-align: left;
+       background-color: green;
+       border:1px solid #9F6000;
+       color: white;
+}
+
+div.error {
+       font-weight: normal;
+       margin:10px;
+       padding:5px;
+       font-size:1.1em;
+       text-align: left;
+       background-color: red;
+       border:1px solid #9F6000;
+       color: white;
+}
\ No newline at end of file


Property changes on: trunk/phpgwapi/templates/activitycalendar/css/frontend.css
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/phpgwapi/templates/activitycalendar/footer.tpl
===================================================================
--- trunk/phpgwapi/templates/activitycalendar/footer.tpl                        
        (rev 0)
+++ trunk/phpgwapi/templates/activitycalendar/footer.tpl        2012-05-09 
11:26:12 UTC (rev 9334)
@@ -0,0 +1,10 @@
+               </div>
+<div id="footer">
+
+</div>
+<div id="footer_address">
+Bergen kommune | R&aring;dhusgt 10 | Postboks 7700 | 5020 Bergen
+</div>
+
+       </body>
+</html>

Added: trunk/phpgwapi/templates/activitycalendar/head.inc.php
===================================================================
--- trunk/phpgwapi/templates/activitycalendar/head.inc.php                      
        (rev 0)
+++ trunk/phpgwapi/templates/activitycalendar/head.inc.php      2012-05-09 
11:26:12 UTC (rev 9334)
@@ -0,0 +1,87 @@
+<?php
+       phpgw::import_class('phpgwapi.yui');
+       phpgw::import_class('phpgwapi.template_portico');
+
+       if ( !isset($GLOBALS['phpgw_info']['server']['site_title']) )
+       {
+               $GLOBALS['phpgw_info']['server']['site_title'] = lang('please 
set a site name in admin &gt; siteconfig');
+       }
+
+       $app = $GLOBALS['phpgw_info']['flags']['currentapp'];
+
+       $GLOBALS['phpgw']->template->set_root(PHPGW_TEMPLATE_DIR);
+       $GLOBALS['phpgw']->template->set_unknowns('remove');
+       $GLOBALS['phpgw']->template->set_file('head', 'head.tpl');
+       $GLOBALS['phpgw']->template->set_block('head', 'stylesheet', 
'stylesheets');
+       $GLOBALS['phpgw']->template->set_block('head', 'javascript', 
'javascripts');
+
+       $javascripts = array();
+
+       phpgwapi_yui::load_widget('dragdrop');
+       phpgwapi_yui::load_widget('element');
+       phpgwapi_yui::load_widget('container');
+       phpgwapi_yui::load_widget('connection');
+       phpgwapi_yui::load_widget('resize');
+       phpgwapi_yui::load_widget('layout');
+
+       phpgwapi_yui::load_widget('button');
+       $stylesheets = array
+               (
+                       
"/phpgwapi/js/yahoo/reset-fonts-grids/reset-fonts-grids.css",
+                       
"/phpgwapi/js/yahoo/tabview/assets/skins/sam/tabview.css",
+                       "/phpgwapi/js/yahoo/resize/assets/skins/sam/resize.css",
+                       "/phpgwapi/js/yahoo/layout/assets/skins/sam/layout.css",
+               );
+       $stylesheets[] = "/phpgwapi/js/yahoo/menu/assets/skins/sam/menu.css";
+       $stylesheets[] = 
"/phpgwapi/js/yahoo/button/assets/skins/sam/button.css";
+       $stylesheets[] = "/phpgwapi/templates/portico/css/base.css";
+       $stylesheets[] = 
"/phpgwapi/templates/portico/css/{$GLOBALS['phpgw_info']['user']['preferences']['common']['theme']}.css";
+       $stylesheets[] = "/{$app}/templates/base/css/base.css";
+       $stylesheets[] = "/{$app}/templates/portico/css/base.css";
+       $stylesheets[] = 
"/{$app}/templates/portico/css/{$GLOBALS['phpgw_info']['user']['preferences']['common']['theme']}.css";
+       $stylesheets[] = 
"/phpgwapi/templates/activitycalendar/css/frontend.css";
+
+       foreach ( $stylesheets as $stylesheet )
+       {
+               if( file_exists( PHPGW_SERVER_ROOT . $stylesheet ) )
+               {
+                       $GLOBALS['phpgw']->template->set_var( 'stylesheet_uri', 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $stylesheet );
+                       $GLOBALS['phpgw']->template->parse('stylesheets', 
'stylesheet', true);
+               }
+       }
+
+       foreach ( $javascripts as $javascript )
+       {
+               if( file_exists( PHPGW_SERVER_ROOT . $javascript ) )
+               {
+                       $GLOBALS['phpgw']->template->set_var( 'javascript_uri', 
$GLOBALS['phpgw_info']['server']['webserver_url'] . $javascript );
+                       $GLOBALS['phpgw']->template->parse('javascripts', 
'javascript', true);
+               }
+       }
+
+       $logofile_frontend = 
"/phpgwapi/templates/bkbooking/images/bergen_logo.png";
+
+       $bodoc = CreateObject('booking.bodocumentation');
+       
+       $manual  =  $bodoc->so->getFrontendDoc();       
+
+       $app = lang($app);
+       $tpl_vars = array
+       (
+               'css'                   => $GLOBALS['phpgw']->common->get_css(),
+               'javascript'    => $GLOBALS['phpgw']->common->get_javascript(),
+               'img_icon'      => 
$GLOBALS['phpgw']->common->find_image('phpgwapi', 'favicon.ico'),
+               'site_title'    => 
"{$GLOBALS['phpgw_info']['server']['site_title']}",
+               'str_base_url'  => $GLOBALS['phpgw']->link('/', array(), true),
+               'webserver_url' => 
$GLOBALS['phpgw_info']['server']['webserver_url'],
+               'win_on_events' => $GLOBALS['phpgw']->common->get_on_events(),
+               'navbar_config' => $_navbar_config,
+               'lbl_search'    => lang('Search'),
+               'logofile'              => $logofile_frontend,
+               'header_search_class'   => 
'hidden'//(isset($_GET['menuaction']) && $_GET['menuaction'] == 
'bookingfrontend.uisearch.index' ? 'hidden' : '')
+       );
+
+       $GLOBALS['phpgw']->template->set_var($tpl_vars);
+
+       $GLOBALS['phpgw']->template->pfp('out', 'head');
+       unset($tpl_vars);

Added: trunk/phpgwapi/templates/activitycalendar/head.tpl
===================================================================
--- trunk/phpgwapi/templates/activitycalendar/head.tpl                          
(rev 0)
+++ trunk/phpgwapi/templates/activitycalendar/head.tpl  2012-05-09 11:26:12 UTC 
(rev 9334)
@@ -0,0 +1,41 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+       "http://www.w3.org/TR/html4/loose.dtd";>
+<!-- BEGIN head -->
+<html>
+       <head>
+               <meta http-equiv="Content-Type" content="text/html; 
charset=utf-8">
+               <meta name="author" content="phpGroupWare 
http://www.phpgroupware.org";>
+               <meta name="description" content="phpGroupWare">
+               <meta name="keywords" content="phpGroupWare">
+               <meta name="robots" content="none">
+               <title>{site_title}</title>
+               <link rel="icon" href="{img_icon}" type="image/x-ico">
+               <link rel="shortcut icon" href="{img_icon}">
+               <!-- BEGIN stylesheet -->
+               <link href="{stylesheet_uri}" type="text/css" rel="StyleSheet">
+        <!-- END stylesheet -->
+
+               {css}
+
+               <script type="text/javascript">
+               <!--
+                       var strBaseURL = '{str_base_url}';
+                       {win_on_events}
+               //-->
+               </script>
+               {javascript}
+               <!-- BEGIN javascript -->
+                       <script type="text/javascript" 
src="{javascript_uri}"></script>
+       <!-- END javascript -->
+
+       </head>
+<body>
+    <div id="wrapper">
+    <div id="header">
+       <div id="login-bar"></div>
+    <div id="logo"></div>
+       <div id="centerimage"></div>
+    </div>
+<div class="yui-skin-sam" id='frontend'>
+<div id="line"></div>
+  <div style='margin:0; padding: 0; line-height: 0'>&nbsp;</div>

Added: trunk/phpgwapi/templates/activitycalendar/images/bergen_logo.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/phpgwapi/templates/activitycalendar/images/bergen_logo.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/phpgwapi/templates/activitycalendar/images/header_bg.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/phpgwapi/templates/activitycalendar/images/header_bg.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/phpgwapi/templates/activitycalendar/images/header_fg.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/phpgwapi/templates/activitycalendar/images/header_fg.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/phpgwapi/templates/activitycalendar/images/info.png
===================================================================
(Binary files differ)


Property changes on: trunk/phpgwapi/templates/activitycalendar/images/info.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: 
trunk/phpgwapi/templates/activitycalendar/images/newlayout/aktivby_logo.jpg
===================================================================
(Binary files differ)


Property changes on: 
trunk/phpgwapi/templates/activitycalendar/images/newlayout/aktivby_logo.jpg
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/phpgwapi/templates/activitycalendar/images/newlayout/bodyBg.gif
===================================================================
(Binary files differ)


Property changes on: 
trunk/phpgwapi/templates/activitycalendar/images/newlayout/bodyBg.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: 
trunk/phpgwapi/templates/activitycalendar/images/newlayout/footerFjell_inkl_bunnlinje.gif
===================================================================
(Binary files differ)


Property changes on: 
trunk/phpgwapi/templates/activitycalendar/images/newlayout/footerFjell_inkl_bunnlinje.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: 
trunk/phpgwapi/templates/activitycalendar/images/newlayout/forsidebilde.jpg
===================================================================
(Binary files differ)


Property changes on: 
trunk/phpgwapi/templates/activitycalendar/images/newlayout/forsidebilde.jpg
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/phpgwapi/templates/activitycalendar/images/newlayout/logo.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/phpgwapi/templates/activitycalendar/images/newlayout/logo.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: 
trunk/phpgwapi/templates/activitycalendar/images/newlayout/pageContainerBg.gif
===================================================================
(Binary files differ)


Property changes on: 
trunk/phpgwapi/templates/activitycalendar/images/newlayout/pageContainerBg.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/phpgwapi/templates/activitycalendar/navbar.inc.php
===================================================================
--- trunk/phpgwapi/templates/activitycalendar/navbar.inc.php                    
        (rev 0)
+++ trunk/phpgwapi/templates/activitycalendar/navbar.inc.php    2012-05-09 
11:26:12 UTC (rev 9334)
@@ -0,0 +1,202 @@
+<?php
+
+       function parse_navbar($force = False)
+       {
+               $navbar = array();
+//             if(!isset($GLOBALS['phpgw_info']['flags']['nonavbar']) || 
!$GLOBALS['phpgw_info']['flags']['nonavbar'])
+               {
+                       $navbar = execMethod('phpgwapi.menu.get', 'navbar');
+               }
+
+               $user = $GLOBALS['phpgw']->accounts->get( 
$GLOBALS['phpgw_info']['user']['id'] );
+
+               $var = array
+               (
+                       'home_url'              => 
$GLOBALS['phpgw']->link('/home.php'),
+                       'home_text'             => lang('home'),
+                       'home_icon'             => 'icon icon-home',
+                       'about_url'             => 
$GLOBALS['phpgw']->link('/about.php', array('app' => 
$GLOBALS['phpgw_info']['flags']['currentapp']) ),
+                       'about_text'    => lang('about'),
+                       'logout_url'    => 
$GLOBALS['phpgw']->link('/logout.php'),
+                       'logout_text'   => lang('logout'),
+                       'user_fullname' => $user->__toString()
+               );
+
+               if ( $GLOBALS['phpgw']->acl->check('run', PHPGW_ACL_READ, 
'preferences') )
+               {
+                       $var['preferences_url'] = 
$GLOBALS['phpgw']->link('/preferences/index.php');
+                       $var['preferences_text'] = lang('preferences');
+               }
+
+               if ( isset($GLOBALS['phpgw_info']['user']['apps']['manual']) )
+               {
+                       $var['help_url'] = "javascript:openwindow('"
+                        . $GLOBALS['phpgw']->link('/index.php', array
+                        (
+                               'menuaction'=> 'manual.uimanual.help',
+                               'app' => 
$GLOBALS['phpgw_info']['flags']['currentapp'],
+                               'section' => 
isset($GLOBALS['phpgw_info']['apps']['manual']['section']) ? 
$GLOBALS['phpgw_info']['apps']['manual']['section'] : '',
+                               'referer' => phpgw::get_var('menuaction')
+                        )) . "','700','600')";
+
+                       $var['help_text'] = lang('help');
+                       $var['help_icon'] = 'icon icon-help';
+               }
+
+               if ( isset($GLOBALS['phpgw_info']['user']['apps']['admin']) )
+               {
+                       $var['debug_url'] = "javascript:openwindow('"
+                        . $GLOBALS['phpgw']->link('/index.php', array
+                        (
+                               'menuaction'=> 'property.uidebug_json.index'
+                        )) . "','','')";
+
+                       $var['debug_text'] = lang('debug');
+                       $var['debug_icon'] = 'icon icon-debug';
+               }
+
+               $GLOBALS['phpgw']->template->set_root(PHPGW_TEMPLATE_DIR);
+               $GLOBALS['phpgw']->template->set_file('navbar', 'navbar.tpl');
+
+               $flags = &$GLOBALS['phpgw_info']['flags'];
+               $var['current_app_title'] = isset($flags['app_header']) ? 
$flags['app_header'] : lang($GLOBALS['phpgw_info']['flags']['currentapp']);
+               $flags['menu_selection'] = isset($flags['menu_selection']) ? 
$flags['menu_selection'] : '';
+
+               $GLOBALS['phpgw']->template->set_var($var);
+               $GLOBALS['phpgw']->template->pfp('out','navbar');
+
+               register_shutdown_function('parse_footer_end');
+       }
+
+       function item_expanded($id)
+       {
+               static $navbar_state;
+               if( !isset( $navbar_state ) )
+               {
+                       $navbar_state = 
execMethod('phpgwapi.template_portico.retrieve_local', 'navbar_config');
+               }
+               return isset( $navbar_state[ $id ]);
+       }
+
+       function render_item($item, $id='', $children='')
+       {
+               $icon_style = $expand_class = $current_class = $link_class = 
$parent_class = '';
+               static $blank_image;
+               if ( !isset($blank_image) )
+               {
+                       $blank_image = 
$GLOBALS['phpgw']->common->find_image('phpgwapi', 'blank.png');
+               }
+               if ( isset($item['image']) )
+               {
+                       $icon_style = ' style="background-image: url(' . 
$GLOBALS['phpgw']->common->image($item['image'][0], $item['image'][1]) . ')"';
+               }
+               if ( $children )
+               {
+                       $expand_class = item_expanded($id) ? ' 
class="expanded"' : ' class="collapsed"';
+                       $parent_class = ' parent';
+               }
+               if ( $id == 
"navbar::{$GLOBALS['phpgw_info']['flags']['menu_selection']}" )
+               {
+                       $current_class = 'current';
+               }
+
+               $link_class =" class=\"{$current_class}{$parent_class}\"";
+
+               $out = <<<HTML
+                               <li{$expand_class}>
+
+HTML;
+               if( $expand_class )
+               {
+               $out .= <<<HTML
+                                                       <img 
src="{$blank_image}"{$expand_class}width="16" height="16" alt="+/-" />
+
+HTML;
+               }
+               return <<<HTML
+$out
+                                       <a 
href="{$item['url']}"{$link_class}{$icon_style} id="{$id}">
+                                               <span>{$item['text']}</span>
+                                       </a>
+{$children}
+                               </li>
+
+HTML;
+       }
+
+       function render_submenu($parent, $menu)
+       {
+               $out = '';
+               foreach ( $menu as $key => $item )
+               {
+                       $children = isset($item['children']) ? render_submenu(  
"{$parent}::{$key}", $item['children']) : '';
+                       $out .= render_item($item, "navbar::{$parent}::{$key}", 
$children);
+                       //$debug .= "{$parent}::{$key}<br>";
+               }
+
+               $out = <<<HTML
+                       <ul>
+{$out}
+                       </ul>
+
+HTML;
+               return $out;
+       }
+
+       function parse_footer_end()
+       {
+               // Stop the register_shutdown_function causing the footer to be 
included twice - skwashd dec07
+               static $footer_included = false;
+               if ( $footer_included )
+               {
+                       return true;
+               }
+
+               $GLOBALS['phpgw']->template->set_root(PHPGW_TEMPLATE_DIR);
+               $GLOBALS['phpgw']->template->set_file('footer', 'footer.tpl');
+
+               $var = array
+               (
+                       'powered_by'    => lang('Powered by phpGroupWare 
version %1', $GLOBALS['phpgw_info']['server']['versions']['phpgwapi']),
+               );
+
+               $GLOBALS['phpgw']->template->set_var($var);
+
+               $GLOBALS['phpgw']->template->pfp('out', 'footer');
+
+               $footer_included = true;
+       }
+
+       /**
+       * Callback for usort($navbar)
+       *
+       * @param array $item1 the first item to compare
+       * @param array $item2 the second item to compare
+       * @return int result of comparision
+       */
+       function sort_navbar($item1, $item2)
+       {
+               $a =& $item1['order'];
+               $b =& $item2['order'];
+
+               if ($a == $b)
+               {
+                       return strcmp($item1['text'], $item2['text']);
+               }
+               return ($a < $b) ? -1 : 1;
+       }
+
+       /**
+       * Organise the navbar properly
+       *
+       * @param array $navbar the navbar items
+       * @return array the organised navbar
+       */
+       function prepare_navbar(&$navbar)
+       {
+               // if ( isset($navbar['admin']) )
+               // {
+               //      $navbar['admin']['children'] = 
execMethod('phpgwapi.menu.get', 'admin');
+               // }
+               // uasort($navbar, 'sort_navbar');
+       }

Added: trunk/phpgwapi/templates/activitycalendar/navbar.tpl
===================================================================
--- trunk/phpgwapi/templates/activitycalendar/navbar.tpl                        
        (rev 0)
+++ trunk/phpgwapi/templates/activitycalendar/navbar.tpl        2012-05-09 
11:26:12 UTC (rev 9334)
@@ -0,0 +1 @@
+ 
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]