mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 16:29:22 +01:00
update
This commit is contained in:
parent
0a1cfb1bce
commit
df9ee52ebf
@ -453,11 +453,11 @@
|
|||||||
@param $selected ?
|
@param $selected ?
|
||||||
@param $fontsize optional
|
@param $fontsize optional
|
||||||
*/
|
*/
|
||||||
function create_tabs($tabs, $selected, $fontsize = '')
|
function create_tabs($tabs, $selected)
|
||||||
{
|
{
|
||||||
$output_text = '<table border="0" cellspacing="0" cellpadding="0"><tr>';
|
$output_text = '<table cellspacing="0" cellpadding="0"><tr>';
|
||||||
|
|
||||||
/* This is a php3 workaround */
|
/* This is a php3 workaround
|
||||||
if(PHPGW_IMAGES_DIR == 'PHPGW_IMAGES_DIR')
|
if(PHPGW_IMAGES_DIR == 'PHPGW_IMAGES_DIR')
|
||||||
{
|
{
|
||||||
$ir = ExecMethod('phpgwapi.phpgw.common.get_image_path', 'phpgwapi');
|
$ir = ExecMethod('phpgwapi.phpgw.common.get_image_path', 'phpgwapi');
|
||||||
@ -465,13 +465,7 @@
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$ir = PHPGW_IMAGES_DIR;
|
$ir = PHPGW_IMAGES_DIR;
|
||||||
}
|
} */
|
||||||
|
|
||||||
if ($fontsize)
|
|
||||||
{
|
|
||||||
$fs = '<font size="' . $fontsize . '">';
|
|
||||||
$fse = '</font>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$i = 1;
|
$i = 1;
|
||||||
while ($tab = each($tabs))
|
while ($tab = each($tabs))
|
||||||
@ -480,54 +474,54 @@
|
|||||||
{
|
{
|
||||||
if ($i == 1)
|
if ($i == 1)
|
||||||
{
|
{
|
||||||
$output_text .= '<td align="right"><img src="' . $ir . '/tabs-start1.gif"></td>';
|
$output_text .= '<td align="right"><img src="' . $this->image('phpgwapi','tabs-start1') . '"></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$output_text .= '<td align="left" nowrap background="' . $ir . '/tabs-bg1.gif"> <b><a href="'
|
$output_text .= '<td align="left" nowrap background="' . $this->image('phpgwapi','tabs-bg1') . '"> <b><a href="'
|
||||||
. $tab[1]['link'] . '" class="tablink">' . $fs . $tab[1]['label']
|
. $tab[1]['link'] . '" class="tablink">' . $fs . $tab[1]['label']
|
||||||
. $fse . '</a></b> </td>';
|
. $fse . '</a></b> </td>';
|
||||||
if ($i == count($tabs))
|
if ($i == count($tabs))
|
||||||
{
|
{
|
||||||
$output_text .= '<td align="left"><img src="' . $ir . '/tabs-end1.gif"></td>';
|
$output_text .= '<td align="left"><img src="' . $this->image('phpgwapi','tabs-end1') . '"></td>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$output_text .= '<td align="left"><img src="' . $ir . '/tabs-sepr.gif"></td>';
|
$output_text .= '<td align="left"><img src="' . $this->image('phpgwapi','tabs-sepr') . '"></td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($i == 1)
|
if ($i == 1)
|
||||||
{
|
{
|
||||||
$output_text .= '<td align="right"><img src="' . $ir . '/tabs-start0.gif"></td>';
|
$output_text .= '<td align="right"><img src="' . $this->image('phpgwapi','tabs-start0') . '"></td>';
|
||||||
}
|
}
|
||||||
$output_text .= '<td align="left" nowrap background="' . $ir . '/tabs-bg0.gif"> <b><a href="'
|
$output_text .= '<td align="left" nowrap background="' . $this->image('phpgwapi','tabs-bg0') . '"> <b><a href="'
|
||||||
. $tab[1]['link'] . '" class="tablink">' . $fs . $tab[1]['label'] . $fse
|
. $tab[1]['link'] . '" class="tablink">' . $fs . $tab[1]['label'] . $fse
|
||||||
. '</a></b> </td>';
|
. '</a></b> </td>';
|
||||||
if (($i + 1) == $selected)
|
if (($i + 1) == $selected)
|
||||||
{
|
{
|
||||||
$output_text .= '<td align="left"><img src="' . $ir . '/tabs-sepl.gif"></td>';
|
$output_text .= '<td align="left"><img src="' . $this->image('phpgwapi','tabs-sepl') . '"></td>';
|
||||||
}
|
}
|
||||||
elseif ($i == $selected || $i != count($tabs))
|
elseif ($i == $selected || $i != count($tabs))
|
||||||
{
|
{
|
||||||
$output_text .= '<td align="left"><img src="' . $ir . '/tabs-sepm.gif"></td>';
|
$output_text .= '<td align="left"><img src="' . $this->image('phpgwapi','tabs-sepm') . '"></td>';
|
||||||
}
|
}
|
||||||
elseif ($i == count($tabs))
|
elseif ($i == count($tabs))
|
||||||
{
|
{
|
||||||
if ($i == $selected)
|
if ($i == $selected)
|
||||||
{
|
{
|
||||||
$output_text .= '<td align="left"><img src="' . $ir . '/tabs-end1.gif"></td>';
|
$output_text .= '<td align="left"><img src="' . $this->image('phpgwapi','tabs-end1') . '"></td>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$output_text .= '<td align="left"><img src="' . $ir . '/tabs-end0.gif"></td>';
|
$output_text .= '<td align="left"><img src="' . $this->image('phpgwapi','tabs-end0') . '"></td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($i != count($tabs))
|
if ($i != count($tabs))
|
||||||
{
|
{
|
||||||
$output_text .= '<td align="left"><img src="' . $ir . '/tabs-sepr.gif"></td>';
|
$output_text .= '<td align="left"><img src="' . $this->image('phpgwapi','tabs-sepr') . '"></td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user