-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuscar_usuario.asp
205 lines (194 loc) · 5.48 KB
/
buscar_usuario.asp
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
<%@ Language=VBScript %>
<%
dim user
user = session("UsEmpresa")
if isempty(user) then
Response.Redirect("../Login.asp")
end if
dim db
dim rs
set db = server.CreateObject("SQLComandos.Comandos")
%>
<HTML>
<HEAD>
<link href="../theme/Master.css" rel="stylesheet" type="text/css">
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<script language="javascript">
<!--#INCLUDE FILE="./listado_universidades.asp"-->
</script>
<script>
function ShowUniversidades(cboArea, cbosubarea, sel)
{
if (sel == 0)
{
return false;
}
var sel_count = 0;
for (var i=0; i < cboArea.options.length; i++)
if (cboArea.options[i].selected)
sel_count++;
if (sel != 0)
var opts = eval("la" + sel);
if (sel != 0 && sel_count == 1 && opts.length > 1)
{
while (opts.length < cbosubarea.options.length)
{
cbosubarea.options[(cbosubarea.options.length - 1)] = null;
}
for (var i=0; i < opts.length; i++)
{
eval("cbosubarea.options[i] = new Option" + opts[i]);
}
}
else
{
while (cbosubarea.options.length)
cbosubarea.options[(cbosubarea.options.length - 1)] = null;
eval("cbosubarea.options[0] = new Option('-------------', '-1', true, true)");
}
}
function DisableArea() {
FORM.Area.disabled
FORM.Area.clearAttributes
FORM.Area.value = "FF"
}
</script>
<BODY>
<div align="center">
<h2>Buscar Usuarios</h2>
<form id="FORM" name="FORM" method="post" action="resultados_busqueda.asp">
<table border="0" align="center" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td width="39%" class="celdaBgBlueLeft">Area:
<input type="checkbox" name="checkbox" value="checkbox" onclick="javascript:DisableArea()">
No usar</td>
<td class="celdaBgBlue05">
<select name="Area" size="3" multiple >
<option value="AA">---Todas---</option>
<%
sql = "select id,descripcion from area "
set rs = db.SQLSelect("DBBAECYS",sql)
if not rs.EOF then
while rs.EOF <> true
%>
<option value="<%=rs("id")%>" ><%=rs("descripcion")%></option>
<%
rs.MoveNext
wend
end if
set rs = nothing
%>
</select> </td>
<tr>
<tr>
<td class="celdaBgBlueLeft">Sexo</td>
<td class="celdaBgBlue05">
<select name="sexo" >
<option value="AA" type="radio" selected>--Ambos--</option>
<option value="1" type="radio" >Masculino</option>
<option value="2" type="radio" >Femenino</option>
</select> </td>
<tr>
<tr>
<td class="celdaBgBlueLeft">Pais: </td>
<td class="celdaBgBlue05">
<select name="paisorigen" >
<option value="AA" selected>---Todos---</option>
<%
sql = "select id,nombre from pais order by nombre"
set rs = db.SQLSelect("DBBAECYS",sql)
if not rs.eof then
while rs.eof <> true
pais_num = cint(pais)
cod_pais = cint(rs("id"))
if pais_num = cod_pais then
%>
<OPTION value="<%=rs("id")%>" selected><%=rs("nombre")%></OPTION>
<%
else
%>
<OPTION value="<%=rs("id")%>"><%=rs("nombre")%></OPTION>
<%
end if
rs.movenext
wend
end if
set rs = nothing
%>
</select> </td>
<tr>
<tr>
<td class="celdaBgBlueLeft">Universidad:
<br>
<input type="checkbox" name="UsarUni" value="1" checked>
No usar</td>
<TD width="61%" class="celdaBgBlue05"> <table border="0" cellpadding="2" cellspacing="2">
<tr>
<td>Pais </td>
<td> <SELECT size=1 id=pais name="pais" onchange="ShowUniversidades(document.FORM.pais, document.FORM.universidad, document.FORM.pais.options[document.FORM.pais.selectedIndex].value)" >
<%
sql = "select id,nombre from pais order by nombre"
set rs = db.sqlselect("DBBAECYS",sql)
if not rs.eof then
while rs.eof <> true
pais_num = cint(pais)
cod_pais = cint(rs("id"))
if pais_num = cod_pais then
%>
<OPTION value="<%=rs("id")%>" selected><%=rs("nombre")%></OPTION>
<%
else
%>
<OPTION value="<%=rs("id")%>"><%=rs("nombre")%></OPTION>
<%
end if
rs.movenext
wend
end if
set rs = nothing
%>
</SELECT> </td>
</tr>
<tr>
<TD align="right" width="11%" >Universidad: </TD>
<td><SELECT size=1 id=universidad name="universidad" >
<SCRIPT>ShowUniversidades(document.FORM.pais, document.FORM.universidad, document.FORM.pais.options[document.FORM.pais.selectedIndex].value);
</SCRIPT>
</SELECT> </td>
</tr>
</table></TD>
<tr>
<tr>
<td class="celdaBgBlueLeft">Mostrar unicamente <br>
con Curriculum publicado: </td>
<td class="celdaBgBlue05">
<input value="1" name="curriculum" type="checkbox" > Si </td>
<tr>
</tbody>
</table>
<br>
<table border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td>
<input name="Buscar" type="Submit" class="celdaBgBlue05" value="Buscar" >
</td>
<td width="17">
</td>
<td>
<input name="Cancelar" type="Submit" class="celdaBgBlue05" value="Cancelar" >
</td>
</tr>
</tbody>
</table>
<input value="1" type="hidden" name="pagina">
<input value="0" type="hidden" name="criterio">
</form>
</div>
</BODY>
</HTML>
<%
set db = nothing
%>