Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.57 KB | None | 0 0
  1. <?php   header('Access-Control-Allow-Origin: *');
  2.  
  3. include('../../servidor/conexion.php');
  4. include('../../servidor/funciones.php');
  5.  
  6. $alumuser1 = "SELECT * FROM spotblalumnos where idAlumno = '".$_GET['alum']."'";
  7. $alumuser2 = mysqli_query($conexion, $alumuser1);    
  8. $alumuser3= mysqli_fetch_array($alumuser2);
  9.  
  10. $centrodeuser1 = "SELECT * FROM spotblcentros where idCentro = '".$alumuser3['intCentro']."'";
  11. $centrodeuser2 = mysqli_query($conexion, $centrodeuser1);    
  12. $centrodeuser3= mysqli_fetch_array($centrodeuser2);?>
  13.  
  14.      <div class="cajatitulopag">
  15.     <table align="center"><tr><td align="center" valign="middle"><img src="http://azamar.es/sportmadness/sportivity/app/sistemaapp/imagenes/iconoclases.png" style="max-height:25px"> </td><td align="center" valign="middle"><strong>Clases de <?php echo $alumuser3['strNombre'] ?> <?php echo $alumuser3['strApellidos'] ?></strong></td></tr></table>
  16.    
  17. </div>
  18.  
  19.    
  20. <?php
  21.  $listaclases1 = "SELECT * FROM spotblinscripcionesalumno where intAlumno = '".$alumuser3['idAlumno']."'";
  22.  $listaclases2 = mysqli_query($conexion, $listaclases1);     
  23. while($listaclases3= mysqli_fetch_array($listaclases2)){
  24.    
  25. $clase1 = "SELECT * FROM spotblclases where idClase = '".$listaclases3['intClase']."'";
  26. $clase2 = mysqli_query($conexion, $clase1);  
  27. $clase3= mysqli_fetch_array($clase2);
  28. $grupoed1 = "SELECT * FROM spoopciontblgrupoedades where idGrupo = '".$clase3['intGrupoEdad']."'";
  29. $grupoed2 = mysqli_query($conexion, $grupoed1);  
  30. $grupoed3= mysqli_fetch_array($grupoed2);  
  31.  
  32. $entrenauser1 = "SELECT * FROM spotblentrenadores where idEntrenador = '".$clase3['intEntrenador']."'";
  33. $entrenauser2 = mysqli_query($conexion, $entrenauser1);  
  34. $entrenauser3= mysqli_fetch_array($entrenauser2);
  35.  
  36.     ?>
  37.  
  38.     <a onclick="gotover<?php echo $clase3['idClase'] ?>()">
  39.  <div class="cajamenu">
  40.  <table>
  41.  <tr>
  42.  <td rowspan="2" style="padding-left:0.5em">
  43. <img src="http://azamar.es/sportmadness/sportivity/app/sistemaapp/imagenes/iconoclases.png" style="max-height:45px">
  44.  </td>
  45. <td style="padding-left:1em">
  46. <?php echo $clase3['strNombre'] ?> - <?php echo $grupoed3['strNombre'] ?>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td style="padding-left:1em">
  51. <?php echo $entrenauser3['strNombre'] ?> <?php echo $entrenauser3['strApellidos'] ?>
  52. </td>
  53.  
  54. </tr>
  55.  
  56.  </table>
  57.  </div>
  58.  </a>
  59.  
  60.  
  61.    
  62.    
  63.        <script>
  64. function gotover<?php echo $clase3['idClase'] ?>() {
  65.                         sessionStorage.setItem("varsesionsport", '<?php echo $clase3['idClase'] ?>');
  66.                         location.href = "ver_clase.html";
  67. }
  68.  
  69. </script>
  70.  
  71.  
  72.        
  73.  
  74. <?php }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement