mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:07 +01:00
more generic
This commit is contained in:
parent
6c1f1d4de4
commit
84286356ea
@ -13,21 +13,21 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
echo "<p>\n";
|
echo "<p>\n";
|
||||||
$imgfile = $phpgw->common->get_image_dir("calendar")."/" . $appname .".gif";
|
$imgfile = $phpgw->common->get_image_dir($appname)."/" . $appname .".gif";
|
||||||
if (file_exists($imgfile)) {
|
if (file_exists($imgfile)) {
|
||||||
$imgpath = $phpgw->common->get_image_path("calendar")."/" . $appname .".gif";
|
$imgpath = $phpgw->common->get_image_path($appname)."/" . $appname .".gif";
|
||||||
} else {
|
} else {
|
||||||
$imgfile = $phpgw->common->get_image_dir("calendar")."/navbar.gif";
|
$imgfile = $phpgw->common->get_image_dir($appname)."/navbar.gif";
|
||||||
if (file_exists($imgfile)) {
|
if (file_exists($imgfile)) {
|
||||||
$imgpath = $phpgw->common->get_image_path("calendar")."/navbar.gif";
|
$imgpath = $phpgw->common->get_image_path($appname)."/navbar.gif";
|
||||||
} else {
|
} else {
|
||||||
$imgpath = "";
|
$imgpath = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
section_start("Calendar",$imgpath);
|
section_start(ucfirst($appname),$imgpath);
|
||||||
|
|
||||||
$pg = $phpgw->link($phpgw_info["server"]["webserver_url"]."/calendar/preferences.php");
|
$pg = $phpgw->link($phpgw_info["server"]["webserver_url"]."/".$appname."/preferences.php");
|
||||||
echo "<a href=".$pg.">" . lang("Calendar preferences") . "</a>";
|
echo "<a href=".$pg.">" . lang("Calendar preferences") . "</a>";
|
||||||
|
|
||||||
section_end();
|
section_end();
|
||||||
|
Loading…
Reference in New Issue
Block a user