<div class="table-responsive"> <table class="table table-striped table-bordered table-hover dataTables-example"> <thead> <tr> <th>ID</th> <th>Nome</th> <th>Pastor</th> <th>Endereço</th> <th>Status</th> <th>Ação</th> </tr> </thead> <tbody> <?php if (Church::getChurches() != '') { foreach (Church::getChurches() as $chur) { echo '<tr>'; echo '<td>' . $chur->getId() . '</td>'; echo '<td>' . '<a class="modalChurch" data-id="' . $chur->getId() . '" >' . $chur->getName() . '</a>' . '</td>'; echo '<td>' . $chur->getPastor() . '</td>'; echo '<td>' . $chur->getAddress()->getStreet() . ', ' . $chur->getAddress()->getNumber() . ' ' . $chur->getAddress()->getComplement() . ', ' . $chur->getAddress()->getDistrict() . ', ' . $chur->getAddress()->getCity() . '/' . $chur->getAddress()->getState() . '</td>'; echo '<td>' . $chur->getStatus() . '</td>'; if ($chur->getStatus() != 'Banido') { echo '<td>' . '<a href="forms.php?p=altIgreja&cod=' . $chur->getId() . '">' . '<i class="icon icon-pencil"></i> Editar' . '</a>' . '</td>'; } else { echo '<td></td>'; } echo '</tr>'; } } ?>
</div> </form> </div> <!-- FIM PRIMEIRO PASSO - DADOS PESSOAIS --> <div class="step2Ig" style="display: none;"> <form id="formMissaoIgreja" class="form-horizontal"> <div class="form-group"> <label for="pass1" class="control-label col-lg-4">Igreja</label> <div class="col-lg-5"> <select name="ID_CHURCH" class="form-control" required> <option>Selecione a Igreja</option> <?php if (Church::getChurches()) { foreach (Church::getChurches() as $rel) { echo '<option value="' . $rel->getId() . '">' . $rel->getName() . '</option>'; } } ?> </select> </div> </div> <div class="form-group"> <div class="col-lg-4 col-lg-offset-4"> <button type="button" data-back="1" class="btn btn-primary back">Voltar</button> </div> <div class="col-md-4"> <button type="submit" class="btn btn-primary">Continue</button> </div> </div>