mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 08:28:43 +01:00
use new progressbar for image/buttons with names like xx%
This commit is contained in:
parent
77fd33e471
commit
345db0ee59
@ -688,8 +688,15 @@
|
|||||||
if ($this->java_script() && ($cell['onchange'] != '' || $img && !$readonly) && !$cell['needed']) // use a link instead of a button
|
if ($this->java_script() && ($cell['onchange'] != '' || $img && !$readonly) && !$cell['needed']) // use a link instead of a button
|
||||||
{
|
{
|
||||||
$onclick = ($cell['onchange'] == 1 || $img) ? "return submitit(document.eTemplate,'$form_name');" : $cell['onchange'].'; return false;';
|
$onclick = ($cell['onchange'] == 1 || $img) ? "return submitit(document.eTemplate,'$form_name');" : $cell['onchange'].'; return false;';
|
||||||
$html .= '<a href="" onClick="'.$onclick.'" '.$options.'>' .
|
if (!$this->html->netscape4 && substr($img,-1) == '%' && is_numeric($percent = substr($img,0,-1)))
|
||||||
($img ? $this->html->image($app,$img,$title,'border="0"') : $title) . '</a>';
|
{
|
||||||
|
$html .= $this->html->progressbar($percent,$title,'onclick="'.$onclick.'" '.$options);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$html .= '<a href="" onClick="'.$onclick.'" '.$options.'>' .
|
||||||
|
($img ? $this->html->image($app,$img,$title,'border="0"') : $title) . '</a>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user