mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-12707 - moved hotpot/ lams to use new admin settings
This commit is contained in:
parent
cb0e9fbdd2
commit
b070f1c78b
@ -36,6 +36,7 @@ $string['error_nofeedbackurlwebpage'] = 'Please enter a URL for the webpage';
|
||||
$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';
|
||||
@ -139,6 +140,7 @@ $string['resultssaved'] = 'Quiz results were saved';
|
||||
$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';
|
||||
|
@ -21,8 +21,11 @@ $string['refreshSequenceList'] = 'Refresh sequence list';
|
||||
$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.';
|
||||
|
@ -1,25 +0,0 @@
|
||||
<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>
|
9
mod/hotpot/settings.php
Normal file
9
mod/hotpot/settings.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?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'), '') );
|
||||
|
||||
?>
|
@ -1,34 +0,0 @@
|
||||
<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>
|
12
mod/lams/settings.php
Normal file
12
mod/lams/settings.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?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'), '') );
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user