<div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title"><i class="fa fa-envelope-o fa-fw"></i> saida</h3>
                            </div>
                            <div class="panel-body">
                                <table class="table table-hover">
                                    <form method="post" action="pags/enviamensagemsaida.php">
                                    <div class="form-group">
                                        <label>Voluntario</label><br>
                                        <?php 
include "../cls/voluntarioClass.php";
$mensagem = new voluntarioClass();
$mensagem->getOne($idV);
$_SESSION['idVol'] = $idV;
$_SESSION['idEmp'] = $_SESSION["idEmpresa"];
$result = $mensagem->getConsulta();
if ($linha = $result->fetch_assoc()) {
    ?>
 
                                        <label><?php 
    echo $linha['nomeVoluntario'];
    ?>
</label>
                                        <?php 
}
?>
                                    </div>
                                    <div class="form-group">
                                        <label>Mensagem</label>
                                        <fieldset>
                                        <textarea class="form-control" rows="5" name="msg"></textarea>
                                <h3 class="panel-title"><i class="glyphicon glyphicon-th-list"></i> Voluntarios</h3>
                            </div>
                            <div class="panel-body">
                                <table class="table table-hover">
                                    <tr>
                                        <th>Nome do Voluntario</th>
                                        <th>Telefone</th>
                                        <th>Atividade a Desempenhar</th>
                                        <th>Ação</th>
                                        <th>Status</th>
                                    </tr>
                                    <?php 
include "../cls/voluntarioClass.php";
$disponibilidade = new voluntarioClass();
$disponibilidade->getSete();
$result = $disponibilidade->getConsulta();
if (!$result) {
    throw new Exception("Database Error [{$this->database->error}] {$this->database->error}");
} else {
    while ($linha = $result->fetch_assoc()) {
        if ($linha['status'] == 0) {
            $st = "Livre";
        }
        if ($linha['status'] == 1) {
            $st = "Ocupado";
        }
        if ($linha['status'] == 2) {
            $st = "Esta sendo Voluntario";
        }
        ?>
                                        <tr>
Esempio n. 3
0
                        <li>
                            <a href="pags/trocastatus.php?st=2">Sendo Voluntario<span class="label label-success">V</span></a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">Gerenciar</a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown">
                        <?php 
    $vol = new voluntarioClass();
    $vol->getOne($id);
    ?>
                        <?php 
    $result = $vol->getConsulta();
    while ($linha = $result->fetch_assoc()) {
        ?>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <?php 
        echo $linha['nomeVoluntario'];
        ?>
 <b class="caret"></b></a>
                    <?php 
    }
    ?>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="?adm=admPerfil"><i class="fa fa-fw fa-user"></i> Perfil</a>
                        </li>
                        <li>
                            <a href="?adm=admE"><i class="fa fa-fw fa-envelope"></i> Mensagens</a>
                        </ol>
                    </div>
                </div>

                <div class="row">
                    <div class="col-lg-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title"><i class="fa fa-e fa-desktop"></i> Perfil</h3>
                            </div>
                            <div class="panel-body">
                                <div>
                                    <?php 
$voluntario = new voluntarioClass();
$voluntario->getOne($id);
$result = $voluntario->getConsulta();
if (!$result) {
    throw new Exception("Database Error [{$this->database->error}] {$this->database->error}");
} else {
    while ($linha = $result->fetch_assoc()) {
        $_SESSION['idVol'] = $id;
        ?>
                                        
                                    <form method="post" action="pags/updatevoluntario.php">
                                        <div class="col-lg-12">
                                            <h2>Atualizar dados do Voluntário</h2>
                                        </div>
                                        <div class="form-group col-lg-12">
                                            <label>Nome *</label>
                                            <input class="form-control" type="text" value="<?php 
        echo $linha['nomeVoluntario'];
                    </div>
                </div>

                <div class="row">
                    <div class="col-lg-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title"><i class="fa fa-e fa-desktop"></i> Dados</h3>
                            </div>
                            <div class="panel-body">
                                <div>
                                    <?php 
include '../cls/voluntarioClass.php';
$empresa = new voluntarioClass();
$empresa->getOne($idvol);
$result = $empresa->getConsulta();
if (!$result) {
    throw new Exception("Database Error [{$this->database->error}] {$this->database->error}");
} else {
    if ($linha = $result->fetch_assoc()) {
        ?>
                                        
                                    
                                        <div class="col-lg-12">
                                            <h2>Dados do Voluntario</h2>
                                        </div>
                                        <div class="form-group col-lg-12">
                                            <label>Nome</label>
                                            <input class="form-control" type="text" value="<?php 
        echo $linha['nomeVoluntario'];
        ?>