added a way to include app css files

This commit is contained in:
Lars Kneschke 2001-12-31 01:17:10 +00:00
parent ef1c96f268
commit 8b6625cdb1
4 changed files with 152 additions and 110 deletions

View File

@ -38,6 +38,12 @@
$bodyheader .= ' topmargin="0" marginheight="0" marginwidth="0" leftmargin="0"'; $bodyheader .= ' topmargin="0" marginheight="0" marginwidth="0" leftmargin="0"';
} }
if ($fp = @fopen(PHPGW_APP_TPL."/app.css","r"))
{
$app_css = fread ($fp, filesize (PHPGW_APP_TPL."/app.css"));
fclose($fp);
}
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
$tpl->set_unknowns('remove'); $tpl->set_unknowns('remove');
$tpl->set_file(array('head' => 'head.tpl')); $tpl->set_file(array('head' => 'head.tpl'));
@ -47,6 +53,7 @@
'website_title' => $GLOBALS['phpgw_info']['server']['site_title'], 'website_title' => $GLOBALS['phpgw_info']['server']['site_title'],
'app_name' => lang($GLOBALS['phpgw_info']['flags']['currentapp']), 'app_name' => lang($GLOBALS['phpgw_info']['flags']['currentapp']),
'body_tags' => $bodyheader, 'body_tags' => $bodyheader,
'bg_color' => $GLOBALS['phpgw_info']['theme']['bg_color'],
'css_link' => $GLOBALS['phpgw_info']['theme']['link'], 'css_link' => $GLOBALS['phpgw_info']['theme']['link'],
'css_alink' => $GLOBALS['phpgw_info']['theme']['alink'], 'css_alink' => $GLOBALS['phpgw_info']['theme']['alink'],
'css_vlink' => $GLOBALS['phpgw_info']['theme']['vlink'], 'css_vlink' => $GLOBALS['phpgw_info']['theme']['vlink'],

View File

@ -8,19 +8,50 @@
<META NAME="keywords" CONTENT="phpGroupWare"> <META NAME="keywords" CONTENT="phpGroupWare">
<STYLE type="text/css"> <STYLE type="text/css">
<!-- <!--
A.main_menu, A.main_menu:LINK, A.main_menu:VISITED { A.main_menu, A.main_menu:LINK, A.main_menu:VISITED
{
color: White; color: White;
text-decoration: none; text-decoration: none;
} }
A.main_menu:HOVER { A.main_menu:HOVER
{
background-color: #7C92FC; background-color: #7C92FC;
} }
DIV.main_menu { INPUT.text
{
BACKGROUND : #FFFFCC;
COLOR: #000000;
BORDER: 1px solid #000000;
FONT-SIZE: 10px;
border-collapse : collapse;
}
TEXTAREA.text
{
BACKGROUND : #FFFFCC;
COLOR: #000000;
BORDER: 1px solid #000000;
FONT-SIZE: 10px;
border-collapse : collapse;
}
SELECT
{
BACKGROUND : #FFFFCC;
COLOR: #000000;
BORDER: 1px solid #000000;
FONT-SIZE: 10px;
border-collapse : collapse;
}
DIV.main_menu
{
position : absolute; position : absolute;
border : 0px dotted; border : 0px dotted;
background : #7C92DC;
background : #7C92BC; background : #7C92BC;
padding : 0px 0px 0px 0px; padding : 0px 0px 0px 0px;
padding-bottom : 0px; padding-bottom : 0px;
@ -39,7 +70,8 @@ DIV.main_body {
padding-top : 0px; padding-top : 0px;
} }
TD.main_menu { TD.main_menu
{
border-top : 0px hidden #EAE17B; border-top : 0px hidden #EAE17B;
border-left : 0px hidden #EAE17B; border-left : 0px hidden #EAE17B;
border-bottom : 1px solid #4242B3; border-bottom : 1px solid #4242B3;
@ -56,7 +88,8 @@ TD.main_menu {
white-space: nowrap; white-space: nowrap;
} }
TD.main_menu_bottom { TD.main_menu_bottom
{
border-top : 0px hidden #EAE17B; border-top : 0px hidden #EAE17B;
border-left : 0px hidden #EAE17B; border-left : 0px hidden #EAE17B;
border-bottom : 0px solid #4242B3; border-bottom : 0px solid #4242B3;
@ -73,7 +106,8 @@ TD.main_menu_bottom {
white-space: nowrap; white-space: nowrap;
} }
TD.main_menu_apps { TD.main_menu_apps
{
border-top : 0px hidden #EAE17B; border-top : 0px hidden #EAE17B;
border-left : 0px hidden #EAE17B; border-left : 0px hidden #EAE17B;
border-bottom : 1px solid #6157D5; border-bottom : 1px solid #6157D5;
@ -89,7 +123,8 @@ TD.main_menu_apps {
text-align:right; text-align:right;
} }
TD.main_menu_info { TD.main_menu_info
{
border-top : 0px hidden #EAE17B; border-top : 0px hidden #EAE17B;
border-left : 0px hidden #EAE17B; border-left : 0px hidden #EAE17B;
border-bottom : 1px solid #4242B3; border-bottom : 1px solid #4242B3;
@ -105,20 +140,22 @@ TD.main_menu_info {
text-align:right; text-align:right;
} }
a { text-decoration:none; } a { text-decoration:none; }
A:link{ text-decoration:none; color: {css_link}; } A:link{ text-decoration:none; color: {css_link}; }
A:visted{ text-decoration:none; color: {css_vlink}; } A:visted{ text-decoration:none; color: {css_vlink}; }
A:active{ text-decoration:none; color: {css_alink}; } A:active{ text-decoration:none; color: {css_alink}; }
{css_hovlink} {css_hovlink}
body {
body
{
margin-top: 0px; margin-top: 0px;
margin-right: 0px; margin-right: 0px;
margin-left: 0px; margin-left: 0px;
font-family: "{font_family}"; font-family: "{font_family}";
FONT-SIZE: 10px;
background-color : #7C92BC; background-color : #7C92BC;
} }
.tablink { color: #000000; } .tablink { color: #000000; }
{app_css} {app_css}
--> -->

View File

@ -48,7 +48,6 @@ target="_lawde">http://linux-at-work.de</a>
<br><br><br> <br><br><br>
<FORM method="post" action="{login_url}"> <FORM method="post" action="{login_url}">
<input type="hidden" name="passwd_type" value="text">
<TABLE border="0" align="CENTER" bgcolor="#1559a9" cellpadding="0" cellspacing="0"> <TABLE border="0" align="CENTER" bgcolor="#1559a9" cellpadding="0" cellspacing="0">
<TR bgcolor="#1559a9"> <TR bgcolor="#1559a9">
<TD colspan="2" align="CENTER"> <TD colspan="2" align="CENTER">

View File

@ -42,7 +42,6 @@
</table> </table>
</div> </div>
<div class="main_body" style="position: absolute; border-left-width:medium; <div class="main_body" style="position: absolute; padding: 0px; height:100%; left:15% ; top :0px ;
border-left-style:double; width:85%; overflow : auto">
height:100%; left:15% ; top :0px ; width:85%; overflow : auto">
<!-- END navbar --> <!-- END navbar -->