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"> </p>
6 {if $fileup != TRUE}
7 <form enctype="multipart/form-data" action="" method="POST">
8 <table>
9 <tr>
10 <td>
11 {t}Select CSV file to import{/t}
12 </td>
13 <td>
14 <input type="hidden" name="MAX_FILE_SIZE" value="2097152">
15 <input name="userfile" type="file" value="{t}Browse{/t}">
16 </td>
17 </tr>
18 <tr>
19 <td>
20 {t}Select template{/t}
21 </td>
22 <td>
23 <select name="template" size="1" title="">
24 {html_options options=$templates selected=""}
25 </select>
26 </td>
28 </tr>
29 </table>
30 {elseif $sorted != FALSE}
33 <br>
34 {if $error == FALSE}
35 <b>{t}All entries have been written to the LDAP database successfully.{/t}</b>
36 {else}
37 <b style="color:red">{t}Oups. There was an error during the import of your data.{/t}</b>
38 {/if}
40 <b>{t}Here is the status report for the import:{/t}</b>
41 <br>
42 <br>
45 <table cellspacing="1" border=0 cellpadding="4" bgcolor="#FEFEFE">
46 <tr>
47 {section name=head loop=$head}
48 <td bgcolor="#BBBBBB">
49 <b>{$head[$i]}</b>
50 </td>
51 <!--{$i++}-->
52 {/section}
53 </tr>
54 {if $pointsbefore == TRUE}
55 <tr>
56 <td colspan={$i} bgcolor = "#EEEEEE">
57 ...
58 </td>
59 </tr>
60 {/if}
65 {section name=row loop=$rows}
67 <tr>
68 {section name=coll loop=$cols}
69 <td bgcolor="#EEEEEE">
70 {$data[$ie]}
71 </td>
72 <!--{$ie++}-->
73 {/section}
75 </tr>
76 {/section}
77 {if $pointsafter == TRUE}
78 <tr>
79 <td colspan={$i} bgcolor = "#EEEEEE">
80 ...
81 </td>
82 </tr>
83 {/if}
85 </table>
87 {else}
88 <br><b>{t}Selected Template{/t}:</b> {$tpl}
89 <br>
90 <br>
91 <form action="" method="POST" name="sorting">
92 <table cellspacing="1" border=0 cellpadding="4" bgcolor="#FEFEFE">
93 <tr>
94 {section name=attr loop=$anz}
95 <td bgcolor="#BBBBBB">
96 <select name="row{$ia++}" size="1" title="">
97 {html_options options=$attrs selected=$selectedattrs[$ia]}
98 </select>
99 </td>
100 {/section}
101 </tr>
102 {section name=row loop=$rows}
103 <tr>
104 {section name=coll loop=$anz}
105 <td bgcolor="#EEEEEE">
106 {$data[$i]}
107 </td>
108 <!--{$i++}-->
109 {/section}
110 </tr>
111 {/section}
113 </table>
115 <!-- {html_table loop=$data cols=$anz table_attr='border="1"'}-->
116 {/if}
117 <p class="plugbottom">
118 {if $fileup != TRUE}
119 <input type="submit" value="{t}Import{/t}" name="fileup" >
120 {else}
121 {if $sorted == FALSE}
122 <input name="sorted" value="{t}Import{/t}" type ="submit">
123 {else}
124 <input type=submit name="back{$plug}" value="{t}Back{/t}">
125 {/if}
126 {/if}
127 </p>
128 <input type="hidden" name="ignore">
129 </form>