Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sistem-Informasi-Pariwisata-Tapanuli-Utara
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kyrie Cettyara
Sistem-Informasi-Pariwisata-Tapanuli-Utara
Commits
85c68633
Commit
85c68633
authored
Jul 31, 2021
by
KyrieCettyara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Admin
parent
6c310b06
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
192 additions
and
156 deletions
+192
-156
detail.php
app/Views/admin/detail.php
+2
-2
list.php
app/Views/admin/list.php
+2
-4
side_menu.php
app/Views/admin/side_menu.php
+56
-27
admin.css
public/css/admin.css
+132
-123
No files found.
app/Views/admin/detail.php
View file @
85c68633
...
...
@@ -4,8 +4,8 @@
<div
class=
"container"
>
<div
class=
"buttn"
>
<a
href=
"
<?=
base_url
(
'edit-artikel/'
.
$value
[
'id_artikel'
]);
?>
"
class=
"btn"
id=
"btn"
>
Edit
</a>
<a
href=
"
<?=
base_url
(
'delete-artikel/'
.
$value
[
'id_artikel'
]);
?>
"
class=
"btn"
id=
"btn"
>
Delete
</a>
<a
href=
"
<?=
base_url
(
'edit-artikel/'
.
$value
[
'id_artikel'
]);
?>
"
class=
"btn
btn-primary
"
id=
"btn"
>
Edit
</a>
<a
href=
"
<?=
base_url
(
'delete-artikel/'
.
$value
[
'id_artikel'
]);
?>
"
class=
"btn
btn-primary
"
id=
"btn"
>
Delete
</a>
</div>
</div>
...
...
app/Views/admin/list.php
View file @
85c68633
...
...
@@ -2,11 +2,9 @@
<?=
$this
->
section
(
'content'
);
?>
<div
class=
"container"
>
<div
class=
"butn"
>
<a
href=
"
<?=
base_url
(
'add-artikel'
);
?>
"
class=
"btn"
id=
"btn"
>
Tambah Artikel
</a>
<a
href=
"
<?=
base_url
(
'add-artikel'
);
?>
"
class=
"btn
btn-primary
"
id=
"btn"
>
Tambah Artikel
</a>
</div>
</div>
...
...
@@ -24,7 +22,7 @@
<div
class=
" card-body"
>
<h5
class=
"card-title"
>
<?=
$value
[
'judul_artikel'
];
?>
</h5>
<p
class=
"card-text"
>
<?=
$isi_artikel
;
?>
</p>
<a
href=
"
<?=
base_url
(
'artikel/'
.
$value
[
'id_artikel'
]);
?>
"
class=
"btn"
>
Baca Artikel...
</a>
<a
href=
"
<?=
base_url
(
'artikel/'
.
$value
[
'id_artikel'
]);
?>
"
class=
"btn
btn-primary
"
>
Baca Artikel...
</a>
</div>
</div>
</div>
...
...
app/Views/admin/side_menu.php
View file @
85c68633
<!DOCTYPE html>
<html>
<head>
<link
rel=
"stylesheet"
href=
"https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"
integrity=
"sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4"
crossorigin=
"anonymous"
>
<!-- Our Custom CSS -->
<link
rel=
"stylesheet"
href=
"style.css"
>
<!-- Font Awesome JS -->
<script
defer
src=
"https://use.fontawesome.com/releases/v5.0.13/js/solid.js"
integrity=
"sha384-tzzSw1/Vo+0N5UhStP3bvwWPq+uvzCMfrN1fEFe+xBmv1C/AtVX5K0uZtmcHitFZ"
crossorigin=
"anonymous"
></script>
<script
defer
src=
"https://use.fontawesome.com/releases/v5.0.13/js/fontawesome.js"
integrity=
"sha384-6OIrr52G08NpOFSZdxxz1xdNSndlD4vdcf/q2myIUVO0VsqaGHJsB0RaBE01VTOY"
crossorigin=
"anonymous"
></script>
<head>
<link
href=
"https://fonts.googleapis.com/css?family=Nunito:400,600,700,800,900"
rel=
"stylesheet"
>
<link
href=
"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity=
"sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin=
"anonymous"
>
<script
src=
"https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity=
"sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin=
"anonymous"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity=
"sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin=
"anonymous"
></script>
<script
src=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity=
"sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin=
"anonymous"
></script>
<link
href=
"
<?php
echo
base_url
(
'css/admin.css'
);
?>
"
rel=
"stylesheet"
>
<link
rel=
"preconnect"
href=
"https://fonts.googleapis.com"
>
...
...
@@ -17,34 +16,64 @@
</head>
<body>
<
!-- <
div class="wrapper">
<div
class=
"wrapper"
>
<
div class="side-menu
">
<div class="
logo
">
Hi, Admin!
<
nav
id=
"sidebar
"
>
<div
class=
"
sidebar-header
"
>
<h3>
Halo, Admin!
</h3>
</div>
<div class="menu">
<ul>
<li><a href="
<?=
base_url
(
'admin'
)
?>
"><i class="fa fa-server" aria-hidden="true"></i><span class="text"> Artikel </span></a></li>
<li><a href="
<?=
base_url
(
'AuthController/logout'
)
?>
"><i class="fa fa-sign-out" aria-hidden="true"></i><span class="text"> Keluar</span></a></li>
<ul
class=
"list-unstyled components"
>
<li
class=
"active"
>
<a
href=
"#homeSubmenu"
data-toggle=
"collapse"
aria-expanded=
"false"
class=
"dropdown-toggle"
>
Artikel
</a>
<ul
class=
"collapse list-unstyled"
id=
"homeSubmenu"
>
<li>
<a
href=
"
<?=
base_url
(
'admin'
)
?>
"
>
Pariwisata
</a>
</li>
<li>
<a
href=
"#"
>
Home 2
</a>
</li>
<li>
<a
href=
"#"
>
Home 3
</a>
</li>
</ul>
</div>
</div>
<div class="main-content">
</li>
<li>
<a
href=
"
<?=
base_url
(
'AuthController/logout'
)
?>
"
></i>
Keluar
</a>
</li>
<div class="main-section">
<?=
$this
->
renderSection
(
'content'
);
?>
</ul>
</nav>
<div
class=
"contents"
>
<nav
class=
"navbar navbar-expand-lg navbar-light bg-light"
>
<div
class=
"container-fluid"
>
<button
type=
"button"
id=
"sidebarCollapse"
class=
"btn btn-info"
style=
"width: 20 px;"
>
<i
class=
"fas fa-align-left"
></i>
<span>
Menu
</span>
</button>
</div>
</nav>
<?=
$this
->
renderSection
(
'content'
);
?>
</div>
</div> -->
z
<
na
v>
<
/di
v>
</nav>
</body>
<!-- jQuery CDN - Slim version (=without AJAX) -->
<script
src=
"https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity=
"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin=
"anonymous"
></script>
<!-- Popper.JS -->
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"
integrity=
"sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ"
crossorigin=
"anonymous"
></script>
<!-- Bootstrap JS -->
<script
src=
"https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"
integrity=
"sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm"
crossorigin=
"anonymous"
></script>
</html>
\ No newline at end of file
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
'#sidebarCollapse'
).
on
(
'click'
,
function
()
{
$
(
'#sidebar'
).
toggleClass
(
'active'
);
});
});
</script>
</body>
\ No newline at end of file
public/css/admin.css
View file @
85c68633
html
{
font-family
:
"Nunito"
,
sans-serif
;
height
:
100%
;
a
,
a
:hover
,
a
:focus
{
color
:
inherit
;
text-decoration
:
none
;
transition
:
all
0.3s
;
}
body
{
margin
:
0px
;
height
:
100%
;
.navbar
{
padding
:
15px
10px
;
background
:
#fff
;
border
:
none
;
border-radius
:
0
;
margin-bottom
:
40px
;
box-shadow
:
1px
1px
3px
rgba
(
0
,
0
,
0
,
0.1
);
}
.navbar-btn
{
box-shadow
:
none
;
outline
:
none
!important
;
border
:
none
;
}
.line
{
width
:
100%
;
height
:
1px
;
border-bottom
:
1px
dashed
#ddd
;
margin
:
40px
0
;
}
/* ---------------------------------------------------
SIDEBAR STYLE
----------------------------------------------------- */
.wrapper
{
height
:
auto
;
min-height
:
100%
;
overflow
:
hidden
;
}
.side-menu
{
/* min-width: 250px; */
width
:
250px
;
float
:
left
;
background
:
#32325d
;
height
:
auto
;
min-height
:
100%
;
margin-bottom
:
-5000px
;
/* any large number will do */
padding-bottom
:
5000px
;
}
.topmenu
{
height
:
60px
;
padding
:
10px
0px
10px
0px
;
background
:
#6772e5
;
color
:
#e1e2fa
;
}
.logo
{
background
:
#3a3a63
;
color
:
#ffffff
;
font-size
:
24px
;
font-weight
:
bold
;
padding
:
10px
0px
0px
10px
;
height
:
45px
;
display
:
flex
;
width
:
100%
;
align-items
:
stretch
;
}
#sidebar
{
min-width
:
250px
;
max-width
:
250px
;
background
:
#7386d5
;
color
:
#fff
;
transition
:
all
0.3s
;
}
.main-section
{
height
:
100%
;
#sidebar
.active
{
margin-left
:
-250px
;
}
a
{
text-decoration
:
none
;
#sidebar
.sidebar-header
{
padding
:
20px
;
background
:
#6d7fcc
;
}
#sidebar
ul
.components
{
padding
:
20px
0
;
border-bottom
:
1px
solid
#47748b
;
}
#sidebar
ul
p
{
color
:
#fff
;
padding
:
10px
;
}
#sidebar
ul
li
a
{
padding
:
10px
;
font-size
:
1.1em
;
display
:
block
;
}
#sidebar
ul
li
a
:hover
{
color
:
#7386d5
;
background
:
#fff
;
}
#sidebar
ul
li
.active
>
a
,
a
[
aria-expanded
=
"true"
]
{
color
:
#fff
;
background
:
#6d7fcc
;
}
.menu
ul
{
list-style-type
:
none
;
margin-left
:
0px
;
padding-left
:
10px
;
a
[
data-toggle
=
"collapse"
]
{
position
:
relative
;
}
.menu
ul
li
a
{
font-size
:
12px
;
font-weight
:
800
;
display
:
inline-block
;
padding-top
:
10px
;
padding-bottom
:
10px
;
.dropdown-toggle
::after
{
display
:
block
;
position
:
absolute
;
top
:
50%
;
right
:
20px
;
transform
:
translateY
(
-50%
);
}
ul
ul
a
{
font-size
:
0.9em
!important
;
padding-left
:
30px
!important
;
background
:
#6d7fcc
;
}
a
.article
,
a
.article
:hover
{
background
:
#6d7fcc
!important
;
color
:
#fff
!important
;
}
/* ---------------------------------------------------
CONTENT STYLE
----------------------------------------------------- */
.contents
{
width
:
100%
;
margin-left
:
-5px
;
padding-left
:
10px
;
}
.menu
ul
li
a
:hover
{
background
:
#262646
;
border-left
:
solid
5px
#6a75eb
;
margin-left
:
-10px
;
width
:
98%
;
}
.menu
ul
li
ul
{
padding-left
:
0px
;
}
.main-section
{
height
:
100%
;
margin-bottom
:
-5000px
;
/* any large number will do */
padding-bottom
:
5000px
;
margin-left
:
250px
;
}
.search
{
width
:
340px
;
float
:
left
;
margin-top
:
3px
;
margin-left
:
25px
;
padding-left
:
10px
;
background
:
#5c66cd
;
padding-top
:
3px
;
padding-bottom
:
3px
;
border-radius
:
15px
;
color
:
#8089e8
;
}
input
.src
{
background
:
none
;
border
:
none
;
width
:
300px
;
font-family
:
"Nunito"
,
sans-serif
;
color
:
#8089e8
;
font-size
:
13px
;
font-weight
:
600
;
}
*
:focus
{
outline
:
none
;
}
::-webkit-input-placeholder
{
/* Chrome/Opera/Safari */
font-family
:
"Nunito"
,
sans-serif
;
color
:
#8089e8
;
font-size
:
13px
;
font-weight
:
600
;
}
::-moz-placeholder
{
/* Firefox 19+ */
font-family
:
"Nunito"
,
sans-serif
;
color
:
#8089e8
;
font-size
:
13px
;
font-weight
:
600
;
}
:-ms-input-placeholder
{
/* IE 10+ */
font-family
:
"Nunito"
,
sans-serif
;
color
:
#8089e8
;
font-size
:
13px
;
font-weight
:
600
;
}
:-moz-placeholder
{
/* Firefox 18- */
font-family
:
"Nunito"
,
sans-serif
;
color
:
#8089e8
;
font-size
:
13px
;
font-weight
:
600
;
}
.container
{
padding
:
20px
;
min-height
:
100vh
;
transition
:
all
0.3s
;
}
/* ---------------------------------------------------
MEDIAQUERIES
----------------------------------------------------- */
@media
(
max-width
:
768px
)
{
#sidebar
{
margin-left
:
-250px
;
}
#sidebar
.active
{
margin-left
:
0
;
}
#sidebarCollapse
span
{
display
:
none
;
}
}
.containers
{
margin
:
15px
0px
15px
0px
;
display
:
block
;
margin-left
:
auto
;
...
...
@@ -166,7 +172,8 @@ input.src {
.card
>
.card-body
>
.btn
{
float
:
right
;
border-radius
:
25px
;
background-color
:
#32325d
;
background-color
:
#17a2b8
;
border
:
none
;
}
.row
>
.col
{
...
...
@@ -200,14 +207,16 @@ h3 {
border-radius
:
20px
;
width
:
100px
;
margin
:
0px
5px
15px
;
background-color
:
#
32325d
;
background-color
:
#
17a2b8
;
font-family
:
"Poppins"
,
sans-serif
;
border
:
none
;
}
.container
>
.butn
>
#btn
{
border-radius
:
20px
;
margin
:
0px
5px
15px
;
background-color
:
#
32325d
;
background-color
:
#
17a2b8
;
font-family
:
"Poppins"
,
sans-serif
;
border
:
none
;
}
/* .row {
...
...
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