Diff between a83353552f2d3d6d6bff30d6444e0be6e451cb23 and 75f6c547887a74bb2a7c71f1dc39ca1fd8fb860c

Changed Files

File Additions Deletions Status
public/index.php +3 -4 modified
public/nollaa.php +0 -2 modified

Full Patch

diff --git a/public/index.php b/public/index.php
index 2f65d38..30897a9 100755
--- a/public/index.php
+++ b/public/index.php
@@ -32,8 +32,8 @@ if ($result->num_rows>0){
 		<div class="table-container">
 			<input class="searchInput" data-table-id="table1" type="search" placeholder="Hae🔍" aria-label="Hae🔍" aria-target="table1">  
 			<?php
-			if ($logged_in and $op) {
-				echo "<a href='uusopiskelija.php'><button>Lisää opiskelija</button></a>";
+			if ($logged_in) {
+				echo "<a href='uusopiskelija.php'><button>+</button></a>";
 			}
 			?>
 			<table class="sortTable" id="table1">
@@ -95,8 +95,7 @@ if ($result->num_rows>0){
 									echo "<td>" . $tyyppi["ohjaaja"] . "</td>";
 									echo "<td>" . $tyyppi["yhteystiedot"] . "</td>";
 									echo "<td>" . date("d.m.y", strtotime($tyyppi["aloitus"])) . "</td>";
-									echo "<td>" . date("d.m.y", strtotime($tyyppi["lopetus"])) . "</td>";
-									echo "<td>" . $tyyppi["status"] . "</td>";
+									echo "<td>" . date("d.m.y", strtotime($tyyppi["lopetus"])) . "</td>";									
 									echo "<td>" . $tyyppi["status"] . "</td>";
 									echo "<td>" . $tyyppi["ruokaraha"] . "</td>";
 									echo "<td>" . $tyyppi["muuta"] . "</td>";
diff --git a/public/nollaa.php b/public/nollaa.php
index c21236d..833944b 100644
--- a/public/nollaa.php
+++ b/public/nollaa.php
@@ -47,8 +47,6 @@ if (isset($_POST['nimi']) && $_SERVER['REQUEST_METHOD'] === 'POST') {
             <form action="" method="POST">
                 <fieldset>
                     <legend>Nollaa salasana</legend>
-                    <label for="nimi">Nimi:</label>
-                    <input type="text" id="nimi" name="nimi">
                     <label for="salasana">Uusi salasana:</label>
                     <input type="password" id="salasana" name="salasana">
                     <label for="vahvista-salasana">Vahvista salasana:</label>