-
Notifications
You must be signed in to change notification settings - Fork 0
/
anivtaller.aspx
280 lines (266 loc) · 14.7 KB
/
anivtaller.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
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="anivtaller.aspx.cs" Inherits="anivtaller" %>
<!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 - Taller de fondos CONACyT"></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">
<asp:Label ID="lblInstitucion" runat="server" Font-Bold="False" Font-Names="Verdana"
Font-Size="8pt" Text="Institución:"></asp:Label>
</td>
<td style="text-align: left">
<asp:TextBox ID="txtInstitucion" runat="server" Font-Size="8pt" MaxLength="50"
Width="240px" />
</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="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 [Anivtaller] WHERE [id] = @original_id"
InsertCommand="INSERT INTO [Anivtaller] ([nombres], [apellidos], [correo], [telefono], [institucion], [comentarios]) VALUES (@nombres, @apellidos, @correo, @telefono, @institucion, @comentarios)"
SelectCommand="SELECT * FROM [Anivtaller]"
UpdateCommand="UPDATE [Anivtaller] SET [nombres] = @nombres, [apellidos] = @apellidos, [correo] = @correo, [telefono] = @telefono, [institucion] = @institucion, [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="institucion" 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="institucion" 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>