Zaktualizuj 'index.php'

This commit is contained in:
Krystian Rzepa 2018-12-30 01:09:12 +00:00
parent 6ef5b62b99
commit 4a96b0f6b7

View File

@ -61,16 +61,16 @@ if ($_SESSION['zalogowany']==true)
<table>Do zrobienia <table>Do zrobienia
<thead> <thead>
<tr> <tr>
<td>Numer</td> <td>Nr</td>
<td>Zadanie</td> <td>Zadanie</td>
<td>Akcja</td> <td>Akcja</td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php while ($row = mysqli_fetch_array($tasks)) { ?> <?php $i=1; while ($row = mysqli_fetch_array($tasks)) { ?>
<tr> <tr>
<td><?php echo $row['ID']; ?></td> <td><?php echo $i; ?></td>
<td class="task"><?php echo $row['task']; ?></td> <td class="task"><?php echo $row['task']; ?></td>
<td class="action"> <td class="action">
<a href="delete.php?del_task=<?php echo $row['ID'];?>">x</a> <a href="delete.php?del_task=<?php echo $row['ID'];?>">x</a>
@ -78,7 +78,7 @@ if ($_SESSION['zalogowany']==true)
</td> </td>
</tr> </tr>
<?php } ?> <?php i++; } ?>
</tbody> </tbody>
</table> </table>
@ -86,23 +86,23 @@ if ($_SESSION['zalogowany']==true)
<table>Zrobione <table>Zrobione
<thead> <thead>
<tr> <tr>
<td>Numer</td> <td>Nr</td>
<td>Zadanie</td> <td>Zadanie</td>
<td>Akcja</td> <td>Akcja</td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php while ($row = mysqli_fetch_array($tasks_done)) { ?> <?php $i=1; while ($row = mysqli_fetch_array($tasks_done)) { ?>
<tr> <tr>
<td><?php echo $row['ID']; ?></td> <td><?php echo $i; ?></td>
<td class="task"><?php echo $row['task']; ?></td> <td class="task"><?php echo $row['task']; ?></td>
<td class="action"> <td class="action">
<a href="delete.php?del_task=<?php echo $row['ID'];?>">x</a> <a href="delete.php?del_task=<?php echo $row['ID'];?>">x</a>
</td> </td>
</tr> </tr>
<?php } ?> <?php $i++; } ?>
</tbody> </tbody>
</table> </table>