title = get_string('loancalc','block_loancalc'); $this->content_type = BLOCK_TYPE_TEXT; $this->version = 2007101509; } function get_content() { global $CFG; $calc = $CFG->pixpath.'/i/calc.gif'; $this->content->text = '
'.get_string('amountofloan','block_loancalc').'
calculate
'.get_string('repaymentamount','block_loancalc').'
calculate
'.get_string('loanterm','block_loancalc').'
calculate
'.get_string('interestrate','block_loancalc').'
'.get_string('repaymentfreq','block_loancalc').'
'; $options[52] = get_string('weekly','block_loancalc'); $options[26] = get_string('fortnightly','block_loancalc'); $options[12] = get_string('monthly','block_loancalc'); $this->content->text .= choose_from_menu($options,'LOANPAYPERIOD','12',NULL,NULL,NULL,true); $this->content->text .= '
'; $this->content->footer = ''; return $this->content; } } ?>