Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. //Botão
  2. <li><a href="#"><i class="icon-trash"></i> Apagar Usuário</a></li>
  3.  
  4. //Tabela com os dados dos usuários
  5. <table width="100%" border="0" class="table table-striped table-hover table-bordered">
  6. <tr>
  7. <th nowrap="nowrap">#</th>
  8. <th nowrap="nowrap">Codigo</th>
  9. <th nowrap="nowrap">Empresa</th>
  10. <th nowrap="nowrap">Cidade</th>
  11. <th nowrap="nowrap">UF</th>
  12. <th nowrap="nowrap">Telefone</th>
  13. <th nowrap="nowrap">CPF/CPNJ</th>
  14. <th nowrap="nowrap">E-Mail</th>
  15. <th nowrap="nowrap">Status</th>
  16. <th colspan="2" nowrap="nowrap">Ações</th>
  17. </tr>
  18. <?php
  19. if ($resultadoBusca != null){
  20.  
  21. foreach($resultadoBusca as $escrever){
  22. //checkbox recebedo cod_user
  23. echo "<tr><td><input type=checkbox name="check_idUser[]" value="".$escrever['cod_user'].""></td>
  24. <td>" . $escrever['cod_votoran'] . "</td>
  25. <td>" . utf8_encode($escrever['empresa_user']) . "</td>
  26. <td>" . utf8_encode($escrever['cidade_user']) . "</td>
  27. <td>" . $escrever['estado_user'] . "</td>
  28. <td>" . $escrever['fone_user'] . "</td>
  29. <td>" . $escrever['cpfcnpj_user'] . "</td>
  30. <td>" . $escrever['email_user'] . "</td>
  31. <td>" . $escrever['status_user'] . "</td>
  32. <td>";
  33. echo "<a href="visualizarUsuario.php?cod=".$escrever['cod_user'].""><i class="icon-eye-open" title="Visualizar Todos os Dados do Usuário!"></i></a>";
  34. if($escrever['status_user']=='ativo'|| $escrever['status_user']=='Ativo')
  35. {
  36. echo "<a href="desativarUsuario.php?cod=".$escrever['cod_user'].""> <i class="icon-ban-circle" title="Desativar Usuário!"></i></a>";
  37. }else{
  38. echo "<a href="ativarUsuario.php?cod=".$escrever['cod_user'].""> <i class="icon-check" title="Ativar Usuário!"></i></a>";
  39. }
  40. echo "<a href="editarUsuario.php?cod=".$escrever['cod_user'].""> <i class="icon-edit" title="Editar Usuário!"></i></a>";
  41. echo "<a href="excluirUsuario.php?cod=".$escrever['cod_user'].""> <i class="icon-remove" title="Remover Usuário!"></i></a></td>
  42. </tr>";
  43. }
  44. }else{
  45. echo '<table style="width:100%; background: none repeat scroll 0% 0% rgb(242, 222, 222);"><div align="center"><strong><tr><td>Desculpe! Não Existe Nenhum Usuário Cadastrado</td></tr></strong></div></table>';
  46. }
  47. echo "</table>";
  48. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement