示例#1
0
 /**
  * @param Floor $floor
  * @return Resident
  */
 public static function createOnTheFloor(Floor $floor)
 {
     $resident = new Resident();
     $resident->setCurrentFloor($floor);
     return $resident;
 }
 public function roomwise_student_details()
 {
     $posts = Resident::manage_student_individual($_GET['st_id']);
     require_once 'views/student/RoomwiseStudentDetails.php';
 }
示例#3
0
            echo $miss->getChurch()->getAddress()->getCity();
            ?>
 / <?php 
            echo $miss->getChurch()->getAddress()->getState();
            ?>
            </p>
            <p><label>Observações</label>:  <?php 
            echo $miss->getChurch()->getAddress()->getPs();
            ?>
</p>
        <?php 
        }
        break;
    case 'resident':
        $cod = filter_input(INPUT_POST, 'cod', FILTER_SANITIZE_NUMBER_INT);
        $res = Resident::getResident('AND p.id_person = ' . $cod);
        ?>
        <p><label>No sistema desde</label>: <?php 
        echo $res->getDateInsert();
        ?>
</p>
        <h4>Dados Pessoais</h4>
        <p><label>Nome</label>: <?php 
        echo $res->getName();
        ?>
</p>
        <p><label>Idade</label>: <?php 
        echo $res->getAge();
        ?>
  |  <label>Sexo</label>: <?php 
        echo $res->getSex();
 public function roomwise_student_details()
 {
     $posts = Resident::manage_student();
     require_once 'views/admin/RoomwiseStudentDetails.php';
 }
示例#5
0
<?php

include_once 'class/Resident.php';
$id = filter_input(INPUT_GET, 'cod', FILTER_SANITIZE_NUMBER_INT);
if (Resident::getResident("AND p.id_person = {$id}")) {
    $res = Resident::getResident("AND p.id_person = {$id}");
}
?>
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">Alterar Morador</h1>
    </div>
</div>
<div class="row">
    <div class="col-lg-12">
        <div class="col-md-8 col-md-offset-3">
            <ul class="nav nav-wizard">
                <li class="active" id="1"><a href="#">Dados Pessoais</a></li>
                <li class="disabled" id="2"><a href="#">Endereço</a></li>
                <li class="disabled" id="3"><a href="#">Finalizar</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="row">
    <div class="col-lg-12">
        <div class="box dark">
            <div id="div-1" class="accordion-body collapse in body">
                <div class="message"></div>
                <!-- PRIMEIRO PASSO - DADOS PESSOAIS -->
                <div class="step1">
示例#6
0
 /**
  *
  * @param Resident $resident Resident this message is for
  */
 public function setFor(Resident $resident)
 {
     Zend_Debug::dump($this->id);
     $this->resident_id = $resident->getId();
 }
示例#7
0
                     $typeCount[$i]++;
                 }
             }
         }
     }
     for ($i = 0; $i < count($type); $i++) {
         $data[] = array('y' => $type[$i], 'a' => $typeCount[$i]);
     }
     echo json_encode($data);
     break;
 case 'detalOpnionPerson':
     $get = $_POST['type'];
     $typeGood = array('Honesto', 'Comprometido', 'Persistente', 'Companheiro', 'NDA');
     $typeBad = array('Pontualidade', 'Hipocrita', 'Falso', 'Interesseiro', 'NDA');
     $typeAll = array('Honesto', 'Comprometido', 'Persistente', 'Companheiro', 'Pontualidade', 'Hipocrita', 'Falso', 'Interesseiro', 'NDA');
     $persons = Resident::getResidents();
     if ($get == 'good') {
         $type = $typeGood;
     }
     if ($get == 'bad') {
         $type = $typeBad;
     }
     if ($get == 'all') {
         $type = $typeAll;
     }
     for ($i = 0; $i < count($type); $i++) {
         $typeCount[$i] = 0;
         if ($persons) {
             foreach ($persons as $opnion) {
                 if ($opnion->getResearch()) {
                     $opnion = explode(';', $opnion->getResearch()->getOpnionAdventista());
示例#8
0
 public static function getResident($where)
 {
     $dado = Database::ReadOne("resident r, person p", "r.*, p.*", "WHERE p.id_person = r.id_person {$where}");
     if (!$dado) {
         return '';
     }
     $resident = new Resident();
     $resident->setId($dado['ID_PERSON']);
     $resident->setName($dado['NAME_PERSON']);
     $resident->setEmail($dado['EMAIL']);
     $resident->setAge($dado['AGE']);
     $resident->setSex($dado['SEX']);
     $resident->setPhone($dado['PHONE']);
     $resident->setOperator($dado['OPERATOR']);
     $resident->setMaritalStatus($dado['MARITAL_STATUS']);
     $resident->setChildren($dado['CHILDREN']);
     $resident->setDateInsert($dado['INSERT_DATE']);
     $resident->setNumberResident($dado['NUMBER_RESIDENT_HOUSE']);
     $resident->setHouseFather($dado['HOUSEFATHER']);
     $resident->setCognateAdventista($dado['COGNATE_ADVENTISTA']);
     $religion = Religion::getReligion("WHERE id_religion = " . $dado['ID_RELIGION']);
     $resident->setReligion($religion);
     $address = Address::getAddress("AND id_address = " . $dado['ID_ADDRESS']);
     $resident->setAddress($address);
     $research = Research::getResearch('WHERE id_resident = ' . $dado['ID_PERSON']);
     $resident->setResearch($research);
     return $resident;
 }
示例#9
0
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover dataTables-example">
                                    <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>Nome</th>
                                        <th>Email</th>
                                        <th>Religião</th>
                                        <th>Idade</th>
                                        <th>Ação</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php 
if (Resident::getResidents() != '') {
    foreach (Resident::getResidents() as $res) {
        echo '<tr>';
        echo '<td>' . $res->getId() . '</td>';
        echo '<td>' . '<a class="modalResident" data-id="' . $res->getId() . '" >' . $res->getName() . '</a>' . '</td>';
        echo '<td>' . $res->getEmail() . '</td>';
        echo '<td>' . $res->getReligion()->getName() . '</td>';
        echo '<td>' . $res->getAge() . '</td>';
        echo '<td>' . '<a href="forms.php?p=altMorador&cod=' . $res->getId() . '"><i class="icon-pencil"></i>Editar</a>' . '  |  ';
        if (Research::existResearch($res->getId())) {
            echo '<i class="icon icon-check" style="color: green"></i> Pesquisa Realizada';
        } else {
            echo '<a href="forms.php?p=cadPesquisa&cod=' . $res->getId() . '"><i class="icon-edit" style="color: red"></i>Realizar Pesquisa</a>';
        }
        echo '</td>';
        echo '</tr>';
    }