mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
add literati files to CVS
This commit is contained in:
parent
406df3e974
commit
c0907810b9
9
phpgwapi/templates/literati/css.tpl
Executable file
9
phpgwapi/templates/literati/css.tpl
Executable file
@ -0,0 +1,9 @@
|
||||
<style type="text/css">
|
||||
<!--
|
||||
.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}; }
|
||||
{app_css}
|
||||
-->
|
||||
</style>
|
||||
{css_file}
|
16
phpgwapi/templates/literati/doc/CHANGELOG
Normal file
16
phpgwapi/templates/literati/doc/CHANGELOG
Normal file
@ -0,0 +1,16 @@
|
||||
Fri Apr 18 01:51:00 CEST 2003
|
||||
- resize icons to 32x32
|
||||
- renamed css file for better compatibility
|
||||
- removed unneccesary files in calender and email template directory
|
||||
- merged changed from Ralf Becker
|
||||
- remade the logo
|
||||
- changed gif to png where possible (create_tabs in class.common.inc.php only uses gifs!!!)
|
||||
- moved tree to 0.9.16 branch
|
||||
|
||||
Wed Apr 16 23:07:54 CEST 2003
|
||||
- Get app titles from new array without using the lang() call
|
||||
- Moved 'Homelink' from navbar to sidebox
|
||||
- Use preference setting 'icons', 'icons and text'
|
||||
- sidebox menu's can be hooked now (see template hook-files in phpgwapi/templates/idots/doc/hook_templates/
|
||||
- replaces correct gimpsource file for navbar icons: phpgwapi/templates/idots/source/navbar.xcf
|
||||
- additional information in the README
|
41
phpgwapi/templates/literati/doc/README
Normal file
41
phpgwapi/templates/literati/doc/README
Normal file
@ -0,0 +1,41 @@
|
||||
+++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
IDOTS TEMPLATE SET FOR PHPGROUPWARE
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
The template set idots, formaly known as MYiDOTS is
|
||||
havely based on the Crystal Icon theme from
|
||||
Everaldo.
|
||||
|
||||
APPLICATION ICONS
|
||||
===================================================
|
||||
Because of a bug in Internet Explorer which causes
|
||||
it to display transpancy in PNG's as black I gave
|
||||
all icons a background.
|
||||
|
||||
Everybody is encouraged to make more icons for the
|
||||
idots template set. Please don't use gif as Image
|
||||
type because this filetype in not an open standard
|
||||
|
||||
The source Gimp-files can be found in
|
||||
phpgwapi/templates/idots/source/
|
||||
|
||||
The logo source file can also be found in the above
|
||||
directory.
|
||||
|
||||
APPLICATION HOOKS
|
||||
===================================================
|
||||
In the hook_file, hook_sidebox_menu.inc.php,
|
||||
developers can define the sidebox menu's for their
|
||||
applications template hook files can be found in
|
||||
phpgwapi/templates/idots/hook_templates/
|
||||
|
||||
|
||||
Hope you enjoy this template set,
|
||||
Pim Snel
|
||||
|
||||
|
||||
|
||||
|
||||
|
5
phpgwapi/templates/literati/doc/TODO
Normal file
5
phpgwapi/templates/literati/doc/TODO
Normal file
@ -0,0 +1,5 @@
|
||||
- validate css and make valid CSS
|
||||
- validate html and make valid html 4.01
|
||||
- remove phpBB.org code etc...
|
||||
- a lot of icons
|
||||
- some sort of template-set configuration (maybe create a fake app???)
|
11
phpgwapi/templates/literati/footer.tpl
Executable file
11
phpgwapi/templates/literati/footer.tpl
Executable file
@ -0,0 +1,11 @@
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<br></TD>
|
||||
<TD width=15></TD>
|
||||
</TR>
|
||||
</TABLE></TR>
|
||||
</TABLE></TR>
|
||||
</TABLE>
|
||||
<p align="center" class="copyright">{powered_by}</p>
|
||||
<!-- END footer.tpl -->
|
49
phpgwapi/templates/literati/head.inc.php
Normal file
49
phpgwapi/templates/literati/head.inc.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?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'] . '"';
|
||||
|
||||
if (! $GLOBALS['phpgw_info']['server']['htmlcompliant'])
|
||||
{
|
||||
$bodyheader .= '';
|
||||
}
|
||||
|
||||
$theme_css = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/literati/css/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['theme'].'.css';
|
||||
if (!file_exists($theme_css))
|
||||
{
|
||||
$theme_css = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/literati/css/golden.css';
|
||||
}
|
||||
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
|
||||
$tpl->set_unknowns('remove');
|
||||
$tpl->set_file(array('head' => 'head.tpl'));
|
||||
|
||||
$app = $GLOBALS['phpgw_info']['flags']['currentapp'];
|
||||
$app = $app ? ' ['.(isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app)).']':'';
|
||||
|
||||
$var = Array (
|
||||
'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico',
|
||||
'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico',
|
||||
'charset' => $GLOBALS['phpgw']->translation->charset(),
|
||||
'font_family' => $GLOBALS['phpgw_info']['theme']['font'],
|
||||
'website_title' => $GLOBALS['phpgw_info']['server']['site_title'].$app,
|
||||
'body_tags' => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(),
|
||||
'theme_css' => $theme_css,
|
||||
'css' => $GLOBALS['phpgw']->common->get_css(),
|
||||
'java_script' => $GLOBALS['phpgw']->common->get_java_script(),
|
||||
);
|
||||
$tpl->set_var($var);
|
||||
$tpl->pfp('out','head');
|
||||
unset($tpl);
|
||||
?>
|
18
phpgwapi/templates/literati/head.tpl
Normal file
18
phpgwapi/templates/literati/head.tpl
Normal file
@ -0,0 +1,18 @@
|
||||
<!-- 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">
|
||||
<meta name="robots" content="none">
|
||||
<LINK REL="ICON" href="{img_icon}" type="image/x-ico">
|
||||
<LINK REL="SHORTCUT ICON" href="{img_shortcut}">
|
||||
<LINK href="{theme_css}" type=text/css rel=StyleSheet>
|
||||
{css}
|
||||
<TITLE>{website_title}</TITLE>
|
||||
{java_script}
|
||||
</HEAD>
|
||||
<BODY bgColor="#e5e5e5" {body_tags}>
|
||||
<!-- END Head -->
|
86
phpgwapi/templates/literati/login.tpl
Executable file
86
phpgwapi/templates/literati/login.tpl
Executable file
@ -0,0 +1,86 @@
|
||||
<!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.phpgroupware.org">
|
||||
<META NAME="description" CONTENT="eGroupware login screen">
|
||||
<META NAME="keywords" CONTENT="eGroupware login screen">
|
||||
<link rel="stylesheet" href="phpgwapi/templates/{template_set}/css/idots.css" type="text/css">
|
||||
<TITLE>{website_title} - Login</TITLE>
|
||||
</HEAD>
|
||||
<BODY bgcolor="#FFFFFF">
|
||||
<br>
|
||||
<a href="http://{logo_url}"><img src="{logo_file}" alt="{logo_title}" title="{logo_title}" border="0"></a>
|
||||
<CENTER>{lang_message}</CENTER>
|
||||
<p> </p>
|
||||
<FORM name="login_form" method="post" action="{login_url}">
|
||||
<TABLE class=sidebox cellSpacing=1 cellPadding=0 border=0 align=center>
|
||||
<TR>
|
||||
<TD class="sideboxtitle" align="center" height=28>{website_title}</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD class="sideboxcontent" bgColor="#efefef">
|
||||
|
||||
<TABLE class="sideboxtext" cellSpacing=0 cellPadding=0 width="100%" border="0">
|
||||
<TR bgcolor="#e6e6e6">
|
||||
<TD colspan="3" align="center">
|
||||
{cd}
|
||||
<br>
|
||||
<img width="300" height="1" src="phpgwapi/templates/{template_set}/images/spacer.gif" alt="">
|
||||
</TD>
|
||||
</TR>
|
||||
<TR bgcolor="#e6e6e6">
|
||||
<TD colspan="3"> <input type="hidden" name="passwd_type" value="text"> </TD>
|
||||
</TR>
|
||||
<TR bgcolor="#e6e6e6">
|
||||
<td align="right"><font color="#000000">{lang_username}: </font></TD>
|
||||
<td align="left"><input name="login" value="{cookie}" style="width: 100px; border: 1px solid silver;"></TD>
|
||||
<TD align="left"> </TD>
|
||||
</TR>
|
||||
<TR bgcolor="#e6e6e6">
|
||||
<TD align="RIGHT"><font color="#000000">{lang_password}: </font></TD>
|
||||
<td align="left"><input name="passwd" type="password" onChange="this.form.submit()" style="WIDTH: 100px; border: 1px solid silver;"></TD>
|
||||
<td> </td>
|
||||
</TR>
|
||||
<TR bgcolor="#e6e6e6">
|
||||
<TD colspan="3" align="CENTER">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
<TR bgcolor="#e6e6e6">
|
||||
<TD colspan="3" align="CENTER">
|
||||
<input type="submit" value="{lang_login}" name="submitit" style="border: 1px solid silver;">
|
||||
</TD>
|
||||
</TR>
|
||||
<TR bgcolor="#e6e6e6">
|
||||
<TD colspan="3" align="CENTER">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
<!--
|
||||
<TR bgcolor="#e6e6e6">
|
||||
<TD colspan="3" align="RIGHT">
|
||||
<font color="#000000" size="-1">eGroupWare {version}</font>
|
||||
</TD>
|
||||
</TR>
|
||||
-->
|
||||
</TABLE>
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</FORM>
|
||||
<script language="javascript1.2">
|
||||
<!--
|
||||
// position cursor in top form field
|
||||
document.login_form.login.focus();
|
||||
//-->
|
||||
</script>
|
||||
<div style="bottom:10px;left:10px;position:absolute;visibility:hidden;">
|
||||
<img src="phpgwapi/templates/{template_set}/images/valid-html401.png" border="0" alt="Valid HTML 4.01">
|
||||
<img src="phpgwapi/templates/{template_set}/images/vcss.png" border="0" alt="Valid CSS">
|
||||
</div>
|
||||
<div style="bottom:10px;right:10px;position:absolute;">
|
||||
<a href="http://www.egroupware.org" target="_blank">eGroupWare</a> {version}</div>
|
||||
</body>
|
||||
</html>
|
14
phpgwapi/templates/literati/login_denylogin.tpl
Executable file
14
phpgwapi/templates/literati/login_denylogin.tpl
Executable 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 -->
|
70
phpgwapi/templates/literati/login_selectdomain.tpl
Executable file
70
phpgwapi/templates/literati/login_selectdomain.tpl
Executable file
@ -0,0 +1,70 @@
|
||||
<!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.phpgroupware.org">
|
||||
<META NAME="description" CONTENT="eGroupware login screen">
|
||||
<META NAME="keywords" CONTENT="eGroupware login screen">
|
||||
<link rel="stylesheet" href="phpgwapi/templates/{template_set}/css/idots.css" type="text/css">
|
||||
<TITLE>{website_title} - Login</TITLE>
|
||||
</HEAD>
|
||||
<BODY bgcolor="#FFFFFF">
|
||||
<br>
|
||||
<a href="http://{logo_url}"><img src="{logo_file}" alt="{logo_title}" title="{logo_title}" border="0"></a>
|
||||
<CENTER>{lang_message}</CENTER>
|
||||
<p> </p>
|
||||
<TABLE class=sidebox cellSpacing=1 cellPadding=0 border=0 align=center>
|
||||
<TR>
|
||||
<TD class="sideboxtitle" align="center" height=28>{website_title}</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD class="sideboxcontent" bgColor="#efefef">
|
||||
<FORM method="post" action="{login_url}">
|
||||
|
||||
<TABLE class="sideboxtext" cellSpacing=0 cellPadding=0 width="100%" border="0">
|
||||
<TR bgcolor="#e6e6e6">
|
||||
<TD colspan="3" align="center">
|
||||
{cd}
|
||||
<br>
|
||||
<img width="300" height="1" src="phpgwapi/templates/{template_set}/images/spacer.gif" alt="">
|
||||
</TD>
|
||||
</TR>
|
||||
<TR bgcolor="#e6e6e6">
|
||||
<TD colspan="3"> <input type="hidden" name="passwd_type" value="text"> </TD>
|
||||
</TR>
|
||||
<TR bgcolor="#e6e6e6">
|
||||
<td align="right"><font color="#000000">{lang_username}: </font></TD>
|
||||
<td align="right"><input name="login" value="{cookie}" style="width: 100px;"></TD>
|
||||
<TD align="left"><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()" style="WIDTH: 100px;"></TD>
|
||||
<td> </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">eGroupWare {version}</font>
|
||||
</TD>
|
||||
</TR>
|
||||
-->
|
||||
</TABLE>
|
||||
</FORM>
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<div style="bottom:10px;left:10px;position:absolute;visibility:hidden;">
|
||||
<img src="phpgwapi/templates/{template_set}/images/valid-html401.png" border="0" alt="Valid HTML 4.01">
|
||||
<img src="phpgwapi/templates/{template_set}/images/vcss.png" border="0" alt="Valid CSS">
|
||||
</div>
|
||||
<div style="bottom:10px;right:10px;position:absolute;">
|
||||
<a href="http://www.egroupware.org" target="_blank">eGroupWare</a> {version}</div>
|
||||
</body>
|
||||
</html>
|
199
phpgwapi/templates/literati/navbar.inc.php
Normal file
199
phpgwapi/templates/literati/navbar.inc.php
Normal file
@ -0,0 +1,199 @@
|
||||
<?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)
|
||||
{
|
||||
$GLOBALS['idots_tpl'] = createobject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
|
||||
|
||||
$GLOBALS['idots_tpl']->set_file(
|
||||
array(
|
||||
'navbar' => 'navbar.tpl'
|
||||
)
|
||||
);
|
||||
|
||||
$GLOBALS['idots_tpl']->set_block('navbar','navbar_header','navbar_header');
|
||||
$GLOBALS['idots_tpl']->set_block('navbar','extra_blocks_header','extra_block_header');
|
||||
$GLOBALS['idots_tpl']->set_block('navbar','extra_block_row','extra_block_row');
|
||||
$GLOBALS['idots_tpl']->set_block('navbar','extra_block_spacer','extra_block_spacer');
|
||||
$GLOBALS['idots_tpl']->set_block('navbar','extra_blocks_footer','extra_blocks_footer');
|
||||
$GLOBALS['idots_tpl']->set_block('navbar','navbar_footer','navbar_footer');
|
||||
|
||||
$var['img_root'] = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/literati/images';
|
||||
$var['table_bg_color'] = $GLOBALS['phpgw_info']['theme']['navbar_bg'];
|
||||
|
||||
$applications = '';
|
||||
// == 'icons_and_text')
|
||||
foreach($GLOBALS['phpgw_info']['navbar'] as $app => $app_data)
|
||||
{
|
||||
if ($app != 'home' && $app != 'preferences' && $app != 'about' && $app != 'logout')
|
||||
{
|
||||
$title = $GLOBALS['phpgw_info']['apps'][$app]['title'];
|
||||
|
||||
$icon = '<img src="' . $app_data['icon'] . '" alt="' . $title .
|
||||
'" title="'. $title . '" border="0" height="60">';
|
||||
|
||||
$app_icons .= '<TD align="center"><a href="' . $app_data['url'] . '"';
|
||||
if (isset($GLOBALS['phpgw_info']['flags']['navbar_target']) &&
|
||||
$GLOBALS['phpgw_info']['flags']['navbar_target'])
|
||||
{
|
||||
$app_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
|
||||
}
|
||||
$app_icons .= '>' . $icon . '</a></TD>';
|
||||
|
||||
$app_titles .= '<TD align=center class="mainnote"><a href="'.$app_data['url'] . '"';
|
||||
if (isset($GLOBALS['phpgw_info']['flags']['navbar_target']) &&
|
||||
$GLOBALS['phpgw_info']['flags']['navbar_target'])
|
||||
{
|
||||
$app_titles .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
|
||||
}
|
||||
$app_titles .= '>' . $title . '</a></TD>';
|
||||
|
||||
unset($icon);
|
||||
unset($title);
|
||||
}
|
||||
}
|
||||
|
||||
$var['app_icons'] = $app_icons;
|
||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']!='icons')
|
||||
{
|
||||
$var['app_titles'] = $app_titles;
|
||||
}
|
||||
if (isset($GLOBALS['phpgw_info']['flags']['app_header']))
|
||||
{
|
||||
$var['current_app_title'] = $GLOBALS['phpgw_info']['flags']['app_header'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['current_app_title']=$GLOBALS['phpgw_info']['navbar'][$GLOBALS['phpgw_info']['flags']['currentapp']]['title'];
|
||||
}
|
||||
|
||||
if (isset($GLOBALS['phpgw_info']['navbar']['admin']) && $GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers'])
|
||||
{
|
||||
$var['current_users'] = '<a href="'
|
||||
. $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions') . '">'
|
||||
. lang('Current users') . ': ' . $GLOBALS['phpgw']->session->total() . '</a>';
|
||||
}
|
||||
$now = time();
|
||||
$var['user_info'] = '<b>'.$GLOBALS['phpgw']->common->display_fullname() .'</b>'. ' - '
|
||||
. lang($GLOBALS['phpgw']->common->show_date($now,'l')) . ' '
|
||||
. $GLOBALS['phpgw']->common->show_date($now,$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
|
||||
|
||||
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').'">';
|
||||
}
|
||||
else if ($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);
|
||||
}
|
||||
|
||||
$var['logo_file'] = $GLOBALS['phpgw']->common->image('phpgwapi',$GLOBALS['phpgw_info']['server']['login_logo_file']?$GLOBALS['phpgw_info']['server']['login_logo_file']:'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';
|
||||
|
||||
$GLOBALS['idots_tpl']->set_var($var);
|
||||
$GLOBALS['idots_tpl']->pfp('out','navbar_header');
|
||||
|
||||
$menu_title = lang('General Menu');
|
||||
|
||||
$file['Home'] = $GLOBALS['phpgw_info']['navbar']['home']['url'];
|
||||
if ($GLOBALS['phpgw_info']['user']['apps']['preferences'])
|
||||
{
|
||||
$file['Preferences'] = $GLOBALS['phpgw_info']['navbar']['preferences']['url'];
|
||||
}
|
||||
$file += array(
|
||||
'About %1'=>$GLOBALS['phpgw_info']['navbar']['about']['url'],
|
||||
'Logout'=>$GLOBALS['phpgw_info']['navbar']['logout']['url']
|
||||
);
|
||||
|
||||
display_sidebox('',$menu_title,$file);
|
||||
|
||||
$GLOBALS['phpgw']->hooks->single('sidebox_menu',$GLOBALS['phpgw_info']['flags']['currentapp']);
|
||||
|
||||
$GLOBALS['idots_tpl']->pparse('out','navbar_footer');
|
||||
|
||||
// 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']->hooks->process('after_navbar');
|
||||
return;
|
||||
}
|
||||
|
||||
function display_sidebox($appname,$menu_title,$file)
|
||||
{
|
||||
|
||||
if(!$appname || ($appname==$GLOBALS['phpgw_info']['flags']['currentapp'] && $file))
|
||||
{
|
||||
$var['lang_title']=$menu_title;//$appname.' '.lang('Menu');
|
||||
$GLOBALS['idots_tpl']->set_var($var);
|
||||
$GLOBALS['idots_tpl']->pfp('out','extra_blocks_header');
|
||||
|
||||
while(list($text,$url) = each($file))
|
||||
{
|
||||
sidebox_menu_item($url,$text);
|
||||
}
|
||||
|
||||
$GLOBALS['idots_tpl']->pparse('out','extra_blocks_footer');
|
||||
}
|
||||
}
|
||||
|
||||
function sidebox_menu_item($item_link='',$item_text='')
|
||||
{
|
||||
if($item_text == '_NewLine_' || $item_link == '_NewLine_')
|
||||
{
|
||||
$GLOBALS['idots_tpl']->pparse('out','extra_block_spacer');
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['icon_or_star']='<font color="#ff9933">*</font>';
|
||||
$var['lang_item']=lang($item_text);
|
||||
$var['item_link']=$item_link;
|
||||
$GLOBALS['idots_tpl']->set_var($var);
|
||||
$GLOBALS['idots_tpl']->pparse('out','extra_block_row');
|
||||
}
|
||||
}
|
||||
|
||||
function parse_navbar_end()
|
||||
{
|
||||
$GLOBALS['idots_tpl'] = createobject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
|
||||
|
||||
$GLOBALS['idots_tpl']->set_file(
|
||||
array(
|
||||
'footer' => 'footer.tpl'
|
||||
)
|
||||
);
|
||||
$var = Array(
|
||||
'img_root' => $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/images',
|
||||
'table_bg_color' => $GLOBALS['phpgw_info']['theme']['navbar_bg'],
|
||||
'version' => $GLOBALS['phpgw_info']['server']['versions']['phpgwapi']
|
||||
);
|
||||
$GLOBALS['phpgw']->hooks->process('navbar_end');
|
||||
|
||||
$var['powered_by'] = lang('Powered by phpGroupWare version %1',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
|
||||
$GLOBALS['idots_tpl']->set_var($var);
|
||||
$GLOBALS['idots_tpl']->pfp('out','footer');
|
||||
}
|
87
phpgwapi/templates/literati/navbar.tpl
Normal file
87
phpgwapi/templates/literati/navbar.tpl
Normal file
@ -0,0 +1,87 @@
|
||||
<!-- BEGIN navbar_header -->
|
||||
<TABLE class=box height="90%" cellSpacing=0 cellPadding=1 width="100%" bgColor=#ffffff border=0>
|
||||
<TR>
|
||||
<TD vAlign=top>
|
||||
<TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#ffffff border=0>
|
||||
<TR>
|
||||
<TD width=185 rowSpan=2 align="center" vAlign=top class=toppannel><a href="http://{logo_url}" target="_blank"><IMG src="{logo_file}" border="0" title="{logo_title}"></a></TD>
|
||||
<TD colspan="2" valign="top">
|
||||
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 bgColor="#ffffff">
|
||||
<TR valign="center">
|
||||
<TD width="1%"></TD>
|
||||
<!-- <TD align=center width="10%"><a href="{home_link}"><img src="{img_root}/home.jpg" width="60" height="62" border="0"></TD></a>-->
|
||||
{app_icons}
|
||||
<TD width="1%"></TD>
|
||||
</TR>
|
||||
<TR valign="top" bgcolor="#ffffff">
|
||||
<TD width="1%"></TD>
|
||||
<!-- <TD align=center class="mainnote"><a href="{home_link}">{lang_home}</a></TD>-->
|
||||
{app_titles}
|
||||
<TD width="1%" colspan="100"></TD>
|
||||
</TR>
|
||||
</TABLE></TD>
|
||||
<TD width=15 rowSpan=2 vAlign=top class=toppannel></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD align=left vAlign=top class=mainnote>{user_info}</TD>
|
||||
<TD align=right vAlign=top class=mainnote>{current_users}</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
||||
<TR vAlign=top>
|
||||
<TD width=15></TD>
|
||||
<TD vAlign=top width=1>
|
||||
|
||||
<!-- start blocks -->
|
||||
<!-- END navbar_header -->
|
||||
|
||||
|
||||
<!-- BEGIN navbar_footer -->
|
||||
<BR>
|
||||
</TD>
|
||||
<TD width=15><img src={img_root}/spacer.gif width=15></TD>
|
||||
<TD>
|
||||
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
||||
<TR>
|
||||
<TD vAlign=top height="100%"> <TABLE align="center" class=box cellSpacing=1 cellPadding=0 width="100%" border=0>
|
||||
<TR>
|
||||
<TD height=23 colSpan=2 align="center" class=articletitle>{current_app_title}</TD>
|
||||
</TR>
|
||||
<TR align="center">
|
||||
<TD height=20 colSpan=2 bgColor=#efefef class=mainnote>
|
||||
<!-- END navbar_footer -->
|
||||
|
||||
|
||||
<!-- BEGIN extra_blocks_header -->
|
||||
<TABLE class=sidebox cellSpacing=1 cellPadding=0 width="100%" border=0>
|
||||
<TR>
|
||||
<TD class=sideboxtitle align=middle height=28>{lang_title}</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD class=sideboxcontent bgColor=#efefef>
|
||||
<TABLE class=sideboxtext cellSpacing=0 cellPadding=0 width="100%" border=0 valign="top">
|
||||
<!-- END extra_blocks_header -->
|
||||
|
||||
|
||||
<!-- BEGIN extra_blocks_footer -->
|
||||
</TABLE>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<br>
|
||||
<!-- END extra_blocks_footer -->
|
||||
|
||||
|
||||
|
||||
<!-- BEGIN extra_block_row -->
|
||||
<TR>
|
||||
<TD vAlign=top align=middle>{icon_or_star} </TD>
|
||||
<TD width="100%" height="20" align=left vAlign=top><A href="{item_link}">{lang_item}</A></TD>
|
||||
</TR>
|
||||
<!-- END extra_block_row -->
|
||||
|
||||
<!-- BEGIN extra_block_spacer -->
|
||||
<TR>
|
||||
<TD colspan="2" height="8"></TD>
|
||||
</TR>
|
||||
<!-- END extra_block_spacer -->
|
3
phpgwapi/templates/literati/navbar_app.tpl
Executable file
3
phpgwapi/templates/literati/navbar_app.tpl
Executable file
@ -0,0 +1,3 @@
|
||||
<TD width="10%" align=center><img src="{img_root}/admin.jpg" width="60" height="62"></TD>
|
||||
|
||||
<!--<td align="center" width="{width}">{value}</td>-->
|
102
phpgwapi/templates/literati/nextmatchs.tpl
Executable file
102
phpgwapi/templates/literati/nextmatchs.tpl
Executable file
@ -0,0 +1,102 @@
|
||||
<!-- BEGIN nextmatchs -->
|
||||
<table width="{table_width}" border="0" bgcolor="{th_bg}" cellspacing="0" cellpadding="0" cols="5">
|
||||
<tr> {left}
|
||||
<td align="center" bgcolor="{th_bg}" valign="top" width="92%">{cats_search_filter_data}</td> {right}
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<!-- END nextmatchs -->
|
||||
|
||||
|
||||
<!-- BEGIN filter -->
|
||||
<td>
|
||||
{select}
|
||||
<noscript>
|
||||
<input type="submit" value="{lang_filter}">
|
||||
</noscript>
|
||||
</td>
|
||||
<!-- END filter -->
|
||||
|
||||
|
||||
<!-- BEGIN form -->
|
||||
<form method="POST" action="{action}" name="{form_name}">
|
||||
<td width="2%" align="{align}" valign="top">
|
||||
{hidden}
|
||||
<table border="0" bgcolor="{th_bg}" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="{align}">
|
||||
<input type="image" src="{img}" border="{border}" alt="{label}" name="start" value="{start}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</form>
|
||||
<!-- END form -->
|
||||
|
||||
|
||||
<!-- BEGIN icon -->
|
||||
<td width="2%" align="{align}"> {_link}</td>
|
||||
<!-- END icon -->
|
||||
|
||||
|
||||
<!-- BEGIN link -->
|
||||
<td width="2%" align="{align}" valign="top">
|
||||
<table border="0" bgcolor="{th_bg}" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="{align}">
|
||||
<img src="{img}" border="{border}" alt="{label}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<!-- END link -->
|
||||
|
||||
|
||||
<!-- BEGIN search -->
|
||||
<td>
|
||||
<input type="text" name="query" value="{query_value}"> {searchby}<input type="submit" name="Search" value="{lang_search}">
|
||||
</td>
|
||||
<!-- END search -->
|
||||
|
||||
<!-- BEGIN cats -->
|
||||
<td>
|
||||
{lang_category} <select name="{cat_field}" onChange="this.form.submit();">
|
||||
<option value="0">{lang_all}</option>
|
||||
{categories}
|
||||
</select>
|
||||
<noscript><input type="submit" name="cats" value="{lang_select}"></noscript>
|
||||
</td>
|
||||
<!-- END cats -->
|
||||
|
||||
<!-- BEGIN search_filter -->
|
||||
<table border="0" bgcolor="{th_bg}" cellspacing="0" cellpadding="0">
|
||||
<form method="POST" action="{form_action}" name="filter">
|
||||
<input type="hidden" name="filter" value="{filter_value}">
|
||||
<input type="hidden" name="qfield" value="{qfield_value}">
|
||||
<input type="hidden" name="start" value="{start_value}">
|
||||
<input type="hidden" name="order" value="{order_value}">
|
||||
<input type="hidden" name="sort" value="{sort_value}">
|
||||
<input type="hidden" name="query" value="{query_value}">
|
||||
<tr>{search}<td> </td>{filter}
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
<!-- END search_filter -->
|
||||
|
||||
<!-- BEGIN cats_search_filter -->
|
||||
<table border="0" bgcolor="{th_bg}" cellspacing="0" cellpadding="0">
|
||||
<form method="POST" action="{form_action}" name="filter">
|
||||
<input type="hidden" name="filter" value="{filter_value}">
|
||||
<input type="hidden" name="qfield" value="{qfield_value}">
|
||||
<input type="hidden" name="start" value="{start_value}">
|
||||
<input type="hidden" name="order" value="{order_value}">
|
||||
<input type="hidden" name="sort" value="{sort_value}">
|
||||
<input type="hidden" name="query" value="{query_value}">
|
||||
<tr>{cats}<td> </td>{search}<td> </td>{filter}
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
<!-- END cats_search_filter -->
|
||||
|
40
phpgwapi/templates/literati/portal.tpl
Executable file
40
phpgwapi/templates/literati/portal.tpl
Executable file
@ -0,0 +1,40 @@
|
||||
<!-- BEGIN portal_box -->
|
||||
<hr>
|
||||
<p>
|
||||
<table border=0 cellpadding="0" cellspacing="0" width="{outer_width}" bgcolor="{outer_bgcolor}">
|
||||
<tr nowrap align="center">
|
||||
<td align="left"> <strong>{title}</strong></td>{portal_controls}
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="{inner_width}" bgcolor="#EAE9CA">
|
||||
{row}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</p>
|
||||
<!-- END portal_box -->
|
||||
<!-- BEGIN portal_row -->
|
||||
<tr>
|
||||
{output}
|
||||
</tr>
|
||||
<!-- END portal_row -->
|
||||
<!-- BEGIN portal_listbox_header -->
|
||||
<td>
|
||||
<ul>
|
||||
<!-- END portal_listbox_header -->
|
||||
<!-- BEGIN portal_listbox_link -->
|
||||
<li><a href="{link}">{text}</a></li>
|
||||
<!-- END portal_listbox_link -->
|
||||
<!-- BEGIN portal_listbox_footer -->
|
||||
</ul>
|
||||
</td>
|
||||
<!-- END portal_listbox_footer -->
|
||||
<!-- BEGIN portal_control -->
|
||||
<td valign="middle" align="right" nowrap="nowrap">{control_link}
|
||||
</td>
|
||||
<!-- END portal_control -->
|
||||
<!-- BEGIN link_field -->
|
||||
{link_field_data}
|
||||
<!-- END link_field -->
|
Loading…
Reference in New Issue
Block a user