fixes for the about page

This commit is contained in:
skeeter 2001-01-13 04:33:53 +00:00
parent cb77ed933d
commit 1f2655b0f1
7 changed files with 12 additions and 13 deletions

View File

@ -20,13 +20,12 @@
$api_only = True;
}
$tpl = new Template($phpgw_info["server"]["include_root"] . "/phpgwapi/templates/"
. $phpgw_info["server"]["template_set"]);
$tpl = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('phpgwapi'));
$tpl->set_file(array("phpgw_about" => "about.tpl",
"phpgw_about_unknown" => "about_unknown.tpl"
));
$tpl->set_var("webserver_url",$phpgw_info["server"]["webserver_url"]);
$tpl->set_var("webserver_url",$phpgw->common->get_image_path('phpgwapi'));
$tpl->set_var("phpgw_version","phpGroupWare API version " . $phpgw_info["server"]["versions"]["phpgwapi"]);
if ($included) {
$tpl->set_var("phpgw_app_about",about_app("",""));
@ -42,4 +41,4 @@
$tpl->pparse("out","phpgw_about");
$phpgw->common->phpgw_footer();
?>
?>

View File

@ -1,7 +1,7 @@
<table border="0" width="100%">
<tr>
<td align="left">
<a href="http://www.phpgroupware.org" target="_new"><img src="{webserver_url}/phpGroupWare.jpg" border="0"></a>
<a href="http://www.phpgroupware.org" target="_new"><img src="{webserver_url}/logo.gif" border="0"></a>
</td>
</tr>
<tr>
@ -23,4 +23,4 @@
</td>
</tr>
</table>
</table>

View File

@ -17,7 +17,7 @@
$bodyheader = "BGCOLOR=\"".$phpgw_info["theme"]["bg_color"]."\"";
}
$tpl = new Template($phpgw_info["server"]["template_dir"]);
$tpl = CreateObject('phpgwapi.Template',$phpgw_info["server"]["template_dir"]);
$tpl->set_unknowns("remove");
$tpl->set_file(array("head" => "head.tpl"));
$tpl->set_var("website_title", $phpgw_info["server"]["site_title"]);

View File

@ -1,7 +1,7 @@
<table border="0" width="100%">
<tr>
<td align="left">
<a href="http://www.phpgroupware.org" target="_new"><img src="{webserver_url}/phpGroupWare.jpg" border="0"></a>
<a href="http://www.phpgroupware.org" target="_new"><img src="{webserver_url}/logo.gif" border="0"></a>
</td>
</tr>
<tr>
@ -23,4 +23,4 @@
</td>
</tr>
</table>
</table>

View File

@ -17,7 +17,7 @@
$bodyheader = "BGCOLOR=\"".$phpgw_info["theme"]["bg_color"]."\"";
}
$tpl = new Template($phpgw_info["server"]["template_dir"]);
$tpl = CreateObject('phpgwapi.Template',$phpgw_info["server"]["template_dir"]);
$tpl->set_unknowns("remove");
$tpl->set_file(array("head" => "head.tpl"));
$tpl->set_var("webserver_url", $phpgw_info["server"]["webserver_url"]);

View File

@ -1,7 +1,7 @@
<table border="0" width="100%">
<tr>
<td align="left">
<a href="http://www.phpgroupware.org" target="_new"><img src="{webserver_url}/phpGroupWare.jpg" border="0"></a>
<a href="http://www.phpgroupware.org" target="_new"><img src="{webserver_url}/logo.gif" border="0"></a>
</td>
</tr>
<tr>
@ -23,4 +23,4 @@
</td>
</tr>
</table>
</table>

View File

@ -16,7 +16,7 @@
$bodyheader .= "topmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" leftmargin=\"0\"";
}
$tpl = new Template($phpgw_info["server"]["template_dir"]);
$tpl = CreateObject('phpgwapi.Template',$phpgw_info["server"]["template_dir"]);
$tpl->set_unknowns("remove");
$tpl->set_file(array("head" => "head.tpl"));
$tpl->set_var("website_title", $phpgw_info["server"]["site_title"]);