hahahaha

parents
/*!
* Start Bootstrap - Business Casual (https://startbootstrap.com/template-overviews/business-casual)
* Copyright 2013-2017 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-business-casual/blob/master/LICENSE)
*/
body {
font-family: "Open Sans", Helvetica, Arial, sans-serif;
background: url('../img/bg.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
}
h1, h2, h3, h4, h5, h6, .text-heading {
font-family: "Josefin Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h1 {
font-size: 4rem;
}
.tagline-upper {
font-size: 5rem;
font-weight: 700;
line-height: 1;
}
.tagline-lower {
font-size: 1.2rem;
line-height: 1;
}
.text-expanded {
letter-spacing: 2px;
}
.text-shadow {
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.text-lg {
font-size: 1.25rem;
}
.bg-faded {
background-color: rgba(255, 255, 255, 0.9);
}
.bg-overlay {
background-color: rgba(0, 0, 0, 0.7);
}
hr.divider {
border-color: #292b2c;
max-width: 250px;
}
.map-container iframe {
pointer-events: none;
}
.map-container iframe.clicked {
pointer-events: auto;
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/*=============================================================
Authour URI: www.binarycart.com
License: Commons Attribution 3.0
http://creativecommons.org/licenses/by/3.0/
100% To use For Personal And Commercial Use.
IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US
======================================================== */
/*==============================================
GENERAL STYLES
=============================================*/
body {
font-family: 'Open Sans', sans-serif;
}
#wrapper {
width: 100%;
background:#202020;
}
#page-wrapper {
padding: 15px 15px;
min-height: 600px;
background:#F3F3F3;
}
#page-inner {
width:100%;
margin:10px 20px 10px 0px;
background-color:#fff!important;
padding:10px;
min-height:1200px;
}
.text-center {
text-align:center;
}
.no-boder {
border:1px solid #f3f3f3;
}
h2 {
color: #f00;
}
h4 {
padding-top:10px;
}
.square-btn-adjust {
border: 0px solid transparent;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
}
p {
font-size:16px;
line-height:25px;
padding-top:20px;
}
/*==============================================
DASHBOARD STYLES
=============================================*/
.panel-back {
background-color:#F8F8F8;
}
.noti-box {
min-height: 100px;
padding: 20px;
}
.noti-box .icon-box {
display: block;
float: left;
margin: 0 15px 10px 0;
width: 70px;
height: 70px;
line-height: 75px;
vertical-align: middle;
text-align: center;
font-size: 40px;
}
.text-box p{
margin: 0 0 3px;
}
.main-text {
font-size: 25px;
font-weight:600;
}
.set-icon {
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
}
.bg-color-green {
background-color: #00CE6F;
color: #fff;
}
.bg-color-blue {
background-color: #A95DF0;
color: #fff;
}
.bg-color-red {
background-color: #DB0630;
color: #fff;
}
.bg-color-brown {
background-color: #B94A00;
color: #fff;
}
.icon-box-right {
display: block;
float: right;
margin: 0 15px 10px 0;
width: 70px;
height: 70px;
line-height: 75px;
vertical-align: middle;
text-align: center;
font-size: 40px;
}
.main-temp-back {
background: #8702A8;
color: #FFFFFF;
font-size: 16px;
font-weight: 300;
text-align: center;
}
.main-temp-back .text-temp {
font-size: 40px;
}
.back-dash {
padding:20px;
font-size:20px;
font-weight:500;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
background-color:#2EA7EB;
color:#fff;
}
.back-dash p {
padding-top:16px;
font-size:13px;
color:#fff;
line-height:25px;
text-align:justify;
}
.back-footer-green {
background-color: #009B50;
border-top: 0px solid #fff;
}
.back-footer-red {
background-color: #AF0000;
border-top: 0px solid #fff;
}
.color-bottom-txt {
color: #000;
font-size: 16px;
line-height: 30px;
}
/*CHAT PANEL*/
.chat-panel .panel-body {
height: 450px;
overflow-y: scroll;
}
.chat-box {
margin: 0;
padding: 0;
list-style: none;
}
.chat-box li {
margin-bottom: 15px;
padding-bottom: 5px;
border-bottom: 1px dotted #808080;
}
.chat-box li.left .chat-body {
margin-left: 90px;
}
.chat-box li .chat-body p {
margin: 0;
color: #8d8888;
}
.chat-img>img {
margin-left:20px;
}
/*==============================================
MENU STYLES
=============================================*/
.user-image {
margin: 25px auto;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
max-height:170px;
max-width:170px;
}
.navbar-cls-top .navbar-brand {
color: #fff;
background: #C90000;
width: 260px;
text-align: center;
height: 60px;
font-size: 30px;
font-weight: 700;
}
.active-menu {
background-color:#C90000!important;
}
.arrow {
float: right;
}
.fa.arrow:before {
content: "\f104";
}
.active > a > .fa.arrow:before {
content: "\f107";
}
.nav-second-level li,
.nav-third-level li {
border-bottom: none !important;
}
.nav-second-level li a {
padding-left: 37px;
}
.nav-third-level li a {
padding-left: 55px;
}
.sidebar-collapse , .sidebar-collapse .nav{
background:none;
}
.sidebar-collapse .nav {
padding:0;
}
.sidebar-collapse .nav > li > a {
color:#fff;
background:#202020;
text-shadow:none;
}
.sidebar-collapse > .nav > li > a {
padding:15px 10px;
}
.sidebar-collapse > .nav > li {
border-bottom: 1px solid rgba(107, 108, 109, 0.19);
}
.sidebar-collapse .nav > li > a:hover,
.sidebar-collapse .nav > li > a:focus {
background:#0A0A0A;
outline:0;
}
.nav-second-level > li > a:before ,
.nav-third-level > li > a:before {
content:"";
display:block;
position:absolute;
left:20px;
width:15px;
height:1px;
background:#ff0000;
top:20px;
}
.nav-second-level > li > a:after,
.nav-third-level > li > a:after {
content:"";
display:block;
position:absolute;
left:20px;
width:1px;
height:100%;
background:#ff0000;
top:0px;
z-index:10;
}
.nav-second-level > li:last-child > a:after,
.nav-third-level > li:last-child > a:after {
height:50%;
}
.nav-third-level > li > a:after,
.nav-third-level > li > a:before {
left:40px;
}
.navbar-side {
border:none;
background-color: #202020;
}
.navbar-cls-top {
background:#4D4D4D;
border-bottom:none;
}
.navbar-cls-top .navbar-brand:hover {
background: #C90000;
color:#fff;
}
.navbar-default {
border:0px solid black;
}
.navbar-header {
background: #A70303;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
background-color: #B40101;
}
.navbar-default .navbar-toggle {
border-color: #fff;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #FFF;
}
.nav > li > a > i {
margin-right:10px;
}
/*==============================================
UI ELEMENTS STYLES
=============================================*/
.btn-circle {
width: 50px;
height: 50px;
padding: 6px 0;
-webkit-border-radius: 25px;
-moz-border-radius: 25px;
border-radius: 25px;
text-align: center;
font-size: 12px;
line-height: 1.428571429;
}
/*==============================================
MEDIA QUERIES
=============================================*/
@media(min-width:768px) {
#page-wrapper{
margin: 0 0 0 260px;
padding: 15px 30px;
min-height: 1200px;
}
.navbar-side {
z-index: 1;
position: absolute;
width: 260px;
}
.navbar {
border-radius: 0px;
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
/*=============================================================
Authour URI: www.binarycart.com
License: Commons Attribution 3.0
http://creativecommons.org/licenses/by/3.0/
100% To use For Personal And Commercial Use.
IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US
======================================================== */
(function ($) {
"use strict";
var mainApp = {
main_fun: function () {
/*====================================
METIS MENU
======================================*/
$('#main-menu').metisMenu();
/*====================================
LOAD APPROPRIATE MENU BAR
======================================*/
$(window).bind("load resize", function () {
if ($(this).width() < 768) {
$('div.sidebar-collapse').addClass('collapse')
} else {
$('div.sidebar-collapse').removeClass('collapse')
}
});
/*====================================
MORRIS BAR CHART
======================================*/
Morris.Bar({
element: 'morris-bar-chart',
data: [{
y: '2006',
a: 100,
b: 90
}, {
y: '2007',
a: 75,
b: 65
}, {
y: '2008',
a: 50,
b: 40
}, {
y: '2009',
a: 75,
b: 65
}, {
y: '2010',
a: 50,
b: 40
}, {
y: '2011',
a: 75,
b: 65
}, {
y: '2012',
a: 100,
b: 90
}],
xkey: 'y',
ykeys: ['a', 'b'],
labels: ['Series A', 'Series B'],
hideHover: 'auto',
resize: true
});
/*====================================
MORRIS DONUT CHART
======================================*/
Morris.Donut({
element: 'morris-donut-chart',
data: [{
label: "Download Sales",
value: 12
}, {
label: "In-Store Sales",
value: 30
}, {
label: "Mail-Order Sales",
value: 20
}],
resize: true
});
/*====================================
MORRIS AREA CHART
======================================*/
Morris.Area({
element: 'morris-area-chart',
data: [{
period: '2010 Q1',
iphone: 2666,
ipad: null,
itouch: 2647
}, {
period: '2010 Q2',
iphone: 2778,
ipad: 2294,
itouch: 2441
}, {
period: '2010 Q3',
iphone: 4912,
ipad: 1969,
itouch: 2501
}, {
period: '2010 Q4',
iphone: 3767,
ipad: 3597,
itouch: 5689
}, {
period: '2011 Q1',
iphone: 6810,
ipad: 1914,
itouch: 2293
}, {
period: '2011 Q2',
iphone: 5670,
ipad: 4293,
itouch: 1881
}, {
period: '2011 Q3',
iphone: 4820,
ipad: 3795,
itouch: 1588
}, {
period: '2011 Q4',
iphone: 15073,
ipad: 5967,
itouch: 5175
}, {
period: '2012 Q1',
iphone: 10687,
ipad: 4460,
itouch: 2028
}, {
period: '2012 Q2',
iphone: 8432,
ipad: 5713,
itouch: 1791
}],
xkey: 'period',
ykeys: ['iphone', 'ipad', 'itouch'],
labels: ['iPhone', 'iPad', 'iPod Touch'],
pointSize: 2,
hideHover: 'auto',
resize: true
});
/*====================================
MORRIS LINE CHART
======================================*/
Morris.Line({
element: 'morris-line-chart',
data: [{
y: '2006',
a: 100,
b: 90
}, {
y: '2007',
a: 75,
b: 65
}, {
y: '2008',
a: 50,
b: 40
}, {
y: '2009',
a: 75,
b: 65
}, {
y: '2010',
a: 50,
b: 40
}, {
y: '2011',
a: 75,
b: 65
}, {
y: '2012',
a: 100,
b: 90
}],
xkey: 'y',
ykeys: ['a', 'b'],
labels: ['Series A', 'Series B'],
hideHover: 'auto',
resize: true
});
},
initialization: function () {
mainApp.main_fun();
}
}
// Initializing ///
$(document).ready(function () {
mainApp.main_fun();
});
}(jQuery));
div.dataTables_length label {
float: left;
text-align: left;
font-weight: normal;
}
div.dataTables_length select {
width: 75px;
}
div.dataTables_filter label {
float: right;
font-weight: normal;
}
div.dataTables_filter input {
width: 16em;
}
div.dataTables_info {
padding-top: 8px;
}
div.dataTables_paginate {
float: right;
margin: 0;
}
div.dataTables_paginate ul.pagination {
margin: 2px 0;
white-space: nowrap;
}
table.dataTable,
table.dataTable td,
table.dataTable th {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
table.dataTable {
clear: both;
margin-top: 6px !important;
margin-bottom: 6px !important;
max-width: none !important;
}
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
cursor: pointer;
}
table.dataTable thead .sorting {
background: url('../images/sort_both.png') no-repeat center right;
}
table.dataTable thead .sorting_asc {
background: url('../images/sort_asc.png') no-repeat center right;
}
table.dataTable thead .sorting_desc {
background: url('../images/sort_desc.png') no-repeat center right;
}
table.dataTable thead .sorting_asc_disabled {
background: url('../images/sort_asc_disabled.png') no-repeat center right;
}
table.dataTable thead .sorting_desc_disabled {
background: url('../images/sort_desc_disabled.png') no-repeat center right;
}
table.dataTable th:active {
outline: none;
}
/* Scrolling */
div.dataTables_scrollHead table {
margin-bottom: 0 !important;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
div.dataTables_scrollHead table thead tr:last-child th:first-child,
div.dataTables_scrollHead table thead tr:last-child td:first-child {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
div.dataTables_scrollBody table {
margin-top: 0 !important;
margin-bottom: 0 !important;
border-top: none;
}
div.dataTables_scrollBody tbody tr:first-child th,
div.dataTables_scrollBody tbody tr:first-child td {
border-top: none;
}
div.dataTables_scrollFoot table {
margin-top: 0 !important;
border-top: none;
}
/*
* TableTools styles
*/
.table tbody tr.active td,
.table tbody tr.active th {
color: white;
background-color: #08C;
}
.table tbody tr.active:hover td,
.table tbody tr.active:hover th {
background-color: #0075b0 !important;
}
.table tbody tr.active a {
color: white;
}
.table-striped tbody tr.active:nth-child(odd) td,
.table-striped tbody tr.active:nth-child(odd) th {
background-color: #017ebc;
}
table.DTTT_selectable tbody tr {
cursor: pointer;
}
div.DTTT .btn {
font-size: 12px;
color: #333 !important;
}
div.DTTT .btn:hover {
text-decoration: none !important;
}
ul.DTTT_dropdown.dropdown-menu {
z-index: 2003;
}
ul.DTTT_dropdown.dropdown-menu a {
color: #333 !important; /* needed only when demo_page.css is included */
}
ul.DTTT_dropdown.dropdown-menu li {
position: relative;
}
ul.DTTT_dropdown.dropdown-menu li:hover a {
color: white !important;
background-color: #0088cc;
}
div.DTTT_collection_background {
z-index: 2002;
}
/* TableTools information display */
div.DTTT_print_info.modal {
height: 150px;
margin-top: -75px;
text-align: center;
}
div.DTTT_print_info h6 {
margin: 1em;
font-size: 28px;
font-weight: normal;
line-height: 28px;
}
div.DTTT_print_info p {
font-size: 14px;
line-height: 20px;
}
/*
* FixedColumns styles
*/
div.DTFC_LeftHeadWrapper table,
div.DTFC_LeftFootWrapper table,
div.DTFC_RightHeadWrapper table,
div.DTFC_RightFootWrapper table,
table.DTFC_Cloned tr.even {
background-color: white;
}
div.DTFC_RightHeadWrapper table,
div.DTFC_LeftHeadWrapper table {
margin-bottom: 0 !important;
border-top-right-radius: 0 !important;
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
div.DTFC_RightHeadWrapper table thead tr:last-child th:first-child,
div.DTFC_RightHeadWrapper table thead tr:last-child td:first-child,
div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child,
div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
div.DTFC_RightBodyWrapper table,
div.DTFC_LeftBodyWrapper table {
margin-bottom: 0 !important;
border-top: none;
}
div.DTFC_RightBodyWrapper tbody tr:first-child th,
div.DTFC_RightBodyWrapper tbody tr:first-child td,
div.DTFC_LeftBodyWrapper tbody tr:first-child th,
div.DTFC_LeftBodyWrapper tbody tr:first-child td {
border-top: none;
}
div.DTFC_RightFootWrapper table,
div.DTFC_LeftFootWrapper table {
border-top: none;
}
\ No newline at end of file
/* Set the defaults for DataTables initialisation */
$.extend(true, $.fn.dataTable.defaults, {
"sDom": "<'row'<'col-sm-6'l><'col-sm-6'f>r>" + "t" + "<'row'<'col-sm-6'i><'col-sm-6'p>>",
"oLanguage": {
"sLengthMenu": "_MENU_ records per page"
}
});
/* Default class modification */
$.extend($.fn.dataTableExt.oStdClasses, {
"sWrapper": "dataTables_wrapper form-inline",
"sFilterInput": "form-control input-sm",
"sLengthSelect": "form-control input-sm"
});
// In 1.10 we use the pagination renderers to draw the Bootstrap paging,
// rather than custom plug-in
if ($.fn.dataTable.Api) {
$.fn.dataTable.defaults.renderer = 'bootstrap';
$.fn.dataTable.ext.renderer.pageButton.bootstrap = function(settings, host, idx, buttons, page, pages) {
var api = new $.fn.dataTable.Api(settings);
var classes = settings.oClasses;
var lang = settings.oLanguage.oPaginate;
var btnDisplay, btnClass;
var attach = function(container, buttons) {
var i, ien, node, button;
var clickHandler = function(e) {
e.preventDefault();
if (e.data.action !== 'ellipsis') {
api.page(e.data.action).draw(false);
}
};
for (i = 0, ien = buttons.length; i < ien; i++) {
button = buttons[i];
if ($.isArray(button)) {
attach(container, button);
} else {
btnDisplay = '';
btnClass = '';
switch (button) {
case 'ellipsis':
btnDisplay = '&hellip;';
btnClass = 'disabled';
break;
case 'first':
btnDisplay = lang.sFirst;
btnClass = button + (page > 0 ?
'' : ' disabled');
break;
case 'previous':
btnDisplay = lang.sPrevious;
btnClass = button + (page > 0 ?
'' : ' disabled');
break;
case 'next':
btnDisplay = lang.sNext;
btnClass = button + (page < pages - 1 ?
'' : ' disabled');
break;
case 'last':
btnDisplay = lang.sLast;
btnClass = button + (page < pages - 1 ?
'' : ' disabled');
break;
default:
btnDisplay = button + 1;
btnClass = page === button ?
'active' : '';
break;
}
if (btnDisplay) {
node = $('<li>', {
'class': classes.sPageButton + ' ' + btnClass,
'aria-controls': settings.sTableId,
'tabindex': settings.iTabIndex,
'id': idx === 0 && typeof button === 'string' ? settings.sTableId + '_' + button : null
})
.append($('<a>', {
'href': '#'
})
.html(btnDisplay)
)
.appendTo(container);
settings.oApi._fnBindAction(
node, {
action: button
}, clickHandler
);
}
}
}
};
attach(
$(host).empty().html('<ul class="pagination"/>').children('ul'),
buttons
);
}
} else {
// Integration for 1.9-
$.fn.dataTable.defaults.sPaginationType = 'bootstrap';
/* API method to get paging information */
$.fn.dataTableExt.oApi.fnPagingInfo = function(oSettings) {
return {
"iStart": oSettings._iDisplayStart,
"iEnd": oSettings.fnDisplayEnd(),
"iLength": oSettings._iDisplayLength,
"iTotal": oSettings.fnRecordsTotal(),
"iFilteredTotal": oSettings.fnRecordsDisplay(),
"iPage": oSettings._iDisplayLength === -1 ? 0 : Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength),
"iTotalPages": oSettings._iDisplayLength === -1 ? 0 : Math.ceil(oSettings.fnRecordsDisplay() / oSettings._iDisplayLength)
};
};
/* Bootstrap style pagination control */
$.extend($.fn.dataTableExt.oPagination, {
"bootstrap": {
"fnInit": function(oSettings, nPaging, fnDraw) {
var oLang = oSettings.oLanguage.oPaginate;
var fnClickHandler = function(e) {
e.preventDefault();
if (oSettings.oApi._fnPageChange(oSettings, e.data.action)) {
fnDraw(oSettings);
}
};
$(nPaging).append(
'<ul class="pagination">' +
'<li class="prev disabled"><a href="#">&larr; ' + oLang.sPrevious + '</a></li>' +
'<li class="next disabled"><a href="#">' + oLang.sNext + ' &rarr; </a></li>' +
'</ul>'
);
var els = $('a', nPaging);
$(els[0]).bind('click.DT', {
action: "previous"
}, fnClickHandler);
$(els[1]).bind('click.DT', {
action: "next"
}, fnClickHandler);
},
"fnUpdate": function(oSettings, fnDraw) {
var iListLength = 5;
var oPaging = oSettings.oInstance.fnPagingInfo();
var an = oSettings.aanFeatures.p;
var i, ien, j, sClass, iStart, iEnd, iHalf = Math.floor(iListLength / 2);
if (oPaging.iTotalPages < iListLength) {
iStart = 1;
iEnd = oPaging.iTotalPages;
} else if (oPaging.iPage <= iHalf) {
iStart = 1;
iEnd = iListLength;
} else if (oPaging.iPage >= (oPaging.iTotalPages - iHalf)) {
iStart = oPaging.iTotalPages - iListLength + 1;
iEnd = oPaging.iTotalPages;
} else {
iStart = oPaging.iPage - iHalf + 1;
iEnd = iStart + iListLength - 1;
}
for (i = 0, ien = an.length; i < ien; i++) {
// Remove the middle elements
$('li:gt(0)', an[i]).filter(':not(:last)').remove();
// Add the new list items and their event handlers
for (j = iStart; j <= iEnd; j++) {
sClass = (j == oPaging.iPage + 1) ? 'class="active"' : '';
$('<li ' + sClass + '><a href="#">' + j + '</a></li>')
.insertBefore($('li:last', an[i])[0])
.bind('click', function(e) {
e.preventDefault();
oSettings._iDisplayStart = (parseInt($('a', this).text(), 10) - 1) * oPaging.iLength;
fnDraw(oSettings);
});
}
// Add / remove disabled classes from the static elements
if (oPaging.iPage === 0) {
$('li:first', an[i]).addClass('disabled');
} else {
$('li:first', an[i]).removeClass('disabled');
}
if (oPaging.iPage === oPaging.iTotalPages - 1 || oPaging.iTotalPages === 0) {
$('li:last', an[i]).addClass('disabled');
} else {
$('li:last', an[i]).removeClass('disabled');
}
}
}
}
});
}
/*
* TableTools Bootstrap compatibility
* Required TableTools 2.1+
*/
if ($.fn.DataTable.TableTools) {
// Set the classes that TableTools uses to something suitable for Bootstrap
$.extend(true, $.fn.DataTable.TableTools.classes, {
"container": "DTTT btn-group",
"buttons": {
"normal": "btn btn-default",
"disabled": "disabled"
},
"collection": {
"container": "DTTT_dropdown dropdown-menu",
"buttons": {
"normal": "",
"disabled": "disabled"
}
},
"print": {
"info": "DTTT_print_info modal"
},
"select": {
"row": "active"
}
});
// Have the collection use a bootstrap compatible dropdown
$.extend(true, $.fn.DataTable.TableTools.DEFAULTS.oTags, {
"collection": {
"container": "ul",
"button": "li",
"liner": "a"
}
});
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
;(function ($, window, document, undefined) {
var pluginName = "metisMenu",
defaults = {
toggle: true
};
function Plugin(element, options) {
this.element = element;
this.settings = $.extend({}, defaults, options);
this._defaults = defaults;
this._name = pluginName;
this.init();
}
Plugin.prototype = {
init: function () {
var $this = $(this.element),
$toggle = this.settings.toggle;
$this.find('li.active').has('ul').children('ul').addClass('collapse in');
$this.find('li').not('.active').has('ul').children('ul').addClass('collapse');
$this.find('li').has('ul').children('a').on('click', function (e) {
e.preventDefault();
$(this).parent('li').toggleClass('active').children('ul').collapse('toggle');
if ($toggle) {
$(this).parent('li').siblings().removeClass('active').children('ul.in').collapse('hide');
}
});
}
};
$.fn[ pluginName ] = function (options) {
return this.each(function () {
if (!$.data(this, "plugin_" + pluginName)) {
$.data(this, "plugin_" + pluginName, new Plugin(this, options));
}
});
};
})(jQuery, window, document);
.morris-hover{position:absolute;z-index:1000;}.morris-hover.morris-default-style{border-radius:10px;padding:6px;color:#666;background:rgba(255, 255, 255, 0.8);border:solid 2px rgba(230, 230, 230, 0.8);font-family:sans-serif;font-size:12px;text-align:center;}.morris-hover.morris-default-style .morris-hover-row-label{font-weight:bold;margin:0.25em 0;}
.morris-hover.morris-default-style .morris-hover-point{white-space:nowrap;margin:0.1em 0;}
\ No newline at end of file
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Free Bootstrap Admin Template : Binary Admin</title>
<!-- BOOTSTRAP STYLES-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONTAWESOME STYLES-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLES-->
<link href="assets/css/custom.css" rel="stylesheet" />
<!-- GOOGLE FONTS-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
</head>
<body>
<div id="wrapper">
<nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Binary admin</a>
</div>
<div style="color: white;
padding: 15px 50px 5px 50px;
float: right;
font-size: 16px;"> Last access : 30 May 2014 &nbsp; <a href="#" class="btn btn-danger square-btn-adjust">Logout</a> </div>
</nav>
<!-- /. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">
<li class="text-center">
<img src="assets/img/find_user.png" class="user-image img-responsive"/>
</li>
<li>
<a href="index.html"><i class="fa fa-dashboard fa-3x"></i> Dashboard</a>
</li>
<li>
<a href="ui.html"><i class="fa fa-desktop fa-3x"></i> UI Elements</a>
</li>
<li>
<a href="tab-panel.html"><i class="fa fa-qrcode fa-3x"></i> Tabs & Panels</a>
</li>
<li >
<a href="chart.html"><i class="fa fa-bar-chart-o fa-3x"></i> Morris Charts</a>
</li>
<li >
<a href="table.html"><i class="fa fa-table fa-3x"></i> Table Examples</a>
</li>
<li >
<a href="form.html"><i class="fa fa-edit fa-3x"></i> Forms </a>
</li>
<li>
<a href="#"><i class="fa fa-sitemap fa-3x"></i> Multi-Level Dropdown<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li>
<a href="#">Second Level Link</a>
</li>
<li>
<a href="#">Second Level Link</a>
</li>
<li>
<a href="#">Second Level Link<span class="fa arrow"></span></a>
<ul class="nav nav-third-level">
<li>
<a href="#">Third Level Link</a>
</li>
<li>
<a href="#">Third Level Link</a>
</li>
<li>
<a href="#">Third Level Link</a>
</li>
</ul>
</li>
</ul>
</li>
<li >
<a class="active-menu" href="blank.html"><i class="fa fa-square-o fa-3x"></i> Blank Page</a>
</li>
</ul>
</div>
</nav>
<!-- /. NAV SIDE -->
<div id="page-wrapper" >
<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h2>Blank Page</h2>
<h5>Welcome Jhon Deo , Love to see you back. </h5>
</div>
</div>
<!-- /. ROW -->
<hr />
</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
</div>
<!-- /. WRAPPER -->
<!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
<!-- JQUERY SCRIPTS -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- METISMENU SCRIPTS -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>
</body>
</html>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Free Bootstrap Admin Template : Binary Admin</title>
<!-- BOOTSTRAP STYLES-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONTAWESOME STYLES-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- MORRIS CHART STYLES-->
<link href="assets/js/morris/morris-0.4.3.min.css" rel="stylesheet" />
<!-- CUSTOM STYLES-->
<link href="assets/css/custom.css" rel="stylesheet" />
<!-- GOOGLE FONTS-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
</head>
<body>
<div id="wrapper">
<nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Binary admin</a>
</div>
<div style="color: white;
padding: 15px 50px 5px 50px;
float: right;
font-size: 16px;"> Last access : 30 May 2014 &nbsp; <a href="#" class="btn btn-danger square-btn-adjust">Logout</a> </div>
</nav>
<!-- /. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">
<li class="text-center">
<img src="assets/img/find_user.png" class="user-image img-responsive"/>
</li>
<li>
<a href="index.html"><i class="fa fa-dashboard fa-3x"></i> Dashboard</a>
</li>
<li>
<a href="ui.html"><i class="fa fa-desktop fa-3x"></i> UI Elements</a>
</li>
<li>
<a href="tab-panel.html"><i class="fa fa-qrcode fa-3x"></i> Tabs & Panels</a>
</li>
<li >
<a class="active-menu" href="chart.html"><i class="fa fa-bar-chart-o fa-3x"></i> Morris Charts</a>
</li>
<li >
<a href="table.html"><i class="fa fa-table fa-3x"></i> Table Examples</a>
</li>
<li >
<a href="form.html"><i class="fa fa-edit fa-3x"></i> Forms </a>
</li>
<li>
<a href="#"><i class="fa fa-sitemap fa-3x"></i> Multi-Level Dropdown<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li>
<a href="#">Second Level Link</a>
</li>
<li>
<a href="#">Second Level Link</a>
</li>
<li>
<a href="#">Second Level Link<span class="fa arrow"></span></a>
<ul class="nav nav-third-level">
<li>
<a href="#">Third Level Link</a>
</li>
<li>
<a href="#">Third Level Link</a>
</li>
<li>
<a href="#">Third Level Link</a>
</li>
</ul>
</li>
</ul>
</li>
<li >
<a href="blank.html"><i class="fa fa-square-o fa-3x"></i> Blank Page</a>
</li>
</ul>
</div>
</nav>
<!-- /. NAV SIDE -->
<div id="page-wrapper" >
<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h2>Morris Charts</h2>
<h5>Welcome Jhon Deo , Love to see you back. </h5>
</div>
</div>
<!-- /. ROW -->
<hr />
<div class="row">
<div class="col-md-6 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
Bar Chart Example
</div>
<div class="panel-body">
<div id="morris-bar-chart"></div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
Area Chart Example
</div>
<div class="panel-body">
<div id="morris-area-chart"></div>
</div>
</div>
</div>
</div>
<!-- /. ROW -->
<div class="row">
<div class="col-md-6 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
Donut Chart Example
</div>
<div class="panel-body">
<div id="morris-donut-chart"></div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
Line Chart Example
</div>
<div class="panel-body">
<div id="morris-line-chart"></div>
</div>
</div>
</div>
</div>
<!-- /. ROW -->
</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
</div>
<!-- /. WRAPPER -->
<!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
<!-- JQUERY SCRIPTS -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- METISMENU SCRIPTS -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- MORRIS CHART SCRIPTS -->
<script src="assets/js/morris/raphael-2.1.0.min.js"></script>
<script src="assets/js/morris/morris.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>
</body>
</html>
<h3>Kuisioner</h3>
<table class="table table-bordered">
<thead>
<tr>
<th>No</th>
<th>Nama Kuisioner</th>
<th>Tempat Kegiatan</th>
<!-- <th>Aksi</th> -->
</tr>
</thead>
<tbody>
<?php $nomor=1; ?>
<?php $ambil=$koneksi->query("SELECT * FROM kegiatan"); ?>
<?php while($pecah = $ambil->fetch_assoc()){ ?>
<tr>
<td><?php echo $nomor; ?></td>
<td><a href=<?= '"index.php?halaman=kuisioner&id='.$pecah['kegiatan_id'] . '"'; ?>><?php echo $pecah['nama_kegiatan']; ?></td></a>
<td><?php echo $pecah['tempat_kegiatan']; ?></td>
<!-- <td>
<a href="index.php?halaman=hapusmahasiswa&id=<?php echo $pecah['mahasiswa_id']; ?>" class="btn-danger btn">Hapus</a>
<a href="index.php?halaman=ubahmahasiswa&id=<?php echo $pecah['mahasiswa_id']; ?>" class="btn btn-warning">Ubah</a>
</td> -->
</tr>
<?php $nomor++; ?>
<?php } ?>
</tbody>
</table>
<a href="index.php?halaman=tambahmahasiswa" class="btn btn-primary">Tambah Mahasiswa</a>
\ No newline at end of file
<h2>Detail Kuisioner</h2>
<?php
session_start();
//mendapatkan id_userdari url
$kegiatan_id = $_GET["id"];
//mengambil data kuisioner berdasarkan id_user
$ambil = $koneksi->query("SELECT * FROM kuisioner WHERE bph_id ='$bph_id' ");
$detail = $ambil->fetch_assoc();
?>
<h2><center>Detail Pembelian <?php echo $detail['nama_pelanggan']; ?></center></h2> <br>
This diff is collapsed. Click to expand it.
<?php
$ambil = $koneksi->query("SELECT * FROM diskusi WHERE id_diskusi='$_GET[id]'");
$pecah = $ambil->fetch_assoc();
$koneksi->query("DELETE FROM diskusi WHERE id_diskusi='$_GET[id]'");
echo "<script>alert('Diskusi sudah dihapus');</script>";
echo "<script>location='index.php?halaman=diskusi';</script>";
?>
\ No newline at end of file
<?php
$ambil = $koneksi->query("SELECT * FROM kegiatan WHERE kegiatan_id='$_GET[id]'");
$pecah = $ambil->fetch_assoc();
$foto_kegiatan = $pecah['foto_kegiatan'];
if (file_exists("../foto_kegiatan/$fotokegiatan"))
{
unlink("../foto_kegiatan/$fotokegiatan");
}
$koneksi->query("DELETE FROM kegiatan WHERE kegiatan_id ='$_GET[id]'");
echo "<script>alert('kegiatan sudah dihapus');</script>";
echo "<script>location='index.php?halaman=kegiatan';</script>";
?>
\ No newline at end of file
<?php
$ambil = $koneksi->query("SELECT * FROM kuisioner WHERE id_kuisioner='$_GET[id]'");
$pecah = $ambil->fetch_assoc();
$koneksi->query("DELETE FROM kuisioner WHERE id_kuisioner='$_GET[id]'");
echo "<script>alert('kuisioner sudah dihapus');</script>";
echo "<script>location='index.php?halaman=kuisioner';</script>";
?>
\ No newline at end of file
<?php
$ambil = $koneksi->query("SELECT * FROM pengumuman WHERE pengumuman_id ='$_GET[id]'");
$pecah = $ambil->fetch_assoc();
$koneksi->query("DELETE FROM pengumuman WHERE pengumuman_id ='$_GET[id]'");
echo "<script>alert('pengumuman sudah dihapus');</script>";
echo "<script>location='index.php?halaman=pengumuman';</script>";
?>
\ No newline at end of file
<?php
$ambil = $koneksi->query("SELECT * FROM periode WHERE periode_id ='$_GET[id]'");
$pecah = $ambil->fetch_assoc();
$koneksi->query("DELETE FROM periode WHERE periode_id ='$_GET[id]'");
echo "<script>alert('periode sudah dihapus');</script>";
echo "<script>location='index.php?halaman=periode';</script>";
?>
\ No newline at end of file
<h2>Selamat Datang Admin Himatif</h2>
<pre><?php print_r($_SESSION); ?></pre>
\ No newline at end of file
This diff is collapsed. Click to expand it.
<h2>Acara Kegiatan Himatif</h2>
<table class="table table-bordered">
<thead>
<tr>
<th>no</th>
<th>Nama</th>
<th>Waktu</th>
<th>tempat</th>
<th>deskripsi</th>
<th>Foto</th>
<th>aksi</th>
</tr>
</thead>
<tbody>
<?php $nomor=1; ?>
<?php $ambil=$koneksi->query("SELECT * FROM kegiatan"); ?>
<?php while($pecah = $ambil->fetch_assoc()){ ?>
<tr>
<td><?php echo $nomor; ?></td>
<td><?php echo $pecah['nama_kegiatan']; ?></td>
<td><?php echo $pecah['waktu_kegiatan']; ?></td>
<td><?php echo $pecah['tempat_kegiatan']; ?></td>
<td><?php echo $pecah['deskripsi_kegiatan']; ?></td>
<td>
<img src="../foto_kegiatan/<?php echo $pecah['foto_kegiatan']; ?>" width="100">
</td>
<td>
<a href="index.php?halaman=hapuskegiatan&id=<?php echo $pecah['kegiatan_id']; ?>" class="btn-danger btn">Hapus</a>
<a href="index.php?halaman=ubahkegiatan&id=<?php echo $pecah['kegiatan_id']; ?>" class="btn btn-warning">Ubah</a>
</td>
</tr>
<?php $nomor++; ?>
<?php } ?>
</tbody>
</table>
<a href="index.php?halaman=tambahkegiatan" class="btn btn-primary">Tambah Kegiatan</a>
\ No newline at end of file
<?php
$koneksi = new mysqli("localhost","root","","himatif1");
?>
\ No newline at end of file
<h2>Kuisioner Himatif</h2>
<table class="table table-bordered">
<thead>
<tr>
<th>no</th>
<th>judul Kuisioner</th>
<th>Keterangan Kuisioner</th>
<th>intruksi Kuisioner</th>
<th>Tanggal View</th>
<th>Tanggal Berakhir</th>
<th>aksi</th>
</tr>
</thead>
<tbody>
<?php $nomor=1; ?>
<?php $ambil=$koneksi->query("SELECT * FROM kuisioner"); ?>
<?php while($pecah = $ambil->fetch_assoc()){ ?>
<tr>
<td><?php echo $nomor; ?></td>
<td><a href=<?= '"index.php?halaman=detailkuisioner&id=' . $pecah['kuisioner_id'] . '"'; ?>><?php echo $pecah['judul_kuisioner']; ?></td></a>
<td><?php echo $pecah['keterangan_kuisioner']; ?></td>
<td><?php echo $pecah['intruksi_kuisioner']; ?></td>
<td><?php echo $pecah['tanggal_view']; ?></td>
<td><?php echo $pecah['tanggal_berakhir']; ?></td>
<td>
<a href="index.php?halaman=hapuskuisioner&id=<?php echo $pecah['id_kuisioner']; ?>" class="btn-danger btn">Hapus</a>
<a href="index.php?halaman=ubahkuisioner&id=<?php echo $pecah['id_kuisioner']; ?>" class="btn btn-warning">Ubah</a>
</td>
</tr>
<?php $nomor++; ?>
<?php } ?>
</tbody>
</table>
<a href="index.php?halaman=tambahkuisioner" class="btn btn-primary">Tambah Kuisioner</a>
\ No newline at end of file
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Free Bootstrap Admin Template : Binary Admin</title>
<!-- BOOTSTRAP STYLES-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONTAWESOME STYLES-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLES-->
<link href="assets/css/custom.css" rel="stylesheet" />
<!-- GOOGLE FONTS-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
</head>
<body>
<div class="container">
<div class="row text-center ">
<div class="col-md-12">
<br /><br />
<h2> H I M A T I F: Login</h2>
<h5>Masuk Admin</h5>
<br />
</div>
</div>
<div class="row ">
<div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1">
<div class="panel panel-default">
<div class="panel-heading">
<center><strong>LOGIN</strong></center>
</div>
<div class="panel-body">
<form role="form" method="post" action="proses/login.php">
<br />
<div class="form-group input-group">
<span class="input-group-addon"><i class="fa fa-tag" ></i></span>
<input type="text" class="form-control" name="user" />
</div>
<div class="form-group input-group">
<span class="input-group-addon"><i class="fa fa-lock" ></i></span>
<input type="password" class="form-control" name="pass" />
</div>
<div class="form-group">
<label class="checkbox-inline">
<input type="checkbox" /> Remember me
</label>
<!-- <span class="pull-right">
<a href="#" >Forget password ? </a>
</span> -->
</div>
<button class="btn btn-primary" name="login">Login</button>
<hr />
</form>
</div>
</div>
</div>
</div>
</div>
<!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
<!-- JQUERY SCRIPTS -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- METISMENU SCRIPTS -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>
</body>
</html>
<?php
session_destroy();
echo "<script>alert('anda telah logout');</script>";
echo "<script>location='login.php'</script>";
?>
\ No newline at end of file
<h2>Mahasiswa Himatif</h2>
<table class="table table-bordered">
<thead>
<tr>
<th>No</th>
<th>Username</th>
<th>Password</th>
<th>Nama</th>
<th>Nim</th>
<th>Kelas</th>
<th>Angkatan</th>
<th>Alamat</th>
<th>Email Akademik</th>
<th>Status Mahasiswa</th>
<th>Tempat/Tanggal-Lahir</th>
<th>Role</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<?php $nomor=1; ?>
<?php $ambil=$koneksi->query("SELECT * FROM mahasiswa"); ?>
<?php while($pecah = $ambil->fetch_assoc()){ ?>
<tr>
<td><?php echo $nomor; ?></td>
<td><?php echo $pecah['username']; ?></td>
<td><?php echo $pecah['password']; ?></td>
<td><?php echo $pecah['nama']; ?></td>
<td><?php echo $pecah['nim']; ?></td>
<td><?php echo $pecah['angkatan']; ?></td>
<td><?php echo $pecah['kelas']; ?></td>
<td><?php echo $pecah['alamat']; ?></td>
<td><?php echo $pecah['email_akademik'];?></td>
<td><?php echo $pecah['status_mahasiswa']; ?></td>
<td><?php echo $pecah['tempat_lahir'] ?>,<?php echo $pecah['tanggal_lahir']; ?> </td>
<td><?php echo $pecah['role']; ?></td>
<td>
<a href="index.php?halaman=ubahmahasiswa&id=<?php echo $pecah['mahasiswa_id']; ?>" class="btn btn-warning">Ubah</a>
<a href="index.php?halaman=hapusmahasiswa&id=<?php echo $pecah['mahasiswa_id']; ?>" class="btn-danger btn">Hapus</a>
</td>
</tr>
<?php $nomor++; ?>
<?php } ?>
</tbody>
</table>
<a href="index.php?halaman=tambahmahasiswa" class="btn btn-primary">Tambah Mahasiswa</a>
\ No newline at end of file
<h2>Kelola Pengumuman</h2>
<table class="table table-bordered">
<thead>
<tr>
<th>No</th>
<th>Judul</th>
<th>tanggal</th>
<th>Detail</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<?php $nomor=1; ?>
<?php $ambil=$koneksi->query("SELECT * FROM pengumuman"); ?>
<?php while($pecah = $ambil->fetch_assoc()){ ?>
<tr>
<td><?php echo $nomor; ?></td>
<td><?php echo $pecah['judul_pengumuman']; ?></td>
<td><?php echo $pecah['tanggal_akhir_pengumuman']; ?></td>
<td><?php echo $pecah['detail_pengumuman']; ?></td>
<td>
<a href="index.php?halaman=hapuspengumuman&id=<?php echo $pecah['pengumuman_id']; ?>" class="btn-danger btn">Hapus</a>
<a href="index.php?halaman=ubahpengumuman&id=<?php echo $pecah['pengumuman_id']; ?>" class="btn btn-warning">Ubah</a>
</td>
</tr>
<?php $nomor++; ?>
<?php } ?>
</tbody>
</table>
<a href="index.php?halaman=tambahpengumuman" class="btn btn-primary">Tambah Pengumuman</a>
\ No newline at end of file
<h2>Periode Himatif</h2>
<table class="table table-bordered">
<thead>
<tr>
<th>No</th>
<th>Periode Awal</th>
<th>Periode Akhir</th>
<th>Status</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<?php $nomor=1; ?>
<?php $ambil=$koneksi->query("SELECT * FROM periode"); ?>
<?php while($pecah = $ambil->fetch_assoc()){ ?>
<tr>
<td><?php echo $nomor; ?></td>
<td><?php echo $pecah['periode_awal']; ?></td>
<td><?php echo $pecah['periode_akhir']; ?></td>
<td><?php echo $pecah['status']; ?></td>
<td>
<a href="index.php?halaman=hapusperiode&id=<?php echo $pecah['periode_id']; ?>" class="btn-danger btn">Hapus</a>
<a href="index.php?halaman=ubahperiode&id=<?php echo $pecah['periode_id']; ?>" class="btn btn-warning">Ubah</a>
</td>
</tr>
<?php $nomor++; ?>
<?php } ?>
</tbody>
</table>
<a href="index.php?halaman=tambahperiode" class="btn btn-primary">Tambah Periode</a>
\ No newline at end of file
<?php
session_start();
// skrip koneksi
$koneksi = new mysqli("localhost", "root", "", "himatif1");
if(isset($_POST['login']))
{
$ambil = $koneksi->query("SELECT * FROM mahasiswa WHERE username='$_POST[user]' AND password = '$_POST[pass]' AND role='admin'");
$yangcocok = $ambil->num_rows;
if($yangcocok==1)
{
$_SESSION['mahasiswa']=$ambil->fetch_assoc();
// echo "<div class='alert alert-danger'>Login Sukses</div>";
echo "<meta http-equiv='refresh' content='1;url=../index.php'; >";
}
else{
// echo "<div class='alert alert-danger'>Login Gagal</div>";
echo "<meta http-equiv='refresh' content='1;url=../login.php'; >";
}
}
?>
\ No newline at end of file
<?php
session_start();
// skrip koneksi
$koneksi = new mysqli("localhost", "root", "", "himatif1");
if (isset($_POST['save']))
{
$bphQuery = $koneksi->query("SELECT * FROM bph WHERE mahasiswa_id = " . $_SESSION['mahasiswa']['mahasiswa_id']);
$bph=$bphQuery->fetch_assoc();
$nama = $_FILES['foto']['name'];
$lokasi = $_FILES['foto']['tmp_name'];
move_uploaded_file($lokasi,"../../foto_kegiatan/".$nama);
$koneksi->query("INSERT INTO kegiatan
(nama_kegiatan, waktu_kegiatan, tempat_kegiatan, foto_kegiatan, deskripsi_kegiatan, bph_id, periode_id)
VALUES('$_POST[nama]', '$_POST[waktu]','$_POST[tempat]','$nama','$_POST[deskripsi]' , '$bph[bph_id]', '$bph[periode_id]')");
echo "<div class='alert alert-info'>Data Tersimpan</div>";
echo "<meta http-equiv='refresh' content='1;url=../index.php?halaman=kegiatan'>";
}
?>
<?php
session_start();
// skrip koneksi
$koneksi = new mysqli("localhost", "root", "", "himatif1");
if (isset($_POST['save'])) {
$koneksi->query("INSERT INTO mahasiswa (username,password,nama,nim,kelas,angkatan,alamat,email_akademik,status_mahasiswa,tempat_lahir,tanggal_lahir,role)VALUES('$_POST[user]','$_POST[pass]', '$_POST[nama]','$_POST[nim]','$_POST[kelas]','$_POST[angkatan]','$_POST[alamat]','$_POST[email]','$_POST[status]','$_POST[tempat]','$_POST[tanggal]','$_POST[role]' )");
// echo "<div class='alert alert-info'>Periode berhasil di Tambahkan</div>";
echo "<meta http-equiv='refresh' content='1;url=../index.php?halaman=mahasiswa'>";
}
?>
\ No newline at end of file
<?php
session_start();
$koneksi = new mysqli("localhost", "root", "", "himatif1");
if (isset($_POST['save'])) {
$bphQuery = $koneksi->query("SELECT * FROM bph WHERE mahasiswa_id = " . $_SESSION['mahasiswa']['mahasiswa_id']);
$bph=$bphQuery->fetch_assoc();
$koneksi->query("INSERT INTO pengumuman (judul_pengumuman,tanggal_akhir_pengumuman,detail_pengumuman, bph_id, periode_id)VALUES('$_POST[judul]','$_POST[tanggal]', '$_POST[detail]', '$bph[bph_id]', '$bph[periode_id]' )");
echo "<div class='alert alert-info'>Pengumuman berhasil di Tambahkan</div>";
echo "<meta http-equiv='refresh' content='1;url=../index.php?halaman=pengumuman'>";
}
?>
\ No newline at end of file
<h2>Ubah Kegiatan</h2>
<?php
$koneksi = new mysqli("localhost","root","","himatif1");
$ambil = $koneksi->query("SELECT * FROM kegiatan WHERE kegiatan_id ='$_GET[id_kegiatan]'");
$pecah = $ambil->fetch_assoc();
if (isset($_POST['ubah']))
{
$namafoto= $_FILES['foto']['name'];
$lokasifoto= $_FILES['foto']['tmp_name'];
// jika foto dirubah
if(!empty($lokasifoto))
{
move_uploaded_file($lokasifoto, "../../foto_kegiatan/$namafoto");
$koneksi->query("UPDATE kegiatan SET nama_kegiatan= '$_POST[nama]',
waktu_kegiatan='$_POST[waktu]',tempat_kegiatan='$_POST[tempat]', foto_kegiatan= '$namafoto', deskripsi_kegiatan = '$_POST[deskripsi]' WHERE kegiatan_id = '$_GET[id_kegiatan]'");
}
else
{
$koneksi->query("UPDATE kegiatan SET nama_kegiatan= '$_POST[nama]',
waktu_kegiatan='$_POST[waktu]', tempat_kegiatan='$_POST[tempat]', deskripsi_kegiatan = '$_POST[deskripsi]' WHERE kegiatan_id = '$_GET[id_kegiatan]'");
}
//echo "<script>alert('data kegiatan telah diubah');</script>";
echo "<script>location='../index.php?halaman=kegiatan'</script>";
// var_dump($pecah);
}
?>
\ No newline at end of file
<?php
session_start();
$koneksi = new mysqli("localhost","root","","himatif1");
// var_dump($_GET['id_mahasiswa']);
// die();
$ambil = $koneksi->query("SELECT * FROM mahasiswa WHERE mahasiswa_id ='$_GET[id_mahasiswa]'");
$pecah = $ambil->fetch_assoc();
if (isset($_POST['save'])) {
$koneksi->query("UPDATE mahasiswa SET username= '$_POST[user]',
password ='$_POST[pass]', nama = '$_POST[nama]', nim = '$_POST[nim]', kelas = '$_POST[kelas]', angkatan = '$_POST[angkatan]', alamat = '$_POST[alamat]', email_akademik = '$_POST[email]', status_mahasiswa = '$_POST[status]', tempat_lahir = '$_POST[tempat]', tanggal_lahir = '$_POST[tanggal]', role = '$_POST[role]' WHERE mahasiswa_id = '$_GET[id_mahasiswa]'");
// echo "<div class='alert alert-info'>Pengumuman berhasil dirubah</div>";
echo "<meta http-equiv='refresh' content='1;url=../index.php?halaman=mahasiswa'>";
// var_dump($pecah);
}
?>
<?php
$koneksi = new mysqli("localhost","root","","himatif1");
$ambil = $koneksi->query("SELECT * FROM pengumuman WHERE pengumuman_id ='$_GET[id_pengumuman]'");
$pecah = $ambil->fetch_assoc();
if (isset($_POST['save'])) {
$koneksi->query("UPDATE pengumuman SET judul_pengumuman= '$_POST[judul]',
tanggal_akhir_pengumuman ='$_POST[tanggal]', detail_pengumuman = '$_POST[detail]' WHERE pengumuman_id = '$_GET[id_pengumuman]'");
// echo "<div class='alert alert-info'>Pengumuman berhasil dirubah</div>";
echo "<meta http-equiv='refresh' content='1;url=../index.php?halaman=pengumuman'>";
// var_dump($pecah);
}
?>
\ No newline at end of file
<h2>Tambah Diskusi</h2>
<form method="post" enctype="multipart/form-data">
<!-- <div class="form-group">
<label>
<input type="text" class="form-control" name="nama">
</label>
</div> -->
<div class="form-group">
<label>Nama Diskusi</label>
<input type="text" class="form-control" name="nama">
</div>
<div class="form-group">
<label>Jenis Diskusi</label>
<input type="text" class="form-control" name="jenis">
</div>
<div class="form-group">
<label>Deskripsi diskusi</label>
<textarea class="form-control" name="deskripsi" rows="10"></textarea>
</div>
<button class="btn btn-primary" name="save">Simpan</button>
</form>
<?php
if (isset($_POST['save']))
{
$koneksi->query("INSERT INTO diskusi
(nama_diskusi, jenis_diskusi, deskripsi_diskusi)
VALUES('$_POST[nama]', '$_POST[jenis]','$_POST[deskripsi]' )");
echo "<div class='alert alert-info'>Data Tersimpan</div>";
echo "<meta http-equiv='refresh' content='1;url=index.php?halaman=diskusi'>";
}
?>
\ No newline at end of file
<h2>Silahkan Menambah Kegiatan Himatif</h2>
<form action="proses/tambahkegiatan.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Nama Kegiatan</label>
<input type="text" class="form-control" name="nama">
</div>
<div class="form-group">
<label>Waktu Kegiatan</label>
<input type="date" class="form-control" name="waktu">
</div>
<div class="form-group">
<label>Tempat Kegiatan</label>
<input type="text" class="form-control" name="tempat">
</div>
<div class="form-group">
<label>Deskripsi</label>
<textarea class="form-control" name="deskripsi" rows="10"></textarea>
</div>
<div class="form-group">
<label>Foto Kegiatan</label>
<input type="file" class="form-control" name="foto">
</div>
<button class="btn btn-primary" name="save">Simpan</button>
</form>
<h2>Tambahkan Kuisioner</h2>
<form method="post" enctype="multipart/form-data">
<!-- <div class="form-group">
<label>
<input type="text" class="form-control" name="nama">
</label>
</div> -->
<div class="form-group">
<label>Judul Kuisioner</label>
<input type="text" class="form-control" name="judul">
</div>
<div class="form-group">
<label>Keterangan</label>
<textarea class="form-control" name="keterangan" rows="10"></textarea>
</div>
<div class="form-group">
<label>Intruksi Kuisioner</label>
<textarea class="form-control" name="intruksi" rows="10"></textarea>
</div>
<div class="form-group">
<label>Tanggal View</label>
<input type="date" class="form-control" name="view">
</div>
<div class="form-group">
<label>Tanggal Berakhir</label>
<input type="date" class="form-control" name="berakhir">
</div>
<button class="btn btn-primary" name="save">Simpan</button>
</form>
<?php
if (isset($_POST['save']))
{
$bphQuery = $koneksi->query("SELECT * FROM bph WHERE mahasiswa_id = " . $_SESSION['mahasiswa']['mahasiswa_id']);
$bph=$bphQuery->fetch_assoc();
$koneksi->query("INSERT INTO kuisioner
(judul_kuisioner,keterangan_kuisioner,intruksi_kuisioner,tanggal_view,tanggal_berakhir, bph_id)
VALUES('$_POST[judul]', '$_POST[keterangan]','$_POST[intruksi]','$_POST[view]', '$_POST[berakhir]','$bph[bph_id]' )");
echo "<div class='alert alert-info'>Data Tersimpan</div>";
echo "<meta http-equiv='refresh' content='1;url=index.php?halaman=kuisioner'>";
}
?>
\ No newline at end of file
<h2>Tambah Mahasiswa</h2>
<form action="proses/tambahmahasiswa.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Username</label>
<input type="text" class="form-control" name="user"">
</div>
<div class="form-group">
<label>Password</label>
<input type="text" class="form-control" name="pass">
</div>
<div class="form-group">
<label>Nama</label>
<input type="text" class="form-control" name="nama">
</div>
<div class="form-group">
<label>Nim</label>
<input type="text" class="form-control" name="nim">
</div>
<div class="form-group">
<label>Kelas</label>
<input type="text" class="form-control" name="kelas">
</div>
<div class="form-group">
<label>Angkatan</label>
<input type="text" class="form-control" name="angkatan">
</div>
<div class="form-group">
<label>Alamat</label>
<textarea class="form-control" name="alamat" rows="10"></textarea>
</div>
<div class="form-group">
<label>Email Akademik</label>
<input type="text" class="form-control" name="email">
</div>
<div class="form-group">
<label>Status Mahasiswa</label>
<select class="form-control" name="status">
<option value="">--Pilih Status--</option>
<option value="user">Aktif</option>
<option value="admin">Tidak Aktif</option>
</select>
</div>
<div class="col-md-6">
<label>Tempat Lahir</label>
<input type="text" class="form-control" name="tempat">
</div>
<div class="col-md-6">
<label>Tanggal Lahir</label>
<input type="date" class="form-control" name="tanggal">
</div>
<br></br>
<br>
<br>
<div class="form-group">
<label>Role</label>
<select class="form-control" name="role">
<option value="">--Pilih Role--</option>
<option value="user">User</option>
<option value="admin">Admin</option>
</select>
</div>
<br></br>
<button class="btn btn-primary" name="save">Simpan</button>
</form>
<h2>Tambah Pengumuman</h2>
<br></br>
<form action="proses/tambahpengumuman.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Judul Pengumuman</label>
<input type="text" class="form-control" name="judul"">
</div>
<div class="form-group">
<label>Tanggal Pengumuman</label>
<input type="date" class="form-control" name="tanggal">
</div>
<div class="form-group">
<label>Detail Pengumuman</label>
<textarea name="detail" class="form-control" rows="10">
</textarea>
</div>
<button class="btn btn-primary" name="save">Simpan</button>
</form>
<h2>Tambah Periode</h2>
<form method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Periode Awal</label>
<input type="text" class="form-control" name="awal"">
</div>
<div class="form-group">
<label>Periode Akhir</label>
<input type="text" class="form-control" name="akhir">
</div>
<div class="form-group">
<label>Status</label>
<input type="number" min="1" class="form-control" name="status" max="1">
</div>
<button class="btn btn-primary" name="save">Simpan</button>
</form>
<?php
if (isset($_POST['save'])) {
$koneksi->query("INSERT INTO periode (periode_awal,periode_akhir,status)VALUES('$_POST[awal]',
'$_POST[akhir]', '$_POST[status]' )");
echo "<div class='alert alert-info'>Periode berhasil di Tambahkan</div>";
echo "<meta http-equiv='refresh' content='1;url=index.php?halaman=periode'>";
}
?>
<h2>Uang Kas Himatif</h2>
<table class="table table-bordered">
<thead>
<tr>
<th>no</th>
<th>jumlah</th>
<th>Tanggal dibuat</th>
<th>Tanggal berakhir</th>
<th>Deskripsi</th>
<th>aksi</th>
</tr>
</thead>
<tbody>
<?php $nomor=1; ?>
<?php $ambil=$koneksi->query("SELECT * FROM uang_kas"); ?>
<?php while($pecah = $ambil->fetch_assoc()){ ?>
<tr>
<td><?php echo $nomor; ?></td>
<td><?php echo $pecah['jumlah_bayar']; ?></td>
<td><?php echo $pecah['tanggal_dibuat']; ?></td>
<td><?php echo $pecah['tanggal_berakhir']; ?></td>
<td><?php echo $pecah['deskripsi_pembayaran']; ?></td>
<td>
<a href="" class="btn-danger btn">Hapus</a>
<a href="" class="btn btn-warning">Update</a>
</td>
</tr>
<?php $nomor++; ?>
<?php } ?>
</tbody>
</table>
\ No newline at end of file
<h2>Ubah Diskusi</h2>
<?php
$ambil = $koneksi->query("SELECT * FROM diskusi WHERE id_diskusi='$_GET[id]'");
$pecah = $ambil->fetch_assoc();
// echo "<pre>";
// print_r($pecah);
// echo "<pre>";
?>
<br></br>
<form method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Nama diskusi</label>
<input type="text" class="form-control" name="nama" value="<?php echo $pecah['nama_diskusi']; ?>">
</div>
<div class="form-group">
<label>Jenis diskusi</label>
<input type="text" class="form-control" name="jenis" value="<?php echo $pecah['jenis_diskusi']; ?>">
</div>
<div class="form-group">
<label>Deskripsi diskusi</label>
<textarea name="deskripsi" class="form-control" rows="10">
<?php echo $pecah['deskripsi_diskusi']; ?>
</textarea>
</div>
<button class="btn btn-primary" name="save">Ubah</button>
</form>
<?php
if (isset($_POST['save'])) {
$koneksi->query("UPDATE diskusi SET nama_diskusi= '$_POST[nama]',
jenis_diskusi='$_POST[jenis]', deskripsi_diskusi = '$_POST[deskripsi]' WHERE id_diskusi = '$_GET[id]'");
echo "<div class='alert alert-info'>Data tersimpan</div>";
echo "<meta http-equiv='refresh' content='1;url=index.php?halaman=diskusi'>";
}
?>
\ No newline at end of file
<h2>Ubah Kegiatan</h2>
<?php
$ambil = $koneksi->query("SELECT * FROM kegiatan WHERE kegiatan_id ='$_GET[id]'");
$pecah = $ambil->fetch_assoc();
// echo "<pre>";
// print_r($pecah);
// echo "<pre>";
?>
<br></br>
<form action="proses/ubahkegiatan.php?id_kegiatan=<?php echo $pecah['kegiatan_id']?>" method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Nama kegiatan</label>
<input type="text" class="form-control" name="nama" value="<?php echo $pecah['nama_kegiatan']; ?>">
</div>
<div class="form-group">
<label>Waktu Kegiatan</label>
<input type="date" class="form-control" name="waktu" value="<?php echo $pecah['waktu_kegiatan']; ?>">
</div>
<div class="form-group">
<label>Tempat Kegiatan</label>
<input type="text" class="form-control" name="tempat" value="<?php echo $pecah['tempat_kegiatan']; ?>">
</div>
<div class="form-group">
<label>Deskripsi Porduk</label>
<textarea name="deskripsi" class="form-control" rows="10">
<?php echo $pecah['deskripsi_kegiatan']; ?>
</textarea>
</div>
<div class="form-group">
<img src="../foto_kegiatan/<?php echo $pecah['foto_kegiatan'] ?>" width="200">
</div>
<div class="form-group">
<label>Ganti Foto</label>
<input type="file" name="foto" class="form-control">
</div>
<!-- <div class="form-group">
<label>Stok</label>
<input type="number" class="form-control" name="stok" value="<?php echo $pecah['stok_produk']; ?>">
</div> -->
<button class="btn btn-primary" name="ubah">Ubah</button>
</form>
<h2>Ubah Kuisioner</h2>
<?php
$ambil = $koneksi->query("SELECT * FROM kuisioner WHERE id_kuisioner='$_GET[id]'");
$pecah = $ambil->fetch_assoc();
// echo "<pre>";
// print_r($pecah);
// echo "<pre>";
?>
<br></br>
<form method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Nama kuisioner</label>
<input type="text" class="form-control" name="nama" value="<?php echo $pecah['nama_kuisioner']; ?>">
</div>
<div class="form-group">
<label>Jenis Kuisioner</label>
<input type="text" class="form-control" name="jenis" value="<?php echo $pecah['jenis_kuisioner']; ?>">
</div>
<div class="form-group">
<label>Deskripsi Kuisioner</label>
<textarea name="deskripsi" class="form-control" rows="10">
<?php echo $pecah['deskripsi_kuisioner']; ?>
</textarea>
</div>
<button class="btn btn-primary" name="save">Ubah</button>
</form>
<?php
if (isset($_POST['save'])) {
$koneksi->query("INSERT INTO kuisioner
(nama_kuisioner, jenis_kuisioner, deskripsi_kuisioner)
VALUES('$_POST[nama]', '$_POST[jenis]','$_POST[deskripsi]' )");
echo "<div class='alert alert-info'>Data tersimpan</div>";
echo "<meta http-equiv='refresh' content='1;url=index.php?halaman=kuisioner'>";
}
?>
\ No newline at end of file
<h2>Update Data Mahasiswa</h2>
<?php
$ambil = $koneksi->query("SELECT * FROM mahasiswa WHERE mahasiswa_id ='$_GET[id]'");
$pecah = $ambil->fetch_assoc();
// echo "<pre>";
// print_r($pecah);
// echo "<pre>";
?>
<br></br>
<form action="proses/ubahmahasiswa.php?id_mahasiswa=<?php echo $pecah['mahasiswa_id']?>" method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Username</label>
<input type="text" class="form-control" name="user" value="<?php echo $pecah['username']; ?>">
</div>
<div class="form-group">
<label>Password</label>
<input type="text" class="form-control" name="pass" value="<?php echo $pecah['password']; ?>">
</div>
<div class="form-group">
<label>Nama</label>
<input type="text" class="form-control" name="nama" value="<?php echo $pecah['nama']; ?>">
</div>
<div class="form-group">
<label>Nim</label>
<input type="text" class="form-control" name="nim" value="<?php echo $pecah['nim']; ?>">
</div>
<div class="form-group">
<label>Kelas</label>
<input type="text" class="form-control" name="kelas" value="<?php echo $pecah['kelas']; ?>">
</div>
<div class="form-group">
<label>Angkatan</label>
<input type="text" class="form-control" name="angkatan" value="<?php echo $pecah['angkatan']; ?>">
</div>
<div class="form-group">
<label>Alamat</label>
<textarea class="form-control" name="alamat" rows="10" >
<?php echo $pecah['alamat']; ?>
</textarea>
</div>
<div class="form-group">
<label>Email Akademik</label>
<input type="text" class="form-control" name="email" value="<?php echo $pecah['email_akademik']; ?>">
</div>
<div class="form-group">
<label>Status Mahasiswa</label>
<select class="form-control" name="status">
<option value="">--Pilih Status--</option>
<option value="user">Aktif</option>
<option value="admin">Tidak Aktif</option>
</select>
</div>
<div class="col-md-6">
<label>Tempat Lahir</label>
<input type="text" class="form-control" name="tempat" value="<?php echo $pecah['tempat_lahir']; ?>">
</div>
<div class="col-md-6">
<label>Tanggal Lahir</label>
<input type="date" class="form-control" name="tanggal" value="<?php echo $pecah['tanggal_lahir']; ?>">
</div>
<br></br>
<br>
<br>
<div class="form-group">
<label>Role</label>
<select class="form-control" name="role">
<option value="">--Pilih Role--</option>
<option value="user">User</option>
<option value="admin">Admin</option>
</select>
</div>
<br></br>
<button class="btn btn-primary" name="save">Ubah</button>
</form>
<h2>Update Pengumuman</h2>
<?php
$ambil = $koneksi->query("SELECT * FROM pengumuman WHERE pengumuman_id ='$_GET[id]'");
$pecah = $ambil->fetch_assoc();
// echo "<pre>";
// print_r($pecah);
// echo "<pre>";
?>
<br></br>
<form action="proses/ubahpengumuman.php?id_pengumuman=<?php echo $pecah['pengumuman_id']?>" method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Judul Pengumuman</label>
<input type="text" class="form-control" name="judul" value="<?php echo $pecah['judul_pengumuman']; ?>">
</div>
<div class="form-group">
<label>Tanggal Pengumuman</label>
<input type="text" class="form-control" name="tanggal" value="<?php echo $pecah['tanggal_akhir_pengumuman']; ?>">
</div>
<div class="form-group">
<label>Detail Pengumuman</label>
<textarea name="detail" class="form-control" rows="10">
<?php echo $pecah['detail_pengumuman']; ?>
</textarea>
</div>
<button class="btn btn-primary" name="save">Ubah</button>
</form>
<h2>Update Periode</h2>
<?php
$ambil = $koneksi->query("SELECT * FROM periode WHERE periode_id ='$_GET[id]'");
$pecah = $ambil->fetch_assoc();
// echo "<pre>";
// print_r($pecah);
// echo "<pre>";
?>
<br></br>
<form method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Periode Awal</label>
<input type="text" class="form-control" name="awal" value="<?php echo $pecah['periode_awal']; ?>">
</div>
<div class="form-group">
<label>Periode Akhir</label>
<input type="text" class="form-control" name="akhir" value="<?php echo $pecah['periode_akhir']; ?>">
</div>
<div class="form-group">
<label>Status</label>
<input type="number" class="form-control" name="status" value="<?php echo $pecah['status']; ?>">
</div>
<button class="btn btn-primary" name="save">Ubah</button>
</form>
<?php
if (isset($_POST['save'])) {
$koneksi->query("UPDATE periode SET periode_awal= '$_POST[awal]',
periode_akhir ='$_POST[akhir]', status = '$_POST[status]' WHERE periode_id = '$_GET[id]'");
echo "<div class='alert alert-info'>Periode berhasil dirubah</div>";
echo "<meta http-equiv='refresh' content='1;url=index.php?halaman=periode'>";
}
?>
\ No newline at end of file
This diff is collapsed. Click to expand it.
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 to comment