Commit 035630ed by mhasan

logout added

parent d4d79fb6
...@@ -33,6 +33,14 @@ session_start(); ...@@ -33,6 +33,14 @@ session_start();
<a class="nav-link" href="faq.php"> FAQ </a>&nbsp; &nbsp; <a class="nav-link" href="faq.php"> FAQ </a>&nbsp; &nbsp;
</li> </li>
</ul> </ul>
<ul style='text-align:end;' class="navbar-nav ml-auto">
<li class="nav-item">
<form method="GET" action="php/logout.php">
<input class='btn btn-info' type = 'submit' name =' logout' value = 'logout'>
</form>
</li>
</ul>
</nav> </nav>
<h2 style="text-align: center; margin-top:80px"> Create List</h2> <h2 style="text-align: center; margin-top:80px"> Create List</h2>
...@@ -51,6 +59,7 @@ session_start(); ...@@ -51,6 +59,7 @@ session_start();
<input class="btn btn-success" type="submit" name = "submit" value="submit" id='submit'> <br> <input class="btn btn-success" type="submit" name = "submit" value="submit" id='submit'> <br>
</form> </form>
</div> </div>
<br> <br>
</body> </body>
</html> </html>
......
...@@ -36,6 +36,13 @@ require "php/db_conn.php"; ...@@ -36,6 +36,13 @@ require "php/db_conn.php";
<a class="nav-link" href="faq.php"> FAQ </a>&nbsp; &nbsp; <a class="nav-link" href="faq.php"> FAQ </a>&nbsp; &nbsp;
</li> </li>
</ul> </ul>
<ul style='text-align:end;' class="navbar-nav ml-auto">
<li class="nav-item">
<form method="GET" action="php/logout.php">
<input class='btn btn-info' type = 'submit' name =' logout' value = 'logout'>
</form>
</li>
</ul>
</nav> </nav>
<h2 style="text-align: center; margin-top:80px; margin-bottom:30px;"> Edit Task </h2> <h2 style="text-align: center; margin-top:80px; margin-bottom:30px;"> Edit Task </h2>
...@@ -60,7 +67,6 @@ require "php/db_conn.php"; ...@@ -60,7 +67,6 @@ require "php/db_conn.php";
<input class="btn btn-success" type='submit' id='submit' name='save' value='save'> <input class="btn btn-success" type='submit' id='submit' name='save' value='save'>
</form> </form>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -30,6 +30,13 @@ ...@@ -30,6 +30,13 @@
<a class="nav-link" href="faq.php"> FAQ </a>&nbsp; &nbsp; <a class="nav-link" href="faq.php"> FAQ </a>&nbsp; &nbsp;
</li> </li>
</ul> </ul>
<ul style='text-align:end;' class="navbar-nav ml-auto">
<li class="nav-item">
<form method="GET" action="php/logout.php">
<input class='btn btn-info' type = 'submit' name =' logout' value = 'logout'>
</form>
</li>
</ul>
</nav> </nav>
<h2 style="text-align: center; margin-top:80px"> Registration</h2> <h2 style="text-align: center; margin-top:80px"> Registration</h2>
...@@ -55,6 +62,8 @@ ...@@ -55,6 +62,8 @@
</div> </div>
</body> </body>
......
...@@ -26,6 +26,15 @@ ...@@ -26,6 +26,15 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="faq.php"> FAQ </a>&nbsp; &nbsp; <a class="nav-link" href="faq.php"> FAQ </a>&nbsp; &nbsp;
</li> </li>
</ul>
<ul style=' text-align:end;' class="navbar-nav ml-auto">
<li class="nav-item">
<form method="GET" action="php/logout.php">
<input class='btn btn-info' type = 'submit' name =' logout' value = 'logout'>
</form>
</li>
</ul> </ul>
</nav> </nav>
...@@ -44,10 +53,12 @@ ...@@ -44,10 +53,12 @@
<br><br> <br><br>
<input class='btn btn-success'type="submit" name="submit" value="submit"> <input class='btn btn-success'type="submit" name="submit" value="submit">
</form> </form>
<br> <br> <br> <br>
<form class='btn btn-success' method="GET" action="php/logout.php"> <form method="GET" action="php/logout.php">
<input type = 'submit' name =' logout' value = 'logout'> <input class='btn btn-danger' type = 'submit' name =' logout' value = 'logout'>
</form> </form>
{% if login is not null %} {% if login is not null %}
<h3 style="text-align:center;"> Incorrect username and password, please try again!</h3> <h3 style="text-align:center;"> Incorrect username and password, please try again!</h3>
{% endif %} {% endif %}
......
...@@ -29,6 +29,14 @@ ...@@ -29,6 +29,14 @@
<a class="nav-link" href="faq.php"> FAQ </a>&nbsp; &nbsp; <a class="nav-link" href="faq.php"> FAQ </a>&nbsp; &nbsp;
</li> </li>
</ul> </ul>
<ul style='text-align:end;' class="navbar-nav ml-auto">
<li class="nav-item">
<form method="GET" action="php/logout.php">
<input class='btn btn-info' type = 'submit' name =' logout' value = 'logout'>
</form>
</li>
</ul>
</nav> </nav>
{% if tasks is not null %} {% if tasks is not null %}
...@@ -98,6 +106,7 @@ ...@@ -98,6 +106,7 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<br> <br>
</table> </table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment