$string['error_nofilename'] = 'Please enter a file name';
$string['error_noquizzesfound'] = 'No Hot Potatoes quizzes found';
$string['error_notfileorfolder'] = '"$a" is not file or folder';
+$string['excelencodings'] = 'Excel encodings';
$string['feedbackformmail'] = 'Feedback form';
$string['feedbackmoodleforum'] = 'Moodle forum';
$string['feedbackmoodlemessaging'] = 'Moodle messaging';
$string['score'] = 'Score';
$string['showhtmlsource'] = 'Show HTML source';
$string['shownextquiz'] = 'Show next quiz';
+$string['showtimes'] = 'Show processing times';
$string['showxmlsource'] = 'Show XML source';
$string['showxmltree'] = 'Show XML tree';
$string['specifictime'] = 'Specific time';
$string['selectExistingSequence'] = 'Select an existing sequence or create a new sequence.';
$string['sequence'] = 'Select Sequence';
$string['serverid'] = 'Enter the server ID received from <a href=\"http://www.lamsinternational.com\">LAMS international</a>.';
+$string['server_id'] = 'Server ID';
$string['serverkey'] = 'Enter the server key received from <a href=\"http://www.lamsinternational.com\">LAMS international</a>.';
+$string['server_key'] = 'Server key';
$string['serverurl'] = 'Enter the basic URL used to access the LAMS server. For example http://localhost:8080/lams';
+$string['server_url'] = 'Server URL';
$string['useSequence'] = 'Use selected sequence';
$string['visibletostudents'] = 'Show activity to students';
$string['wikistartederror'] = 'Wiki already has entries - can\'t change.';
+++ /dev/null
-<form method="post" action="module.php" id="form">
-<input type="hidden" name="sesskey" value="<?PHP print isset($USER->sesskey) ? $USER->sesskey : '' ?>" />
-<div>
-<table cellpadding="9" cellspacing="0">
- <tr valign="top">
- <td align="right">hotpot_showtimes:</td>
- <td><?PHP
- unset($choices);
- $choices["0"] = get_string("no");
- $choices["1"] = get_string("yes");
- choose_from_menu ($choices, "hotpot_showtimes", $CFG->hotpot_showtimes, "");
- ?></td>
- <td><?PHP print_string("configshowtimes", "hotpot") ?></td>
- </tr>
- <tr valign="top">
- <td align="right">hotpot_excelencodings:</td>
- <td><input name="hotpot_excelencodings" type="text" size="30" value="<?PHP p($CFG->hotpot_excelencodings) ?>" /></td>
- <td><?PHP print_string("configexcelencodings", "hotpot") ?></td>
- </tr>
- <tr>
- <td colspan="3" align="center"><input type="submit" value="<?PHP print_string("savechanges") ?>" /></td>
- </tr>
-</table>
-</div>
-</form>
--- /dev/null
+<?php //$Id$
+
+$settings->add(new admin_setting_configcheckbox('hotpot_showtimes', get_string('showtimes', 'hotpot'),
+ get_string('configshowtimes', 'hotpot'), 0) );
+
+$settings->add(new admin_setting_configtext('hotpot_excelencodings', get_string('excelencodings', 'hotpot'),
+ get_string('configexcelencodings', 'hotpot'), '') );
+
+?>
+++ /dev/null
-<form method="post" action="module.php" id="form">
-<div>
-<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
-
-<table cellpadding="9" cellspacing="0">
-<tr valign="top">
- <th>server_url:</th>
- <td> <input name="lams_serverurl" type="text" size="50" value="<?php if (isset($CFG->lams_serverurl)) p($CFG->lams_serverurl) ?>" /></td>
- <td>
- <?php print_string('serverurl', 'lams') ?>
- </td>
-</tr>
-<tr valign="top">
- <th>server_id:</th>
- <td> <input name="lams_serverid" type="text" size="50" value="<?php if (isset($CFG->lams_serverid)) p($CFG->lams_serverid) ?>" /> </td>
- <td>
- <?php print_string('serverid', 'lams') ?>
- </td>
-</tr>
-<tr valign="top">
- <th>server_key:</th>
- <td> <input name="lams_serverkey" type="text" size="50" value="<?php if (isset($CFG->lams_serverkey)) p($CFG->lams_serverkey) ?>" /> </td>
- <td>
- <?php print_string('serverkey', 'lams') ?>
- </td>
-</tr>
-
-<tr>
- <td colspan="3">
- <input type="submit" value="<?php print_string("savechanges") ?>" /></td>
-</tr>
-</table>
-</div>
-</form>
--- /dev/null
+<?php //$Id$
+
+$settings->add(new admin_setting_configtext('lams_serverurl', get_string('server_url', 'lams'),
+ get_string('serverurl', 'lams'), '') );
+
+$settings->add(new admin_setting_configtext('lams_serverid', get_string('server_id', 'lams'),
+ get_string('serverid', 'lams'), '') );
+
+$settings->add(new admin_setting_configtext('lams_serverkey', get_string('server_key', 'lams'),
+ get_string('serverkey', 'lams'), '') );
+
+?>