Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Bojan Borovcanin
/
WBT1920_team30
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9f2351c8
authored
May 05, 2020
by
Luka Pavlovic
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
class is added.
parent
7ba0d8dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
85 additions
and
2 deletions
test/views/pages/login.php
test/views/pages/login.php
View file @
9f2351c8
...
...
@@ -15,9 +15,92 @@
</head>
<body>
<nav
id =
"navbar"
class=
"navbar navbar-default"
>
<div
id=
"navbarDiv"
class=
"container-fluid"
>
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
"#myNavbar"
>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"
<?php
echo
base_url
();
?>
Pages/view"
>
<img
src=
"
<?php
echo
base_url
();
?>
assets/images/ikonica.svg"
width=
"50px"
>
</a>
</div>
<div
class=
"collapse navbar-collapse"
id=
"myNavbar"
>
<ul
class=
"nav navbar-nav navbar-right"
>
<li>
<a
href=
"
<?php
echo
base_url
();
?>
Pages/view"
>
Home
</a>
</li>
<li>
<a
href=
"
<?php
echo
base_url
();
?>
activity/showActivities"
>
Activities
</a>
</li>
<?php
if
(
isset
(
$_SESSION
[
'logged_in'
]))
{
if
(
$_SESSION
[
'logged_in'
][
'acl'
]
==
2
)
{
?>
<li>
<a
href=
"
<?php
echo
base_url
();
?>
profile/myProfile"
>
Profile
</a>
</li>
<?php
}
}
?>
<?php
if
(
isset
(
$_SESSION
[
'logged_in'
]))
{
if
(
$_SESSION
[
'logged_in'
][
'acl'
]
==
1
)
{
?>
<li>
<a
href=
"
<?php
echo
base_url
();
?>
profile/workerProfile"
>
Profile
</a>
</li>
<?php
}
}
?>
<li>
<a
href=
"
<?php
if
(
!
$this
->
session
->
userdata
(
'logged_in'
))
{
echo
base_url
()
.
"user/loginButton"
;
}
else
{
echo
base_url
()
.
"user/logout"
;
}
?>
"
>
<span
class=
"glyphicon glyphicon-log-in"
></span>
<?php
if
(
!
$this
->
session
->
userdata
(
'logged_in'
)){
echo
"Login"
;
}
else
{
echo
"Logout"
;
}
?>
</a>
</li>
</ul>
</div>
</div>
</nav>
<br>
<
center
id=
"wlc_header"
>
Welcome to trump Hotel Login
</center
>
<form
action=
"
<?php
echo
base_url
();
?>
user/loginButton"
method=
"post"
>
<
h3><center
id=
"wlc_header"
>
Welcome to trump Hotel Login
</center></h3
>
<form
class=
"form-horizontal"
action=
"
<?php
echo
base_url
();
?>
user/loginButton"
method=
"post"
>
<div
>
<?php
echo
validation_errors
();
?>
</div>
...
...
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