-
Notifications
You must be signed in to change notification settings - Fork 0
/
anivpaseo.aspx
402 lines (388 loc) · 22.2 KB
/
anivpaseo.aspx
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="anivpaseo.aspx.cs" Inherits="anivpaseo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Aniversario CIBNOR - Registro en Linea</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="scriptmanager1" EnablePartialRendering="true" runat="server" />
<div>
<center>
<div align="center">
<table style="font-family: Verdana; font-size: 11pt; width:500pt;">
<tr>
<td style="width:160px;">
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/logo_38aniv.png"
Height="80px" /></td>
<td style="width:480px; text-align:center; font-size: 14pt; font-family: Arial; font-weight: bold;">
<asp:Label ID="lblTituloEvento" runat="server" Font-Bold="False"
Font-Names="Verdana" Font-Size="14pt"
Text="Actividades del 38 Aniversario del CIBNOR"></asp:Label>
<br />
<br />
<asp:Label ID="lblTituloRegistro" runat="server" Font-Bold="False"
Font-Names="Verdana" Font-Size="11pt"
Text="Registro en Linea - Paseo en Bicicleta"></asp:Label>
</td>
</tr>
</table>
<asp:Panel ID="pnlDatos" runat="server">
<asp:ValidationSummary ID="valSum" runat="server" DisplayMode="SingleParagraph"
HeaderText="Los campos marcados con * son requeridos. " Font-Names="Verdana"
Font-Size="8pt" ForeColor="Red" />
<%-- Inicia update panel actividades--%>
<asp:UpdatePanel ID="upnlActividades" runat="server">
<ContentTemplate>
<hr style="visibility:hidden;"/>
<table style="border:0; width:500pt; font-size: 8pt;">
<tr>
<td colspan="3"
style="font-size: 9pt; font-family: Verdana; font-weight: bold; text-align: center;">
DATOS PERSONALES</td>
</tr>
<tr>
<td colspan="3" style="font-family: Verdana; font-weight: bold;">
<hr width="100%" noshade="noshade" size="0" />
</td>
</tr>
<tr>
<td style="text-align:right; font-family: Verdana">
Nombre(s):</td>
<td style="text-align:left">
<asp:TextBox ID="txtNombres" runat="server"
Font-Size="8pt" Width="240px" MaxLength="50" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtNombres"
SetFocusOnError="True" Font-Bold="True" ForeColor="Red">*</asp:RequiredFieldValidator>
</td>
<td>
</td>
</tr>
<tr>
<td style="text-align:right; font-family: Verdana">
Apellido(s):</td>
<td style="text-align: left">
<asp:TextBox ID="txtApellidos" runat="server" Width="240px" Font-Size="8pt"
MaxLength="50" />
</td>
<td> </td>
</tr>
<tr>
<td style="text-align:right; font-family: Verdana">
Correo electrónico:</td>
<td style="text-align:left">
<asp:TextBox ID="txtCorreo" runat="server"
MaxLength="50" Width="240px" Font-Size="8pt" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="txtCorreo"
SetFocusOnError="True" Font-Bold="True" ForeColor="Red">
*</asp:RequiredFieldValidator>
</td>
<td style="text-align:left">
<asp:RegularExpressionValidator ID="valRegExCorreo" runat="server"
ControlToValidate="txtCorreo" Display="Static" Font-Names="Arial" Font-Size="8pt"
ValidationExpression="^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$">Formato: correo@servidor.dominio
</asp:RegularExpressionValidator>
</td>
</tr>
<!-- renglon en blanco -->
<tr>
<td style="text-align:right; font-family: Verdana">
Confirmar correo electrónico:</td>
<td style="text-align: left">
<asp:TextBox ID="txtCorreoConfirma" runat="server" Font-Size="8pt"
MaxLength="50" Width="240px" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="txtCorreoConfirma" Font-Bold="True"
SetFocusOnError="True" ForeColor="Red">
*</asp:RequiredFieldValidator>
</td>
<td style="text-align: left">
<asp:CompareValidator ID="CompareValidator3" runat="server"
ControlToCompare="txtCorreo" ControlToValidate="txtCorreoConfirma" Font-Names="Arial"
Font-Size="8pt" SetFocusOnError="True">Confirmar correo electrónico.</asp:CompareValidator>
</td>
</tr>
<tr>
<td style="text-align:right; font-family: Verdana">
Telefono de contacto:</td>
<td style="text-align: left">
<asp:TextBox ID="txtTelefono" runat="server" Font-Size="8pt" MaxLength="200"
Width="120px" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
ControlToValidate="txtTelefono" Font-Bold="True" ForeColor="Red"
SetFocusOnError="True">
*</asp:RequiredFieldValidator>
</td>
<td>
</td>
</tr>
<tr>
<td style="text-align:right; font-family: Verdana">
Edad:</td>
<td style="text-align: left">
<asp:TextBox ID="txtEdad" runat="server" Font-Size="8pt" MaxLength="2"
Width="40px" />
</td>
<td>
</td>
</tr>
<tr>
<td style="text-align:right; font-family: Verdana">
<asp:Label ID="Label1" runat="server" Font-Bold="False" Font-Names="Verdana"
Font-Size="8pt" Text="Sexo:"></asp:Label>
</td>
<td style="text-align: left">
<asp:DropDownList ID="ddlSexo" runat="server"
Font-Italic="False" Font-Names="Verdana" Font-Size="8pt" Width="120px">
<asp:ListItem Selected="True">Masculino</asp:ListItem>
<asp:ListItem Selected="False">Femenino</asp:ListItem>
</asp:DropDownList>
</td>
<td>
</td>
</tr>
<%--<tr>
<td style="text-align:right; font-family: Verdana">
Categoria:</td>
<td style="text-align: left">
<asp:DropDownList ID="ddlCategoria" runat="server" Font-Italic="False"
Font-Names="Verdana" Font-Size="8pt" Width="120pt" AutoPostBack="True"
onselectedindexchanged="ddlCategoria_SelectedIndexChanged">
<asp:ListItem Selected="True" Value="--">Seleccione una...</asp:ListItem>
<asp:ListItem Selected="False">Infantil</asp:ListItem>
<asp:ListItem Selected="False">Individual</asp:ListItem>
<asp:ListItem Selected="False">Relevo</asp:ListItem>
<asp:ListItem Selected="False">Relevo mixto</asp:ListItem>
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="ddlCategoria" Font-Bold="True" InitialValue="--"
SetFocusOnError="True" ForeColor="Red">*</asp:RequiredFieldValidator>
</td>
<td>
</td>
</tr>
<tr>
<td style="text-align:right; font-family: Verdana">
<asp:Label ID="lblModalidad" runat="server" Font-Bold="False"
Font-Names="Verdana" Font-Size="8pt" Text="Modalidad:" Visible="False"></asp:Label>
</td>
<td style="text-align: left">
<asp:DropDownList ID="ddlModalidad" runat="server" Font-Italic="False"
Font-Names="Verdana" Font-Size="8pt" Width="120pt" Visible="False">
<asp:ListItem Selected="True" Value="--">Seleccione una...</asp:ListItem>
<asp:ListItem Selected="False">Mini sprint</asp:ListItem>
<asp:ListItem Selected="False">Sprint</asp:ListItem>
<asp:ListItem Selected="False">Olimpico</asp:ListItem>
</asp:DropDownList>
<asp:RequiredFieldValidator ID="rfvModalidad" runat="server"
ControlToValidate="ddlModalidad" Enabled="False" Font-Bold="True"
ForeColor="Red" InitialValue="--" SetFocusOnError="True">*</asp:RequiredFieldValidator>
</td>
<td>
</td>
</tr>
<tr>
<td style="text-align:right; font-family: Verdana">
<asp:Label ID="Label1" runat="server" Font-Bold="False" Font-Names="Verdana"
Font-Size="8pt" Text="Rama:"></asp:Label>
</td>
<td style="text-align: left">
<asp:DropDownList ID="ddlRama" runat="server"
Font-Italic="False" Font-Names="Verdana" Font-Size="8pt"
onselectedindexchanged="ddlCategoria_SelectedIndexChanged" Width="120pt">
<asp:ListItem Selected="True">Varonil</asp:ListItem>
<asp:ListItem Selected="False">Femenil</asp:ListItem>
</asp:DropDownList>
</td>
<td>
</td>
</tr>--%>
<tr>
<td style="text-align:right; font-family: Verdana">
<asp:Label ID="lblClub" runat="server" Font-Bold="False" Font-Names="Verdana"
Font-Size="8pt" Text="Nombre del club/institución:"></asp:Label>
</td>
<td style="text-align: left">
<asp:TextBox ID="txtClub" runat="server" Font-Size="8pt" MaxLength="50"
Width="240px" />
</td>
<td>
</td>
</tr>
<%--<tr>
<td style="text-align:right; font-family: Verdana">
<asp:Label ID="lblTipoSangre" runat="server" Font-Bold="False"
Font-Names="Verdana" Font-Size="8pt" Text="Tipo de sangre:"></asp:Label>
</td>
<td style="text-align: left">
<asp:DropDownList ID="ddlTipoSangre" runat="server"
Font-Italic="False" Font-Names="Verdana" Font-Size="8pt"
onselectedindexchanged="ddlCategoria_SelectedIndexChanged" Width="60pt">
<asp:ListItem Selected="True">A+</asp:ListItem>
<asp:ListItem Selected="False">A-</asp:ListItem>
<asp:ListItem Selected="False">B+</asp:ListItem>
<asp:ListItem Selected="False">B-</asp:ListItem>
<asp:ListItem Selected="False">AB+</asp:ListItem>
<asp:ListItem Selected="False">AB-</asp:ListItem>
<asp:ListItem Selected="False">O+</asp:ListItem>
<asp:ListItem Selected="False">O-</asp:ListItem>
</asp:DropDownList>
</td>
<td>
</td>
</tr>--%>
</table>
</ContentTemplate>
</asp:UpdatePanel>
<%-- Termina update panel actividades--%>
<hr style="visibility:hidden;"/>
<table style="border:0; width:500pt; font-size: 8pt;">
<tr>
<td colspan="2" style="width: 600pt; text-align: center;">
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Names="Verdana"
Font-Size="9pt" Text="INFORMACION ADICIONAL"></asp:Label>
</td>
</tr>
<tr>
<td colspan="2" style="width: 600pt; text-align: center;">
<hr noshade="noshade" size="0" width="100%" />
</td>
</tr>
<%--<tr>
<td style="font-family: Verdana; text-align: right; width: 25%;">
<asp:Label ID="lblAcompanantes" runat="server" Font-Bold="False"
Font-Names="Verdana" Font-Size="8pt" Text="Acompañantes a la cena:"></asp:Label>
</td>
<td style="text-align: left; font-family: Verdana; ">
<asp:DropDownList ID="ddlAcompanantes" runat="server"
Font-Italic="False" Font-Names="Verdana" Font-Size="8pt"
onselectedindexchanged="ddlCategoria_SelectedIndexChanged" Width="40pt">
<asp:ListItem Selected="True">0</asp:ListItem>
<asp:ListItem Selected="False">1</asp:ListItem>
<asp:ListItem Selected="False">2</asp:ListItem>
<asp:ListItem Selected="False">3</asp:ListItem>
<asp:ListItem Selected="False">4</asp:ListItem>
<asp:ListItem Selected="False">5</asp:ListItem>
<asp:ListItem Selected="False">6</asp:ListItem>
</asp:DropDownList>
</td>
</tr>--%>
<tr>
<td style="font-family: Verdana; text-align: right; width: 25%;">
<asp:Label ID="Label10" runat="server" Font-Bold="False" Font-Names="Verdana"
Font-Size="8pt" Text="Comentarios:"></asp:Label>
</td>
<td style="text-align: left; font-family: Verdana; ">
<asp:TextBox ID="txtComentarios" runat="server" MaxLength="4000"
TextMode="MultiLine" Width="90%" />
</td>
</tr>
<tr>
<!-- renglon en blanco -->
<td colspan="2">
</td>
</tr>
</table>
<asp:Button ID="btnContinuar" runat="server"
onclick="btnContinuar_Click" Text="Continuar" Width="150px"
Font-Names="Arial" Font-Size="8pt" />
<br />
</asp:Panel>
</div>
<!-- REGISTRO -->
<asp:Panel ID="pnlConfirmacion" runat="server" Visible="False">
<table style="border:0; width:600; font-size: 8pt">
<tr>
<td colspan="3" style="font-family: Verdana; font-weight: bold; font-size:9pt;">
CONFIRMACIÓN DE DATOS<br />
</td>
</tr>
<tr>
<td style="text-align:left; " colspan="3">
</td>
</tr>
<tr>
<td style="text-align:right; font-family: Verdana">
</td>
<td style="text-align:left">
<asp:Label ID="lblConfirmacion" runat="server" Font-Names="Consolas"
Font-Size="8pt" Text="Label"></asp:Label>
</td>
<td style="text-align:left">
</td>
</tr>
<!-- renglon en blanco -->
<tr>
<td colspan="3" style="text-align: left">
</td>
</tr>
<tr>
<td colspan="3" style="text-align:center;">
<asp:Button ID="btnRegresar" runat="server" onclick="btnRegresar_Click"
Text="Regresar" Width="150px" Font-Names="Arial" Font-Size="8pt" />
<asp:Button ID="btnEnviar" runat="server"
Text="Enviar" Width="150px" onclick="btnEnviar_Click" Font-Names="Arial"
Font-Size="8pt" />
<asp:SqlDataSource ID="SqlDSregistroWeb" runat="server"
ConnectionString="<%$ ConnectionStrings:REGWEBConnectionString %>"
DeleteCommand="DELETE FROM [Anivpaseo] WHERE [id] = @original_id"
InsertCommand="INSERT INTO [Anivpaseo] ([nombres], [apellidos], [correo], [telefono], [club], [comentarios]) VALUES (@nombres, @apellidos, @correo, @telefono, @club, @comentarios)"
SelectCommand="SELECT * FROM [Anivpaseo]"
UpdateCommand="UPDATE [Anivpaseo] SET [nombres] = @nombres, [apellidos] = @apellidos, [correo] = @correo, [telefono] = @telefono, [club] = @club, [comentarios] = @comentarios WHERE [id] = @original_id"
OldValuesParameterFormatString="original_{0}">
<DeleteParameters>
<asp:Parameter Name="original_id" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="nombres" Type="String" />
<asp:Parameter Name="apellidos" Type="String" />
<asp:Parameter Name="correo" Type="String" />
<asp:Parameter Name="telefono" Type="String" />
<asp:Parameter Name="club" Type="String" />
<asp:Parameter Name="comentarios" Type="String" />
<asp:Parameter Name="original_id" Type="Int32" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="nombres" Type="String" />
<asp:Parameter Name="apellidos" Type="String" />
<asp:Parameter Name="correo" Type="String" />
<asp:Parameter Name="telefono" Type="String" />
<asp:Parameter Name="club" Type="String" />
<asp:Parameter Name="comentarios" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
</td>
</tr>
</table>
</asp:Panel>
<br />
<asp:Button ID="btnCancelar" runat="server" Text="Cancelar"
CausesValidation="False" Width="150px"
PostBackUrl="http://www.cibnor.mx"
Font-Names="Arial" Font-Size="8pt" />
<br />
<br />
<table style="width: 800px; font-family: Verdana; font-size: 11pt;">
<tr>
<td colspan="2" style="font-size:8pt; text-align:center;">
<asp:Label ID="Label11" runat="server" Font-Size="7pt"
Text="Instituto Politécnico Nacional 195, Playa Palo de Santa Rita Sur; La Paz, B.C.S. México; C.P. 23096, Tel:(52) (612) 123-8484 Fax:(52) (612) 125-3625"></asp:Label>
</td>
</tr>
<tr>
<td style="font-size:8pt; text-align:right; background-color:#223D63;">
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="http://www.cibnor.gob.mx/component/content/article/472"
Font-Bold="True" Font-Names="Verdana" Font-Size="8pt" ForeColor="#CCFFFF"
Target="_blank">Política de Privacidad</asp:HyperLink>
</td>
<td width="32%" height="5" bgcolor="#D8ECF3" id="footblk" align="center"></td>
</tr>
</table>
</center>
</div>
</form>
</body>
</html>