From 1a17b4348fae62eb70a6c4365eb5ab46fbba6bf2 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Wed, 14 Nov 2001 18:06:13 +0000 Subject: [PATCH] added my new theme bassed on CSS and Layers --- phpgwapi/templates/linux-at-work.de/about.tpl | 26 +++ .../linux-at-work.de/about_unknown.tpl | 12 ++ .../templates/linux-at-work.de/footer.tpl | 4 + .../templates/linux-at-work.de/head.inc.php | 59 +++++++ phpgwapi/templates/linux-at-work.de/head.tpl | 135 ++++++++++++++ phpgwapi/templates/linux-at-work.de/login.tpl | 77 ++++++++ .../linux-at-work.de/login_denylogin.tpl | 14 ++ .../linux-at-work.de/login_selectdomain.tpl | 70 ++++++++ .../templates/linux-at-work.de/navbar.inc.php | 167 ++++++++++++++++++ .../templates/linux-at-work.de/navbar.tpl | 46 +++++ .../templates/linux-at-work.de/navbar_app.tpl | 1 + .../linux-at-work.de/portal_linkbox.tpl | 5 + .../portal_linkbox_footer.tpl | 6 + .../portal_linkbox_header.tpl | 6 + .../linux-at-work.de/portal_main.tpl | 14 ++ 15 files changed, 642 insertions(+) create mode 100644 phpgwapi/templates/linux-at-work.de/about.tpl create mode 100644 phpgwapi/templates/linux-at-work.de/about_unknown.tpl create mode 100644 phpgwapi/templates/linux-at-work.de/footer.tpl create mode 100644 phpgwapi/templates/linux-at-work.de/head.inc.php create mode 100644 phpgwapi/templates/linux-at-work.de/head.tpl create mode 100644 phpgwapi/templates/linux-at-work.de/login.tpl create mode 100644 phpgwapi/templates/linux-at-work.de/login_denylogin.tpl create mode 100644 phpgwapi/templates/linux-at-work.de/login_selectdomain.tpl create mode 100644 phpgwapi/templates/linux-at-work.de/navbar.inc.php create mode 100755 phpgwapi/templates/linux-at-work.de/navbar.tpl create mode 100644 phpgwapi/templates/linux-at-work.de/navbar_app.tpl create mode 100755 phpgwapi/templates/linux-at-work.de/portal_linkbox.tpl create mode 100755 phpgwapi/templates/linux-at-work.de/portal_linkbox_footer.tpl create mode 100755 phpgwapi/templates/linux-at-work.de/portal_linkbox_header.tpl create mode 100755 phpgwapi/templates/linux-at-work.de/portal_main.tpl diff --git a/phpgwapi/templates/linux-at-work.de/about.tpl b/phpgwapi/templates/linux-at-work.de/about.tpl new file mode 100644 index 0000000000..54d268c5a9 --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/about.tpl @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + +
+ +
 
{phpgw_version}
phpGroupWare is a multi-user, web-based groupware suite written in PHP.

+ +{phpgw_app_about} + +
diff --git a/phpgwapi/templates/linux-at-work.de/about_unknown.tpl b/phpgwapi/templates/linux-at-work.de/about_unknown.tpl new file mode 100644 index 0000000000..f369e59242 --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/about_unknown.tpl @@ -0,0 +1,12 @@ + + {app_header} + + +   + + +   + + + Sorry, no futher information is avaiable on this application. + \ No newline at end of file diff --git a/phpgwapi/templates/linux-at-work.de/footer.tpl b/phpgwapi/templates/linux-at-work.de/footer.tpl new file mode 100644 index 0000000000..c427c1fa11 --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/footer.tpl @@ -0,0 +1,4 @@ + + + + diff --git a/phpgwapi/templates/linux-at-work.de/head.inc.php b/phpgwapi/templates/linux-at-work.de/head.inc.php new file mode 100644 index 0000000000..3a831e25ab --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/head.inc.php @@ -0,0 +1,59 @@ +public_functions) && $GLOBALS[$class]->public_functions['css']) + { + $app_css = $GLOBALS[$class]->css(); + } + } + + $bodyheader = 'bgcolor="'.$GLOBALS['phpgw_info']['theme']['bg_color'].'" alink="'.$GLOBALS['phpgw_info']['theme']['alink'].'" link="'.$GLOBALS['phpgw_info']['theme']['link'].'" vlink="'.$GLOBALS['phpgw_info']['theme']['vlink'].'"'; + if (!$GLOBALS['phpgw_info']['server']['htmlcompliant']) + { + $bodyheader .= ' topmargin="0" marginheight="0" marginwidth="0" leftmargin="0"'; + } + + $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); + $tpl->set_unknowns('remove'); + $tpl->set_file(array('head' => 'head.tpl')); + $var = Array ( + 'charset' => lang('charset'), + 'font_family' => $GLOBALS['phpgw_info']['theme']['font'], + 'website_title' => $GLOBALS['phpgw_info']['server']['site_title'], + 'app_name' => lang($GLOBALS['phpgw_info']['flags']['currentapp']), + 'body_tags' => $bodyheader, + 'css_link' => $GLOBALS['phpgw_info']['theme']['link'], + 'css_alink' => $GLOBALS['phpgw_info']['theme']['alink'], + 'css_vlink' => $GLOBALS['phpgw_info']['theme']['vlink'], + 'css_hovlink' => $csshover, + 'app_css' => $app_css + ); + $tpl->set_var($var); + $tpl->pfp('out','head'); + unset($tpl); +?> diff --git a/phpgwapi/templates/linux-at-work.de/head.tpl b/phpgwapi/templates/linux-at-work.de/head.tpl new file mode 100644 index 0000000000..a693271d7e --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/head.tpl @@ -0,0 +1,135 @@ + + + + + + + + + + + +{website_title} - {app_name} + + + diff --git a/phpgwapi/templates/linux-at-work.de/login.tpl b/phpgwapi/templates/linux-at-work.de/login.tpl new file mode 100644 index 0000000000..832ec3760c --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/login.tpl @@ -0,0 +1,77 @@ + + + + + + + + + + +{website_title} - Login + + + +
{lang_message}
+

 

+ +
+ +

+Benutzername: demo1, demo2 oder demo3
+Passwort: demo
+
+Probleme? => lkneschke@phpgw.de +


+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ {cd} +
+   +
Benutzername: 
Passwort: 
+   +
+ +
+   +
+ basierend auf PHPGroupware {version} +
+
+ +

+ +Support: http://phpgw.de +
+ + + diff --git a/phpgwapi/templates/linux-at-work.de/login_denylogin.tpl b/phpgwapi/templates/linux-at-work.de/login_denylogin.tpl new file mode 100644 index 0000000000..d678da7e46 --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/login_denylogin.tpl @@ -0,0 +1,14 @@ + + + +phpGroupWare + + + + + +
+ Opps! You caught us in the middle of a system upgrade.
Please, check back with us shortly. +
+ + diff --git a/phpgwapi/templates/linux-at-work.de/login_selectdomain.tpl b/phpgwapi/templates/linux-at-work.de/login_selectdomain.tpl new file mode 100644 index 0000000000..044a799723 --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/login_selectdomain.tpl @@ -0,0 +1,70 @@ + + + + + + + + + + +{website_title} - Login + + + + phpGroupWare +

 

+
{lang_message}
+

 

+ + + + + +
+ + + + + + + +
+  {lang_phpgw_login} +
+ +
+ + + + + + + + + + + + + + + + + + + + +
+ {cd} +
{lang_username}: @ 
{lang_password}: 
+ +
+ {version} +
+
+ +
+
+ + + diff --git a/phpgwapi/templates/linux-at-work.de/navbar.inc.php b/phpgwapi/templates/linux-at-work.de/navbar.inc.php new file mode 100644 index 0000000000..2b1b95561a --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/navbar.inc.php @@ -0,0 +1,167 @@ +set_unknowns('remove'); + + $tpl->set_file( + array( + 'navbar' => 'navbar.tpl' + ) + ); + + //$tpl->set_block('navbar','B_powered_top','V_powered_top'); + //$tpl->set_block('navbar','B_num_users','V_num_users'); + + $var['img_root'] = PHPGW_IMAGES_DIR; + $var['img_root_roll'] = PHPGW_IMAGES_DIR . '/rollover'; + $var['table_bg_color'] = $GLOBALS['phpgw_info']['theme']['navbar_bg']; + + # echo '
'; print_r($GLOBALS['phpgw_info']['navbar']); echo '
'; + $applications = ''; + while ($app = each($GLOBALS['phpgw_info']['navbar'])) + { + if ($app[1]['title'] != 'Home' && $app[1]['title'] != 'preferences' && ! ereg('About',$app[1]['title']) && $app[1]['title'] != 'Logout') + { + $title = lang($app[1]['title']); + + $applications .= ''."\r\n"; + } + $img_src_over = $GLOBALS['phpgw']->common->image($app[0],'navbar-over.gif'); + if($img_src_over) + { + $pre_load[] = $img_src_over; + } + } + + $var['applications'] = $applications; + + $var['home_link'] = $GLOBALS['phpgw_info']['navbar']['home']['url']; + $var['preferences_link'] = $GLOBALS['phpgw_info']['navbar']['preferences']['url']; + $var['logout_link'] = $GLOBALS['phpgw_info']['navbar']['logout']['url']; + $var['help_link'] = $GLOBALS['phpgw_info']['navbar']['about']['url']; + $var['lang_welcome'] = lang('welcome'); + $var['lang_preferences'] = lang('preferences'); + $var['lang_logout'] = lang('logout'); + $var['lang_help'] = lang('help'); + + // "powered_by_color" and "_size" are is also used by number of current users thing + $var['powered_by_size'] = '2'; + $var['powered_by_color'] = '#ffffff'; + if ($GLOBALS['phpgw_info']['server']['showpoweredbyon'] == 'top') + { + $var['powered_by'] = lang('Powered by phpGroupWare version x',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']); + $tpl->set_var($var); + } + else + { + $var['powered_by'] = ''; + $tpl->set_var($var); + } + $var['phpgw_version'] = lang("version").": ".$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']; + $tpl->set_var($var); + + if (isset($GLOBALS['phpgw_info']['navbar']['admin']) && isset($GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers'])) + { + $db = $GLOBALS['phpgw']->db; + $db->query('select count(session_id) from phpgw_sessions'); + $db->next_record(); + $var['current_users'] = ' ' . lang('Current users') . ': ' . $db->f(0) . ''; + $tpl->set_var($var); + } + else + { + $var['current_users'] = ''; + $tpl->set_var($var); + } + + $var['user_info_name'] = $GLOBALS['phpgw']->common->display_fullname(); + $var['user_info_date'] = + lang($GLOBALS['phpgw']->common->show_date(time(),'l')) . ' ' + . lang($GLOBALS['phpgw']->common->show_date(time(),'F')) . ' ' + . $GLOBALS['phpgw']->common->show_date(time(),'d, Y'); + $var['user_info'] = $var['user_info_name'] .' - ' .$var['user_info_date']; + $var['user_info_size'] = '2'; + $var['user_info_color'] = '#000000'; + + // Maybe we should create a common function in the phpgw_accounts_shared.inc.php file + // to get rid of duplicate code. +/* if ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == 0) + { + $api_messages = lang('You are required to change your password during your first login') + . '
Click this image on the navbar: '; + } + elseif ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < time() - (86400*30)) + { + $api_messages = lang('it has been more then x days since you changed your password',30); + } + + // This is gonna change + if (isset($cd)) + { + $var['messages'] = $api_messages . '
' . checkcode($cd); + } +*/ + $tpl->set_var($var); + $tpl->pfp('out','navbar'); + // If the application has a header include, we now include it + if (!@$GLOBALS['phpgw_info']['flags']['noappheader'] && @isset($GLOBALS['HTTP_GET_VARS']['menuaction'])) + { + list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']); + if (is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['header']) + { + $GLOBALS[$class]->header(); + } + } + $GLOBALS['phpgw']->common->hook('after_navbar'); + return; + } + + function parse_navbar_end() + { + $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); + $tpl->set_unknowns('remove'); + + $tpl->set_file(array('footer' => 'footer.tpl')); + $tpl->set_block('footer','B_powered_bottom','V_powered_bottom'); + + if ($GLOBALS['phpgw_info']['server']['showpoweredbyon'] == 'bottom') + { + $var = Array( + 'powered' => lang('Powered by phpGroupWare version x', $GLOBALS['phpgw_info']['server']['versions']['phpgwapi']), + 'img_root' => PHPGW_IMAGES_DIR, + 'power_backcolor' => $GLOBALS['phpgw_info']['theme']['navbar_bg'], + 'power_textcolor' => $GLOBALS['phpgw_info']['theme']['navbar_text'] +// 'version' => $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'] + ); + $tpl->set_var($var); + $tpl->parse('V_powered_bottom','B_powered_bottom'); + } + else + { + $tpl->set_var('V_powered_bottom',''); + } + + $GLOBALS['phpgw']->common->hook('navbar_end'); + $tpl->pfp('out','footer'); + } diff --git a/phpgwapi/templates/linux-at-work.de/navbar.tpl b/phpgwapi/templates/linux-at-work.de/navbar.tpl new file mode 100755 index 0000000000..3885252507 --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/navbar.tpl @@ -0,0 +1,46 @@ + + + + +
+ diff --git a/phpgwapi/templates/linux-at-work.de/navbar_app.tpl b/phpgwapi/templates/linux-at-work.de/navbar_app.tpl new file mode 100644 index 0000000000..6f639d7274 --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/navbar_app.tpl @@ -0,0 +1 @@ +{value} diff --git a/phpgwapi/templates/linux-at-work.de/portal_linkbox.tpl b/phpgwapi/templates/linux-at-work.de/portal_linkbox.tpl new file mode 100755 index 0000000000..d86fd030e5 --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/portal_linkbox.tpl @@ -0,0 +1,5 @@ + + +
  • {text}
  • + + diff --git a/phpgwapi/templates/linux-at-work.de/portal_linkbox_footer.tpl b/phpgwapi/templates/linux-at-work.de/portal_linkbox_footer.tpl new file mode 100755 index 0000000000..e42cc68861 --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/portal_linkbox_footer.tpl @@ -0,0 +1,6 @@ + + + + + + diff --git a/phpgwapi/templates/linux-at-work.de/portal_linkbox_header.tpl b/phpgwapi/templates/linux-at-work.de/portal_linkbox_header.tpl new file mode 100755 index 0000000000..52421d5e7a --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/portal_linkbox_header.tpl @@ -0,0 +1,6 @@ + + + +
      + + diff --git a/phpgwapi/templates/linux-at-work.de/portal_main.tpl b/phpgwapi/templates/linux-at-work.de/portal_main.tpl new file mode 100755 index 0000000000..cd869eb557 --- /dev/null +++ b/phpgwapi/templates/linux-at-work.de/portal_main.tpl @@ -0,0 +1,14 @@ + + + + + + + +
      {title}
      + + +{output} + +
      +