Fixed many xhtml errors
[moodle.git] / enrol / imsenterprise / config.html
1 <table cellspacing="0" cellpadding="5" border="0" class="boxaligncenter">
3 <tr>
4     <th colspan="3" scope="col"><?php  print_string("basicsettings", "enrol_imsenterprise") ?></th>
5 </tr>
7 <tr valign="top">
8     <td align="right"><?php  print_string("location", "enrol_imsenterprise") ?>:</td>
9     <td colspan="2">
10         <input type="text" size="50" name="enrol_imsfilelocation" value="<?php echo ($frm->enrol_imsfilelocation ? $frm->enrol_imsfilelocation : '') ?>" />
11     </td>
12 </tr>
14 <tr valign="top">
15     <td align="right"><?php  print_string("logtolocation", "enrol_imsenterprise") ?>:</td>
16     <td colspan="2">
17         <input type="text" size="50" name="enrol_logtolocation" value="<?php echo ($frm->enrol_logtolocation ? $frm->enrol_logtolocation : '') ?>" />
18     </td>
19 </tr>
21 <tr valign="top">
22     <td align="right"><?php  print_string('mailadmins', 'enrol_imsenterprise') ?>:</td>
23     <td style="width:10px">
24         <input type="checkbox" value="1" name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"checked\"" ?> />
25     </td>
26     <td>
27     
28     </td>
29 </tr>
31 <tr>
32 <th colspan="3" scope="col"><?php  print_string("usersettings", "enrol_imsenterprise") ?></th>
33 </tr>
35 <tr valign="top">
36     <td align="right"><?php  print_string('createnewusers', 'enrol_imsenterprise') ?>:</td>
37     <td>
38         <input type="checkbox" value="1" name="enrol_createnewusers" <?php if ($frm->enrol_createnewusers) echo "checked=\"checked\"" ?> />
39     </td>
40     <td>
41     <?php helpbutton('createnewusers', 'More detail about this option', 'enrol/imsenterprise'); ?>
42     </td>
43 </tr>
45 <tr valign="top">
46     <td align="right"><?php  print_string('deleteusers', 'enrol_imsenterprise') ?>:</td>
47     <td>
48         <input type="checkbox" value="1" name="enrol_imsdeleteusers" <?php if ($frm->enrol_imsdeleteusers) echo "checked=\"checked\"" ?> />
49     </td>
50     <td>
51     <?php helpbutton('deleteusers', 'More detail about this option', 'enrol/imsenterprise'); ?>
52     </td>
53 </tr>
55 <tr valign="top">
56     <td align="right"><?php  print_string('fixcaseusernames', 'enrol_imsenterprise') ?>:</td>
57     <td>
58         <input type="checkbox" value="1" name="enrol_fixcaseusernames" <?php if ($frm->enrol_fixcaseusernames) echo "checked=\"checked\"" ?> />
59     </td>
60     <td>
61     
62     </td>
63 </tr>
65 <tr valign="top">
66     <td align="right"><?php  print_string('fixcasepersonalnames', 'enrol_imsenterprise') ?>:</td>
67     <td>
68         <input type="checkbox" value="1" name="enrol_fixcasepersonalnames" <?php if ($frm->enrol_fixcasepersonalnames) echo "checked=\"checked\"" ?> />
69     </td>
70     <td>
71     
72     </td>
73 </tr>
75 <tr valign="top">
76     <td align="right"><?php  print_string('sourcedidfallback', 'enrol_imsenterprise') ?>:</td>
77     <td>
78         <input type="checkbox" value="1" name="enrol_imssourcedidfallback" <?php if ($frm->enrol_imssourcedidfallback) echo "checked=\"checked\"" ?> />
79     </td>
80     <td>
81     <?php helpbutton('sourceddidfallback', 'More detail about this option', 'enrol/imsenterprise'); ?>    
82     </td>
83 </tr>
84 <!--
85 Photo processing is deactivated until we hear from Moodle dev forum about modification to gdlib.
87 <tr valign="top">
88     <td align="right"><?php  print_string('processphoto', 'enrol_imsenterprise') ?>:</td>
89     <td>
90         <input type="checkbox" value="1" name="enrol_processphoto" <?php if ($frm->enrol_processphoto) echo "checked=\"checked\"" ?> />
91     </td>
92     <td>
93         <?php  print_string('processphotowarning', 'enrol_imsenterprise') ?>
94     </td>
95 </tr>
96 -->
97 <tr>
98 <td colspan="3" ><?php  print_string('roles') ?></td>
99 </tr>
101 <tr>
102 <td colspan="3"><?php  print_string('imsrolesdescription', 'enrol_imsenterprise') ?></td>
103 </tr>
105 <?php
107 $sitecontext = get_context_instance(CONTEXT_SYSTEM, SITEID);
108 $assignableroles = get_assignable_roles($sitecontext);
109 $assignableroles = array('0' => get_string('ignore')) + $assignableroles;
111 foreach($this->imsroles as $imsrolenum=>$imsrolename){
112 ?>
113 <tr valign="top">
114     <td align="right">&quot;<?php echo $imsrolename ?>&quot;&nbsp;(<?php echo $imsrolenum ?>):</td>
115     <td>
116     <?php
117         
118         $configref = "enrol_imse_imsrolemap" . $imsrolenum;
119         
120         choose_from_menu($assignableroles, 'enrol_imse_imsrolemap'.$imsrolenum, 
121            strlen($frm->$configref) ? $frm->$configref : $this->determine_default_rolemapping($imsrolenum), '');
122     ?>
123     </td>
124     <td>
125     </td>
126 </tr>
127 <?php
128 } // End loop
129 ?>
131 <tr>
132 <th colspan="3" scope="col"><?php  print_string("coursesettings", "enrol_imsenterprise") ?></th>
133 </tr>
135 <tr valign="top">
136     <td align="right"><?php  print_string('truncatecoursecodes', 'enrol_imsenterprise') ?>:</td>
137     <td>
138         <input type="text" <?php echo 'value="'.intval($frm->enrol_truncatecoursecodes).'"' ?> name="enrol_truncatecoursecodes" size="3" maxlength="3" />
139     </td>
140     <td>
141     <?php helpbutton('truncatecoursecodes', 'More detail about this option', 'enrol/imsenterprise'); ?>
142     </td>
143 </tr>
145 <tr valign="top">
146     <td align="right"><?php  print_string('createnewcourses', 'enrol_imsenterprise') ?>:</td>
147     <td>
148         <input type="checkbox" value="1" name="enrol_createnewcourses" <?php if ($frm->enrol_createnewcourses) echo "checked=\"checked\"" ?> />
149     </td>
150     <td>
151     <?php helpbutton('createnewcourses', 'More detail about this option', 'enrol/imsenterprise'); ?>
152     </td>
153 </tr>
155 <tr valign="top">
156     <td align="right"><?php  print_string('createnewcategories', 'enrol_imsenterprise') ?>:</td>
157     <td>
158         <input type="checkbox" value="1" name="enrol_createnewcategories" <?php if ($frm->enrol_createnewcategories) echo "checked=\"checked\"" ?> />
159     </td>
160     <td>
161     <?php helpbutton('categorisation', 'More detail about this option', 'enrol/imsenterprise'); ?>
162     </td>
163 </tr>
165 <tr valign="top">
166     <td align="right"><?php  print_string('allowunenrol', 'enrol_imsenterprise') ?>:</td>
167     <td>
168         <input type="checkbox" value="1" name="enrol_imsunenrol" <?php if ($frm->enrol_imsunenrol) echo "checked=\"checked\"" ?> />
169     </td>
170     <td>
171     <?php helpbutton('unenrol', 'More detail about this option', 'enrol/imsenterprise'); ?>
172     </td>
173 </tr>
175 <tr>
176 <th colspan="3" scope="col"><?php  print_string("miscsettings", "enrol_imsenterprise") ?></th>
177 </tr>
179 <tr valign="top">
180     <td align="right"><?php  print_string('restricttarget', 'enrol_imsenterprise') ?>:</td>
181     <td colspan="2">
182         <input type="text" <?php echo 'value="'.htmlspecialchars($frm->enrol_imsrestricttarget).'"' ?> name="enrol_imsrestricttarget" size="20" maxlength="32" />
183     <?php helpbutton('target', 'More detail about this option', 'enrol/imsenterprise'); ?>
184     </td>
185 </tr>
187 <tr valign="top">
188     <td align="right"><?php  print_string('usecapitafix', 'enrol_imsenterprise') ?>:</td>
189     <td>
190         <input type="checkbox" value="1" name="enrol_imscapitafix" <?php if ($frm->enrol_imscapitafix) echo "checked=\"checked\"" ?> />
191     </td>
192     <td>
193     <?php helpbutton('capita', 'More detail about this option', 'enrol/imsenterprise'); ?>
194     </td>
195 </tr>
197 </table>
199 <p><i><?php  print_string('aftersaving...', 'enrol_imsenterprise') ?> <a href="../enrol/imsenterprise/importnow.php"><?php  print_string('doitnow', 'enrol_imsenterprise') ?></a>.</i></p>