diff --git a/blocks/student_loan_calc/block_student_loan_calc.php b/blocks/student_loan_calc/block_student_loan_calc.php new file mode 100644 index 00000000000..4b896cbf720 --- /dev/null +++ b/blocks/student_loan_calc/block_student_loan_calc.php @@ -0,0 +1,206 @@ +title = get_string('studentloancalc','block_student_loan_calc'); + $this->content_type = BLOCK_TYPE_TEXT; + $this->version = 2005022100; + } + + function get_content() { + global $CFG; + + $calc = $CFG->pixpath.'/i/calc.gif'; + + $this->content->text = ' + + + + + +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
'.get_string('amountofloan','block_student_loan_calc').'
calculate
'.get_string('repaymentamount','block_student_loan_calc').'
calculate
'.get_string('loanterm','block_student_loan_calc').'
calculate
'.get_string('interestrate','block_student_loan_calc').'
'.get_string('repaymentfreq','block_student_loan_calc').'
'; + $options[52] = get_string('weekly','block_student_loan_calc'); + $options[26] = get_string('fortnightly','block_student_loan_calc'); + $options[12] = get_string('monthly','block_student_loan_calc'); + $this->content->text .= choose_from_menu($options,'LOANPAYPERIOD','12',NULL,NULL,NULL,true); + $this->content->text .= '
+
'; + + return $this->content; + + } +} +?> \ No newline at end of file diff --git a/lang/en/block_student_loan_calc.php b/lang/en/block_student_loan_calc.php new file mode 100644 index 00000000000..bd8751c5dea --- /dev/null +++ b/lang/en/block_student_loan_calc.php @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/pix/i/calc.gif b/pix/i/calc.gif new file mode 100644 index 00000000000..2e5e63a8755 Binary files /dev/null and b/pix/i/calc.gif differ