Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Arthur BOSSHARDT
Projet_Tutore_ANNEE_2
Commits
c18b8ebc
Commit
c18b8ebc
authored
Jan 24, 2018
by
Charles DORMEVAL
Browse files
patch css erreur recherche vide
parent
ff43ffc4
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/site/recherche.php
View file @
c18b8ebc
...
...
@@ -74,7 +74,6 @@ $citationsRes=$_SESSION['resRecherche'];
if
(
$nbPages
!=
0
){
if
(
$pageActuelle
==
$nbPages
){
if
(
$pageActuelle
*
$citationsParPage
>
sizeof
(
$citationsRes
)){
var_dump
(
$citationsRes
);
for
(
$i
=
(
$pageActuelle
-
1
)
*
$citationsParPage
;
$i
<
sizeof
(
$citationsRes
);
$i
++
){
?>
<li
class=
"citation_recherchee"
>
<div
class=
"titre"
>
...
...
src/site/site.php
View file @
c18b8ebc
...
...
@@ -23,7 +23,7 @@
<form
method=
"post"
action=
"../recherche/traitement_recherche.php"
>
<p>
Que recherchez vous ?
</p>
</p>
<br/><br/>
<p>
<input
type=
"radio"
value=
"auteur"
name=
"choix_type_recherche"
id=
"ctr1"
/>
<label
for=
"ctr1"
>
Auteur
</label>
...
...
@@ -43,13 +43,21 @@
<?php
}
?>
</select>
</select>
<br/><br/>
</p>
<p>
<input
type=
"submit"
value=
"Lancer la recherche !"
/>
</p>
</form>
<?php
if
(
isset
(
$_GET
[
'recherche'
])){
?>
<div
id=
"erreur_recherche_vide"
>
<p>
La recherche ne peut pas être vide, vous avez été redirigé vers la page d'accueil du site
</p>
</div>
<?php
}
?>
</br>
</div>
</div>
...
...
@@ -82,15 +90,6 @@
</table>
</div>
</div>
<?php
if
(
isset
(
$_GET
[
'recherche'
])){
?>
<div
class=
"erreur_recherche_vide"
>
<p>
La recherche ne peut pas être vide, vous avez été redirigé vers la page d'accueil du site
</p>
</div>
<?php
}
?>
</br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br>
<footer>
<p>
Posted by: Medjo Johann, Dormeval Charles, Clément Gauducheau and Bosshardt Arthur
</p></br>
...
...
src/site/style_accueil.css
View file @
c18b8ebc
...
...
@@ -221,6 +221,8 @@ textarea {
right
:
0%
}
.erreur_recherche_vide
{
color
:
red
;
#erreur_recherche_vide
{
padding
:
3%
5%
5%
5%
;
color
:
firebrick
;
text-align
:
center
;
}
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