Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ahjoyo
/
idc0007
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
035630ed
authored
May 06, 2019
by
mhasan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logout added
parent
d4d79fb6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
5 deletions
create.php
edit.php
register.php
views/index.html
views/view.html
create.php
View file @
035630ed
...
...
@@ -33,6 +33,14 @@ session_start();
<a
class=
"nav-link"
href=
"faq.php"
>
FAQ
</a>
</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>
</nav>
<h2
style=
"text-align: center; margin-top:80px"
>
Create List
</h2>
...
...
@@ -51,6 +59,7 @@ session_start();
<input
class=
"btn btn-success"
type=
"submit"
name =
"submit"
value=
"submit"
id=
'submit'
>
<br>
</form>
</div>
<br>
<br>
</body>
</html>
...
...
edit.php
View file @
035630ed
...
...
@@ -36,6 +36,13 @@ require "php/db_conn.php";
<a
class=
"nav-link"
href=
"faq.php"
>
FAQ
</a>
</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>
</nav>
<h2
style=
"text-align: center; margin-top:80px; margin-bottom:30px;"
>
Edit Task
</h2>
...
...
@@ -59,7 +66,6 @@ require "php/db_conn.php";
<br>
<br>
<input
class=
"btn btn-success"
type=
'submit'
id=
'submit'
name=
'save'
value=
'save'
>
</form>
</body>
...
...
register.php
View file @
035630ed
...
...
@@ -30,6 +30,13 @@
<a
class=
"nav-link"
href=
"faq.php"
>
FAQ
</a>
</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>
</nav>
<h2
style=
"text-align: center; margin-top:80px"
>
Registration
</h2>
...
...
@@ -54,6 +61,8 @@
</form>
</div>
</body>
...
...
views/index.html
View file @
035630ed
...
...
@@ -26,7 +26,16 @@
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"faq.php"
>
FAQ
</a>
</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>
</nav>
<h2
style=
"text-align: center; margin-top:80px"
>
WELCOME TO YOUR VERY OWN PERSONAL ASSISTENT
</h2>
...
...
@@ -44,10 +53,12 @@
<br><br>
<input
class=
'btn btn-success'
type=
"submit"
name=
"submit"
value=
"submit"
>
</form>
<br>
<br>
<form
class=
'btn btn-success'
method=
"GET"
action=
"php/logout.php"
>
<input
type =
'submit'
name =
' logout'
value =
'logout'
>
<form
method=
"GET"
action=
"php/logout.php"
>
<input
class=
'btn btn-danger'
type =
'submit'
name =
' logout'
value =
'logout'
>
</form>
{% if login is not null %}
<h3
style=
"text-align:center;"
>
Incorrect username and password, please try again!
</h3>
{% endif %}
...
...
views/view.html
View file @
035630ed
...
...
@@ -29,6 +29,14 @@
<a
class=
"nav-link"
href=
"faq.php"
>
FAQ
</a>
</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>
</nav>
{% if tasks is not null %}
...
...
@@ -98,13 +106,14 @@
{% endif %}
{% endfor %}
<br>
<br>
</table>
{% else %}
<h2
style=
"text-align: center; margin-top:80px"
>
Please log in
</h2>
{% endif %}
<script
src=
"https://code.jquery.com/jquery-3.3.1.slim.min.js"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment