f8059707b1548b386cfcfe485663e2f1ff04560a
1 <font color='red'>Temporary disabled</font>
2 <!--
3 <p>
4 {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}
5 </p>
6 <hr>
8 {if $fileup != TRUE}
9 <table summary="{t}CSV export{/t}">
10 <tr>
11 <td>
12 <LABEL for="userfile">{t}Select CSV file to import{/t}</LABEL>
13 </td>
14 <td>
15 <input type="hidden" name="MAX_FILE_SIZE" value="2097152">
16 <input id="userfile" name="userfile" type="file" value="{t}Browse{/t}">
17 </td>
18 </tr>
19 <tr>
20 <td>
21 <LABEL for="template">{t}Select template{/t}</LABEL>
22 </td>
23 <td>
24 <select id="template" name="template" size="1" title="">
25 {html_options options=$templates selected=""}
26 </select>
27 </td>
29 </tr>
30 </table>
31 {elseif $sorted != FALSE}
34 <br>
35 {if $error == FALSE}
36 <b>{t}All entries have been written to the LDAP database successfully.{/t}</b>
37 {else}
38 <b style="color:red">{t}Oups. There was an error during the import of your data.{/t}</b>
39 {/if}
41 <b>{t}Here is the status report for the import:{/t} </b>
42 <br>
43 <br>
46 <table summary="{t}Status report{/t}" cellspacing="1" border=0 cellpadding="4" bgcolor="#FEFEFE">
47 <tr>
48 {foreach from=$head item=h}
49 <td bgcolor="#BBBBBB">
50 <b>{$h}</b>
51 </td>
52 {/foreach}
53 </tr>
54 {if $pointsbefore == TRUE}
55 <tr>
56 <td colspan={$i} bgcolor = "#EEEEEE">
57 ...
58 </td>
59 </tr>
60 {/if}
62 {foreach from=$data item=row key=key}
63 <tr>
64 {foreach from=$data[$key] item=col key=key2}
65 <td bgcolor="#EEEEEE">
66 {$data[$key][$key2]}
67 </td>
68 {/foreach}
69 </tr>
70 {/foreach}
71 {if $pointsafter == TRUE}
72 <tr>
73 <td colspan={$i} bgcolor = "#EEEEEE">
74 ...
75 </td>
76 </tr>
77 {/if}
79 </table>
81 {else}
82 <br><b>{t}Selected Template{/t}:</b> {$tpl}
83 <br>
84 <br>
85 <table summary="{t}Template selection{/t}" cellspacing="1" border=0 cellpadding="4" bgcolor="#FEFEFE">
86 <tr>
87 {foreach from=$data[0] item=item key=key}
88 <td bgcolor="#BBBBBB">
89 <select name="row{$key}" size="1" title="">
90 {html_options options=$attrs selected=$selectedattrs[$key]}
91 </select>
92 </td>
93 {/foreach}
94 </tr>
95 {foreach from=$data item=val key=key}
96 <tr>
97 {foreach from=$data[$key] item=val2 key=key2}
98 <td bgcolor="#EEEEEE">
99 {$data[$key][$key2]}
100 </td>
101 {/foreach}
102 </tr>
103 {/foreach}
105 </table>
107 < ! - - {html_table loop=$data cols=$anz table_attr='border="1"'}- - >
108 {/if}
110 <hr>
111 <div class="plugin-actions">
112 {if $fileup != TRUE}
113 <button type='submit' name='fileup'>{t}Import{/t}</button>
115 {else}
116 {if $sorted == FALSE}
117 <input name="sorted" value="{t}Import{/t}" type ="submit">
118 {else}
119 <button type='submit' name='back{$plug}'>{msgPool type=backButton}</button>
121 {/if}
122 {/if}
123 </div>
124 <input type="hidden" name="ignore">
125 -->