<div class="form-group"> <label for="pass1" class="control-label col-lg-4">Filhos</label> <div class="col-lg-1" > <input type="number" id="CHILDREN" name="CHILDREN" min="0" max="10" value="0" class="form-control" /> </div> </div> <div class="form-group"> <label for="religion" class="control-label col-lg-4">Religião</label> <div class="col-lg-5"> <select name="ID_RELIGION" id="ID_RELIGION" class="form-control" required> <?php if (Religion::getReligions()) { $rel = Religion::getReligions(); echo '<option value="' . $rel[0]->getId() . '" selected>' . $rel[0]->getName() . '</option>'; } ?> </select> </div> </div> <div class="form-group"> <div class="col-md-offset-8"> <button type="submit" class="btn btn-primary">Continue</button> </div> </div> </form> </div> <!-- FIM PRIMEIRO PASSO - DADOS PESSOAIS -->
?> /> Não </label> </div> </div> </div> <div class="form-group"> <label for="religion" class="control-label col-lg-4">Religião</label> <div class="col-lg-5"> <select name="ID_RELIGION" id="ID_RELIGION_C" class="form-control" required> <option value="">Selecione a Religião</option> <?php if (Religion::getReligions()) { foreach (Religion::getReligions() as $rel) { if ($rel->getId() == $cal->getReligion()->getId()) { echo '<option value="' . $rel->getId() . '" selected>' . $rel->getName() . '</option>'; } else { echo '<option value="' . $rel->getId() . '">' . $rel->getName() . '</option>'; } } } ?> </select> </div> </div> <div class="form-group lider" <?php if ($cal->getReligion()->getId() != 1 || $cal->getBaptism() != 1) { echo 'style="display: none;"';
/** * gets all the religions * @return array */ public function getReleigions() { $Object = new Religion(); $result = $Object->getReligions(); return $result; }