2019-09-18 00:31:59 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>{% block title "Ğ1-Marché " %}</title>
|
2019-10-06 23:08:41 +02:00
|
|
|
<!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"-->
|
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.3.1/sandstone/bootstrap.min.css">
|
2019-09-18 00:31:59 +02:00
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="\images\favicon.ico">
|
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bree+Serif&display=swap">
|
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Kalam&display=swap">
|
2019-11-25 23:36:41 +01:00
|
|
|
<link rel="stylesheet" href="/css/mapael.css">
|
|
|
|
<link rel="stylesheet" href="/css/style.css">
|
|
|
|
<link rel="stylesheet" href="/css/products.css">
|
2019-09-18 00:31:59 +02:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
padding-top: 5rem;
|
|
|
|
}
|
2019-10-24 01:15:07 +02:00
|
|
|
.page {
|
|
|
|
display: grid;
|
|
|
|
grid-template-rows:60px 50px 1fr 80px;
|
|
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
|
|
grid-template-areas:
|
|
|
|
"site site site"
|
|
|
|
"header header header"
|
|
|
|
"breadcrumbs breadcrumbs breadcrumbs"
|
|
|
|
"sidebar main main"
|
|
|
|
"footer footer footer";
|
|
|
|
}
|
|
|
|
.site {
|
|
|
|
grid-column: 2 / 3;
|
|
|
|
}
|
2019-09-18 00:31:59 +02:00
|
|
|
</style>
|
2019-11-10 03:23:00 +01:00
|
|
|
<script type="text/javascript" src="/js/jquery-3.4.1.min.js"></script>
|
2019-11-04 23:26:02 +01:00
|
|
|
<script type="text/javascript" src="/js/connex.js"></script>
|
2019-11-23 16:50:18 +01:00
|
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js" charset="utf-8"></script>
|
|
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.2.7/raphael.min.js" charset="utf-8"></script>
|
|
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-mapael/2.1.0/js/jquery.mapael.min.js" charset="utf-8"></script>
|
|
|
|
<script type="text/javascript" src="https://rawgit.com/neveldo/mapael-maps/master/france/france_regions_2016.js" charset="utf-8"></script>
|
2019-09-18 00:31:59 +02:00
|
|
|
</head>
|
2019-10-24 01:15:07 +02:00
|
|
|
<body class="fond page">
|
|
|
|
<div class="site">
|
|
|
|
<nav class="navbar fixed-top navbar-expand-sm navbar-dark bg-dark">
|
|
|
|
<a class="navbar-brand" href="#">Ğ1-Marché</a>
|
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
<li class="nav-item">
|
2019-12-02 22:49:12 +01:00
|
|
|
<a class="nav-link {% if accueil %} active{% endif %}" style="font-size:14px;"
|
2019-10-24 01:15:07 +02:00
|
|
|
href="{{ path('gmarche.index') }}">Accueil</a>
|
|
|
|
</li>
|
2020-01-06 01:36:42 +01:00
|
|
|
{% if (affiche_role()==0 or affiche_role()==1 or affiche_role()==2) and (affiche_username() !=''
|
|
|
|
or (sess.connecte != '' and sess.connecte != '---')) %}
|
2019-12-02 22:49:12 +01:00
|
|
|
<li class="nav-item">
|
2020-01-06 01:36:42 +01:00
|
|
|
{% if affiche_username() !='' %}
|
2019-12-09 01:02:34 +01:00
|
|
|
<a class="nav-link {% if explodeUrl()[1]=='dashboard' %} active{% endif %}" style="font-size:14px;"
|
2020-01-02 22:27:28 +01:00
|
|
|
href="{{ path('dashboard',{user:affiche_username()}) }}">Administration</a>
|
2020-01-06 01:36:42 +01:00
|
|
|
{% else %}
|
|
|
|
{% if (sess.connecte != '' and sess.connecte != '---') %}
|
|
|
|
<a class="nav-link {% if explodeUrl()[1]=='dashboard' %} active{% endif %}" style="font-size:14px;"
|
|
|
|
href="{{ path('dashboard',{user:sess.connecte}) }}">Administration</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2019-12-02 22:49:12 +01:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
2019-10-24 01:15:07 +02:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link {% if explodeUrl()[1]=='contact' %} active{% endif %}" style="font-size:14px;"
|
2019-12-09 01:02:34 +01:00
|
|
|
href="{{ path('contact') }}">Qui sommes-nous ?
|
|
|
|
</a>
|
2019-10-24 01:15:07 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="navbar-nav">
|
2019-11-18 21:46:33 +01:00
|
|
|
<div class="navbar-text" style="color:lightgray;margin-right:15px; margin-top:3px;">
|
2019-10-24 01:15:07 +02:00
|
|
|
{{ "now"|date('d/m/y') }}
|
|
|
|
</div>
|
2020-01-06 01:36:42 +01:00
|
|
|
{% if affiche_username() != '' or (sess.connecte != '' and sess.connecte != '---') %}
|
2019-12-29 03:03:50 +01:00
|
|
|
<form method="post" style="margin-top:5px;" action="{{ path('account.profil',{user:affiche_username()}) }}">
|
2019-11-18 21:46:33 +01:00
|
|
|
<span><img src="\avatar_user.png" width="22" height="22" /></span>
|
2020-01-05 04:16:48 +01:00
|
|
|
<button id="nom_connecte_bis" style="color:white;font-size: 14px;" class="btn-primary">
|
|
|
|
{% if affiche_username() != '' %}
|
|
|
|
{{ affiche_username() }}
|
2020-01-06 01:36:42 +01:00
|
|
|
{% else %}
|
2020-01-05 04:16:48 +01:00
|
|
|
{{ sess.connecte }}
|
|
|
|
{% endif %}
|
|
|
|
</button>
|
2019-12-29 03:03:50 +01:00
|
|
|
<div style="width:0;height:0;">
|
|
|
|
{{ field('email', affiche_mail(), "", {type: 'hidden'}) }}
|
|
|
|
</div>
|
2019-11-18 21:46:33 +01:00
|
|
|
</form>
|
2019-10-24 01:15:07 +02:00
|
|
|
<form method="post" action="{{ path('auth.logout') }}">
|
|
|
|
<!-- csrf_input() }}-->
|
2019-11-09 23:23:19 +01:00
|
|
|
<button class="btn btn-danger" style="margin-left: 7px; font-size:14px;">Se déconnecter</button>
|
2019-10-24 01:15:07 +02:00
|
|
|
</form>
|
|
|
|
{% else %}
|
2020-01-05 04:16:48 +01:00
|
|
|
<form id="formulaire" method="post" style="margin-top:5px;" action="{{ path('account.profil',{user:''}) }}">
|
2020-01-02 22:27:28 +01:00
|
|
|
<div class="nav-item" id="avatar-user" style="display:none;padding-top:0.1rem;margin-right:0.4rem;">
|
2019-12-29 03:03:50 +01:00
|
|
|
</div>
|
2020-01-02 22:27:28 +01:00
|
|
|
<div class="nav-item" id="user-connecte" style="display:none;padding-top:0.1rem;">
|
2020-01-05 04:16:48 +01:00
|
|
|
<button id="contenu_bouton" style="color:white; font-size: 14px;" class="btn-primary">
|
2019-12-29 03:03:50 +01:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2019-11-04 23:26:02 +01:00
|
|
|
<div class="nav-item" id="bouton-connexion">
|
2019-12-29 03:03:50 +01:00
|
|
|
<button style="color:white; font-size: 14px;" class="btn btn-primary" data-toggle="modal" data-target="#connexion_modal">SE CONNECTER</button>
|
2019-11-04 23:26:02 +01:00
|
|
|
</div>
|
|
|
|
<div id="deconnexion" style="display:none;">
|
|
|
|
<form method="post" action="{{ path('auth.logout') }}">
|
|
|
|
<!-- csrf_input() }}-->
|
2019-12-29 03:03:50 +01:00
|
|
|
<button class="btn btn-danger" style="font-size:14px;margin-left:0.5rem;">Se déconnecter</button>
|
2019-11-04 23:26:02 +01:00
|
|
|
</form>
|
2019-10-24 01:15:07 +02:00
|
|
|
</div>
|
2019-11-04 23:26:02 +01:00
|
|
|
<div class="nav-item" id="inscription">
|
2019-10-24 01:15:07 +02:00
|
|
|
<a class="nav-link" href="{{ path('account.signup') }}" style="font-size:14px;">S'inscrire</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2019-09-18 00:31:59 +02:00
|
|
|
</div>
|
2019-10-24 01:15:07 +02:00
|
|
|
</nav>
|
|
|
|
{% if flash('success') %}
|
|
|
|
<div class="alert alert-success">
|
|
|
|
{{ flash('success') }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2019-11-04 23:26:02 +01:00
|
|
|
<div class="alert alert-danger" style="display:none;">
|
|
|
|
</div>
|
2019-09-18 00:31:59 +02:00
|
|
|
|
2019-10-25 00:44:54 +02:00
|
|
|
{% block body %}{% endblock %}
|
2019-11-18 21:46:33 +01:00
|
|
|
|
2019-11-04 23:26:02 +01:00
|
|
|
<div class="modal fade" id="connexion_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
|
|
|
<div class="modal-dialog" role="document" style="color: black;">
|
|
|
|
<div class="modal-content" style="text-align: left;">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h4 class="modal-title" id="myModalLabel">Se connecter</h4>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="pseudo">Pseudo</label>
|
2020-01-05 04:16:48 +01:00
|
|
|
<input type="text" id="pseudo" placeholder="Saisir votre pseudo SVP" class="form-control"/>
|
2019-11-04 23:26:02 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="mdp">Mot de passe</label>
|
|
|
|
<input type="password" id="mdp" class="form-control"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-18 21:46:33 +01:00
|
|
|
<div class="modal-body">
|
|
|
|
<button class="mdp_oublie" type="button" class="btn-default">
|
|
|
|
<a style="color:gray;" href="{{ path('auth.password') }}">Mot de passe oublié ?</a>
|
|
|
|
</button>
|
|
|
|
</div>
|
2019-11-04 23:26:02 +01:00
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
2019-11-25 00:51:24 +01:00
|
|
|
<button type="submit" value="submit" class="btn btn-primary"
|
2019-11-19 23:09:14 +01:00
|
|
|
onclick="connexion(document.getElementById('pseudo').value,document.getElementById('mdp').value)">Valider</button>
|
2019-11-04 23:26:02 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-25 00:51:24 +01:00
|
|
|
|
2019-10-24 01:15:07 +02:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script>
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>
|
|
|
|
</div>
|
2019-09-18 00:31:59 +02:00
|
|
|
</body>
|
2019-11-25 00:51:24 +01:00
|
|
|
</html>
|