Code

fafbed4bb2d5572a79e7756ce100a9fae6615417
[gosa.git] / gosa-core / 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                                         border:5px solid red;
58                                         z-index:150;
59                                         position:absolute;'>
60                         <div id="e_layerTitle{$i_ID}" style="vertical-align: middle;
61                                                                                                  width:100%; 
62                                                                                                  font-size: 1.2em;
63                                                                                                  padding-top:3px;
64                                                                                                  padding-bottom:2px;
65                                                                                                  font-weight:bold;
66                                                                                                  background-color: #999999; 
67                                                                                                  ">
68                                 &nbsp;&nbsp;{$s_Title}
69                         </div>
70                         <div style="height:2px; width:100% ; background-color: #BBBBBB;"></div>
71                         <table style='width:100%' summary='' border=0>
72                                 <tr>
73                                         <td style='vertical-align:top;padding:10px'>
74         {if $i_Type == ERROR_DIALOG}
75                                                 <img src='images/error.png' alt='{t}Error{/t}'>
76         {elseif $i_Type == WARNING_DIALOG}
77                                                 <img src='images/warning.png'  alt='{t}Warning{/t}'>
78         {elseif $i_Type == INFO_DIALOG || $i_Type == CONFIRM_DIALOG}
79                                                 <img src='images/info.png' alt='{t}Information{/t}'>
80         {/if}
81                                         </td>
82                                         <td style='width:100%'>
83                                                 <b>{$s_Message}</b>
84                                                 <br>
85                                                 <br>
86                                         </td>
87                                 </tr>
88                                 <tr>
89                                         <td colspan='2' align='center'>
90         {if $i_Type == ERROR_DIALOG || $i_Type == WARNING_DIALOG || $i_Type == INFO_DIALOG}
91                                                 <button type='submit' name='MSG_OK{$i_ID}'>{t}Ok{/t}</button>
92         {elseif $i_Type == CONFIRM_DIALOG}
93                                                 <button type='submit' name='MSG_OK{$i_ID}'>{t}Ok{/t}</button>
94                                                 <button type='submit' name='MSG_CANCEL{$i_ID}'>{t}Cancel{/t}</button>
95         {/if}
96                                         </td>
97                                 </tr>
98                         </table>
99                 </div>
101         {else}
103                 {if $s_Trace != "" && $i_TraceCnt != 0}
104                 <div id='trace_{$i_ID}' style='visibility:hidden;'>
105                         {$s_Trace}
106                 </div>
107                 
108                 {/if}
110                 <div id='e_layer{$i_ID}'
111                                 style='
112                                         width:60%;
113                                         left:200px;
114                                         top:200px;
115                                         background-color:white;
116                                         border:5px solid red;
117                                         z-index:150;
118                                         display:none;
119                                         position:absolute;'>
121                 <div id="e_layerTitle{$i_ID}" style="vertical-align: middle;
122                                                                                          width:100%; 
123                                                                                          font-size: 1.2em;
124                                                                                          padding-top:3px;
125                                                                                          padding-bottom:2px;
126                                                                                          font-weight:bold;
127                                                                                      background-color: #999999; 
128                                                                      ">
129                         &nbsp;&nbsp;{$s_Title}
130                 </div>
131                 <div style="height:2px; width:100% ; background-color: #BBBBBB;"></div>
133                         <table style='width:100%' summary='' border=0>
134                                 <tr>
135                                         <td style='vertical-align:top;padding:10px'>
136         {if $i_Type == ERROR_DIALOG}
137                                                 <img src='images/error.png' alt='{t}Error{/t}'>
138         {elseif $i_Type == WARNING_DIALOG}
139                                                 <img src='images/warning.png'  alt='{t}Warning{/t}'>
140         {elseif $i_Type == INFO_DIALOG || $i_Type == CONFIRM_DIALOG}
141                                                 <img src='images/info.png' alt='{t}Information{/t}'>
142         {/if}
143                                         </td>
144                                         <td style='width:100%'>
145                                                 <b>{$s_Message}</b>
146                                                 <br>
147                                                 <br>
148                                         </td>
149                                         {if $s_Trace != "" && $i_TraceCnt != 0}
150                                         <td style='width:20px; vertical-align:top; cursor:pointer;'>
151                                                 <div onClick="toggle('trace_{$i_ID}')"><u>Trace</u></div>
152                                         </td>
153                                         {/if}
154                                 </tr>
155                                 <tr>
156                                         <td colspan='2' align='center'>
157         {if $i_Type == ERROR_DIALOG || $i_Type == WARNING_DIALOG || $i_Type == INFO_DIALOG}
158                                                 <button type='button' name='MSG_OK{$i_ID}' onClick='next_msg_dialog();'>{t}Ok{/t}</button>
159         {elseif $i_Type == CONFIRM_DIALOG}
160                                                 <button type='submit' name='MSG_OK{$i_ID}' onClick='next_msg_dialog();'>{t}Ok{/t}</button>
161                                                 <button type='button' name='MSG_CANCEL{$i_ID}' onClick='next_msg_dialog();'>{t}Cancel{/t}</button>
162         {/if}
163                                         </td>
164                                 </tr>
165                         </table>
166                 </div>
167         {/if}
168 {/if}