Code

Some setup updates
[gosa.git] / setup / setup_step2.tpl
1 <!-- Div container with PHP module checks -->
2 <div style='float:left;'> 
4         <!-- Set content styles -->     
5         <div class='default' style='margin:10px;'>
7                 <!-- Beginning PHP module check output -->
8                 <h2 style='background-color:#DDDDDD;border: solid 1px #CCCCCC'>{t}PHP module and extension checks{/t}</h2>
9                 {foreach from=$basic item=val key=key}
10         
11                         <!-- Entry {$key} -->           
12                         {if $basic[$key].SOLUTION != "" && !$basic[$key].RESULT}
13                 
14                                 <!-- Add ability to display info popup -->      
15                                 <div  style='width:300px; cursor:default;'
16                                         onMouseOver="javascript: display_solution('sol_{$key}');"
17                                         onMouseOut="javascript: hide_solution('sol_{$key}');" >
18                         {else}
20                                 <!-- Normal entry everything is fine -->
21                                 <div  style='width:300px; cursor:default;'>     
22                         {/if}
23                         
24                         <div class='default' style='float:left'>{$basic[$key].NAME}</div>
25                         <div class='default' style='none;text-align:right; '>
27                         {if $basic[$key].RESULT}
28                                 <font color='green'>{t}Successfull{/t}</font>
29                         {else}
30                                 {if $basic[$key].MUST}
31                                         <font color='red'>{t}Failed{/t}</font>
32                                 {else}
33                                         <font color='blue'>{t}Failed{/t}</font>
34                                 {/if}
35                                 {if $basic[$key].SOLUTION != ""}
36         
37                                 <!-- Inforamtion popup -->
38                                 <div class='solution_hidden' id='sol_{$key}'>
39                                         {if $basic[$key].MUST}
40                                                 <div style="background-image: url('images/error.png'); background-repeat: no-repeat; padding-left: 35px;">
41                                                 <b>{t}GOsa will NOT run without fixing this.{/t}</b>
42                                         {else}
43                                                 <div style="background-image: url('images/warning.png'); background-repeat: no-repeat; padding-left: 35px;">
44                                                 <i>{t}GOsa will run without fixing this.{/t}</i>
45                                         {/if}
46                                         <br>
47                                         {$basic[$key].SOLUTION}
48                                         </div>
49                                 </div>
50                                 {/if}
51                         {/if}
52                                 </div>
53                         </div>
54                 {/foreach}
55         </div>
56 </div>
59 <!-- Div container with PHP config checks -->
60 <div style='float:left;'>
62         <!-- Set content styles -->     
63         <div class='default' style='margin:10px;'>
65                 <!-- Beginning PHP config check output -->
66                 <h2 style='background-color:#DDDDDD;border: solid 1px #CCCCCC'>{t}PHP setup configuration{/t}</h2>
68                 {foreach from=$config item=val key=key}
70                         <!-- Entry {$key} -->
71             {if $config[$key].SOLUTION != "" && !$config[$key].RESULT}
73                 <!-- Add ability to display info popup -->
74                 <div  style='width:300px; cursor:default;'
75                     onMouseOver="javascript: display_solution('sol_config_{$key}');"
76                     onMouseOut="javascript: hide_solution('sol_config_{$key}');" >
77             {else}
79                 <!-- Normal entry everything is fine -->
80                 <div  style='width:300px; cursor:default;'>
81             {/if}
84                         <div class='default' style='float:left'>{$config[$key].NAME}</div>
85                         <div class='default' style='text-align:right; '>
86                         {if $config[$key].RESULT}
87                                 <font color='green'>{t}Successfull{/t}</font>
88                         {else}
90                                 {if $config[$key].MUST}
91                                         <font color='red'>{t}Failed{/t}</font>
92                                 {else}
93                                         <font color='blue'>{t}Failed{/t}</font>
94                                 {/if}
96                                 {if $config[$key].SOLUTION != ""}
97         
98                                 <!-- Inforamtion popup -->
99                                 <div class='solution_hidden' id='sol_config_{$key}'>
100                                         {if $config[$key].MUST}
101                                                 <div style="background-image: url('images/error.png'); background-repeat: no-repeat; padding-left: 35px;">
102                                                 <b>{t}GOsa will NOT run without fixing this.{/t}</b>
103                                         {else}
104                                                 <div style="background-image: url('images/warning.png'); background-repeat: no-repeat; padding-left: 35px;">
105                                                 <i>{t}GOsa will run without fixing this.{/t}</i>
106                                         {/if}
107                                         <br>
108                                         {$config[$key].SOLUTION}
109                                         </div>
110                                 </div>
111                                 {/if}
112                         {/if}
113                         </div>
114                         </div>
115                 {/foreach}
118                 <!-- Beginning PHP config check output -->
119                 <h2 style='background-color:#DDDDDD;border: solid 1px #CCCCCC'>{t}Configuration file writeable{/t}</h2>
120                 
121                 {foreach from=$is_writeable item=val key=key}
123                         <!-- Entry {$key} -->
124             {if $is_writeable[$key].SOLUTION != "" && !$is_writeable[$key].RESULT}
126                 <!-- Add ability to display info popup -->
127                 <div  style='width:300px; cursor:default;'
128                     onMouseOver="javascript: display_solution('sol_is_writeable{$key}');"
129                     onMouseOut="javascript: hide_solution('sol_is_writeable{$key}');" >
130             {else}
132                 <!-- Normal entry everything is fine -->
133                 <div  style='width:300px; cursor:default;'>
134             {/if}
137                         <div class='default' style='float:left'>{$is_writeable[$key].NAME}</div>
138                         <div class='default' style='text-align:right; '>
139                         {if $is_writeable[$key].RESULT}
140                                 <font color='green'>{t}Successfull{/t}</font>
141                         {else}
143                                 {if $is_writeable[$key].MUST}
144                                         <font color='red'>{t}Failed{/t}</font>
145                                 {else}
146                                         <font color='blue'>{t}Failed{/t}</font>
147                                 {/if}
149                                 {if $is_writeable[$key].SOLUTION != ""}
150         
151                                 <!-- Inforamtion popup -->
152                                 <div class='solution_hidden' id='sol_is_writeable{$key}'>
153                                         {if $is_writeable[$key].MUST}
154                                                 <div style="background-image: url('images/error.png'); background-repeat: no-repeat; padding-left: 35px;">
155                                                 <b>{t}GOsa will NOT run without fixing this.{/t}</b>
156                                         {else}
157                                                 <div style="background-image: url('images/warning.png'); background-repeat: no-repeat; padding-left: 35px;">
158                                                 <i>{t}GOsa will run without fixing this.{/t}</i>
159                                         {/if}
160                                         <br>
161                                         {$is_writeable[$key].SOLUTION}
162                                         </div>
163                                 </div>
164                                 {/if}
165                         {/if}
166                         </div>
167                         </div>
168                 {/foreach}
171                         
172         </div>
173 </div>
174 <script type="text/javascript">
175 {literal}
176         function display_solution(str){
177                 obj = document.getElementById(str);
178                 obj.className='solution_visible';
179         }
180         function hide_solution(str){
181                 obj = document.getElementById(str);
182                 obj.className='solution_hidden';
183         }
185 {/literal}
186 </script>