remove verdilak template set from main package, will be available as a seperate package for users

This commit is contained in:
reinerj 2004-01-31 20:47:54 +00:00
parent 05d9c70c5f
commit 71f908525f
12 changed files with 0 additions and 500 deletions

View File

@ -1,26 +0,0 @@
<table border="0" width="100%">
<tr>
<td align="left">
<a href="http://www.egroupware.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.egroupware.org" target="_new">eGroupWare</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

@ -1,12 +0,0 @@
<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 further information is available on this application.</b></td>
</tr>

View File

@ -1,15 +0,0 @@
<style type="text/css">
<!--
a { text-decoration:none; color: {link}; }
a:active{ text-decoration:none; color: {alink}; }
a:hover{ text-decoration:underline; color: {alink}; }
a:visted{ text-decoration:none; color: {link}; }
body { margin-top: 0px; margin-right: 0px; margin-left: 0px; font-family: {font}; }
.row_on { color: {row_text}; background-color: {row_on}; }
.row_off { color: {row_text}; background-color: {row_off}; }
.th { color: {th_text}; background-color: {th_bg}; }
.tablink { color: #000000; }
{app_css}
-->
</style>
{css_file}

View File

@ -1,20 +0,0 @@
<!-- BEGIN footer -->
</td>
</tr>
</table>
</td>
<td background="{img_root}/endbar.gif">&nbsp;</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="{table_bg_color}">
<tr>
<td background="{img_root}/bg_filler.gif"><font color=white>{user_info}</font>&nbsp;</td>
<td background="{img_root}/bg_filler.gif" align="center">{current_users}</td>
<td background="{img_root}/bg_filler.gif" align="right"><font color=white>{powered_by}</font></td>
</tr>
</table>
</body>
</html>
<!-- END footer -->

View File

@ -1,37 +0,0 @@
<?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$ */
$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'] . '"';
$app = $GLOBALS['phpgw_info']['flags']['currentapp'];
$app = $app ? ' ['.(isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app)).']':'';
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
$tpl->set_unknowns('remove');
$tpl->set_file(array('_head' => 'head.tpl'));
$tpl->set_block('_head','head');
$var = Array (
'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico',
'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico',
'charset' => $GLOBALS['phpgw']->translation->charset(),
'website_title' => $GLOBALS['phpgw_info']['server']['site_title'] . $app,
'body_tags' => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(),
'css' => $GLOBALS['phpgw']->common->get_css(),
'java_script' => $GLOBALS['phpgw']->common->get_java_script(),
);
$tpl->set_var($var);
$tpl->pfp('out','head');
unset($tpl);
?>

View File

@ -1,16 +0,0 @@
<!-- 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="eGroupWare http://www.egroupware.org">
<META NAME="description" CONTENT="eGroupWare">
<META NAME="keywords" CONTENT="eGroupWare">
<meta name="robots" content="none">
<LINK REL="ICON" href="{img_icon}" type="image/x-ico">
<LINK REL="SHORTCUT ICON" href="{img_shortcut}">
{css}
{java_script}
<TITLE>{website_title}</TITLE>
</HEAD>
<BODY {body_tags}>
<!-- END head -->

View File

@ -1,70 +0,0 @@
<!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="eGroupWare http://www.egroupware.org">
<META NAME="description" CONTENT="eGroupWare login screen">
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<META NAME="keywords" CONTENT="eGroupWare login screen">
<TITLE>{website_title} - Login</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<p>&nbsp;</p>
<CENTER>{lang_message}</CENTER>
<p>&nbsp;</p>
<TABLE bgcolor="#000000" border="0" cellpadding="0" cellspacing="0" width="40%" align="CENTER">
<TR>
<TD>
<TABLE border="0" width="100%" bgcolor="#486591" cellpadding="2" cellspacing="1">
<TR bgcolor="#486591">
<TD align="LEFT" valign="MIDDLE">
<A href="http://www.egroupware.org"><img src="phpgwapi/templates/{template_set}/images/logo.gif" alt="eGroupWare" border="0"></a>
</TD>
</TR>
<TR bgcolor="#e6e6e6">
<TD valign="BASELINE">
<FORM method="post" action="{login_url}">
<input type="hidden" name="passwd_type" value="text">
<input type="hidden" name="account_type" value="u">
<TABLE border="0" align="CENTER" bgcolor="#486591" width="100%" cellpadding="0" cellspacing="0">
<TR bgcolor="#e6e6e6">
<TD colspan="2" align="CENTER">
{cd}
</TD>
</TR>
<TR bgcolor="#e6e6e6">
<TD align="RIGHT"><font color="#000000">{lang_username}:&nbsp;</font></TD>
<TD><input name="login" value="{cookie}"></TD>
</TR>
<TR bgcolor="#e6e6e6">
<TD align="RIGHT"><font color="#000000">{lang_password}:&nbsp;</font></TD>
<TD><input name="passwd" type="password" onChange="this.form.submit()"></TD>
</TR>
<TR bgcolor="#e6e6e6">
<TD colspan="2" align="CENTER">
<input type="submit" value="{lang_login}" name="submitit">
</TD>
</TR>
<TR bgcolor="#e6e6e6">
<TD colspan="2" 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

@ -1,14 +0,0 @@
<!-- BEGIN form -->
<BODY bgcolor="#FFFFFF">
<A href="http://www.egroupware.org"><img src="eGroupWare.jpg" alt="eGroupWare" 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

@ -1,71 +0,0 @@
<!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="eGroupWare http://www.egroupware.org">
<META NAME="description" CONTENT="eGroupWare login screen">
<META NAME="keywords" CONTENT="eGroupWare login screen">
<TITLE>{website_title} - Login</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<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" valign="MIDDLE">
<A href="http://www.egroupware.org"><img src="phpgwapi/templates/{template_set}/images/logo.gif" alt="eGroupWare" border="0"></a>
</TD>
</TR>
<TR bgcolor="#e6e6e6">
<TD valign="BASELINE">
<FORM method="post" action="{login_url}">
<input type="hidden" name="passwd_type" value="text">
<input type="hidden" name="account_type" value="u">
<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" onChange="this.form.submit()"></TD>
<TD>&nbsp;</TD>
</TR>
<TR bgcolor="#e6e6e6">
<TD colspan="3" align="CENTER">
<input type="submit" value="{lang_login}" name="submitit">
</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

@ -1,189 +0,0 @@
<?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_file(
array(
'navbartpl' => 'navbar.tpl'
)
);
$tpl->set_block('navbartpl','preferences');
$tpl->set_block('navbartpl','navbar');
$var['img_root'] = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/verdilak/images';
$var['table_bg_color'] = $GLOBALS['phpgw_info']['theme']['navbar_bg'];
$var['navbar_text'] = $GLOBALS['phpgw_info']['theme']['navbar_text'];
$applications = '';
foreach($GLOBALS['phpgw_info']['navbar'] as $app => $app_data)
{
if ($app != 'home' && $app != 'preferences' && ! ereg('about',$app) && $app != 'logout')
{
if ($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format'] != 'text')
{
$title = '<img src="' . $app_data['icon'] . '" alt="' . $app_data['title'] . '" title="'
. $app_data['title'] . '" border="0">';
}
if ($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format'] != 'icons')
{
$title .= '<br>' . $app_data['title'];
}
$applications .= '<br><a href="' . $app_data['url'] . '"';
if (isset($GLOBALS['phpgw_info']['flags']['navbar_target']) &&
$GLOBALS['phpgw_info']['flags']['navbar_target'])
{
$applications .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
}
$applications .= '>' . $title . '</a>';
unset($title);
}
}
$var['applications'] = $applications;
if (isset($GLOBALS['phpgw_info']['theme']['special_logo']))
{
$var['logo'] = $GLOBALS['phpgw_info']['theme']['special_logo'];
}
else
{
$var['logo'] = 'logo.gif';
}
$var['logo_file'] = $GLOBALS['phpgw']->common->image('phpgwapi',$GLOBALS['phpgw_info']['server']['login_logo_file']?$GLOBALS['phpgw_info']['server']['login_logo_file']:$var['logo']);
$var['logo_url'] = $GLOBALS['phpgw_info']['server']['login_logo_url']?$GLOBALS['phpgw_info']['server']['login_logo_url']:'http://www.eGroupWare.org';
$var['logo_title'] = $GLOBALS['phpgw_info']['server']['login_logo_title']?$GLOBALS['phpgw_info']['server']['login_logo_title']:'www.eGroupWare.org';
$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'];
if ($GLOBALS['phpgw_info']['flags']['currentapp'] == 'home')
{
$var['welcome_img'] = $GLOBALS['phpgw']->common->image('phpgwapi','welcome-red');
}
else
{
$var['welcome_img'] = $GLOBALS['phpgw']->common->image('phpgwapi','welcome-grey');
}
if ($GLOBALS['phpgw_info']['flags']['currentapp'] == 'preferences')
{
$var['preferences_img'] = $GLOBALS['phpgw']->common->image('phpgwapi','preferences-red');
}
else
{
$var['preferences_img'] = $GLOBALS['phpgw']->common->image('phpgwapi','preferences-grey');
}
$var['logout_img'] = $GLOBALS['phpgw']->common->image('phpgwapi','logout-grey');
$var['powered_by'] = lang('Powered by phpGroupWare version %1',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
if (isset($GLOBALS['phpgw_info']['navbar']['admin']) && $GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers'])
{
$var['current_users'] = '<a style="font-family: Geneva,Arial,Helvetica,sans-serif; font-size: 12pt;" href="'
. $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions') . '">&nbsp;'
. lang('Current users') . ': ' . $GLOBALS['phpgw']->session->total() . '</a>';
}
$now = time();
$var['user_info'] = $GLOBALS['phpgw']->common->display_fullname() . ' - '
. lang($GLOBALS['phpgw']->common->show_date($now,'l')) . ' '
. $GLOBALS['phpgw']->common->show_date($now,$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
// . lang($GLOBALS['phpgw']->common->show_date($now,'F')) . ' '
// . $GLOBALS['phpgw']->common->show_date($now,'d, Y');
// 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 %1 days since you changed your password',30);
}
// This is gonna change
if (isset($cd))
{
$var['messages'] = $api_messages . '<br>' . checkcode($cd);
}
if (isset($GLOBALS['phpgw_info']['flags']['app_header']))
{
$var['current_app_header'] = $GLOBALS['phpgw_info']['flags']['app_header'];
$var['th_bg'] = $GLOBALS['phpgw_info']['theme']['th_bg'];
}
else
{
$tpl->set_block('navbar','app_header','app_header');
$var['app_header'] = '';
}
$tpl->set_var($var);
// check if user is allowed to change his prefs
if ($GLOBALS['phpgw_info']['user']['apps']['preferences'])
{
$tpl->parse('preferences_icon','preferences');
}
else
{
$tpl->set_var('preferences_icon','');
}
$tpl->pfp('out','navbar');
// If the application has a header include, we now include it
if (!@$GLOBALS['phpgw_info']['flags']['noappheader'] && @isset($_GET['menuaction']))
{
list($app,$class,$method) = explode('.',$_GET['menuaction']);
if (is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['header'])
{
$GLOBALS[$class]->header();
}
}
$GLOBALS['phpgw']->hooks->process('after_navbar');
return;
}
function parse_navbar_end()
{
$tpl = createobject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
$tpl->set_file(
array(
'footer' => 'footer.tpl'
)
);
$var = Array(
'img_root' => $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/verdilak/images',
'table_bg_color' => $GLOBALS['phpgw_info']['theme']['navbar_bg'],
'version' => $GLOBALS['phpgw_info']['server']['versions']['phpgwapi']
);
if (isset($GLOBALS['phpgw_info']['navbar']['admin']) && $GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers'])
{
$var['current_users'] = '<a style="font-family: Geneva,Arial,Helvetica,sans-serif; font-size: 12pt;" href="'
. $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions') . '">&nbsp;'
. '<font color="white">'.lang('Current users') . ': ' . $GLOBALS['phpgw']->session->total() . '</font></a>';
}
$now = time();
$var['user_info'] = $GLOBALS['phpgw']->common->display_fullname() . ' - '
. lang($GLOBALS['phpgw']->common->show_date($now,'l')) . ' '
. $GLOBALS['phpgw']->common->show_date($now,$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
$var['powered_by'] = lang('Powered by phpGroupWare version %1',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
$tpl->set_var($var);
$GLOBALS['phpgw']->hooks->process('navbar_end');
echo $tpl->pfp('out','footer');
}

View File

@ -1,29 +0,0 @@
<!-- BEGIN navbar -->
<table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="{table_bg_color}">
<tr background="{img_root}/bg_filler.gif">
<td background="{img_root}/bg_filler.gif" align="left" valign="bottom"><a href="{logo_url}" target="_new"><img src="{logo_file}" border="0" title="{logo_title}"></a></td>
<td background="{img_root}/bg_filler.gif" align="center" valign="bottom" width="100%"><!--<font color="{navbar_text}" size="-1">{user_info}</font>--></td>
<td background="{img_root}/bg_filler.gif" align="right" valign="bottom" rowspan="2" nowrap><a href="{home_link}"><img src="{welcome_img}" border="0" alt="Welcome"></a>{preferences_icon}<a href="{logout_link}"><img src="{logout_img}" border="0" alt="Logout"></a><a href="{help_link}"><img src="{img_root}/help.gif" border="0" alt="Help"></a></td></tr>
<tr background="{img_root}/bg_filler.gif">
<td align="center" width="100%" valign="bottom" colspan="2"><img src="{img_root}/greybar.jpg" height="6" width="100%" alt="bar"></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td background="{img_root}/navbar_filler.jpg" align="left">
{applications}
</td>
<td width="100%">
<!-- BEGIN app_header -->
<div style="text-align: center; font-weight: bold; background-color: {th_bg}; padding:5px">{current_app_header}</div>
<!-- END app_header -->
<div align="center">{messages}</div>
<table border="0" cellpadding="5" width="100%">
<tr>
<td>
<!-- END navbar -->
<!-- BEGIN preferences --><a href="{preferences_link}"><img src="{preferences_img}" border="0" alt="Preferences"></a>
<!-- END preferences -->

View File

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