more improvements on the msgbox

This commit is contained in:
seek3r 2002-05-24 21:56:56 +00:00
parent c74e97e907
commit d8e16f226c
4 changed files with 20 additions and 37 deletions

View File

@ -984,8 +984,7 @@
return;
}
$GLOBALS['phpgw']->template->set_block('common','msgbox_start');
$GLOBALS['phpgw']->template->set_block('common','msgbox_row_good');
$GLOBALS['phpgw']->template->set_block('common','msgbox_row_bad');
$GLOBALS['phpgw']->template->set_block('common','msgbox_row');
$GLOBALS['phpgw']->template->set_block('common','msgbox_end');
$GLOBALS['phpgw']->template->fp('msgbox','msgbox_start');
@ -1009,12 +1008,15 @@
$GLOBALS['phpgw']->template->set_var('msgbox_text',$key);
if ($value == True)
{
$GLOBALS['phpgw']->template->fp('msgbox','msgbox_row_good',True);
$GLOBALS['phpgw']->template->set_var('msgbox_img',$this->image('phpgwapi','msgbox_good'));
$GLOBALS['phpgw']->template->set_var('msgbox_img_alt','OK');
}
else
{
$GLOBALS['phpgw']->template->fp('msgbox','msgbox_row_bad',True);
$GLOBALS['phpgw']->template->set_var('msgbox_img',$this->image('phpgwapi','msgbox_bad'));
$GLOBALS['phpgw']->template->set_var('msgbox_img_alt','ERROR');
}
$GLOBALS['phpgw']->template->fp('msgbox','msgbox_row',True);
}
}
else
@ -1023,12 +1025,15 @@
$GLOBALS['phpgw']->template->set_var('msgbox_text',$text);
if ($type == True)
{
$GLOBALS['phpgw']->template->fp('msgbox','msgbox_row_good',True);
$GLOBALS['phpgw']->template->set_var('msgbox_img',$this->image('phpgwapi','msgbox_good'));
$GLOBALS['phpgw']->template->set_var('msgbox_img_alt','OK');
}
else
{
$GLOBALS['phpgw']->template->fp('msgbox','msgbox_row_bad',True);
$GLOBALS['phpgw']->template->set_var('msgbox_img',$this->image('phpgwapi','msgbox_bad'));
$GLOBALS['phpgw']->template->set_var('msgbox_img_alt','ERROR');
}
$GLOBALS['phpgw']->template->fp('msgbox','msgbox_row',True);
}
$GLOBALS['phpgw']->template->fp('msgbox','msgbox_end',True);

View File

@ -10,57 +10,35 @@
<CENTER><TABLE border=1 bgcolor="{row_on}">
<!-- END msgbox_start -->
<!-- BEGIN msgbox_row_good -->
<TR><TD bgcolor="{msgbox_row_color}">[<font color="green">O</font>] {msgbox_text}</TD></TR>
<!-- END msgbox_row_good -->
<!-- BEGIN msgbox_row_bad -->
<TR><TD bgcolor="{msgbox_row_color}">[<font color="red">X</font>] {msgbox_text}</TD></TR>
<!-- END msgbox_row_bad -->
<!-- BEGIN msgbox_row -->
<TR><TD bgcolor="{msgbox_row_color}"><img src="{msgbox_img}" ALT="{msgbox_img_alt}"> {msgbox_text}</TD></TR>
<!-- END msgbox_row -->
<!-- BEGIN msgbox_end -->
</TABLE></CENTER>
<!-- END msgbox_end -->
<!-- BEGIN border_top_nohead -->
<table border="0" cellspacing="2" cellpadding="2" width="100%">
<tr>
<td bgcolor="{row_on}">
<table border="0" cellspacing="2" cellpadding="2" width="{border_top_width}">
<tr>
<td bgcolor="{row_on}">
<!-- END border_top_nohead -->
<!-- BEGIN border_top -->
<table border="0" cellspacing="0" cellpadding="0" width="{border_top_width}">
<tr>
<td width="5" height="5"><img src="/images/borders/topleft.png"></td>
<td background="/images/borders/top.png"><img src="/images/borders/pixel.gif"></td>
<td width="5" height="5"><img src="/images/borders/topright.png"></td>
<td bgcolor="{table_bg}">{border_header_text}</td>
</tr>
<tr>
<td width="5" background="/images/borders/leftside.png"><img src="/images/borders/pixel.gif"></td>
<td bgcolor="{grey1}">
<table border="0" cellspacing="2" cellpadding="2" width="100%">
<tr>
<td bgcolor="{headerB}" class="phpgw_whitetext">{border_header_text}</td>
</tr>
<tr>
<td bgcolor="{row_on}">
<td bgcolor="{row_on}">
<!-- END border_top -->
<!-- BEGIN border_bottom -->
</td>
</tr>
</table>
</td>
<td width="5" background="/images/borders/rightside.png"><img src="/images/borders/pixel.gif"></td>
</tr>
<tr>
<td width="5" height="5"><img src="/images/borders/bottomleft.png"></td>
<td background="/images/borders/bottom.png"><img src="/images/borders/pixel.gif"></td>
<td width="5" height="5"><img src="/images/borders/bottomright.png"></td>
</tr>
</table>
<!-- END border_bottom -->
<!-- BEGIN randomdata -->
{data}
{data}
<!-- END randomdata -->

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB