forked from unifesp/prodmais
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpresearch.php
More file actions
124 lines (100 loc) · 4.4 KB
/
presearch.php
File metadata and controls
124 lines (100 loc) · 4.4 KB
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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<?php
require 'inc/config.php';
require 'inc/functions.php';
require 'inc/meta-header.php';
// Busca por produção científica
$result_post = Requests::postParser($_POST);
$limit_records = $result_post['limit'];
$page = $result_post['page'];
$params = [];
$params["index"] = $index;
$params["body"] = $result_post['query'];
$cursorTotal = $client->count($params);
$total_records = $cursorTotal["count"];
// Busca por autores
$result_post_authors = Requests::postParser($_POST);
$limit_records = 50;
$page = $result_post['page'];
$paramsAuthors = [];
$result_post['query']['query']["query_string"]["fields"] = ["nome_completo", "resumo_cv.texto_resumo_cv_rh"];
$paramsAuthors["index"] = $index_cv;
$paramsAuthors["body"] = $result_post['query'];
$cursorTotalAuthors = $client->count($paramsAuthors);
$total_records_authors = $cursorTotalAuthors["count"];
// Busca por projetos
$result_postProjetos = Requests::postParser($_POST);
$limit_records = 50;
$page = $result_postProjetos['page'];
$paramsProjetos = [];
$paramsProjetos["index"] = $index_projetos;
$paramsProjetos["body"] = $result_postProjetos['query'];
$cursorTotalProjetos = $client->count($paramsProjetos);
$totalRecordsProjetos = $cursorTotalProjetos["count"];
?>
<title>Pré Busca</title>
<meta name="generator" content="Jekyll v4.2.1" />
<meta property="og:title" content="Pré Busca" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Pré Busca" />
<meta property="og:description" content="Pré Busca" />
<link rel="canonical" href="https://unifesp.br/prodmais/presearch.php" />
<meta property="og:url" content="https://unifesp.br/prodmais/presearch.php" />
<meta property="og:site_name" content="Pré Busca" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="Pré Busca" />
<script type="application/ld+json">
{
"@type": "WebPage",
"description": "Pré Busca",
"url": "https://unifesp.br/prodmais/presearch.php",
"headline": "Pré Busca",
"@context": "https://schema.org"
}
</script>
<!-- End Jekyll SEO tag -->
</head>
<body data-theme="<?php echo $theme; ?>" class="">
<!-- NAV -->
<?php require 'inc/navbar.php'; ?>
<!-- /NAV -->
<br /><br /><br />
<main class="p-predash-main">
<h2 class="t t-center">Resultados obtidos:</h2><br>
<!-- <p class="t t-gray t-center">Username: <i>dashboard</i></p><br>
<p class="t t-gray t-center">Password: <i>dashboard</i></p><br>
<img class="p-predash-img" src="inc/images/login.jpg" /> -->
<p class="t t-center">Estes são os resultados obitidos nas seguintes categorias:</p>
<div class="dh d-hc u-my-20">
<p>
<form class="p-home-form" class="" action="result.php" title="Pesquisa simples" method="post">
<input type="hidden" name="search" value="<?php echo $_REQUEST['search'] ?>">
<button class="c-btn" type="submit">
Produção Científica - <?php echo $total_records; ?>
</button>
</form>
</p>
<p>
<form class="p-home-form" class="" action="result_autores.php" title="Pesquisa simples" method="post">
<input type="hidden" name="search" value="<?php echo $_REQUEST['search'] ?>">
<input type="hidden" name="resumocv" value="<?php echo $_REQUEST['search'] ?>">
<button class="c-btn" type="submit">
Perfil dos Pesquisadores - <?php echo $total_records_authors; ?>
</button>
</form>
</p>
<p>
<form class="p-home-form" class="" action="projetos.php" title="Pesquisa simples" method="post">
<input type="hidden" name="search" value="<?php echo $_REQUEST['search'] ?>">
<button class="c-btn" type="submit">
Projetos de pesquisa - <?php echo $totalRecordsProjetos; ?>
</button>
</form>
</p>
</div>
</main>
<?php include('inc/footer.php'); ?>
</body>
</html>