fix home view / Game Controller about BD user
This commit is contained in:
parent
50d7803a7c
commit
e73e479769
@ -20,7 +20,7 @@ class GameController extends Controller {
|
|||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$res = DB::select('SELECT * FROM `referent`');
|
$res = DB::select('SELECT * FROM `users` where `admin` = 0');
|
||||||
return view('home',['referent' => $res]);
|
return view('home',['referent' => $res]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,10 +23,10 @@
|
|||||||
<!-- indicateur, à incrementé en fonction du nombre d'images -->
|
<!-- indicateur, à incrementé en fonction du nombre d'images -->
|
||||||
<ol class="carousel-indicators">
|
<ol class="carousel-indicators">
|
||||||
@foreach ($referent as $ref)
|
@foreach ($referent as $ref)
|
||||||
@if ($ref -> idreferent == 1)
|
@if ($ref -> id == $referent[0] -> id)
|
||||||
<li data-target="#carousel-example-generic" data-slide-to="{{ $ref -> idreferent }}" class='active' ></li>
|
<li data-target="#carousel-example-generic" data-slide-to="{{ $ref -> id }}" class='active' ></li>
|
||||||
@else
|
@else
|
||||||
<li data-target="#carousel-example-generic" data-slide-to="{{ $ref -> idreferent }} "></li>
|
<li data-target="#carousel-example-generic" data-slide-to="{{ $ref -> id }} "></li>
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</ol>
|
</ol>
|
||||||
@ -34,14 +34,14 @@
|
|||||||
<!-- Parametres des images -->
|
<!-- Parametres des images -->
|
||||||
<div class="carousel-inner" role="listbox">
|
<div class="carousel-inner" role="listbox">
|
||||||
@foreach ($referent as $ref)
|
@foreach ($referent as $ref)
|
||||||
@if ($ref -> idreferent == 1)
|
@if ($ref -> id == $referent[0] -> id)
|
||||||
<div class="item active">
|
<div class="item active">
|
||||||
@else
|
@else
|
||||||
<div class="item">
|
<div class="item">
|
||||||
@endif
|
@endif
|
||||||
<br>
|
<br>
|
||||||
<a href="/referents/vive.linux/games"><img style="border: 7px solid white; box-shadow: 0px 0px 3px black;" src="./pictures/referent/{{ $ref-> image }}" width="35%" alt="{{ $ref -> prenom }}-{{ $ref -> nom }}"></a>
|
<a href="/referents/vive.linux/games"><img style="border: 7px solid white; box-shadow: 0px 0px 3px black;" src="./pictures/referent/francois.jpg" width="35%" alt="{{ $ref -> name }}-Nom"></a>
|
||||||
<div class="well well-lg">{{$ref -> prenom}}, {{$ref -> nom}}</div>
|
<div class="well well-lg">{{$ref -> name}}, Nom</div>
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user