mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:36 +01:00
Add some about this app info
This commit is contained in:
parent
b872330d12
commit
235ce3153d
46
addressbook/inc/hook_addressbook_about.inc.php
Normal file
46
addressbook/inc/hook_addressbook_about.inc.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
function about_app()
|
||||
{
|
||||
global $phpgw, $phpgw_info;
|
||||
$appname = 'addressbook';
|
||||
|
||||
$imgfile = $phpgw->common->get_image_dir($appname) . '/' . $appname . '.gif';
|
||||
if (file_exists($imgfile))
|
||||
{
|
||||
$imgpath = $phpgw->common->get_image_path($appname) . '/' . $appname . '.gif';
|
||||
}
|
||||
else
|
||||
{
|
||||
$imgfile = $phpgw->common->get_image_dir($appname) . '/navbar.gif';
|
||||
if (file_exists($imgfile))
|
||||
{
|
||||
$imgpath = $phpgw->common->get_image_path($appname) . '/navbar.gif';
|
||||
}
|
||||
else
|
||||
{
|
||||
$imgpath = '';
|
||||
}
|
||||
}
|
||||
|
||||
$browser = CreateObject('phpgwapi.browser');
|
||||
$os = $browser->get_platform();
|
||||
$agent = ucfirst(strtolower($browser->get_agent()));
|
||||
$version = $browser->get_version();
|
||||
|
||||
$tpl = new Template($phpgw->common->get_tpl_dir("addressbook"));
|
||||
|
||||
$tpl->set_file(array("body" => "about.tpl"));
|
||||
|
||||
$tpl->set_var("about_addressbook",'This is the phpgroupware core addressbook application. It makes use of the phpgroupware contacts class to store and retrieve contact information via SQL or LDAP.');
|
||||
|
||||
$tpl->set_var("url",$phpgw->link('/addressbook'));
|
||||
$tpl->set_var("image",$imgpath);
|
||||
$tpl->set_var("version",$version);
|
||||
$tpl->set_var("agent",$agent);
|
||||
$tpl->set_var("platform",$os);
|
||||
$tpl->set_var("appear",lang('You appear to be running'));
|
||||
$tpl->set_var("on",lang('on'));
|
||||
|
||||
return $tpl->parse("out","body");
|
||||
}
|
16
addressbook/templates/default/about.tpl
Normal file
16
addressbook/templates/default/about.tpl
Normal file
@ -0,0 +1,16 @@
|
||||
<table border="0" width="100%">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<a href="{url}" target="_new"><img src="{image}" border="0"></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">{about_addressbook}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">{appear} {agent} {version} {on} {platform}.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><hr></td>
|
||||
</tr>
|
||||
</table>
|
Loading…
Reference in New Issue
Block a user