Add currency to cost

This commit is contained in:
moodler
2005-07-22 18:52:58 +00:00
parent cd9f55bec4
commit 3d2c41f4d3
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -160,7 +160,11 @@
<tr valign="top">
<td align="right"><?php print_string("cost") ?>:</td>
<td><input type="text" name="cost" maxlength="6" size="6" value="<?php p($form->cost) ?>" alt="<?php print_string("cost") ?>" />
<?php helpbutton("cost", get_string("cost")) ?>
<?php
$currencies = get_list_of_currencies();
choose_from_menu($currencies, 'currency', $form->currency, '');
helpbutton("cost", get_string("cost"));
?>
</td>
</tr>
<?php
+1
View File
@@ -157,6 +157,7 @@
$form->numsections = 10;
$form->idnumber = '';
$form->cost = '';
$form->currency = empty($CFG->enrol_currency) ? 'USD' : $CFG->enrol_currency;
$form->newsitems = 5;
$form->showgrades = 1;
$form->groupmode = 0;