diff --git a/gosa-core/ihtml/themes/default/msg_dialog.tpl b/gosa-core/ihtml/themes/default/msg_dialog.tpl
index 0a77c43386bb53a6d05e8d3b01d03a115f3e009f..f13fc454e60ea32acda41311af29e3caeb582b92 100644 (file)
allowtransparency='true';
background-color: #FFFFFF;
filter:chroma(color=#FFFFFF);
- z-index:0; ">
+ z-index:100; ">
</iframe>
<div id='e_layer2'
style="
top: 0px;
right:0px;
bottom:0px;
- z-index:0;
+ z-index:100;
width:100%;
height:100%;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='images/opacity_black.png'); "
top: 0px;
right:0px;
bottom:0px;
- z-index:0;
+ z-index:100;
background-image: url(images/opacity_black.png);">
{/if}
{if !$JS}
- {if $i_Type == INFO_DIALOG || $i_Type == CONFIRM_DIALOG || $i_Type == OK_CANCEL_DIALOG}
+ {if $i_Type == $smarty.const.INFO_DIALOG || $i_Type == $smarty.const.CONFIRM_DIALOG || $i_Type == $smarty.const.OK_CANCEL_DIALOG}
<div id='e_layer{$i_ID}' class="infoMsgDialog" style='top:200px;left:200px;'>
{else}
<div id='e_layer{$i_ID}' class="errorMsgDialog" style='top:200px;left:200px;'>
<div id="e_layerTitle{$i_ID}" class="errorMsgTitle">
<table><tr><td>
- {if $i_Type == ERROR_DIALOG}
+ {if $i_Type == $smarty.const.ERROR_DIALOG}
<img src='images/error.png' alt='{t}Error{/t}'>
- {elseif $i_Type == WARNING_DIALOG}
+ {elseif $i_Type == $smarty.const.WARNING_DIALOG}
<img src='images/warning.png' alt='{t}Warning{/t}'>
- {elseif $i_Type == INFO_DIALOG || $i_Type == CONFIRM_DIALOG || $i_Type == OK_CANCEL_DIALOG}
+ {elseif $i_Type == $smarty.const.INFO_DIALOG || $i_Type == $smarty.const.CONFIRM_DIALOG || $i_Type == $smarty.const.OK_CANCEL_DIALOG}
<img src='images/info.png' alt='{t}Information{/t}'>
{/if}
</td><td style='font-size: 1.1em; font-weight:bold;'>{$s_Title}</td></tr>
</tr>
<tr>
<td colspan='2' align='center'>
- {if $i_Type == ERROR_DIALOG || $i_Type == WARNING_DIALOG || $i_Type == INFO_DIALOG}
- <button type='submit' name='MSG_OK{$i_ID}'>{t}Ok{/t}</button>
- {elseif $i_Type == CONFIRM_DIALOG || $i_Type == OK_CANCEL_DIALOG}
- <button type='submit' name='MSG_OK{$i_ID}'>{t}Ok{/t}</button>
- <button type='submit' name='MSG_CANCEL{$i_ID}'>{t}Cancel{/t}</button>
+ {if $i_Type == $smarty.const.ERROR_DIALOG || $i_Type == $smarty.const.WARNING_DIALOG || $i_Type == $smarty.const.INFO_DIALOG}
+ <input type='button' type='submit' name='MSG_OK{$i_ID}' value='{t}Ok{/t}'>
+ {elseif $i_Type == $smarty.const.CONFIRM_DIALOG || $i_Type == $smarty.const.OK_CANCEL_DIALOG}
+ <input type='button' type='submit' name='MSG_OK{$i_ID}' value='{t}Ok{/t}'>
+ <input type='button' type='submit' name='MSG_CANCEL{$i_ID}' value='{t}Cancel{/t}'>
{/if}
</td>
</tr>
{else}
{if $s_Trace != "" && $i_TraceCnt != 0}
- <div id='trace_{$i_ID}' style='visibility:hidden;'>
+ <div id='trace_{$i_ID}' style='display:none;'>
{$s_Trace}
</div>
{/if}
- {if $i_Type == INFO_DIALOG || $i_Type == CONFIRM_DIALOG || $i_Type == OK_CANCEL_DIALOG}
+ {if $i_Type == $smarty.const.INFO_DIALOG || $i_Type == $smarty.const.CONFIRM_DIALOG || $i_Type == $smarty.const.OK_CANCEL_DIALOG}
<div id='e_layer{$i_ID}' class="infoMsgDialog" style='top:200px;left:200px;'>
{else}
<div id='e_layer{$i_ID}' class="errorMsgDialog" style='top:200px;left:200px;'>
<div id="e_layerTitle{$i_ID}" class="errorMsgTitle">
<table><tr><td>
- {if $i_Type == ERROR_DIALOG}
+ {if $i_Type == $smarty.const.ERROR_DIALOG}
<img src='images/error.png' alt='{t}Error{/t}'>
- {elseif $i_Type == WARNING_DIALOG}
+ {elseif $i_Type == $smarty.const.WARNING_DIALOG}
<img src='images/warning.png' alt='{t}Warning{/t}'>
- {elseif $i_Type == INFO_DIALOG || $i_Type == CONFIRM_DIALOG || $i_Type == OK_CANCEL_DIALOG}
+ {elseif $i_Type == $smarty.const.INFO_DIALOG || $i_Type == $smarty.const.CONFIRM_DIALOG || $i_Type == $smarty.const.OK_CANCEL_DIALOG}
<img src='images/info.png' alt='{t}Information{/t}'>
{/if}
</td><td style='font-size: 1.1em; font-weight:bold;'>{$s_Title}</td></tr>
</table>
</div>
- <table style='width:100%; border-top: solid 1px #BBBBBB;' cellspacing=0 cellpadding=2 summary='' border=0>
+ <table style='z-index:250;width:100%; border-top: solid 1px #BBBBBB;' cellspacing=0 cellpadding=2 summary='' border=0>
<tr>
<td style='width:100%; padding:7px; padding-bottom:14px;'>
{$s_Message}
</td>
{if $s_Trace != "" && $i_TraceCnt != 0}
<td style='width:20px; vertical-align:top; cursor:pointer;'>
- <div onClick="GOsa_toggle('trace_{$i_ID}')"><u>Trace</u></div>
+ <div onClick="$('trace_{$i_ID}').toggle();"><u>Trace</u></div>
</td>
{/if}
</tr>
{else}
<td colspan='2' align='center' style="border-top: solid 1px #BBBBBB;">
{/if}
- {if $i_Type == ERROR_DIALOG || $i_Type == WARNING_DIALOG || $i_Type == INFO_DIALOG}
- <button type='button' name='MSG_OK{$i_ID}' onClick='next_msg_dialog();'>{t}Ok{/t}</button>
- {elseif $i_Type == CONFIRM_DIALOG}
- <button type='submit' name='MSG_OK{$i_ID}' onClick='next_msg_dialog();'>{t}Ok{/t}</button>
- <button type='button' name='MSG_CANCEL{$i_ID}' onClick='next_msg_dialog();'>{t}Cancel{/t}</button>
- {elseif $i_Type == OK_CANCEL_DIALOG}
- <button type='submit' name='MSG_OK{$i_ID}' onClick='next_msg_dialog();'>{t}Ok{/t}</button>
- <button type='submit' name='MSG_CANCEL{$i_ID}' onClick='next_msg_dialog();'>{t}Cancel{/t}</button>
+ {if $i_Type == $smarty.const.ERROR_DIALOG || $i_Type == $smarty.const.WARNING_DIALOG || $i_Type == $smarty.const.INFO_DIALOG}
+ <input type='button' id='MSG_OK{$i_ID}' type='button' name='MSG_OK{$i_ID}'
+ onClick='next_msg_dialog();' value='{t}Ok{/t}'>
+ {elseif $i_Type == $smarty.const.CONFIRM_DIALOG}
+ <input type='button' id='MSG_OK{$i_ID}' type='submit' name='MSG_OK{$i_ID}'
+ onClick='next_msg_dialog();' value='{t}Ok{/t}'>
+ <input type='button' type='button' name='MSG_CANCEL{$i_ID}'
+ onClick='next_msg_dialog();' value='{t}Cancel{/t}'>
+ {elseif $i_Type == $smarty.const.OK_CANCEL_DIALOG}
+ <input type='button' id='MSG_OK{$i_ID}' type='submit' name='MSG_OK{$i_ID}'
+ onClick='next_msg_dialog();' value='{t}Ok{/t}'>
+ <input type='button' type='submit' name='MSG_CANCEL{$i_ID}'
+ onClick='next_msg_dialog();' value='{t}Cancel{/t}'>
{/if}
</td>
</tr>
</table>
- </div>
+ </div>
+ <script language="JavaScript" type="text/javascript">
+ focus_field('MSG_OK{$i_ID}');
+ </script>
+
{/if}
{/if}