Put link to attempts on info page
[moodle.git] / enrol / ldap / config.html
CommitLineData
64031bbb 1<?php // initialize variables
2
64031bbb 3// general
4optional_variable($frm->enrol_ldap_host_url, '');
5optional_variable($frm->enrol_ldap_version, '');
6optional_variable($frm->enrol_ldap_bind_dn, '');
210eddc7 7optional_variable($frm->enrol_ldap_bind_pw, '');
64031bbb 8// student & teacher enrol
9optional_variable($frm->enrol_ldap_student_contexts, '');
10optional_variable($frm->enrol_ldap_student_memberattribute, '');
11optional_variable($frm->enrol_ldap_teacher_contexts, '');
12optional_variable($frm->enrol_ldap_teacher_memberattribute, '');
13optional_variable($frm->enrol_ldap_objectclass, '');
14optional_variable($frm->enrol_ldap_course_idnumber_updatelocal, '');
15// fields
16optional_variable($frm->enrol_ldap_course_idnumber, '');
17optional_variable($frm->enrol_ldap_course_idnumber_updatelocal, false);
18optional_variable($frm->enrol_ldap_course_idnumber_editlock, false);
19optional_variable($frm->enrol_ldap_course_fullname, '');
20optional_variable($frm->enrol_ldap_course_fullname_updatelocal, false);
21optional_variable($frm->enrol_ldap_course_fullname_editlock, false);
22optional_variable($frm->enrol_ldap_course_shortname, '');
23optional_variable($frm->enrol_ldap_course_shortname_updatelocal, false);
24optional_variable($frm->enrol_ldap_course_shortname_editlock, false);
25optional_variable($frm->enrol_ldap_course_summary, '');
26optional_variable($frm->enrol_ldap_course_summary_updatelocal, false);
27optional_variable($frm->enrol_ldap_course_summary_editlock, false);
28// autocreate
29optional_variable($frm->enrol_ldap_autocreate, false);
30optional_variable($frm->enrol_ldap_category, 1);
31optional_variable($frm->enrol_ldap_template, '');
32
33?>
34
35<table cellspacing="0" cellpadding="5" border="0" align="center">
36<tr>
37 <td colspan="2">
38 <h4><?php print_string("enrol_ldap_server_settings", "enrol_ldap") ?> </h4>
39 </td>
40</tr>
210eddc7 41<tr valign="top">
42 <td align="right">enrol_ldap_host_url:</td>
64031bbb 43 <td>
44 <input name="enrol_ldap_host_url" TYPE="text" SIZE="30" value="<?php echo $frm->enrol_ldap_host_url?>">
45 <?php if (isset($err["enrol_ldap_host_url"])) formerr($err["enrol_ldap_host_url"]); ?>
46 </td>
47 <td>
48 <?php print_string("enrol_ldap_host_url","enrol_ldap") ?>
49 </td>
50</tr>
210eddc7 51<tr valign="top">
52 <td align="right">enrol_ldap_version:</td>
64031bbb 53 <td>
54 <?php
55 $versions[2] = "2";
56 $versions[3] = "3";
57 choose_from_menu($versions, "enrol_ldap_version", $frm->enrol_ldap_version, "");
58 if (isset($err["enrol_ldap_version"])) formerr($err["enrol_ldap_version"]);
59 ?>
60 </td>
61 <td>
62 <?php print_string("enrol_ldap_version","enrol_ldap") ?>
63 </td>
64</tr>
65
210eddc7 66<tr valign="top">
67 <td align="right">enrol_ldap_bind_dn:</td>
64031bbb 68 <td>
69 <input name="enrol_ldap_bind_dn" type="text" size="30" value="<?php echo $frm->enrol_ldap_bind_dn?>">
70 <?php if (isset($err["enrol_ldap_bind_dn"])) formerr($err["ldap_bind_dn"]); ?>
71 </td><td>
72 <?php print_string("enrol_ldap_bind_dn","enrol_ldap") ?>
73 </td>
74</tr>
75
210eddc7 76<tr valign="top">
77 <td align="right">ldap_bind_pw:</td>
64031bbb 78 <td>
79 <input name="enrol_ldap_bind_pw" type="text" size="30" value="<?php echo $frm->enrol_ldap_bind_pw?>">
80 <?php if (isset($err["enrol_ldap_bind_pw"])) formerr($err["enrol_ldap_bind_pw"]); ?>
81 </td><td>
82 <?php print_string("enrol_ldap_bind_pw","enrol_ldap") ?>
83 </td>
84</tr>
85
86<tr>
87 <td colspan="2">
88 <h4><?php print_string("enrol_ldap_student_settings", "enrol_ldap") ?> </h4>
89 </td>
90</tr>
210eddc7 91<tr valign="top">
92 <td align="right">enrol_ldap_student_contexts:</td>
64031bbb 93 <td>
94 <input name="enrol_ldap_student_contexts" TYPE="text" SIZE="30 "value="<?php echo $frm->enrol_ldap_student_contexts?>">
95 <?php if (isset($err["enrol_ldap_student_contexts"])) formerr($err["enrol_ldap_student_contexts"]); ?>
96 </td>
97 <td>
98 <?php print_string("enrol_ldap_student_contexts","enrol_ldap") ?>
99 </td>
100</tr>
210eddc7 101<tr valign="top">
102 <td align="right">enrol_ldap_student_memberattribute:</td>
64031bbb 103 <td>
104 <input name="enrol_ldap_student_memberattribute" type="text" size="30" value="<?php echo $frm->enrol_ldap_student_memberattribute?>">
105 <?php if (isset($err["enrol_ldap_student_memberattribute"])) formerr($err["enrol_ldap_student_memberattribute"]); ?>
106 </td><td>
107 <?php print_string("enrol_ldap_student_memberattribute","enrol_ldap") ?>
108 </td>
109</tr>
110
111<tr>
112 <td colspan="2">
113 <h4><?php print_string("enrol_ldap_teacher_settings", "enrol_ldap") ?> </h4>
114 </td>
115</tr>
210eddc7 116<tr valign="top">
117 <td align="right">enrol_ldap_teacher_contexts:</td>
64031bbb 118 <td>
119 <input name="enrol_ldap_teacher_contexts" TYPE="text" SIZE="30 "value="<?php echo $frm->enrol_ldap_teacher_contexts?>">
120 <?php if (isset($err["enrol_ldap_teacher_contexts"])) formerr($err["enrol_ldap_teacher_contexts"]); ?>
121 </td>
122 <td>
123 <?php print_string("enrol_ldap_teacher_contexts","enrol_ldap") ?>
124 </td>
125</tr>
210eddc7 126<tr valign="top">
127 <td align="right">enrol_ldap_teacher_memberattribute:</td>
64031bbb 128 <td>
129 <input name="enrol_ldap_teacher_memberattribute" type="text" size="30" value="<?php echo $frm->enrol_ldap_teacher_memberattribute?>">
130 <?php if (isset($err["enrol_ldap_teacher_memberattribute"])) formerr($err["enrol_ldap_teacher_memberattribute"]); ?>
131 </td><td>
132 <?php print_string("enrol_ldap_teacher_memberattribute","enrol_ldap") ?>
133 </td>
134</tr>
135
136<tr>
137 <td colspan="2">
138 <h4><?php print_string("enrol_ldap_course_settings", "enrol_ldap") ?> </h4>
139 </td>
140</tr>
210eddc7 141<tr valign="top">
142 <td align="right">enrol_ldap_objectclass:</td>
64031bbb 143 <td>
144 <input name=enrol_ldap_objectclass type="text" size="30" value="<?php echo $frm->enrol_ldap_objectclass?>">
145 <?php if (isset($err["enrol_ldap_objectclass"])) formerr($err["enrol_ldap_objectclass"]); ?>
146 </td>
147 <td>
148 <?php print_string("enrol_ldap_objectclass","enrol_ldap") ?>
149 </td>
150</tr>
210eddc7 151<tr valign="top">
152 <td align="right">enrol_ldap_course_idnumber:</td>
64031bbb 153 <td>
154 <input name="enrol_ldap_course_idnumber" type="text" size="30" value="<?php echo $frm->enrol_ldap_course_idnumber?>">
155 <?php if (isset($err["enrol_ldap_course_idnumber"])) formerr($err["enrol_ldap_course_idnumber"]); ?>
156 <div align="right">
157 <?php print_string("enrol_ldap_updatelocal", "enrol_ldap") ?>
158 <select name="enrol_ldap_course_idnumber_updatelocal">
159 <option value="0" <?php echo ($frm->enrol_ldap_course_idnumber_updatelocal ? '' : 'selected="yes"') ?> >
160 <?php print_string("no") ?></option>
161 <option value="1" <?php echo ($frm->enrol_ldap_course_idnumber_updatelocal ? 'selected="yes"' : '') ?> >
162 <?php print_string("yes") ?></option>
163 </select><BR>
164 <?php print_string("enrol_ldap_editlock", "enrol_ldap") ?>
165 <select name="enrol_ldap_course_idnumber_editlock">
166 <option value="0" <?php echo ($frm->enrol_ldap_course_idnumber_editlock ? '' : 'selected="yes"') ?> >
167 <?php print_string("no") ?></option>
168 <option value="1" <?php echo ($frm->enrol_ldap_course_idnumber_editlock ? 'selected="yes"' : '') ?> >
169 <?php print_string("yes") ?></option>
170 </select></div>
171 </td><td>
172 <?php print_string("enrol_ldap_course_idnumber","enrol_ldap") ?>
173 </td>
174</tr>
210eddc7 175<tr valign="top">
176 <td align="right">enrol_ldap_course_shortname:</td>
64031bbb 177 <td>
178 <input name="enrol_ldap_course_shortname" type="text" size="30" value="<?php echo $frm->enrol_ldap_course_shortname?>">
179 <?php if (isset($err["enrol_ldap_course_shortname"])) formerr($err["enrol_ldap_course_shortname"]); ?>
180 <div align="right">
181 <?php print_string("enrol_ldap_updatelocal", "enrol_ldap") ?>
182 <select name="enrol_ldap_course_shortname_updatelocal">
183 <option value="0" <?php echo ($frm->enrol_ldap_course_shortname_updatelocal ? '' : 'selected="yes"') ?> >
184 <?php print_string("no") ?></option>
185 <option value="1" <?php echo ($frm->enrol_ldap_course_shortname_updatelocal ? 'selected="yes"' : '') ?> >
186 <?php print_string("yes") ?></option>
187 </select><BR>
188 <?php print_string("enrol_ldap_editlock", "enrol_ldap") ?>
189 <select name="enrol_ldap_course_shortname_editlock">
190 <option value="0" <?php echo ($frm->enrol_ldap_course_shortname_editlock ? '' : 'selected="yes"') ?> >
191 <?php print_string("no") ?></option>
192 <option value="1" <?php echo ($frm->enrol_ldap_course_shortname_editlock ? 'selected="yes"' : '') ?> >
193 <?php print_string("yes") ?></option>
194 </select></div>
195 </td><td>
196 <?php print_string("enrol_ldap_course_shortname","enrol_ldap") ?>
197 </td>
198</tr>
199
210eddc7 200<tr valign="top">
201 <td align="right">enrol_ldap_course_fullname:</td>
64031bbb 202 <td>
203 <input name="enrol_ldap_course_fullname" type="text" size="30" value="<?php echo $frm->enrol_ldap_course_fullname ?>">
204 <?php if (isset($err["enrol_ldap_course_fullname"])) formerr($err["enrol_ldap_course_fullname"]); ?>
205 <div align="right">
206 <?php print_string("enrol_ldap_updatelocal", "enrol_ldap") ?>
207 <select name="enrol_ldap_course_fullname_updatelocal">
208 <option value="0" <?php echo ($frm->enrol_ldap_course_fullname_updatelocal ? '' : 'selected="yes"') ?> >
209 <?php print_string("no") ?></option>
210 <option value="1" <?php echo ($frm->enrol_ldap_course_fullname_updatelocal ? 'selected="yes"' : '') ?> >
211 <?php print_string("yes") ?></option>
212 </select><BR>
213 <?php print_string("enrol_ldap_editlock", "enrol_ldap") ?>
214 <select name="enrol_ldap_course_idnumber_editlock">
215 <option value="0" <?php echo ($frm->enrol_ldap_course_fullname_editlock ? '' : 'selected="yes"') ?> >
216 <?php print_string("no") ?></option>
217 <option value="1" <?php echo ($frm->enrol_ldap_course_fullname_editlock ? 'selected="yes"' : '') ?> >
218 <?php print_string("yes") ?></option>
219 </select></div>
220 </td><td>
221 <?php print_string("enrol_ldap_course_fullname","enrol_ldap") ?>
222 </td>
223</tr>
224
210eddc7 225<tr valign="top">
226 <td align="right">enrol_ldap_course_summary:</td>
64031bbb 227 <td>
228 <input name="enrol_ldap_course_summary" type="text" size="30" value="<?php echo $frm->enrol_ldap_course_summary?>">
229 <?php if (isset($err["enrol_ldap_course_summary"])) formerr($err["enrol_ldap_course_summary"]); ?>
230 <div align="right">
231 <?php print_string("enrol_ldap_updatelocal", "enrol_ldap") ?>
232 <select name="enrol_ldap_course_summary_updatelocal">
233 <option value="0" <?php echo ($frm->enrol_ldap_course_summary_updatelocal ? '' : 'selected="yes"') ?> >
234 <?php print_string("no") ?></option>
235 <option value="1" <?php echo ($frm->enrol_ldap_course_summary_updatelocal ? 'selected="yes"' : '') ?> >
236 <?php print_string("yes") ?></option>
237 </select><BR>
238 <?php print_string("enrol_ldap_editlock", "enrol_ldap") ?>
239 <select name="enrol_ldap_course_summary_editlock">
240 <option value="0" <?php echo ($frm->enrol_ldap_course_summary_editlock ? '' : 'selected="yes"') ?> >
241 <?php print_string("no") ?></option>
242 <option value="1" <?php echo ($frm->enrol_ldap_course_summary_editlock ? 'selected="yes"' : '') ?> >
243 <?php print_string("yes") ?></option>
244 </select></div>
245 </td><td>
246 <?php print_string("enrol_ldap_course_summary","enrol_ldap") ?>
247 </td>
248</tr>
249
250<tr>
251 <td colspan="2">
252 <h4><?php print_string("enrol_ldap_autocreation_settings", "enrol_ldap") ?> </h4>
253 </td>
254</tr>
210eddc7 255<tr valign="top">
256 <td align="right">enrol_ldap_autocreate:</td>
64031bbb 257 <td>
258 <?php
259 choose_from_menu(array('0'=>'no','1'=>'yes'), "enrol_ldap_autocreate", $frm->enrol_ldap_autocreate, "");
260 if (isset($err["enrol_ldap_autocreate"])) formerr($err["enrol_ldap_autocreate"]);
261 ?>
262 </td>
263 <td>
264 <?php print_string("enrol_ldap_autocreate","enrol_ldap") ?>
265 </td>
266</tr>
210eddc7 267<tr valign="top">
268 <td align="right">enrol_ldap_category:</td>
64031bbb 269 <td>
270 <?php
271 $displaylist = array();
272 $parentlist = array();
273 make_categories_list($displaylist, $parentlist);
274 choose_from_menu($displaylist, "enrol_ldap_category", $frm->enrol_ldap_category, "");
275
276 ?>
277 <?php if (isset($err["enrol_ldap_category"])) formerr($err["enrol_ldap_category"]); ?>
278 </td><td>
279 <?php print_string("enrol_ldap_category","enrol_ldap") ?>
280 </td>
281</tr>
282
210eddc7 283<tr valign="top">
284 <td align="right">enrol_ldap_template:</td>
64031bbb 285 <td>
286 <input name=enrol_ldap_template type="text" size="30" value="<?php echo $frm->enrol_ldap_template?>">
287 <?php if (isset($err["enrol_ldap_template"])) formerr($err["enrol_ldap_template"]); ?>
288 </td><td>
289 <?php print_string("enrol_ldap_template","enrol_ldap") ?>
290 </td>
291</tr>
292
293</table>