-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditar_cliente.php
151 lines (136 loc) · 5.65 KB
/
editar_cliente.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?php
require_once("administrador/conexion.php");
$datos=$con->query("SELECT * FROM clientes WHERE id = '{$_GET['id']}'");
$data = mysqli_fetch_assoc($datos);
$datos=$con->query("SELECT * FROM entrenador WHERE tipo_entrenador = 'personal'");
$datab=$con->query("SELECT * FROM plan");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Administrador</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="administrador/adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="administrador/adminlte/bower_components/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="administrador/adminlte/bower_components/Ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="administrador/adminlte/dist/css/AdminLTE.min.css">
<link rel="stylesheet" href="administrador/adminlte/dist/css/skins/skin-blue.min.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<!-- Main Header -->
<header class="main-header">
<!-- Logo -->
<a href="index_user.php?id=<?php echo $_GET['id'] ?>" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>Gimnasio </b> SABAD</span>
</a>
<!-- Header Navbar -->
</header
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel (optional) -->
<div class="user-panel">
<div class="pull-left image">
<img src="administrador/adminlte/dist/img/image.png" class="img-circle" alt="User Image"> </div>
<div class="pull-left info">
<!-- Status -->
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
</div>
</div>
<!-- Sidebar Menu -->
<ul class="sidebar-menu" data-widget="tree">
<li class="header">Panel de control</li>
<!-- Optionally, you can add icons to the links -->
<li>
<li><a href="editar_cliente.php?id=<?php echo $_GET['id'] ?>"><i class="fa fa-link"></i> <span>Editar datos</span></a></li>
<li><a href="pagos.php?id=<?php echo $_GET['id'] ?>"><i class="fa fa-link"></i> <span>pagos</span></a></li>
<li><a href="pass_cliente.php?id=<?php echo $_GET['id'] ?>"><i class="fa fa-link"></i> <span>Cambiar contraseña</span></a></li>
<li><a href="pagos.php?id=<?php echo $_GET['id'] ?>"><i class="fa fa-link"></i><span>Pagos</span></a></li>
<li><a href="pdf.php?id=<?php echo $_GET['id'] ?>" class="fa fa-link"></i><span> Descargar recibo</span></a></li>
<br>
<br>
<li><a href="index.php"><i class="fa fa-gear"></i> <span>Cerrar Sesion</span></a></li>
</ul>
<!-- /.sidebar-menu -->
</section>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Bienvenido
<small>Al panel de control administrativo</small>
</h1>
</section>
<!-- Main content -->
<section class="content container-fluid">
<form action="modi_clientes.php" method="POST">
<input type="hidden" name="id" value="<?php echo $data['id']; ?>">
<div class="box-body">
<div class="form-group">
<label>Direccion</label>
<input type="text" class="form-control" name="direccion" value="<?php echo $data['direccion']; ?>" required>
</div>
<div class="form-group">
<label>Email</label>
<input type="email" class="form-control" name="email" value="<?php echo $data['correo']; ?>" required>
</div>
<div class="form-group">
<label>telefono</label>
<input type="number" class="form-control" name="tel" value="<?php echo $data['telefono']; ?> " required>
</div>
<label >Entrenador personal</label>
<select name="entrenador">
<?php while ($row = mysqli_fetch_assoc($datos)) {?>
<option value="<?php echo $row['id'] ?>"><?php echo $row['nombre'] ?> </option>
<?php } ?>
</select>
<label>Plan</label>
<select name="plan">
<?php while ($assoc = mysqli_fetch_assoc($datab)) {?>
<option value="<?php echo $assoc['id'] ?>"><?php echo $assoc['nombre'] ?> </option>
<?php } ?>
</select>
<div class="form-group">
</div>
</div>
<!-- /.box-body -->
<div class="box-footer">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<!-- Main Footer -->
<footer class="main-footer">
<strong>Derechos reservados.
</footer>
<!-- Control Sidebar -->
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<!-- ./wrapper -->
<!-- REQUIRED JS SCRIPTS -->
<!-- jQuery 3 -->
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.min.js"></script>
<!-- Optionally, you can add Slimscroll and FastClick plugins.
Both of these plugins are recommended to enhance the
user experience. -->
</body>
</html>