Code

The main html 4.01 validation is complete ,
[gosa.git] / plugins / addons / ldapmanager / contentcsv.tpl
1 <p>
2   {t}The CSV import plugin provides methods to generate user accounts from a file containing Comma Seperated Values. The administrator can decide which columns should be transfered to which attribute. Note that you must have at least the UID, GIVENNAME and SURENAME set.{/t}
3 </p>
4 <p class="seperator">&nbsp;</p>
6 {if $fileup != TRUE}
7 <table>
8         <tr>
9                 <td>
10                         {t}Select CSV file to import{/t}
11                 </td>
12                 <td>
13                 <input type="hidden" name="MAX_FILE_SIZE" value="2097152">
14                 <input name="userfile" type="file" value="{t}Browse{/t}">
15                 </td>
16         </tr>
17         <tr>
18                 <td>
19                 {t}Select template{/t}
20                 </td>
21                 <td>
22                 <select name="template" size="1" title="">
23                         {html_options options=$templates selected=""}   
24                 </select>
25                 </td>
26                 
27         </tr>
28 </table>
29 {elseif $sorted != FALSE}
32 <br>
33     {if $error == FALSE}
34          <b>{t}All entries have been written to the LDAP database successfully.{/t}</b>
35     {else}
36          <b style="color:red">{t}Oups. There was an error during the import of your data.{/t}</b>
37         {/if}
39 <b>{t}Here is the status report for the import:{/t}</b>
40 <br>
41 <br>
44         <table cellspacing="1" border=0 cellpadding="4"  bgcolor="#FEFEFE">
45                 <tr>
46                         {section name=head loop=$head}
47                         <td bgcolor="#BBBBBB">
48                                 <b>{$head[$i]}</b>
49                         </td>
50                         <!--{$i++}-->
51                         {/section}
52                 </tr>
53                 {if $pointsbefore == TRUE}
54                 <tr>
55                         <td colspan={$i} bgcolor = "#EEEEEE">
56                                 ...     
57                         </td>
58                 </tr>
59                 {/if}
60                 
61                 
62                 
63                 
64                 {section name=row loop=$rows}
65                 
66                 <tr>
67                         {section name=coll loop=$cols}
68                         <td bgcolor="#EEEEEE">
69                                 {$data[$ie]}
70                         </td>
71                         <!--{$ie++}-->
72                         {/section}
73                         
74                 </tr>
75                 {/section}
76             {if $pointsafter == TRUE}
77             <tr>
78                 <td colspan={$i} bgcolor = "#EEEEEE">
79                 ...
80                 </td>
81             </tr>
82             {/if}
83                                                                                                                                                    
84         </table>
86 {else}
87 <br><b>{t}Selected Template{/t}:</b> {$tpl}
88 <br>
89 <br>
90         <table cellspacing="1" border=0 cellpadding="4" bgcolor="#FEFEFE">
91                 <tr>
92                         {section name=attr loop=$anz}
93                         <td bgcolor="#BBBBBB">
94                                 <select name="row{$ia++}" size="1" title="">
95                                  {html_options options=$attrs selected=$selectedattrs[$ia]}
96                                 </select>
97                         </td>
98                         {/section}
99                 </tr>
100                 {section name=row loop=$rows}
101                 <tr>
102                         {section name=coll loop=$anz}
103                         <td bgcolor="#EEEEEE">
104                                 {$data[$i]}&nbsp;
105                         </td>
106                         <!--{$i++}-->
107                         {/section}
108                 </tr>
109                 {/section}
110                 
111         </table>
113 <!-- {html_table loop=$data cols=$anz table_attr='border="1"'}-->
114 {/if}
115 <p class="plugbottom">
116 {if $fileup != TRUE}
117   <input type="submit" value="{t}Import{/t}" name="fileup" >
118 {else}
119 {if $sorted == FALSE}
120   <input name="sorted" value="{t}Import{/t}" type ="submit">
121 {else}
122   <input type=submit name="back{$plug}" value="{t}Back{/t}">
123 {/if}
124 {/if}
125 </p>
126 <input type="hidden" name="ignore">