efe04cd93ade132e8849c6cb856f7bd24791b27e
[moodle.git] / auth / db / config.html
1 <tr valign="top"  BGCOLOR="<?=$THEME->cellheading2 ?>">
2         <TD ALIGN=RIGHT><P>auth_dbhost:</TD>
3         <TD>
4         <INPUT name=auth_dbhost TYPE=text SIZE=30 VALUE="<?=$config->auth_dbhost?>">
5         <? formerr($err["auth_dbhost"]); ?>
6         </TD>
7     <TD>
8     <? print_string("auth_dbhost","auth") ?>
9     </TD>
10 </TR>
12 <TR VALIGN=TOP  BGCOLOR="<?=$THEME->cellheading2 ?>">
13         <TD ALIGN=RIGHT><P>auth_dbtype:</TD>
14         <TD>
15     <? $dbtypes = array("access","ado_access", "ado", "ado_mssql", "borland_ibase", "csv", "db2", "fbsql", "firebird", "ibase", "informix72", "informix", "mssql", "mysql", "mysqlt", "oci805", "oci8", "oci8po", "odbc", "odbc_mssql", "odbc_oracle", "oracle", "postgres64", "postgres7", "postgres", "proxy", "sqlanywhere", "sybase", "vfp");
16        foreach ($dbtypes as $dbtype) {
17            $dboptions[$dbtype] = $dbtype;
18        }
19        choose_from_menu($dboptions, "auth_dbtype", $config->auth_dbtype, "");
20     ?>
21       
22     </TD>
23     <TD>
24     <? print_string("auth_dbtype","auth") ?>
25     </TD>
26 </TR>
28 <TR VALIGN=TOP  BGCOLOR="<?=$THEME->cellheading2 ?>">
29         <TD ALIGN=RIGHT><P>auth_dbname:</TD>
30         <TD>
31     <INPUT name=auth_dbname TYPE=text SIZE=30 VALUE="<?=$config->auth_dbname?>">
32     <? formerr($err["auth_dbname"]); ?>
33     </TD>
34     <TD>
35     <? print_string("auth_dbname","auth") ?>
36     </TD>
37 </TR>
39 <TR VALIGN=TOP  BGCOLOR="<?=$THEME->cellheading2 ?>">
40         <TD ALIGN=RIGHT><P>auth_dbuser:</TD>
41         <TD>
42     <INPUT name=auth_dbuser TYPE=text SIZE=30 VALUE="<?=$config->auth_dbuser?>">
43     <? formerr($err["auth_dbuser"]); ?>
44     </TD>
45     <TD>
46     <? print_string("auth_dbuser","auth") ?>
47     </TD>
48 </TR>
50 <TR VALIGN=TOP  BGCOLOR="<?=$THEME->cellheading2 ?>">
51         <TD ALIGN=RIGHT><P>auth_dbpass:</TD>
52         <TD>
53     <INPUT name="auth_dbpass" TYPE="text" SIZE="30" VALUE="<?=$config->auth_dbpass?>">
54     <? formerr($err["auth_dbpass"]); ?>
55     </TD>
56     <TD>
57     <? print_string("auth_dbpass","auth") ?>
58     </TD>
59 </TR>
61 <TR VALIGN=TOP  BGCOLOR="<?=$THEME->cellheading2 ?>">
62         <TD ALIGN=RIGHT><P>auth_dbtable:</TD>
63         <TD>
64     <INPUT name="auth_dbtable" TYPE="text" SIZE="30" VALUE="<?=$config->auth_dbtable?>">
65     <? formerr($err["auth_dbtable"]); ?>
66     </TD>
67     <TD>
68     <? print_string("auth_dbtable","auth") ?>
69     </TD>
70 </TR>
72 <TR VALIGN=TOP  BGCOLOR="<?=$THEME->cellheading2 ?>">
73         <TD ALIGN=RIGHT><P>auth_dbfielduser:</TD>
74         <TD>
75     <INPUT name="auth_dbfielduser" TYPE="text" SIZE="30" VALUE="<?=$config->auth_dbfielduser?>">
76     <? formerr($err["auth_dbfielduser"]); ?>
77     </TD>
78     <TD>
79     <? print_string("auth_dbfielduser","auth") ?>
80     </TD>
81 </TR>
83 <TR VALIGN=TOP  BGCOLOR="<?=$THEME->cellheading2 ?>">
84         <TD ALIGN=RIGHT><P>auth_dbfieldpass:</TD>
85         <TD>
86     <INPUT name="auth_dbfieldpass" TYPE="text" SIZE="30" VALUE="<?=$config->auth_dbfieldpass?>">
87     <? formerr($err["auth_dbfieldpass"]); ?>
88     </TD>
89     <TD>
90     <? print_string("auth_dbfieldpass","auth") ?>
91     </TD>
92 </TR>
94 <TR>
95         <TD ALIGN=RIGHT><P><? print_string("firstname") ?>:</TD>
96         <TD>
97     <INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_firstname?>">
98     </TD>
99     <TD rowspan=12 VALIGN=CENTER>
100     <? print_string("auth_dbextrafields","auth") ?>
101     </TD>
102 </TR>
104 <TR VALIGN=TOP>
105         <TD ALIGN=RIGHT><P><? print_string("lastname") ?>:</TD>
106         <TD>
107     <INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_lastname?>">
108     </TD>
109 </TR>
111 <TR VALIGN=TOP>
112         <TD ALIGN=RIGHT><P><? print_string("email") ?>:</TD>
113         <TD>
114     <INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_email?>">
115     </TD>
116 </TR>
118 <TR VALIGN=TOP>
119         <TD ALIGN=RIGHT><P><? print_string("phone") ?> 1:</TD>
120         <TD>
121     <INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_phone1?>">
122     </TD>
123 </TR>
125 <TR VALIGN=TOP>
126         <TD ALIGN=RIGHT><P><? print_string("phone") ?> 2:</TD>
127         <TD>
128     <INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_phone2?>">
129     </TD>
130 </TR>
132 <TR VALIGN=TOP>
133         <TD ALIGN=RIGHT><P><? print_string("department") ?>:</TD>
134         <TD>
135     <INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_department?>">
136     </TD>
137 </TR>
139 <TR VALIGN=TOP>
140         <TD ALIGN=RIGHT><P><? print_string("address") ?>:</TD>
141         <TD>
142     <INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_address?>">
143     </TD>
144 </TR>
146 <TR VALIGN=TOP>
147         <TD ALIGN=RIGHT><P><? print_string("city") ?>:</TD>
148         <TD>
149     <INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_city?>">
150     </TD>
151 </TR>
153 <TR VALIGN=TOP>
154         <TD ALIGN=RIGHT><P><? print_string("country") ?>:</TD>
155         <TD>
156     <INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_country?>">
157     </TD>
158 </TR>
160 <TR VALIGN=TOP>
161         <TD ALIGN=RIGHT><P><? print_string("description") ?>:</TD>
162         <TD>
163     <INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_description?>">
164     </TD>
165 </TR>
167 <TR VALIGN=TOP>
168         <TD ALIGN=RIGHT><P><? print_string("idnumber") ?>:</TD>
169         <TD>
170     <INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_idnumber?>">
171     </TD>
172 </TR>
174 <TR VALIGN=TOP>
175         <TD ALIGN=RIGHT><P><? print_string("language") ?>:</TD>
176         <TD>
177     <INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_lang?>">
178     </TD>
179 </TR>
182 <TR VALIGN=TOP>
183         <TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
184         <TD>
185     <TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA> 
186     </TD>
187     <TD>
188     <? print_string("authinstructions","auth") ?>
189     <? helpbutton("text", get_string("helptext")) ?>
190     </TD>
191 </TR>