-
Notifications
You must be signed in to change notification settings - Fork 0
/
transferirpuntos.php
90 lines (78 loc) · 3.03 KB
/
transferirpuntos.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php include_once "views/userhead.php"; ?>
<?php include_once "php/queries.php"; ?>
<div id="page-wrapper">
<div class="container-fluid">
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<div class="well"><h1>Transferir Puntos</h1></div>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-8">
<div class="table-responsive">
<?php
$resultado = GetPerfilByUser($_COOKIE["pkusuario"]);
$row = mysqli_fetch_row($resultado);
$resultado2 = GetPerfilByUser($_GET["idam"]);
$row2 = mysqli_fetch_row($resultado2);
?>
<form action="php/transferencia.php" method="POST" >
<table class="table table-hover">
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="form-group">
<label for="usr">Puntos Disponibles:</label>
<input disabled type="text" class="form-control" id="puntos" value="<?php echo $row[4]; ?>" >
</div>
</td>
</tr>
<tr>
<td>
<div class="form-group">
<label for="usr">Puntos a transferir a <?php echo $row2[0]." ".$row2[1]." (".$row2[2].")"; ?>:</label>
<input type="text" class="form-control" id="puntosatransferir" name="puntosatransferir" >
</div>
</td>
</tr>
<tr>
<td>
<div class="form-group">
<label for="usr">Puntos actuales de <?php echo $row2[2]; ?>:</label>
<input type="text" class="form-control" value="<?php echo $row2[4]; ?>" disabled >
</div>
</td>
</tr>
<input type="hidden" name="pka" value="<?php echo $_GET["idam"]; ?>" />
<tr>
<td>
<button type="submit" class="btn btn-lg btn-success">Transferir</button>
</td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>