Exemplo n.º 1
0
						<table class="table table-striped table-bordered bootstrap-datatable datatable">
						  <thead>
							  <tr>
							  	  <th style="display: none;" width="10%"nowrap>&nbsp;</th>
								  <th width="10%"nowrap>C&oacute;d. Ata</th>
								  <th width="20%"nowrap>Cliente</th>
								  <th width="18%"nowrap>Assunto</th>
								  <th width="2%"nowrap >Data Ata</th>
								  <th width="2%"nowrap>Vers&atilde;o</th>
								  <th width="7%"nowrap >Criado Por</th>
								  <th width="14%"nowrap>A&ccedil;&atilde;o</th>
							  </tr>
						  </thead>   
						  <tbody>
							<?php 
$resultado = $DAO->listar("SELECT A.id AS id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tA.cod_ata,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tA.aprovado,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tA.finalizado,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tA.dat_ata,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tA.dat_aprovado,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tB.destinatario,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tB.assunto,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tB.versao,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tB.ngtm,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tP.nome_completo AS nome_criou\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM " . MYSQL_BASE_ATAS . " A\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tINNER JOIN " . MYSQL_BASE_ATAS_CONTEUDO . " B ON A.id = B.id_ata\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tINNER JOIN " . MYSQL_BASE_PESSOAS . " P ON P.id = A.id_usuario\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tB.principal = 'S' AND A.dat_excluido IS NULL\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tORDER BY A.id DESC");
$count == 0;
$confirm = "return confirm('Deseja remover esse registro?');";
foreach ($resultado as $item) {
    if ($item['aprovado'] == "S") {
        $disabled = 'disabled';
        $aprovado = "return false";
        $edit = "return false";
        $bt_aprova = 'Aprovado';
    } else {
        $disabled = "";
        $aprovado = "return confirm('Deseja aprovar esse registro?');";
        $edit = "";
        $bt_aprova = 'Aprovar';
    }
    if ($item['finalizado'] != NULL) {
Exemplo n.º 2
0
							</a>
						</div>
					</div>
					<div class="box-content">
						
						<table class="table table-striped table-bordered bootstrap-datatable datatable">
						  <thead>
							  <tr>
							  	  <th style="display: none;">N</th>
							  	  <th>Categoria</th>
								  <th>A&ccedil;&atilde;o</th>
							  </tr>
						  </thead>   
						  <tbody>
							<?php 
$DAO->listar();
?>
						  </tbody>
					  </table>            
					</div>
				</div>
			</div>
					
					<!-- content ends -->
			</div><!--/#content.span10-->
				</div><!--/fluid-row-->
				
		<hr>

		<?php 
include_once '../../footer.php';