Small fixes.

This commit is contained in:
skeeter 2001-08-04 03:02:01 +00:00
parent 7c9c85b456
commit a4bccad3db
2 changed files with 37 additions and 7 deletions

View File

@ -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');
} }

View File

@ -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 -->