Code

Added some checks
[gosa.git] / include / sieve / templates / edit_frame_base.tpl
2 <table style='width:100%;' cellspacing=0 cellpadding=0>
3         <tr>
4                 <td style='background-color: #CCCCCC; padding:5px;'>
5                         
6                         <input type='submit' name='Save_Copy' value="{t}Export{/t}">
7                         <input type='submit' name='Import_Script' value="{t}Import{/t}">
9                         {if $Mode != "Source-Only"}                     
10                                 
11                                 {if $Mode == "Source"}
12                                 <input type='submit' name='View_Structured' value="{t}View structured{/t}">
13                                 {else}
14                                 <input type='submit' name='View_Source' value="{t}View source{/t}">
15                                 {/if}
16                         {/if}
17                 </td>
18         </tr>
19         <tr>
20                 <td style='background-color: #FFFFFF; border: solid 2px #CCCCCC; '>
22                         {if $Script_Error != ""}
23                         <table style='width:100%;' cellspacing=0 cellpadding=0> 
24                                 <tr>    
25                                         <td style='background-color: orange;padding:5px;'>
26                                                 <b>{$Script_Error}</b>
27                                         </td>
28                                 </tr>
29                         </table>
30                         {/if}
33                         {if $Mode == "Structured"}
34                                 {$Contents}
35                         {else}
36                                 <textarea name='script_contents' style='width:100%;height:350px;'>{$Contents}</textarea>
37                         {/if}
39                 </td>
40         </tr>
41 </table>
42 <div class='seperator' style='text-align:right; width:100%;'>
43         <input type='submit' name='save_sieve_changes' value='{t}Save{/t}'>
44         &nbsp;
45     <input type='submit' name='cancel_sieve_changes' value='{t}Cancel{/t}'>
46 </div>