Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
Formulario de paz
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ulises Morales Ramírez
Formulario de paz
Commits
b7d23b42
Commit
b7d23b42
authored
Aug 16, 2019
by
Ulises Morales Ramírez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nuevo sistema de busqueda
parent
35e508a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
15 deletions
+10
-15
index.php
index.php
+1
-1
lenguaje.php
lenguaje.php
+9
-13
script.js
script.js
+0
-1
No files found.
index.php
View file @
b7d23b42
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<div
class=
"brand_logo_container1"
>
<div
class=
"brand_logo_container1"
>
<img
src=
"images/g980.png"
class=
" hidden visible-xs visible-sm brand_logo1 "
alt=
"Logo"
>
<img
src=
"images/g980.png"
class=
" hidden visible-xs visible-sm brand_logo1 "
alt=
"Logo"
>
</div>
</div>
<div
class=
"brand_logo_container2"
>
<div
class=
"brand_logo_container2"
>
<img
src=
"images/g1010.png"
class=
"visible-md brand_logo1 "
alt=
"Logo"
>
<img
src=
"images/g1010.png"
class=
"visible-md brand_logo1 "
alt=
"Logo"
>
</div>
</div>
</div>
</div>
...
...
lenguaje.php
View file @
b7d23b42
...
@@ -5,47 +5,43 @@
...
@@ -5,47 +5,43 @@
<?php
<?php
session_start
();
session_start
();
include
"conexion.php"
;
include
"conexion.php"
;
if
(
isset
(
$_POST
[
'escuela'
]))
{
$control
=
0
;
if
(
isset
(
$_POST
[
'clave_escuela'
]))
{
$arr
=
explode
(
" de "
,
$_POST
[
'escuela'
]);
$_SESSION
[
"escuela"
]
=
$_POST
[
'escuela'
];
$_SESSION
[
"escuela"
]
=
$arr
[
0
];
$_SESSION
[
"localidad"
]
=
$arr
[
1
];
$_SESSION
[
"clave_escuela"
]
=
$_POST
[
'clave_escuela'
];
$_SESSION
[
"clave_escuela"
]
=
$_POST
[
'clave_escuela'
];
$_SESSION
[
"latitude"
]
=
$_POST
[
'latitude'
];
$_SESSION
[
"longitude"
]
=
$_POST
[
'longitude'
];
}
}
$sql
=
'SELECT * FROM Inicial WHERE CV_CCT
LIKE "'
.
$_SESSION
[
"clave_escuela"
]
.
'" AND NOMBRECT LIKE "'
.
$_SESSION
[
"escuela"
]
.
'"'
;
$sql
=
'SELECT * FROM Inicial WHERE CV_CCT
="'
.
$_POST
[
'clave_escuela'
]
.
'"'
;
$result
=
$conn
->
query
(
$sql
);
$result
=
$conn
->
query
(
$sql
);
if
(
$result
->
num_rows
>
0
)
{
if
(
$result
->
num_rows
>
0
)
{
}
else
{
}
else
{
$sql
=
'SELECT * FROM Preescolar WHERE CV_CCT
LIKE "'
.
$_SESSION
[
"clave_escuela"
]
.
'" AND NOMBRECT LIKE "'
.
$_SESSION
[
"escuela"
]
.
'"'
;
$sql
=
'SELECT * FROM Preescolar WHERE CV_CCT
="'
.
$_POST
[
'clave_escuela'
]
.
'"'
;
$result
=
$conn
->
query
(
$sql
);
$result
=
$conn
->
query
(
$sql
);
if
(
$result
->
num_rows
>
0
)
{
if
(
$result
->
num_rows
>
0
)
{
}
else
{
}
else
{
$sql
=
'SELECT * FROM Primaria WHERE CV_CCT
LIKE "'
.
$_SESSION
[
"clave_escuela"
]
.
'" AND NOMBRECT LIKE "'
.
$_SESSION
[
"escuela"
]
.
'"'
;
$sql
=
'SELECT * FROM Primaria WHERE CV_CCT
="'
.
$_POST
[
'clave_escuela'
]
.
'"'
;
$result
=
$conn
->
query
(
$sql
);
$result
=
$conn
->
query
(
$sql
);
if
(
$result
->
num_rows
>
0
)
{
if
(
$result
->
num_rows
>
0
)
{
}
else
{
}
else
{
$sql
=
'SELECT * FROM Secundaria WHERE CV_CCT
LIKE "'
.
$_SESSION
[
"clave_escuela"
]
.
'" AND NOMBRECT LIKE "'
.
$_SESSION
[
"escuela"
]
.
'"'
;
$sql
=
'SELECT * FROM Secundaria WHERE CV_CCT
="'
.
$_POST
[
'clave_escuela'
]
.
'"'
;
$result
=
$conn
->
query
(
$sql
);
$result
=
$conn
->
query
(
$sql
);
if
(
$result
->
num_rows
>
0
)
{
if
(
$result
->
num_rows
>
0
)
{
}
else
{
}
else
{
$sql
=
'SELECT * FROM Media WHERE CV_CCT
LIKE "'
.
$_SESSION
[
"clave_escuela"
]
.
'" AND NOMBRECT LIKE "'
.
$_SESSION
[
"escuela"
]
.
'"'
;
$sql
=
'SELECT * FROM Media WHERE CV_CCT
="'
.
$_POST
[
'clave_escuela'
]
.
'"'
;
$result
=
$conn
->
query
(
$sql
);
$result
=
$conn
->
query
(
$sql
);
if
(
$result
->
num_rows
>
0
)
{
if
(
$result
->
num_rows
>
0
)
{
}
else
{
}
else
{
$sql
=
'SELECT * FROM Superior WHERE CV_CCT
LIKE "'
.
$_SESSION
[
"clave_escuela"
]
.
'" AND NOMBRECT LIKE "'
.
$_SESSION
[
"escuela"
]
.
'"'
;
$sql
=
'SELECT * FROM Superior WHERE CV_CCT
="'
.
$_POST
[
'clave_escuela'
]
.
'"'
;
$result
=
$conn
->
query
(
$sql
);
$result
=
$conn
->
query
(
$sql
);
if
(
$result
->
num_rows
>
0
)
{
if
(
$result
->
num_rows
>
0
)
{
...
...
script.js
View file @
b7d23b42
...
@@ -18,7 +18,6 @@ $(document).ready(function () {
...
@@ -18,7 +18,6 @@ $(document).ready(function () {
});
});
function
selectClave
(
clave
)
{
function
selectClave
(
clave
)
{
$
.
ajax
({
$
.
ajax
({
type
:
"POST"
,
type
:
"POST"
,
url
:
"getData.php"
,
url
:
"getData.php"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment