Prześlij pliki do 'trening-planer'
This commit is contained in:
parent
ceda4625e6
commit
1af28db98e
@ -16,16 +16,40 @@
|
|||||||
<script src="http://code.jquery.com/jquery-1.9.1.js">
|
<script src="http://code.jquery.com/jquery-1.9.1.js">
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script>
|
||||||
function dodawanieDoBazy(){
|
|
||||||
alert("Zatwierdzono ćwiczenie");
|
|
||||||
|
function placeOrder2(form) {
|
||||||
|
if( validateZIPCode(form["Serie"], form["Serie_help"]) && validateZIPCode(form["Powtorzenia"], form["Powtorzenia_help"]) &&validateZIPCode(form["Ciezar"], form["Ciezar_help"]) ) {
|
||||||
|
form.submit()}
|
||||||
|
else {
|
||||||
|
alert("Przykro mi, ale podane informacje nie s¹ prawid³owe.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function sprawdzanieFormularza(inputField){
|
||||||
|
var regex=/\d/;
|
||||||
|
if(regex.test(inputField.value)){
|
||||||
|
alert("Podaj cyfry");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateZIPCode(inputField, helpText) {
|
||||||
|
// Najpierw sprawdzamy, czy d³ugoœæ pola jest ró¿na od 5
|
||||||
|
|
||||||
|
// Teraz sprawdzamy, czy w polu wpisano liczbê
|
||||||
|
if (isNaN(inputField.value)) {
|
||||||
|
// Dane nie s¹ prawid³owe, wyœwietlamy zatem komunikat o b³êdzie
|
||||||
|
if (helpText != null)
|
||||||
|
helpText.innerHTML = "Proszê wpisaæ same cyfry.";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Dane s¹ w porz¹dku, usuwamy komunikat o b³êdzi
|
||||||
|
if (helpText != null)
|
||||||
|
helpText.innerHTML = "";
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
function podgladCwiczenia(){
|
|
||||||
alert("to podgląd");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -52,12 +76,14 @@ alert("Zatwierdzono ćwiczenie");
|
|||||||
<div class="collapse navbar-collapse navbar-right mainmenu" id="mainmenu">
|
<div class="collapse navbar-collapse navbar-right mainmenu" id="mainmenu">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
|
|
||||||
<li><a class="nav-link" href="/logowanie/">Logowanie</a>
|
<li><a class="nav-link" href="/logowanie">Logowanie</a></li>
|
||||||
<li><a class="nav-link" href="/planer/">Zaplanuj nowy trening</a>
|
<li><a class="nav-link" href="/planer/">Zaplanuj nowy trening</a></li>
|
||||||
<li><a class="nav-link" href="/wypisz/">Twoj trening</a>
|
<li><a class="nav-link" href="/wypisz/">Twoj trening</a></li>
|
||||||
<li><a class="btn btn-default" href="/wyniki/">Wyniki</a>
|
<li><a class="btn btn-default" href="/wyniki/">Wyniki</a></li>
|
||||||
<li><a class="nav-link" href="/dodajcwiczenie/">Dodaj ćwiczenie</a>
|
<li><a class="nav-link" href="/dodajcwiczenie/">Dodaj ćwiczenie</a></li>
|
||||||
<li><a class="nav-link" href="/dodajcwiczenie/">Ustawienia</a>
|
<li><a class="nav-link" href="/dodajcwiczenie/">Ustawienia</a></li>
|
||||||
|
|
||||||
|
<li> <form action="/logowanie" method="GET"> <button class="btn btn-default" style="height: 50px" value="brak" name="cookies" >Wyloguj</button></form></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -84,6 +110,7 @@ alert("Zatwierdzono ćwiczenie");
|
|||||||
<th>Ilość powtórzeń</th>
|
<th>Ilość powtórzeń</th>
|
||||||
<th>Ciężar</th>
|
<th>Ciężar</th>
|
||||||
<th>Akcja</th>
|
<th>Akcja</th>
|
||||||
|
<th>Akcja</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -96,19 +123,20 @@ alert("Zatwierdzono ćwiczenie");
|
|||||||
</form>
|
</form>
|
||||||
<form action="/wypisz/" method="POST">
|
<form action="/wypisz/" method="POST">
|
||||||
|
|
||||||
<td><input value="{{ .Nazwa }}" name="Nazwa" placeholder="{{ .Nazwa }}" >
|
<td><input type="button" value="{{ .Nazwa }}" name="Nazwa" placeholder="{{ .Nazwa }}" >
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td><input type="text" class="form-control" value="{{ .Serie }}" name="Serie" placeholder="{{ .Serie }}" >
|
<td><input type="text" class="form-control" value="{{ .Serie }}" name="Serie" id="Serie" placeholder="{{ .Serie }}" onblur="validateZIPCode(this, document.getElementById('Serie_help'))">
|
||||||
</td>
|
</td>
|
||||||
<td><input type="text" class="form-control" value="{{ .Powtorzenia }}" name="Powtorzenia" placeholder="{{ .Powtorzenia }}" ></td>
|
<td><input type="text" class="form-control" value="{{ .Powtorzenia }}" name="Powtorzenia" placeholder="{{ .Powtorzenia }}" onblur="validateZIPCode(this, document.getElementById('Powtorzenia_help'))" ></td>
|
||||||
<td><input type="text" class="form-control" value="{{ .Ciezar }}" name="Ciezar" placeholder="{{ .Ciezar }}" ></td>
|
<td><input type="text" class="form-control" id="Ciezar" value="{{ .Ciezar }}" name="Ciezar" placeholder="{{ .Ciezar }}" onblur="validateZIPCode(this, document.getElementById('Ciezar_help'))" ></td>
|
||||||
|
|
||||||
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
<td>
|
||||||
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Zatwierdź ćwiczenie</button></div></td>
|
<input type="submit" name="Akcja" value="zatwierdz" onclick="placeOrder2(this.form);" /></td>
|
||||||
|
<td><input type="submit" name="Akcja" value="usun" onclick="placeOrder2(this.form);" /></div></td>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -45,13 +45,9 @@ function dodawanieCwiczenia(id) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="collapse navbar-collapse navbar-right mainmenu" id="mainmenu">
|
<div class="collapse navbar-collapse navbar-right mainmenu" id="mainmenu">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
|
<li><a class="nav-link" href="/logowanie">Logowanie</a></li>
|
||||||
<li><a class="nav-link" href="/logowanie/">Logowanie</a>
|
<li><a class="nav-link" href="/rejestracja/">Zarejestruj</a></li>
|
||||||
<li><a class="nav-link" href="/planer/">Zaplanuj nowy trening</a>
|
<li><a class="nav-link" href="/start/">Start</a></li>
|
||||||
<li><a class="nav-link" href="/wypisz/">Twoj trening</a>
|
|
||||||
<li><a class="nav-link" href="/wyniki/">Wyniki</a>
|
|
||||||
<li><a class="nav-link" href="/dodajcwiczenie/">Dodaj ćwiczenie</a>
|
|
||||||
<li><a class="nav-link" href="/dodajcwiczenie/">Ustawienia</a>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -67,7 +63,7 @@ function dodawanieCwiczenia(id) {
|
|||||||
|
|
||||||
|
|
||||||
<div class="rejestracja col-lg-offset-4 col-lg-4 text-center" style="background-color: #efefef; border-radius: 20%; text-align: center; height: 280px; width:350px; padding: 70px">
|
<div class="rejestracja col-lg-offset-4 col-lg-4 text-center" style="background-color: #efefef; border-radius: 20%; text-align: center; height: 280px; width:350px; padding: 70px">
|
||||||
<form action="/koszyk/" method="GET" >
|
<form action="/logowanie" method="POST" >
|
||||||
<div class="col-lg-12 text-center">
|
<div class="col-lg-12 text-center">
|
||||||
|
|
||||||
<input type="text" class="form-control" name="Login" placeholder="Login" style="width: 150px; margin-bottom: 15px">
|
<input type="text" class="form-control" name="Login" placeholder="Login" style="width: 150px; margin-bottom: 15px">
|
||||||
@ -75,8 +71,9 @@ function dodawanieCwiczenia(id) {
|
|||||||
<input type="text" class="form-control" name="Haslo" placeholder="Haslo" style="width: 150px; margin-bottom: 25px">
|
<input type="text" class="form-control" name="Haslo" placeholder="Haslo" style="width: 150px; margin-bottom: 25px">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" class="btn btn-default">Zarejestruj</button>
|
<button type="submit" class="btn btn-default">Zaloguj</button>
|
||||||
</form>
|
</form>
|
||||||
|
<a href="/rejestracja/" ><button type="submit" class="btn btn-default">Zarejestruj</button></a>
|
||||||
</div></div></div>
|
</div></div></div>
|
||||||
<div class="container footer">
|
<div class="container footer">
|
||||||
<div class="row" >
|
<div class="row" >
|
||||||
|
@ -11,25 +11,45 @@
|
|||||||
<link rel="Stylesheet" type="text/css" href="/static/css_moje/style_moje.css" />
|
<link rel="Stylesheet" type="text/css" href="/static/css_moje/style_moje.css" />
|
||||||
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700,400italic,500italic&subset=latin,latin-ext" rel="stylesheet">
|
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700,400italic,500italic&subset=latin,latin-ext" rel="stylesheet">
|
||||||
<script>
|
<script>
|
||||||
function dodawanieCwiczenia(id) {
|
|
||||||
var elem = document.getElementById(id);
|
function placeOrder1(form) {
|
||||||
if(elem.style.display==''){ elem.style.display='none'; return; }
|
if( validateZIPCode(form["co_ile_ciezar"], form["co_ile_ciezar_help"]) && validateZIPCode(form["ciezar_dodaj"], form["ciezar_dodaj_help"]) &&validateZIPCode(form["co_ile_powtorzenie"], form["co_ile_powtorzenie_help"]) &&validateZIPCode(form["powtorzenie_dodaj"], form["powtorzenie_dodaj_help"]) ) {
|
||||||
elem.style.display='';
|
form.submit()}
|
||||||
|
else {
|
||||||
|
alert("Przykro mi, ale podane informacje nie s¹ prawid³owe.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
function placeOrder2(form) {
|
||||||
|
if( validateZIPCode(form["Ciezar"], form["Ciezar_help"]) ) {
|
||||||
const input = document.getElementById("Serie");
|
form.submit()}
|
||||||
const val = input.value;
|
else {
|
||||||
|
alert("Przykro mi, ale podane informacje nie s¹ prawid³owe.");
|
||||||
if (!val.length) {
|
}
|
||||||
console.log('Nie wpisałeś żadnej wartości!')
|
|
||||||
} else {
|
|
||||||
console.log('Twój imię to: ' + val[0].toUpperCase() + val.slice(1) );
|
|
||||||
}
|
}
|
||||||
</script>
|
function sprawdzanieFormularza(inputField){
|
||||||
<style>body {
|
var regex=/\d/;
|
||||||
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
if(regex.test(inputField.value)){
|
||||||
}</style>
|
alert("Podaj cyfry");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateZIPCode(inputField, helpText) {
|
||||||
|
// Najpierw sprawdzamy, czy d³ugoœæ pola jest ró¿na od 5
|
||||||
|
|
||||||
|
// Teraz sprawdzamy, czy w polu wpisano liczbê
|
||||||
|
if (isNaN(inputField.value)) {
|
||||||
|
// Dane nie s¹ prawid³owe, wyœwietlamy zatem komunikat o b³êdzie
|
||||||
|
if (helpText != null)
|
||||||
|
helpText.innerHTML = "Proszê wpisaæ same cyfry.";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Dane s¹ w porz¹dku, usuwamy komunikat o b³êdzi
|
||||||
|
if (helpText != null)
|
||||||
|
helpText.innerHTML = "";
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -56,13 +76,14 @@ if (!val.length) {
|
|||||||
<div class="collapse navbar-collapse navbar-right mainmenu" id="mainmenu">
|
<div class="collapse navbar-collapse navbar-right mainmenu" id="mainmenu">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
|
|
||||||
<li><a class="nav-link" href="/logowanie/">Logowanie</a>
|
<li><a class="nav-link" href="/logowanie">Logowanie</a></li>
|
||||||
<li><a class="nav-link" href="/planer/">Zaplanuj nowy trening</a>
|
<li><a class="nav-link" href="/planer/">Zaplanuj nowy trening</a></li>
|
||||||
<li><a class="nav-link" href="/wypisz/">Twoj trening</a>
|
<li><a class="nav-link" href="/wypisz/">Twoj trening</a></li>
|
||||||
<li><a class="btn btn-default" href="/wyniki/">Wyniki</a>
|
<li><a class="btn btn-default" href="/wyniki/">Wyniki</a></li>
|
||||||
<li><a class="nav-link" href="/dodajcwiczenie/">Dodaj ćwiczenie</a>
|
<li><a class="nav-link" href="/dodajcwiczenie/">Dodaj ćwiczenie</a></li>
|
||||||
<li><a class="nav-link" href="/dodajcwiczenie/">Ustawienia</a>
|
<li><a class="nav-link" href="/dodajcwiczenie/">Ustawienia</a></li>
|
||||||
</ul>
|
|
||||||
|
<li> <form action="/logowanie" method="GET"> <submit class="btn btn-default" style="height: 50px" value="brak" name="cookies" >Wyloguj</submit></form></li>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
@ -80,21 +101,24 @@ if (!val.length) {
|
|||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<form action="/heheheszki/" method="POST">
|
<form action="/planer/" method="POST">
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<select name="rodzaj" style="width: 180px">
|
<select name="rodzaj_treningu" style="width: 180px">
|
||||||
<option>FWB</option>
|
<option>FWB</option>
|
||||||
<option>ABS</option>
|
<option>ABS</option>
|
||||||
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td><input type="text" class="form-control" name="Opis" placeholder="co ile trenngów zwiększać cięzar o 1kg" style="width: 180px"></td>
|
<td><input type="text" class="form-control" id="co_ile_ciezar" name="co_ile_ciezar" placeholder="co ile trenngów" onblur="validateZIPCode(this, document.getElementById('co_ile_ciezar_help'))" style="width: 180px" >
|
||||||
<td><input type="text" class="form-control" name="Zdjecie" placeholder="co ile trenngów zwiększać ilość powtórzeń" style="width: 180px"></td>
|
</td>
|
||||||
<td>
|
<td><input type="text" class="form-control" id="ciezar_dodaj" name="ciezar_dodaj" placeholder="Jaki ciężar" onblur="validateZIPCode(this, document.getElementById('ciezar_dodaj_help'))" style="width: 180px"></td>
|
||||||
|
<td><input type="text" class="form-control" id="co_ile_powtorzenie" name="co_ile_powtorzenie" placeholder="co ile trenngów" onblur="validateZIPCode(this, document.getElementById('co_ile_powtorzenie_help'))" style="width: 180px"></td>
|
||||||
|
<td><input type="text" class="form-control" id="powtorzenie_dodaj" name="powtorzenie_dodaj" placeholder="Ile powtórzeń" onblur="validateZIPCode(this, document.getElementById('powtorzenie_dodaj_help'))" style="width: 180px"></td>
|
||||||
|
|
||||||
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Zatwierdź</button></div></td>
|
|
||||||
|
<td> <input type="button" value="Zamawiam reklamê" onclick="placeOrder1(this.form);" /></div></td>
|
||||||
</form>
|
</form>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -155,10 +179,10 @@ if (!val.length) {
|
|||||||
<option>11</option>
|
<option>11</option>
|
||||||
<option>12</option>
|
<option>12</option>
|
||||||
<option>13</option></select></td>
|
<option>13</option></select></td>
|
||||||
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
<td><input type="text" class="form-control" name="Ciezar" id="Ciezar1" onblur="validateZIPCode(this, document.getElementById('Ciezar_help'))" ></td>
|
||||||
|
|
||||||
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
||||||
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div></td>
|
<input type="button" value="Zamawiam reklamê" onclick="placeOrder2(this.form);" /></div></td>
|
||||||
</form>
|
</form>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -184,10 +208,10 @@ if (!val.length) {
|
|||||||
<option>11</option>
|
<option>11</option>
|
||||||
<option>12</option>
|
<option>12</option>
|
||||||
<option>13</option></select></td>
|
<option>13</option></select></td>
|
||||||
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
<td><input type="text" class="form-control" name="Ciezar" onblur ="sprawdzanieFormularza(this);" ></td>
|
||||||
|
|
||||||
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
||||||
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div></td>
|
<input type="button" value="Zamawiam reklamê" onclick="placeOrder2(this.form);" /></div></td>
|
||||||
</form>
|
</form>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -213,10 +237,10 @@ if (!val.length) {
|
|||||||
<option>11</option>
|
<option>11</option>
|
||||||
<option>12</option>
|
<option>12</option>
|
||||||
<option>13</option></select></td>
|
<option>13</option></select></td>
|
||||||
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
<td><input type="text" class="form-control" name="Ciezar" onblur ="sprawdzanieFormularza(this);" ></td>
|
||||||
|
|
||||||
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
||||||
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div></td>
|
<input type="button" value="Zamawiam reklamê" onclick="placeOrder2(this.form);" /></div></td>
|
||||||
</form>
|
</form>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -242,10 +266,10 @@ if (!val.length) {
|
|||||||
<option>11</option>
|
<option>11</option>
|
||||||
<option>12</option>
|
<option>12</option>
|
||||||
<option>13</option></select></td>
|
<option>13</option></select></td>
|
||||||
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
<td><input type="text" class="form-control" name="Ciezar" onblur ="sprawdzanieFormularza(this);" ></td>
|
||||||
|
|
||||||
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
||||||
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div></td>
|
<input type="button" value="Zamawiam reklamê" onclick="placeOrder2(this.form);" /></div></td>
|
||||||
</form>
|
</form>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -271,10 +295,10 @@ if (!val.length) {
|
|||||||
<option>11</option>
|
<option>11</option>
|
||||||
<option>12</option>
|
<option>12</option>
|
||||||
<option>13</option></select></td>
|
<option>13</option></select></td>
|
||||||
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
<td><input type="text" class="form-control" name="Ciezar" onblur ="sprawdzanieFormularza(this);" ></td>
|
||||||
|
|
||||||
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
||||||
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div></td>
|
<input type="button" value="Zamawiam reklamê" onclick="placeOrder2(this.form);" /></div></td>
|
||||||
</form>
|
</form>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -300,10 +324,10 @@ if (!val.length) {
|
|||||||
<option>11</option>
|
<option>11</option>
|
||||||
<option>12</option>
|
<option>12</option>
|
||||||
<option>13</option></select></td>
|
<option>13</option></select></td>
|
||||||
<td><input type="text" class="form-control" name="Ciezar" ></td>
|
<td><input type="text" class="form-control" name="Ciezar" onblur ="sprawdzanieFormularza(this);" ></td>
|
||||||
|
|
||||||
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
|
||||||
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Dodaj ćwiczenie</button></div></td>
|
<input type="button" value="Zamawiam reklamê" onclick="placeOrder2(this.form);" /></div></td>
|
||||||
</form>
|
</form>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
106
trening-planer/rejestracja.html
Normal file
106
trening-planer/rejestracja.html
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="pl">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
<title>Twoj trening</title><link rel="Shortcut icon" href="img/logo2.jpg" />
|
||||||
|
<link type="text/css" href="/static/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link rel="Stylesheet" type="text/css" href="/static/css_moje/style_moje.css" />
|
||||||
|
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700,400italic,500italic&subset=latin,latin-ext" rel="stylesheet">
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function placeOrder2(form) {
|
||||||
|
if (sprawdzanieFormularza(Haslo2)) {
|
||||||
|
form.submit()}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function sprawdzanieFormularza(inputField){
|
||||||
|
var regex=document.getElementById('Haslo').value;
|
||||||
|
var regex2=document.getElementById('Haslo2').value;
|
||||||
|
|
||||||
|
if(regex!= regex2){
|
||||||
|
alert("HAsła muszą być takie same");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style>body {
|
||||||
|
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<nav class="navbar navbar-default navbar-fixed-top " style="background-color: #efefef;">
|
||||||
|
<div class="container">
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle collapsed"
|
||||||
|
data-toggle="collapse"
|
||||||
|
data-target="#mainmenu"
|
||||||
|
aria-expanded="false">
|
||||||
|
<span class="sr-only">Przełącznik nawigacji</span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="collapse navbar-collapse navbar-right mainmenu" id="mainmenu">
|
||||||
|
<ul class="nav navbar-nav">
|
||||||
|
|
||||||
|
<li><a class="nav-link" href="/logowanie">Logowanie</a></li>
|
||||||
|
<li><a class="nav-link" href="/rejestracja/">Zarejestruj</a></li>
|
||||||
|
<li><a class="nav-link" href="/start/">Start</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="container" style="margin-top:100px;">
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="rejestracja col-lg-offset-4 col-lg-4 text-center" style="background-color: #efefef; border-radius: 20%; text-align: center; height: 280px; width:350px; padding: 70px">
|
||||||
|
|
||||||
|
<form action="/rejestracja/" method="POST" >
|
||||||
|
<div class="col-lg-12 text-center">
|
||||||
|
|
||||||
|
<p>
|
||||||
|
{{ .Opis }}
|
||||||
|
</p>
|
||||||
|
<input type="text" class="form-control" name="Login" placeholder="Login" style="width: 150px; margin-bottom: 15px">
|
||||||
|
|
||||||
|
<input type="text" class="form-control" name="Haslo" id="Haslo" placeholder="Haslo" style="width: 150px; margin-bottom: 15px">
|
||||||
|
<input type="text" class="form-control" name="Haslo2" id="Haslo2" placeholder="Haslo" onblur ="sprawdzanieFormularza(this);" style="width: 150px; margin-bottom: 15px" >
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<submit type="submit" class="btn btn-default" onclick="placeOrder2()">Zarejestruj</submit>
|
||||||
|
</form>
|
||||||
|
</div></div></div>
|
||||||
|
<div class="container footer">
|
||||||
|
<div class="row" >
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<p>Wszystkie prawa zastrzeżone. <strong>mój</strong>produkt © 2015<br>
|
||||||
|
<small>kontakt@mojprodukt.pl</small>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="collapse navbar-collapse navbar-right form-horizontal"></div>
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
||||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user