Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. function verifica(){
  2. var meuid = $('.meuid').attr('id');
  3. var datas = "user="+meuid;
  4. $.ajax({
  5. type: "GET",
  6. url: 'sys/stream2.php',
  7. data: datas
  8. }).done(function( data ) {
  9. //alert(data);
  10. $('#nome').html(data);
  11. });
  12. }
  13.  
  14. foreach ($gUsuarios as $usuarios) {
  15. $agora = $usuarios['AGORA'];
  16. if ($agora >= $usuarios['cUsu_Limite']) {
  17. echo json_encode(array('usuarioon' => $usuarios['cUsu_ID'], 'status' => 'fa fa-circle-o text-red'));
  18. }else{
  19. echo json_encode(array('usuarioon' => $usuarios['cUsu_ID'], 'status' => 'fa fa-circle-o text-green'));
  20. }
  21. }
  22.  
  23. {"usuarioon":"1","status":"fa fa-circle-o text-red"}
  24. {"usuarioon":"3","status":"fa fa-circle-o text-red"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement