mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
more improvements on the msgbox
This commit is contained in:
parent
c74e97e907
commit
d8e16f226c
@ -984,8 +984,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$GLOBALS['phpgw']->template->set_block('common','msgbox_start');
|
$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');
|
||||||
$GLOBALS['phpgw']->template->set_block('common','msgbox_row_bad');
|
|
||||||
$GLOBALS['phpgw']->template->set_block('common','msgbox_end');
|
$GLOBALS['phpgw']->template->set_block('common','msgbox_end');
|
||||||
$GLOBALS['phpgw']->template->fp('msgbox','msgbox_start');
|
$GLOBALS['phpgw']->template->fp('msgbox','msgbox_start');
|
||||||
|
|
||||||
@ -1009,12 +1008,15 @@
|
|||||||
$GLOBALS['phpgw']->template->set_var('msgbox_text',$key);
|
$GLOBALS['phpgw']->template->set_var('msgbox_text',$key);
|
||||||
if ($value == True)
|
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
|
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
|
else
|
||||||
@ -1023,12 +1025,15 @@
|
|||||||
$GLOBALS['phpgw']->template->set_var('msgbox_text',$text);
|
$GLOBALS['phpgw']->template->set_var('msgbox_text',$text);
|
||||||
if ($type == True)
|
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
|
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);
|
$GLOBALS['phpgw']->template->fp('msgbox','msgbox_end',True);
|
||||||
|
|
||||||
|
@ -10,57 +10,35 @@
|
|||||||
<CENTER><TABLE border=1 bgcolor="{row_on}">
|
<CENTER><TABLE border=1 bgcolor="{row_on}">
|
||||||
<!-- END msgbox_start -->
|
<!-- END msgbox_start -->
|
||||||
|
|
||||||
<!-- BEGIN msgbox_row_good -->
|
<!-- BEGIN msgbox_row -->
|
||||||
<TR><TD bgcolor="{msgbox_row_color}">[<font color="green">O</font>] {msgbox_text}</TD></TR>
|
<TR><TD bgcolor="{msgbox_row_color}"><img src="{msgbox_img}" ALT="{msgbox_img_alt}"> {msgbox_text}</TD></TR>
|
||||||
<!-- END msgbox_row_good -->
|
<!-- END msgbox_row -->
|
||||||
|
|
||||||
<!-- 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_end -->
|
<!-- BEGIN msgbox_end -->
|
||||||
</TABLE></CENTER>
|
</TABLE></CENTER>
|
||||||
<!-- END msgbox_end -->
|
<!-- END msgbox_end -->
|
||||||
|
|
||||||
<!-- BEGIN border_top_nohead -->
|
<!-- BEGIN border_top_nohead -->
|
||||||
<table border="0" cellspacing="2" cellpadding="2" width="100%">
|
<table border="0" cellspacing="2" cellpadding="2" width="{border_top_width}">
|
||||||
<tr>
|
<tr>
|
||||||
<td bgcolor="{row_on}">
|
<td bgcolor="{row_on}">
|
||||||
<!-- END border_top_nohead -->
|
<!-- END border_top_nohead -->
|
||||||
|
|
||||||
<!-- BEGIN border_top -->
|
<!-- BEGIN border_top -->
|
||||||
<table border="0" cellspacing="0" cellpadding="0" width="{border_top_width}">
|
<table border="0" cellspacing="0" cellpadding="0" width="{border_top_width}">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="5" height="5"><img src="/images/borders/topleft.png"></td>
|
<td bgcolor="{table_bg}">{border_header_text}</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>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="5" background="/images/borders/leftside.png"><img src="/images/borders/pixel.gif"></td>
|
<td bgcolor="{row_on}">
|
||||||
<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}">
|
|
||||||
<!-- END border_top -->
|
<!-- END border_top -->
|
||||||
|
|
||||||
<!-- BEGIN border_bottom -->
|
<!-- BEGIN border_bottom -->
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
</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>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<!-- END border_bottom -->
|
<!-- END border_bottom -->
|
||||||
<!-- BEGIN randomdata -->
|
<!-- BEGIN randomdata -->
|
||||||
{data}
|
{data}
|
||||||
<!-- END randomdata -->
|
<!-- END randomdata -->
|
||||||
|
|
||||||
|
BIN
phpgwapi/templates/default/images/msgbox_bad.jpg
Executable file
BIN
phpgwapi/templates/default/images/msgbox_bad.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
BIN
phpgwapi/templates/default/images/msgbox_good.jpg
Executable file
BIN
phpgwapi/templates/default/images/msgbox_good.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
Loading…
Reference in New Issue
Block a user