added my new theme bassed on CSS and Layers

This commit is contained in:
Lars Kneschke 2001-11-14 18:06:13 +00:00
parent ad28fc933c
commit 1a17b4348f
15 changed files with 642 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<table border="0" width="100%">
<tr>
<td align="left">
<a href="http://www.phpgroupware.org" target="_new"><img src="{webserver_url}/logo.gif" border="0"></a>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center">{phpgw_version}</td>
</tr>
<tr>
<td align="center"><a href="http://www.phpgroupware.org" target="_new">phpGroupWare</a> is a multi-user, web-based groupware suite written in <a href="http://www.php.net" target="_new">PHP</a>.</td>
</tr>
<tr>
<td><hr></td>
</tr>
<tr>
<td align="center">
{phpgw_app_about}
</td>
</tr>
</table>

View File

@ -0,0 +1,12 @@
<tr>
<td align="center"><font size="5"><b>{app_header}<b></font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center"><b>Sorry, no futher information is avaiable on this application.</b></td>
</tr>

View File

@ -0,0 +1,4 @@
<!-- BEGIN footer -->
</div>
<!-- END footer -->

View File

@ -0,0 +1,59 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
// needed until hovlink is specified in all theme files
if (isset($GLOBALS['phpgw_info']['theme']['hovlink'])
&& ($GLOBALS['phpgw_info']['theme']['hovlink'] != ''))
{
$csshover = 'A:hover{ text-decoration:none; color: ' .$GLOBALS['phpgw_info']['theme']['hovlink'] .'; }';
}
else
{
$csshover = '';
}
$app_css = '';
if(@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['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);
?>

View File

@ -0,0 +1,135 @@
<!-- BEGIN head -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset={charset}">
<META name="AUTHOR" content="phpGroupWare http://www.phpgroupware.org">
<META NAME="description" CONTENT="phpGroupWare">
<META NAME="keywords" CONTENT="phpGroupWare">
<STYLE type="text/css">
<!--
A.main_menu, A.main_menu:LINK, A.main_menu:VISITED {
color: White;
text-decoration: none;
}
A.main_menu:HOVER {
background-color: #7C92DC;
}
DIV.main_menu {
position : absolute;
border : 0px dotted;
background : #7C92DC;
padding : 0px 0px 0px 0px;
padding-bottom : 0px;
padding-left : 0px;
padding-right : 0px;
padding-top : 0px;
}
DIV.main_body {
position : absolute;
border : 0px dotted;
background-color : #B8FEAB;
padding-bottom : 0px;
padding-left : 0px;
padding-right : 0px;
padding-top : 0px;
}
TD.main_menu {
border-top : 0px hidden #EAE17B;
border-left : 0px hidden #EAE17B;
border-bottom : 1px solid #4242B3;
border-right : 1px solid #4242B3;
width : 100%;
height: 22px;
font-family : Arial;
font-size : 12px;
color : White;
padding-right: 10px;
margin-right: 10px;
vertical-align:middle;
text-align:right;
}
TD.main_menu_bottom {
border-top : 0px hidden #EAE17B;
border-left : 0px hidden #EAE17B;
border-bottom : 0px solid #4242B3;
border-right : 0px solid #4242B3;
width : 100%;
height: 22px;
font-family : Arial;
font-size : 10px;
color : White;
padding-right: 10px;
margin-right: 10px;
vertical-align:middle;
text-align:left;
white-space: nowrap;
}
TD.main_menu_apps {
border-top : 0px hidden #EAE17B;
border-left : 0px hidden #EAE17B;
border-bottom : 1px solid #6157D5;
border-right : 1px solid #6157D5;
width : 100%;
height: 12px;
font-family : Arial;
font-size : 12px;
color : White;
padding-right: 10px;
margin-right: 10px;
vertical-align:middle;
text-align:right;
}
TD.main_menu_info {
border-top : 0px hidden #EAE17B;
border-left : 0px hidden #EAE17B;
border-bottom : 1px solid #4242B3;
border-right : 1px solid #4242B3;
width : 100%;
height: 22px;
font-family : Arial;
font-size : 10px;
color : White;
padding-right: 10px;
margin-right: 10px;
vertical-align:middle;
text-align:right;
}
a { text-decoration:none; }
A:link{ text-decoration:none; color: {css_link}; }
A:visted{ text-decoration:none; color: {css_vlink}; }
A:active{ text-decoration:none; color: {css_alink}; }
{css_hovlink}
body {
margin-top: 0px;
margin-right: 0px;
margin-left: 0px;
font-family: "{font_family}";
background-color : #B8FEAB;
}
.tablink { color: #000000; }
{app_css}
-->
</STYLE>
<script language="JavaScript">
<!--
function MM_preloadImages()
{
}
//-->
</script>
<TITLE>{website_title} - {app_name}</TITLE>
</HEAD>
<!-- idsociety body tags continue into navbar.tpl, so the closing bracket here is there END Head -->
<BODY onLoad="MM_preloadImages()">

View File

@ -0,0 +1,77 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<!-- BEGIN login_form -->
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset={charset}">
<META name="AUTHOR" content="phpGroupWare http://www.phpgroupware.org">
<META NAME="description" CONTENT="phpGroupWare login screen">
<META NAME="keywords" CONTENT="phpGroupWare login screen">
<LINK rel="stylesheet" href="/copy.css">
<TITLE>{website_title} - Login</TITLE>
</HEAD>
<BODY bgcolor="#1559a9" text="#FFFFFF" topmargin="0" marginheight="0" marginwidth="0" leftmargin="0">
<CENTER>{lang_message}</CENTER>
<p>&nbsp;</p>
<center>
<br><br>
Benutzername: demo1, demo2 oder demo3<br>
Passwort: demo<br>
<br>
Probleme? => <a href="mailto:lkneschke@phpgw.de">lkneschke@phpgw.de</a>
<br><br><br>
<FORM method="post" action="{login_url}">
<TABLE border="0" align="CENTER" bgcolor="#1559a9" cellpadding="0" cellspacing="0">
<TR bgcolor="#1559a9">
<TD colspan="2" align="CENTER">
{cd}
</TD>
</TR>
<TR bgcolor="#1559a9">
<TD colspan="2" align="CENTER">
&nbsp;
</TD>
</TR>
<TR bgcolor="#1559a9">
<TD align="RIGHT"><font color="#FFFF99">Benutzername:&nbsp;</font></TD>
<TD><input name="login" value="{cookie}"></TD>
</TR>
<TR bgcolor="#1559a9">
<TD align="RIGHT"><font color="#FFFF99">Passwort:&nbsp;</font></TD>
<TD><input name="passwd" type="password"></TD>
</TR>
<TR bgcolor="#1559a9">
<TD colspan="2" align="CENTER">
&nbsp;
</TD>
</TR>
<TR bgcolor="#1559a9">
<TD colspan="2" align="CENTER">
<input class="submit" type="submit" value="Anmelden" name="submit">
</TD>
</TR>
<TR bgcolor="#1559a9">
<TD colspan="2" align="CENTER">
&nbsp;
</TD>
</TR>
<TR bgcolor="#1559a9">
<TD colspan="2" align="RIGHT">
<font color="000000" size="-1">basierend auf PHPGroupware {version}</font>
</TD>
</TR>
</TABLE>
</FORM>
<br><br>
Support: <a href="http://phpgw.de/index.php"
target="_lawde">http://phpgw.de</a>
</center>
<!-- END login_form -->
</HTML>

View File

@ -0,0 +1,14 @@
<!-- BEGIN form -->
<BODY bgcolor="#FFFFFF">
<A href="http://www.phpgroupware.org"><img src="phpGroupWare.jpg" alt="phpGroupWare" border="0"></a>
<TABLE border="0" height="94%" width="100%">
<TR>
<TD align="CENTER">
Opps! You caught us in the middle of a system upgrade.<br>Please, check back with us shortly.
</TD>
</TR>
</TABLE>
<!-- END form -->

View File

@ -0,0 +1,70 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<!-- BEGIN login_form -->
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META name="AUTHOR" content="phpGroupWare http://www.phpgroupware.org">
<META NAME="description" CONTENT="phpGroupWare login screen">
<META NAME="keywords" CONTENT="phpGroupWare login screen">
<TITLE>{website_title} - Login</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<A href="http://www.phpgroupware.org"><img src="phpGroupWare.jpg" alt="phpGroupWare" border="0"></a>
<p>&nbsp;</p>
<CENTER>{lang_message}</CENTER>
<p>&nbsp;</p>
<TABLE bgcolor="000000" border="0" cellpadding="0" cellspacing="0" width="60%" align="CENTER">
<TR>
<TD>
<TABLE border="0" width="100%" bgcolor="486591" cellpadding="2" cellspacing="1">
<TR bgcolor="486591">
<TD align="LEFT">
<font color="fefefe">&nbsp;{lang_phpgw_login}</font>
</TD>
</TR>
<TR bgcolor="e6e6e6">
<TD valign="BASELINE">
<FORM method="post" action="{login_url}">
<TABLE border="0" align="CENTER" bgcolor="486591" width="100%" cellpadding="0" cellspacing="0">
<TR bgcolor="e6e6e6">
<TD colspan="3" align="CENTER">
{cd}
</TD>
</TR>
<TR bgcolor="e6e6e6">
<TD align="RIGHT"><font color="000000">{lang_username}:</font></TD>
<TD align="RIGHT"><input name="login" value="{cookie}"></TD>
<TD align="LEFT">&nbsp;@&nbsp;<select name="logindomain">{select_domain}</select></TD>
</TR>
<TR bgcolor="e6e6e6">
<TD align="RIGHT"><font color="000000">{lang_password}:</font></TD>
<TD align="RIGHT"><input name="passwd" type="password"></TD>
<TD>&nbsp;</TD>
</TR>
<TR bgcolor="e6e6e6">
<TD colspan="3" align="CENTER">
<input type="submit" value="{lang_login}" name="submit">
</TD>
</TR>
<TR bgcolor="e6e6e6">
<TD colspan="3" align="RIGHT">
<font color="000000" size="-1">{version}</font>
</TD>
</TR>
</TABLE>
</FORM>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<!-- END login_form -->
</HTML>

View File

@ -0,0 +1,167 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
function parse_navbar($force = False)
{
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
$tpl->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 '<pre>'; print_r($GLOBALS['phpgw_info']['navbar']); echo '</pre>';
$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 .= '<tr><td class="main_menu_apps"><a class="main_menu" href="' . $app[1]['url'] . '"';
if (isset($GLOBALS['phpgw_info']['flags']['navbar_target']))
{
$applications .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
}
$applications .= '>'.$title.'</a></td></tr>'."\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'] = '<a href="' . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions')
. '">&nbsp;' . lang('Current users') . ': ' . $db->f(0) . '</a>';
$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')
. '<br> Click this image on the navbar: <img src="'
. $GLOBALS['phpgw']->common->image('preferences','navbar.gif').'">';
}
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 . '<br>' . 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');
}

View File

@ -0,0 +1,46 @@
<div class="main_menu" style="width : 15% ; height : 100% ; left : 0px ; top : 0px ;">
<table summary="" style="width : 100%; ">
<tr >
<td class="main_menu">
<a class="main_menu" href="{home_link}">{lang_welcome}</a>
</td>
</tr>
<tr >
<td class="main_menu">
<a class="main_menu" href="{preferences_link}">{lang_preferences}</a>
</td>
</tr>
<tr >
<td class="main_menu">
<a class="main_menu" href="{logout_link}">{lang_logout}</a>
</td>
</tr>
<tr >
<td class="main_menu">
<a class="main_menu" href="{help_link}">{lang_help}</a>
</td>
</tr>
<tr >
<td>
&nbsp;
</td>
</tr>
<!-- applications supplies their own tr's and td's -->
{applications}
</table>
</div>
<div class="main_menu" style="width : 15% ; height : 50px ; left : 0px ; bottom : 0px ;">
<table summary="" style="width : 100%; ">
<tr>
<td class="main_menu_bottom">
{user_info_name}<br>
{user_info_date}<br>
{phpgw_version}
</td>
</tr>
</table>
</div>
<div class="main_body" style="width : 85% ; height : 100% ; left : 15% ; top :0px ; overflow : auto">
<!-- END navbar -->

View File

@ -0,0 +1 @@
<td align="center" width="{width}">{value}</td>

View File

@ -0,0 +1,5 @@
<!-- $Id$ -->
<!-- BEGIN portal_linkbox -->
<li><a href="{link}">{text}</a></li>
<!-- END portal_linkbox -->

View File

@ -0,0 +1,6 @@
<!-- $Id$ -->
<!-- BEGIN portal_listbox_footer -->
</ul>
</td>
<!-- END portal_listbox_footer -->

View File

@ -0,0 +1,6 @@
<!-- $Id$ -->
<!-- BEGIN portal_listbox_header -->
<td>
<ul>
<!-- END portal_listbox_header -->

View File

@ -0,0 +1,14 @@
<table border="{outer_border}" cellpadding="0" cellspacing="1" width="{outer_width}" bordercolor="{outer_bordercolor}" bgcolor="{outer_bgcolor}">
<tr>
<td align="center" background="{header_background_image}">{title}</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="2" cellspacing="1" width="{inner_width}" bgcolor="{inner_bgcolor}" bordercolor="{outer_bordercolor}">
<tr>
{output}
</tr>
</table>
</td>
</tr>
</table>