Code

Fixed msg_dialog.
[gosa.git] / ihtml / themes / default / msg_dialog.tpl
1 {if $frame}
2 {if $IE}
3         <iframe id='e_layer3'
4                 style="
5                         position:absolute;
6                         width:100%;
7                         height:100%;
8                         top:0px;
9                         left:0px;
10                         border:none;
11                         border-style:none;
12                         border-width:0pt;
13                         display:block;
14                         allowtransparency='true';
15                         background-color: #FFFFFF;
16                         filter:chroma(color=#FFFFFF);
17                         z-index:0; ">
18         </iframe>
19         <div  id='e_layer2'
20                         style='display:none;position:absolute; width:400%;'
21 <!--
22                 style="
23                         position: absolute;
24                         left: 0px;
25                         top: 0px;
26                         right:0px;
27                         bottom:0px;
28                         z-index:0;
29                         width:100%;
30                         height:100%;
31                         filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='images/opacity_black.png'); "
32 -->
34 {else}
35         <div  id='e_layer2'
36                 style="
37                         position: absolute;
38                         left: 0px;
39                         top: 0px;
40                         right:0px;
41                         bottom:0px;
42                         z-index:0;
43                         background-image: url(images/opacity_black.png);">
45 {/if}
46 {else}
49         {if !$JS}
51                 <div id='e_layer{$i_ID}'
52                                 style='
53                                         width:60%;
54                                         left:200px;
55                                         top:200px;
56                                         background-color:white;
57                                         padding:5px;
58                                         border:5px solid red;
59                                         z-index:150;
60                                         position:absolute;'>
61                         <table style='width:100%' summary='' border=0>
62                                 <tr>
63                                         <td style='vertical-align:top;padding:10px'>
64         {if $i_Type == ERROR_DIALOG}
65                                                 <img src='images/error.png' alt='{t}Error{/t}'>
66         {elseif $i_Type == WARNING_DIALOG}
67                                                 <img src='images/warning.png'  alt='{t}Warning{/t}'>
68         {elseif $i_Type == INFO_DIALOG || $i_Type == CONFIRM_DIALOG}
69                                                 <img src='images/info.png' alt='{t}Information{/t}'>
70         {/if}
71                                         </td>
72                                         <td style='width:100%'>
73                                                 <h1>{$s_Title}</h1>
74                                                 <b>{$s_Message}</b>
75                                                 <br>
76                                                 <br>
77                                         </td>
78                                 </tr>
79                                 <tr>
80                                         <td colspan='2' align='center'>
81         {if $i_Type == ERROR_DIALOG || $i_Type == WARNING_DIALOG || $i_Type == INFO_DIALOG}
82                                                 <button type='submit' name='MSG_OK{$i_ID}'>{t}Ok{/t}</button>
83         {elseif $i_Type == CONFIRM_DIALOG}
84                                                 <button type='submit' name='MSG_OK{$i_ID}'>{t}Ok{/t}</button>
85                                                 <button type='submit' name='MSG_CANCEL{$i_ID}'>{t}Cancel{/t}</button>
86         {/if}
87                                         </td>
88                                 </tr>
89                         </table>
90                 </div>
92         {else}
94                 {if $s_Trace != "" && $i_TraceCnt != 0}
95                 <div id='trace_{$i_ID}' style='visibility:hidden;'>
96                         {$s_Trace}
97                 </div>
98                 
99                 {/if}
101                 <div id='e_layer{$i_ID}'
102                                 style='
103                                         width:60%;
104                                         left:200px;
105                                         top:200px;
106                                         background-color:white;
107                                         padding:5px;
108                                         border:5px solid red;
109                                         z-index:150;
110                                         display:none;
111                                         position:absolute;'>
112                         <table style='width:100%' summary='' border=0>
113                                 <tr>
114                                         <td style='vertical-align:top;padding:10px'>
115         {if $i_Type == ERROR_DIALOG}
116                                                 <img src='images/error.png' alt='{t}Error{/t}'>
117         {elseif $i_Type == WARNING_DIALOG}
118                                                 <img src='images/warning.png'  alt='{t}Warning{/t}'>
119         {elseif $i_Type == INFO_DIALOG || $i_Type == CONFIRM_DIALOG}
120                                                 <img src='images/info.png' alt='{t}Information{/t}'>
121         {/if}
122                                         </td>
123                                         <td style='width:100%'>
124                                                 <h1>{$s_Title}</h1>
125                                                 <b>{$s_Message}</b>
126                                                 <br>
127                                                 <br>
128                                         </td>
129                                         {if $s_Trace != "" && $i_TraceCnt != 0}
130                                         <td style='width:20px; vertical-align:top; cursor:pointer;'>
131                                                 <div onClick="toggle('trace_{$i_ID}')"><u>Trace</u></div>
132                                         </td>
133                                         {/if}
134                                 </tr>
135                                 <tr>
136                                         <td colspan='2' align='center'>
137         {if $i_Type == ERROR_DIALOG || $i_Type == WARNING_DIALOG || $i_Type == INFO_DIALOG}
138                                                 <button type='button' name='MSG_OK{$i_ID}' onClick='next_msg_dialog();'>{t}Ok{/t}</button>
139         {elseif $i_Type == CONFIRM_DIALOG}
140                                                 <button type='submit' name='MSG_OK{$i_ID}' onClick='next_msg_dialog();'>{t}Ok{/t}</button>
141                                                 <button type='button' name='MSG_CANCEL{$i_ID}' onClick='next_msg_dialog();'>{t}Cancel{/t}</button>
142         {/if}
143                                         </td>
144                                 </tr>
145                         </table>
146                 </div>
147         {/if}
148 {/if}