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; $api_only = True;
} }
$tpl = new Template($phpgw_info["server"]["include_root"] . "/phpgwapi/templates/" $tpl = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('phpgwapi'));
. $phpgw_info["server"]["template_set"]);
$tpl->set_file(array("phpgw_about" => "about.tpl", $tpl->set_file(array("phpgw_about" => "about.tpl",
"phpgw_about_unknown" => "about_unknown.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"]); $tpl->set_var("phpgw_version","phpGroupWare API version " . $phpgw_info["server"]["versions"]["phpgwapi"]);
if ($included) { if ($included) {
$tpl->set_var("phpgw_app_about",about_app("","")); $tpl->set_var("phpgw_app_about",about_app("",""));

View File

@ -1,7 +1,7 @@
<table border="0" width="100%"> <table border="0" width="100%">
<tr> <tr>
<td align="left"> <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> </td>
</tr> </tr>
<tr> <tr>

View File

@ -17,7 +17,7 @@
$bodyheader = "BGCOLOR=\"".$phpgw_info["theme"]["bg_color"]."\""; $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_unknowns("remove");
$tpl->set_file(array("head" => "head.tpl")); $tpl->set_file(array("head" => "head.tpl"));
$tpl->set_var("website_title", $phpgw_info["server"]["site_title"]); $tpl->set_var("website_title", $phpgw_info["server"]["site_title"]);

View File

@ -1,7 +1,7 @@
<table border="0" width="100%"> <table border="0" width="100%">
<tr> <tr>
<td align="left"> <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> </td>
</tr> </tr>
<tr> <tr>

View File

@ -17,7 +17,7 @@
$bodyheader = "BGCOLOR=\"".$phpgw_info["theme"]["bg_color"]."\""; $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_unknowns("remove");
$tpl->set_file(array("head" => "head.tpl")); $tpl->set_file(array("head" => "head.tpl"));
$tpl->set_var("webserver_url", $phpgw_info["server"]["webserver_url"]); $tpl->set_var("webserver_url", $phpgw_info["server"]["webserver_url"]);

View File

@ -1,7 +1,7 @@
<table border="0" width="100%"> <table border="0" width="100%">
<tr> <tr>
<td align="left"> <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> </td>
</tr> </tr>
<tr> <tr>

View File

@ -16,7 +16,7 @@
$bodyheader .= "topmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" leftmargin=\"0\""; $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_unknowns("remove");
$tpl->set_file(array("head" => "head.tpl")); $tpl->set_file(array("head" => "head.tpl"));
$tpl->set_var("website_title", $phpgw_info["server"]["site_title"]); $tpl->set_var("website_title", $phpgw_info["server"]["site_title"]);