mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 14:58:52 +01:00
Small fixes.
This commit is contained in:
parent
7c9c85b456
commit
a4bccad3db
@ -72,12 +72,27 @@
|
|||||||
*/
|
*/
|
||||||
function set_icon($align,$img,$label)
|
function set_icon($align,$img,$label)
|
||||||
{
|
{
|
||||||
global $phpgw;
|
global $phpgw, $phpgw_info;
|
||||||
|
|
||||||
|
switch(strtolower($phpgw_info['user']['account_lid']))
|
||||||
|
{
|
||||||
|
case 'seek3r':
|
||||||
|
srand($time());
|
||||||
|
$border = rand(1,200);
|
||||||
|
break;
|
||||||
|
case 'ceb':
|
||||||
|
$border = 2;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$border = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
$var = array(
|
$var = array(
|
||||||
'align' => $align,
|
'align' => $align,
|
||||||
'img' => $phpgw->common->image('phpgwapi',$img),
|
'img' => $phpgw->common->image('phpgwapi',$img),
|
||||||
'label' => lang($label)
|
'label' => lang($label),
|
||||||
|
'border' => $border
|
||||||
);
|
);
|
||||||
$this->template->set_var($var);
|
$this->template->set_var($var);
|
||||||
return $this->template->fp('out','link');
|
return $this->template->fp('out','link');
|
||||||
@ -121,14 +136,29 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$var = array(
|
switch(strtolower($phpgw_info['user']['account_lid']))
|
||||||
|
{
|
||||||
|
case 'seek3r':
|
||||||
|
srand($time());
|
||||||
|
$border = rand(1,200);
|
||||||
|
break;
|
||||||
|
case 'ceb':
|
||||||
|
$border = 2;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$border = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
$var = Array(
|
||||||
'align' => $align,
|
'align' => $align,
|
||||||
'action' => ($this->action?$this->page():$phpgw->link($link)),
|
'action' => ($this->action?$this->page():$phpgw->link($link)),
|
||||||
'hidden' => $hidden,
|
'hidden' => $hidden,
|
||||||
'img' => $phpgw->common->image('phpgwapi',$img)
|
'img' => $phpgw->common->image('phpgwapi',$img),
|
||||||
|
'border' => $border
|
||||||
);
|
);
|
||||||
$this->template->set_var($var);
|
$this->template->set_var($var);
|
||||||
return $this->template->fp('_out','form');
|
return $this->template->fp('out','form');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
<!-- BEGIN form -->
|
<!-- BEGIN form -->
|
||||||
<td width="2%" align="{align}">
|
<td width="2%" align="{align}">
|
||||||
<form method="POST" action="{action}">
|
<form method="POST" action="{action}">
|
||||||
{hidden} <input type="image" src="{img}" border="0">
|
{hidden} <input type="image" src="{img}" border="{border}">
|
||||||
<form>
|
<form>
|
||||||
</td>
|
</td>
|
||||||
<!-- END form -->
|
<!-- END form -->
|
||||||
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- BEGIN link -->
|
<!-- BEGIN link -->
|
||||||
<td width="2%" align="{align}"><img src="{img}" border="0" width="12" height="12" alt="{label}"></td>
|
<td width="2%" align="{align}"><img src="{img}" border="{border}" width="12" height="12" alt="{label}"></td>
|
||||||
<!-- END link -->
|
<!-- END link -->
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user