/** * Method to get the field options. * * @return array The field option objects. * @since 1.6 */ public function getOptions() { // Initialize variables. $options = array(); $arr = JEUtil::getCreditScore(); foreach ($arr as $key => $score) { $option = new stdClass(); $option->value = $key; $option->text = $score[0] . ' ' . $score[1]; $options[] = $option; } array_unshift($options, JHtml::_('select.option', '', JText::_('COM_RENTAL_SELECT'))); return $options; }
<?php $post = JRequest::get('post'); $user = $post['user']; $renter = $post['renter']; $arrBedrooms = JEUtil::getBedrooms(); $creditScore = JEUtil::getCreditScore(); ?> <form method="post" id="new_renter" data-remote="true" class="new_renter" action="<?php echo JRoute::_('index.php?option=com_rental&view=renter&layout=create-profile&format=raw'); ?> " accept-charset="UTF-8"> <div style="margin:0;padding:0;display:inline"> <input type="hidden" value="✓" name="utf8"> <input type="hidden" value="FMMkutNs1Rl3JU3ZLjwl+l5+EYNdHqoqS95L8NSndUQ=" name="authenticity_token"> </div> <?php if (!empty($this->checkErrors)) { ?> <div class="errorExplanation" id="errorExplanation"> <h2>oops! There are some errors</h2> <ul> <?php foreach ($this->checkErrors as $error) { ?> <li><?php echo $error; ?> </li> <?php }