示例#1
0
require_once "../controle/data.gti.php";
$metodo = $_GET['metodo'];
$reg_andamento = $_POST['valor'];
$data = new gtiData();
switch ($metodo) {
    case 'resposta':
        $manifestacao = new clsManifestacao();
        $codigo = $manifestacao->PegaCodManifestacaoPorRegAndamento($reg_andamento);
        if (trim($codigo) == '') {
            echo '<br><strong>' . htmlentities('Essa manifestação não existe!') . '</strong>';
            die;
        }
        $manifestacao->SetCodigo($codigo);
        $manifestacao->ConsultarPorCodigo();
        $feedback = '';
        if ($manifestacao->GetFeedback() != '') {
            $feedback = '
				<br>
				<tr>
					<td><strong>Esta manifesta&ccedil;&atilde;o foi reenviada a este setor pois o manifestante enviou um feedback. Segue logo abaixo o texto</strong><br> ' . $manifestacao->GetFeedback() . '
					</td>
				</tr>
				<br>';
        }
        //indica que a manifestacao nao existe
        if (trim($manifestacao->GetCodigo()) == '') {
            echo '<br><strong>Essa manifesta&ccedil;&atilde;o n&atilde;o existe!</strong>';
        } else {
            if (trim($manifestacao->GetIdentificacao()) == 'I') {
                echo '
								
示例#2
0
                              
                              </label>
                            </div></td>
                          </tr>
						';
}
?>
					 
					 
					 
<tr>
	<td colspan="3"><table width="100%" border="0">
	  <tr>
	    <td bgcolor="#F3F8F1"><strong>Feedback do manifestante: </strong> 
		<?php 
if (trim($manifestacao->GetFeedback()) == '') {
    echo 'O manifestante n&atilde;o enviou um feedback.';
} else {
    echo $manifestacao->GetFeedback();
}
?>
</td>
	    </tr>
	  <tr>
		<td><strong>Respostas dos Departamentos </strong></td>
	  </tr>
	  <tr>
		<td bgcolor="#EFF7E8"><table width="100%" border="1" class="style23">
		  <tr>
			<td width="20%" background="imagens/barra.jpg"><strong>Departamento</strong></td>
			<td width="50%" background="imagens/barra.jpg"><strong>Resposta</strong></td>