-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
145 lines (131 loc) · 8.66 KB
/
index.html
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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cursos</title>
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100">
<div class="container mx-auto mt-2 p-4 border border-gray-300">
<div class="py-1 border border-green-500">
<h1 class="text-center font-bold text-2xl md:text-4xl">WEB SERVICE <br>- SOAP <small>(sin WSDL)</small> -
</h1>
</div>
<div class="mt-5 max-w-xl mx-auto">
<div class="md:grid md:grid-cols-2 gap-3 mt-5 md:mt-0">
<!-- LISTAR CURSO -->
<form action="client.php" method="POST" class="md:w-70 shadow-md sm:rounded-md">
<div class="px-4 pt-5 pb-2 bg-white sm:px-6 md:pb-3">
<label class="block font-bold text-gray-700 uppercase italic text-center mb-3">Listar curso por código</label>
<input type="hidden" name="metodo" value="obtenerCurso">
<label for="id" class="block font-medium text-gray-700">Buscar curso: <small
class="italic">(Ingrese un código > 0)</small></label>
<input type="number" name="id" id="id" min="1"
class="mt-1 shadow-md border border-grey-700 rounded-md" required>
</div>
<div class="px-4 pb-5 bg-white sm:px-6 text-gray-700">
<label class="block font-medium">Formato respuesta:</label>
<div class="grid grid-cols-2">
<div class="flex items-center justify-center">
<input id="xml1" name="formato" type="radio" value="xml" required>
<label for="xml1" class="ml-2 block text-sm font-medium">XML</label>
</div>
<div class="flex items-center justify-center">
<input id="json1" name="formato" type="radio" value="json" required>
<label for="json1" class="ml-2 block text-sm font-medium">JSON</label>
</div>
</div>
</div>
<div class="px-4 py-2">
<button type="submit"
class="py-2 px-4 border shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700">Buscar</button>
<button type="reset"
class="py-2 px-4 border shadow-sm text-sm font-medium rounded-md text-white bg-gray-500 hover:bg-gray-700">Limpiar</button>
</div>
</form>
<!-- LISTAR CURSOS -->
<form action="client.php" method="POST" class="md:w-70 shadow-md sm:rounded-md mt-4 md:mt-0">
<div class="py-5 px-4 pb-5 bg-white text-gray-700 md:px-6">
<label class="block font-bold text-gray-700 uppercase italic text-center mb-3">Listar todos los cursos</label>
<input type="hidden" name="metodo" value="obtenerCursos">
<div class="md:pt-16">
<label class="block font-medium">Formato respuesta:</label>
<div class="grid grid-cols-2">
<div class="flex items-center justify-center">
<input id="xml" name="formato" type="radio" value="xml" required>
<label for="xml" class="ml-2 block text-sm font-medium">XML</label>
</div>
<div class="flex items-center justify-center">
<input id="json" name="formato" type="radio" value="json" required>
<label for="json" class="ml-2 block text-sm font-medium">JSON</label>
</div>
</div>
</div>
</div>
<div class="px-4 py-2">
<button type="submit"
class="py-2 px-4 border shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700">Ver todos</button>
</div>
</form>
<!-- GUARDAR CURSO -->
<form action="client.php" method="POST" class="md:w-70 shadow-md sm:rounded-md">
<div class="px-4 pt-5 pb-2 bg-white sm:px-6 md:pb-24">
<label class="block font-bold text-gray-700 uppercase italic text-center mb-3">Guardar nuevo curso</label>
<input type="hidden" name="metodo" value="nuevoCurso">
<label for="nombre" class="block font-medium text-gray-700">Nombre: </label>
<input type="text" name="nombre" id="nombre" min="1"
class="mt-1 shadow-md border border-grey-700 rounded-md" required>
</div>
<div class="px-4 py-2">
<button type="submit"
class="py-2 px-4 border shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700">Guardar</button>
<button type="reset"
class="py-2 px-4 border shadow-sm text-sm font-medium rounded-md text-white bg-gray-500 hover:bg-gray-700">Limpiar</button>
</div>
</form>
<!-- ACTUALIZAR CURSO -->
<form action="client.php" method="POST" class="md:w-70 shadow-md sm:rounded-md mt-4 md:mt-0">
<div class="px-4 pt-5 pb-2 bg-white sm:px-6 md:pb-5">
<label class="block font-bold text-gray-700 uppercase italic text-center mb-3">Actualizar curso</label>
<input type="hidden" name="metodo" value="actualizarCurso">
<label for="id" class="block font-medium text-gray-700">Buscar curso: <small
class="italic">(Ingrese un código > 0)</small></label>
<input type="number" name="id" id="id" min="1"
class="mt-1 shadow-md border border-grey-700 rounded-md" required>
</div>
<div class="px-4 pb-5 bg-white sm:px-6 text-gray-700">
<label class="block font-medium">Modificar nombre:</label>
<input type="text" name="nombre" id="nombre"
class="mt-1 shadow-md border border-grey-700 rounded-md" required>
</div>
<div class="px-4 py-2">
<button type="submit"
class="py-2 px-4 border shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700">Modificar</button>
<button type="reset"
class="py-2 px-4 border shadow-sm text-sm font-medium rounded-md text-white bg-gray-500 hover:bg-gray-700">Limpiar</button>
</div>
</form>
<!-- ELIMINAR CURSO -->
<form action="client.php" method="POST" class="md:w-70 shadow-md sm:rounded-md mt-4 md:mt-0">
<div class="px-4 py-5 bg-white sm:px-6 md:pb-20">
<label class="block font-bold text-gray-700 uppercase italic text-center mb-3">Eliminar curso</label>
<input type="hidden" name="metodo" value="eliminarCurso">
<label for="id" class="block font-medium text-gray-700">Buscar curso: <small
class="italic">(Ingrese un código > 0)</small></label>
<input type="number" name="id" id="id" min="1"
class="mt-1 shadow-md border border-grey-700 rounded-md" required>
</div>
<div class="px-4 py-2">
<button type="submit"
class="py-2 px-4 border shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700">Eliminar</button>
<button type="reset"
class="py-2 px-4 border shadow-sm text-sm font-medium rounded-md text-white bg-gray-500 hover:bg-gray-700">Limpiar</button>
</div>
</form>
</div>
</div>
</div>
</body>
</html>