Code

Updated msg dialog to work in ie again.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 Jul 2008 08:17:51 +0000 (08:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 Jul 2008 08:17:51 +0000 (08:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11505 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/ihtml/themes/default/msg_dialog.tpl

index 72dec71228bdad1a3e7bed9b189c21f851ae37b2..37f8d4a5fed018954d167e7cf3437240c8903820 100644 (file)
@@ -1,68 +1,64 @@
 {if $frame}
-{if $IE}
-       <iframe id='e_layer3'
-               style="
-                       position:absolute;
-                       width:100%;
-                       height:100%;
-                       top:0px;
-                       left:0px;
-                       border:none;
-                       border-style:none;
-                       border-width:0pt;
-                       display:block;
-                       allowtransparency='true';
-                       background-color: #FFFFFF;
-                       filter:chroma(color=#FFFFFF);
-                       z-index:0; ">
-       </iframe>
-       <div  id='e_layer2'
-                       style='display:none;position:absolute; width:400%;'
-<!--
-               style="
-                       position: absolute;
-                       left: 0px;
-                       top: 0px;
-                       right:0px;
-                       bottom:0px;
-                       z-index:0;
-                       width:100%;
-                       height:100%;
-                       filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='images/opacity_black.png'); "
--->
-
-{else}
-       <div  id='e_layer2'
-               style="
-                       position: absolute;
-                       left: 0px;
-                       top: 0px;
-                       right:0px;
-                       bottom:0px;
-                       z-index:0;
-                       background-image: url(images/opacity_black.png);">
+       {if $IE}
+               <iframe id='e_layer3'
+                       style="
+                               position:absolute;
+                               width:100%;
+                               height:100%;
+                               top:0px;
+                               left:0px;
+                               border:none;
+                               border-style:none;
+                               border-width:0pt;
+                               display:block;
+                               allowtransparency='true';
+                               background-color: #FFFFFF;
+                               filter:chroma(color=#FFFFFF);
+                               z-index:0; ">
+               </iframe>
+               <div  id='e_layer2'
+                       style="
+                               position: absolute;
+                               left: 0px;
+                               top: 0px;
+                               right:0px;
+                               bottom:0px;
+                               z-index:0;
+                               width:100%;
+                               height:100%;
+                               filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='images/opacity_black.png'); "
+       >
+       {else}
+               <div  id='e_layer2'
+                       style="
+                               position: absolute;
+                               left: 0px;
+                               top: 0px;
+                               right:0px;
+                               bottom:0px;
+                               z-index:0;
+                               background-image: url(images/opacity_black.png);">
 
-{/if}
+       {/if}
 {else}
 
 
        {if !$JS}
 
-               <div id='e_layer{$i_ID}' style="errorMsgDialog">
-                       <div id="e_layerTitle{$i_ID}" style="errorMsgTitle">
+               <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 == ERROR_DIALOG}
                                                <img src='images/error.png' alt='{t}Error{/t}'>
-       {elseif $i_Type == WARNING_DIALOG}
+               {elseif $i_Type == 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 == INFO_DIALOG || $i_Type == CONFIRM_DIALOG || $i_Type == OK_CANCEL_DIALOG}
                                                <img src='images/info.png' alt='{t}Information{/t}'>
-       {/if}
+               {/if}
                        </td><td style='font-size: 1.1em; font-weight:bold;'>{$s_Title}</td></tr>
                        </table>
                        </div>
-                       <div style="errorMsgSeperator"></div>
-                       <table style='width:100%' summary='' border=0>
+                       <table style='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}
                                </tr>
                                <tr>
                                        <td colspan='2' align='center'>
-                                               <div style="errorMsgSeperator"></div>
-       {if $i_Type == ERROR_DIALOG || $i_Type == WARNING_DIALOG || $i_Type == INFO_DIALOG}
+               {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}
+               {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}
+               {/if}
                                        </td>
                                </tr>
                        </table>
                
                {/if}
 
-               <div id='e_layer{$i_ID}' class="errorMsgDialog">
+               <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 == ERROR_DIALOG}
                                                <img src='images/error.png' alt='{t}Error{/t}'>
-       {elseif $i_Type == WARNING_DIALOG}
+               {elseif $i_Type == 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 == INFO_DIALOG || $i_Type == CONFIRM_DIALOG || $i_Type == OK_CANCEL_DIALOG}
                                                <img src='images/info.png' alt='{t}Information{/t}'>
-       {/if}
+               {/if}
                        </td><td style='font-size: 1.1em; font-weight:bold;'>{$s_Title}</td></tr>
                </table>
                </div>
-               <div class="errorMsgSepeator"></div>
 
-                       <table style='width:100%' summary='' border=0>
+                       <table style='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}
                                </tr>
                                <tr>
                                        {if $s_Trace != "" && $i_TraceCnt != 0}
-                                       <td colspan='3' align='center'>
+                                       <td colspan='3' align='center' style="border-top: solid 1px #BBBBBB;">
                                        {else}
-                                       <td colspan='2' align='center'>
+                                       <td colspan='2' align='center' style="border-top: solid 1px #BBBBBB;">
                                        {/if}
-                                       <div class="errorMsgSepeator" style='margin-top:2px; margin-bottom:2px;'></div>
-       {if $i_Type == ERROR_DIALOG || $i_Type == WARNING_DIALOG || $i_Type == INFO_DIALOG}
+               {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}
+               {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}
+               {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}
+               {/if}
                                        </td>
                                </tr>
                        </table>