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,119 +8,156 @@
<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; {
text-decoration: none; color: White;
} text-decoration: none;
}
A.main_menu:HOVER { A.main_menu:HOVER
background-color: #7C92FC; {
} background-color: #7C92FC;
}
DIV.main_menu { INPUT.text
position : absolute; {
border : 0px dotted; BACKGROUND : #FFFFCC;
background : #7C92DC; COLOR: #000000;
background : #7C92BC; BORDER: 1px solid #000000;
padding : 0px 0px 0px 0px; FONT-SIZE: 10px;
padding-bottom : 0px; border-collapse : collapse;
padding-left : 0px; }
padding-right : 0px;
padding-top : 0px;
}
DIV.main_body { TEXTAREA.text
position : absolute; {
border-width : 1px; BACKGROUND : #FFFFCC;
background-color : #7C92BC; COLOR: #000000;
padding-bottom : 0px; BORDER: 1px solid #000000;
padding-left : 0px; FONT-SIZE: 10px;
padding-right : 0px; border-collapse : collapse;
padding-top : 0px; }
}
TD.main_menu { SELECT
border-top : 0px hidden #EAE17B; {
border-left : 0px hidden #EAE17B; BACKGROUND : #FFFFCC;
border-bottom : 1px solid #4242B3; COLOR: #000000;
border-right : 1px solid #4242B3; BORDER: 1px solid #000000;
width : 100%; FONT-SIZE: 10px;
height: 22px; border-collapse : collapse;
font-family : Arial; }
font-size : 12px;
color : White;
padding-right: 10px;
margin-right: 10px;
vertical-align:middle;
text-align:right;
white-space: nowrap;
}
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; } DIV.main_menu
A:link{ text-decoration:none; color: {css_link}; } {
A:visted{ text-decoration:none; color: {css_vlink}; } position : absolute;
A:active{ text-decoration:none; color: {css_alink}; } border : 0px dotted;
{css_hovlink} background : #7C92BC;
body { padding : 0px 0px 0px 0px;
margin-top: 0px; padding-bottom : 0px;
margin-right: 0px; padding-left : 0px;
margin-left: 0px; padding-right : 0px;
font-family: "{font_family}"; padding-top : 0px;
background-color : #7C92BC; }
}
.tablink { color: #000000; } DIV.main_body {
{app_css} position : absolute;
border-width : 1px;
background-color : #7C92BC;
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;
white-space: nowrap;
}
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}";
FONT-SIZE: 10px;
background-color : #7C92BC;
}
.tablink { color: #000000; }
{app_css}
--> -->
</STYLE> </STYLE>
<script language="JavaScript"> <script language="JavaScript">

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 -->