Panel administracyjny

This commit is contained in:
Klaudia 2021-01-16 02:23:58 +01:00
parent d2def4ec0b
commit 17ed8bec4e
6 changed files with 388 additions and 33 deletions

View File

@ -1,8 +1,79 @@
{% block content %} {% block content %}
<!DOCTYPE html> <!DOCTYPE html>
<a href="/control">Powrót</a> <head>
<table> <style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
border-right:1px solid #bbb;
}
li:last-child {
border-right: none;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active) {
background-color: #111;
}
.active {
background-color: #4CAF50;
}
</style>
</head>
<body>
<ul>
<li><a href="UserNotification">Zgłoszenia Użytkowników</a></li>
<li><a class="active" href="OfferNotification">Zgłoszenia Ogłoszeń</a></li>
<li><a href="UserMessager">Wiadomości od Użytkowników</a></li>
<li><a href="UserList">Lista Użytkowników</a></li>
<li><a href="VIPUserList">Lista Użytkowników Premium</a></li>
</ul>
</body>
<style>
#customers {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(even){background-color: #f2f2f2;}
#customers tr:hover {background-color: #ddd;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
</style>
<table id="customers">
<tr> <tr>
<th>Nr Oferty</th> <th>Nr Oferty</th>
<th>Opis Zgłoszenia</th> <th>Opis Zgłoszenia</th>
@ -12,11 +83,11 @@
</tr> </tr>
{% for offer in all_Notificationoffer %} {% for offer in all_Notificationoffer %}
<tr> <tr>
<th><a href="/homepage/offer_details/{{offer.user_iden.id}}">{{offer.user_iden.title}}</a></th> <td><a href="/homepage/offer_details/{{offer.user_iden.id}}">{{offer.user_iden.title}}</a></td>
<th>{{offer.text}}</th> <td>{{offer.text}}</td>
<th>{{offer.date}}</th> <td>{{offer.date}}</td>
<th><a href="DeleteOffer/{{offer.user_iden.id}}">Usuń</a></th> <td><a href="DeleteOffer/{{offer.user_iden.id}}">Usuń</a></td>
<th><a href="DeleteOfferNotification/{{offer.id}}">Zamknij<a></th> <td><a href="DeleteOfferNotification/{{offer.id}}">Zamknij<a></td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>

View File

@ -1,7 +1,79 @@
{% block content %} {% block content %}
<!DOCTYPE html> <!DOCTYPE html>
<a href="/control">Powrót</a> <head>
<table> <style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
border-right:1px solid #bbb;
}
li:last-child {
border-right: none;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active) {
background-color: #111;
}
.active {
background-color: #4CAF50;
}
</style>
</head>
<body>
<ul>
<li><a href="UserNotification">Zgłoszenia Użytkowników</a></li>
<li><a href="OfferNotification">Zgłoszenia Ogłoszeń</a></li>
<li><a href="UserMessager">Wiadomości od Użytkowników</a></li>
<li><a class="active" href="UserList">Lista Użytkowników</a></li>
<li><a href="VIPUserList">Lista Użytkowników Premium</a></li>
</ul>
</body>
<style>
#customers {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(even){background-color: #f2f2f2;}
#customers tr:hover {background-color: #ddd;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
</style>
<table id="customers">
<tr> <tr>
<th>Email</th> <th>Email</th>
<th>Nadaj VIP</th> <th>Nadaj VIP</th>
@ -9,9 +81,9 @@
</tr> </tr>
{% for user in all_User %} {% for user in all_User %}
<tr> <tr>
<th><a href="/homepage/user_profile/{{user.email}}">{{user.email}}</a></th> <td><a href="/homepage/user_profile/{{user.email}}">{{user.email}}</a></td>
<th><a href="AddVIP/{{user.id}}">Dodaj</a></th> <td><a href="AddVIP/{{user.id}}">Dodaj</a></td>
<th><a href="DeleteUser/{{user.id}}">Usuń</a></th> <td><a href="DeleteUser/{{user.id}}">Usuń</a></td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>

View File

@ -1,8 +1,79 @@
{% block content %} {% block content %}
<!DOCTYPE html> <!DOCTYPE html>
<a href="/control">Powrót</a> <head>
<table> <style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
border-right:1px solid #bbb;
}
li:last-child {
border-right: none;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active) {
background-color: #111;
}
.active {
background-color: #4CAF50;
}
</style>
</head>
<body>
<ul>
<li><a href="UserNotification">Zgłoszenia Użytkowników</a></li>
<li><a href="OfferNotification">Zgłoszenia Ogłoszeń</a></li>
<li><a class="active" href="UserMessager">Wiadomości od Użytkowników</a></li>
<li><a href="UserList">Lista Użytkowników</a></li>
<li><a href="VIPUserList">Lista Użytkowników Premium</a></li>
</ul>
</body>
<style>
#customers {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(even){background-color: #f2f2f2;}
#customers tr:hover {background-color: #ddd;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
</style>
<table id="customers">
<tr> <tr>
<th>Adresat</th> <th>Adresat</th>
<th>email</th> <th>email</th>
@ -11,10 +82,10 @@
</tr> </tr>
{% for mess in all_Usermessage %} {% for mess in all_Usermessage %}
<tr> <tr>
<th>{{mess.name}}</a></th> <td>{{mess.name}}</a></td>
<th>{{mess.email}}</th> <td>{{mess.email}}</td>
<th>{{mess.text}}</th> <td>{{mess.text}}</td>
<th><a href="DeleteUserMessager/{{mess.id}}">Zamknij<a></th> <td><a href="DeleteUserMessager/{{mess.id}}">Zamknij<a></td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>

View File

@ -1,8 +1,79 @@
{% block content %} {% block content %}
<!DOCTYPE html> <!DOCTYPE html>
<a href="/control">Powrót</a> <head>
<table> <style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
border-right:1px solid #bbb;
}
li:last-child {
border-right: none;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active) {
background-color: #111;
}
.active {
background-color: #4CAF50;
}
</style>
</head>
<body>
<ul>
<li><a class="active" href="UserNotification">Zgłoszenia Użytkowników</a></li>
<li><a href="OfferNotification">Zgłoszenia Ogłoszeń</a></li>
<li><a href="UserMessager">Wiadomości od Użytkowników</a></li>
<li><a href="UserList">Lista Użytkowników</a></li>
<li><a href="VIPUserList">Lista Użytkowników Premium</a></li>
</ul>
</body>
<style>
#customers {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(even){background-color: #f2f2f2;}
#customers tr:hover {background-color: #ddd;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
</style>
<table id="customers">
<tr> <tr>
<th>Email</th> <th>Email</th>
<th>Opis Zgłoszenia</th> <th>Opis Zgłoszenia</th>

View File

@ -1,7 +1,79 @@
{% block content %} {% block content %}
<!DOCTYPE html> <!DOCTYPE html>
<a href="/control">Powrót</a> <head>
<table> <style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
border-right:1px solid #bbb;
}
li:last-child {
border-right: none;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active) {
background-color: #111;
}
.active {
background-color: #4CAF50;
}
</style>
</head>
<body>
<ul>
<li><a href="UserNotification">Zgłoszenia Użytkowników</a></li>
<li><a href="OfferNotification">Zgłoszenia Ogłoszeń</a></li>
<li><a href="UserMessager">Wiadomości od Użytkowników</a></li>
<li><a href="UserList">Lista Użytkowników</a></li>
<li><a class="active" href="VIPUserList">Lista Użytkowników Premium</a></li>
</ul>
</body>
<style>
#customers {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(even){background-color: #f2f2f2;}
#customers tr:hover {background-color: #ddd;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
</style>
<table id="customers">
<tr> <tr>
<th>Email</th> <th>Email</th>
<th>Usuń Konto</th> <th>Usuń Konto</th>
@ -10,10 +82,10 @@
</tr> </tr>
{% for user in all_Vipuser %} {% for user in all_Vipuser %}
<tr> <tr>
<th><a href="/homepage/user_profile/{{user.email}}">{{user.email}}</a></th> <td><a href="/homepage/user_profile/{{user.email}}">{{user.email}}</a></td>
<th><a href="DeleteUser/{{user.id}}">Usuń</a></th> <td><a href="DeleteUser/{{user.id}}">Usuń</a></td>
<th><a href="DeleteVIP/{{user.id}}">Zakończ</a></th> <td><a href="DeleteVIP/{{user.id}}">Zakończ</a></td>
<th><a href="ExtendVIP/{{user.id}}">Przedłuż</a></th> <td><a href="ExtendVIP/{{user.id}}">Przedłuż</a></td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>

View File

@ -1,11 +1,9 @@
{% extends 'base2.html' %}
{% block content %} {% block content %}
<!DOCTYPE html>
<a href="UserNotification"><button>Zgłoszenia Użytkowników: {{all_Notificationuser}} </button></a><br> <!DOCTYPE html>
<a href="OfferNotification"><button>Zgłoszenia Ogłoszeń: {{all_Notificationoffer}}</button></a><br> <html>
<a href="UserMessager"><button>Wiadomości od Użytkowników: {{all_Usermessage}}</button></a><br> <meta http-equiv="refresh" content="0; UserNotification">
<a href="UserList"><button>Lista Użytkowników: {{all_User}}</button></a><br> </html>
<a href="VIPUserList"><button>Lista Użytkowników Premium: {{all_Vipuser}}</button></a><br>
{% endblock %} {% endblock %}