Overview amp; statistic nbsp;

80 

Loading....

Loading....

Loading....

Loading....

Loading....

Teks penuh

(1)

LISTING PROGRAM

1. Dashboard.php

<?php include "config/koneksi.php";?> <div class="page-header">

<h1>Dashboard<small> <i class="ace-icon fa fa-angle-double-right"></i> Overview &amp; statistic &nbsp;

<?php

if (isset($_SESSION['pesan']) && $_SESSION['pesan'] <> '') { echo "<small class='pesan'>&nbsp;<i class='ace-icon fa fa-bell icon-animated-fa-bell bigger-100 orange'></i> &nbsp;

".$_SESSION['pesan']."</small>"; }

$_SESSION['pesan'] ="";

$std1 =mysql_query("SELECT * FROM tb_borang WHERE standar='Standar-1'");

$jstd1 =mysql_num_rows($std1);

$std2 =mysql_query("SELECT * FROM tb_borang WHERE standar='Standar-2'");

$jstd2 =mysql_num_rows($std2);

$std3 =mysql_query("SELECT * FROM tb_borang WHERE standar='Standar-3'");

$jstd3 =mysql_num_rows($std3);

$std4 =mysql_query("SELECT * FROM tb_borang WHERE standar='Standar-4'");

$jstd4 =mysql_num_rows($std4);

$std5 =mysql_query("SELECT * FROM tb_borang WHERE standar='Standar-5'");

$jstd5 =mysql_num_rows($std5);

$std6 =mysql_query("SELECT * FROM tb_borang WHERE standar='Standar-6'");

$jstd6 =mysql_num_rows($std6);

$std7 =mysql_query("SELECT * FROM tb_borang WHERE standar='Standar-7'");

$jstd7 =mysql_num_rows($std7); ?></small>

</h1> </div>

<div class="row">

<div class="col-xs-12">

<div class="alert alert-block alert-success">

<button type="button" class="close" data-dismiss="alert"><i class="ace-icon fa fa-times"></i></button>

(2)

Welcome to<strong class="green"> Borang App <small> (Ver

1.0)</small></strong>. Aplikasi Sistem Pendukung Pengisian Data Borang. </a> </div>

<div class="row">

<div class="col-sm-12 infobox-container"> <div class="infobox infobox-red">

<div class="infobox-icon"><i class="ace-icon fa fa-book"></i></div>

<div class="infobox-data">

<span class="infobox-data-number"><?=$jstd1?></span> <div class="infobox-content">Standar 1</div>

</div>

<div class="stat stat-success">&nbsp;</div> </div>

<div class="infobox infobox-orange">

<div class="infobox-icon"><i class="ace-icon fa fa-book"></i></div>

<div class="infobox-data">

<span class="infobox-data-number"><?=$jstd2?></span> <div class="infobox-content">Standar 2</div>

</div>

<div class="badge badge-success">&nbsp; -- &nbsp;<i class="ace-icon fa fa-star"></i></div>

</div>

<div class="infobox infobox-blue">

<div class="infobox-icon"><i class="ace-icon fa fa-book"></i></div>

<div class="infobox-data">

<span class="infobox-data-number"><?=$jstd3?></span> <div class="infobox-content">Standar 3</div>

</div>

<div class="badge badge-important">&nbsp; -- &nbsp;<i class="ace-icon fa fa-plane"></i></div>

</div>

<div class="infobox infobox-pink">

<div class="infobox-icon"><i class="ace-icon fa fa-book"></i></div>

<div class="infobox-data">

<span class="infobox-data-number"><?=$jstd4?></span> <div class="infobox-content">Standar 4</div>

</div>

<div class="stat stat-success">&nbsp;</div> </div>

</div> </div>

<div class="space-6"></div> <div class="row">

<div class="col-sm-12 infobox-container"> <div class="infobox infobox-pink">

<div class="infobox-icon"><i class="ace-icon fa fa-book"></i></div>

<div class="infobox-data">

<span class="infobox-data-number"><?=$jstd5?></span> <div class="infobox-content">Standar 5</div>

</div>

(3)

<div class="infobox infobox-pink">

<div class="infobox-icon"><i class="ace-icon fa fa-book"></i></div>

<div class="infobox-data">

<span class="infobox-data-number"><?=$jstd6?></span> <div class="infobox-content">Standar 6</div>

</div>

<div class="stat stat-success">&nbsp;</div> </div>

<div class="infobox infobox-pink">

<div class="infobox-icon"><i class="ace-icon fa fa-book"></i></div>

<div class="infobox-data">

<span class="infobox-data-number"><?=$jstd7?></span> <div class="infobox-content">Standar 7</div>

</div>

<div class="stat stat-success">&nbsp;</div> </div>

</div> </div>

<div class="hr hr32 hr-dotted"></div> <div class="row">

<div class="col-sm-12">

<div class="widget-box transparent">

<div class="widget-header widget-header-flat">

<h4 class="widget-title lighter"><i class="ace-icon fa fa-bar-chart-o"></i> Standar</h4>

<div class="widget-toolbar">

<a href="#" data-action="collapse"><i class="ace-icon fa fa-chevron-up"></i></a>

</div> </div>

<div class="widget-body">

<div class="widget-main padding-4">

<div id="container" class="col-sm-12" style="height:380px;"></div>

</div> </div> </div> </div> </div> </div> </div>

<script src="assets/js/highcharts.js" type="text/javascript"></script>

<script type="text/javascript">

var chart1; // globally available $(document).ready(function() { chart1 = new Highcharts.Chart({ chart: {

renderTo: 'container', type: 'column'

}, title: {

text: 'Statistik Standar Borang' },

(4)

categories: ['Standar'] },

yAxis: { title: {

text: 'Jumlah' }

},

series: [

<?php

$sql = "SELECT * FROM tb_borang GROUP BY standar ORDER BY standar";

$query = mysql_query( $sql ) or die(mysql_error());

while( $ret = mysql_fetch_array( $query ) ){

$std =$ret['standar'];

$sql_jumlah = "SELECT * FROM tb_borang WHERE standar='$std'";

$query_jumlah = mysql_query( $sql_jumlah ) or die(mysql_error());

$data = mysql_num_rows(

$query_jumlah ); ?>

{

name: '<?php echo $std; ?>', data: [<?php echo $data; ?>] },

<?php

} ?> ] });

}); </script>

<script> // 500 = 0,5 s

$(document).ready(function(){setTimeout(function(){$(".pesan").fadeIn('slow') ;}, 500);});

setTimeout(function(){$(".pesan").fadeOut('slow');}, 7000); </script>

2. Home-admin.php

<?php

ob_start(); session_start();

if(!isset($_SESSION['id_user'])){ die("<b>Oops!</b> Access Failed.

<p>Sistem Logout. Anda harus melakukan Login kembali.</p> <button type='button'

onclick=location.href='index.php'>Back</button>"); }

(5)

<p>Anda Bukan Admin.</p> <button type='button'

onclick=location.href='index.php'>Back</button>"); }

include "config/koneksi.php";

$tampilUsr =mysql_query("SELECT * FROM tb_user WHERE id_user='$_SESSION[id_user]'");

$usr =mysql_fetch_array($tampilUsr);

$tampilAll =mysql_query("SELECT * FROM tb_user WHERE hak_akses!='Admin' ORDER BY id_user");

$jmlall =mysql_num_rows($tampilAll); ?>

<!DOCTYPE html> <html lang="en"> <head>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta charset="utf-8" />

<title>Aplikasi Sistem Pendukung Pengisian Data Borang | BORANG APP Ver 1.0</title>

<meta name="description" content="overview &amp; stats" />

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

<!-- bootstrap & fontawesome -->

<link rel="stylesheet" href="assets/css/bootstrap.min.css" /> <link rel="stylesheet" href="assets/font-awesome/4.5.0/css/font-awesome.min.css" />

<!-- page specific plugin styles -->

<link rel="stylesheet" href="assets/css/chosen.min.css" /> <link rel="stylesheet"

href="assets/css/bootstrap-datepicker3.min.css" /> <!-- text fonts -->

<link rel="stylesheet" href="assets/css/fonts.googleapis.com.css" /> <!-- ace styles -->

<link rel="stylesheet" href="assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />

<!--[if lte IE 9]>

<link rel="stylesheet" href="assets/css/ace-part2.min.css" class="ace-main-stylesheet" />

<![endif]-->

<link rel="stylesheet" href="assets/css/ace-skins.min.css" /> <link rel="stylesheet" href="assets/css/ace-rtl.min.css" />

<!--[if lte IE 9]>

<link rel="stylesheet" href="assets/css/ace-ie.min.css" /> <![endif]-->

<!-- inline styles related to this page -->

<!-- ace settings handler -->

<script src="assets/js/ace-extra.min.js"></script> <script src="assets/js/jquery-2.1.4.min.js"></script>

(6)

<!--[if lte IE 8]>

<script src="assets/js/html5shiv.min.js"></script> <script src="assets/js/respond.min.js"></script> <![endif]-->

</head>

<body class="no-skin">

<div id="navbar" class="navbar navbar-default ace-save-state"> <div class="navbar-container ace-save-state" id="navbar-container">

<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">

<span class="sr-only">Toggle sidebar</span> <span class="icon-bar"></span>

<span class="icon-bar"></span> <span class="icon-bar"></span> </button>

<div class="navbar-header pull-left">

<a href="home-admin.php" class="navbar-brand"> <small><i class="fa fa-inbox"></i>&nbsp; BORANG APP</small>

</a> </div>

<div class="navbar-buttons navbar-header pull-right" role="navigation">

<ul class="nav ace-nav">

<li class="purple dropdown-modal">

<a data-toggle="dropdown" class="dropdown-toggle" href="#">

<i class="ace-icon fa fa-user icon-animated-vertical"></i><span class="badge badge-primary"><?=$jmlall?></span>

</a>

<ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">

<li class="dropdown-header">

<i class="ace-icon fa fa-user"></i> <?=$jmlall?> Admin

</li>

<li class="dropdown-content">

<ul class="menu dropdown-navbar">

<?php while ($all=mysql_fetch_array($tampilAll)){

?> <li>

<a class="clearfix"> <?php

if (empty($all['avatar'])) echo "<img

class='msg-photo' src='assets/images/avatars/no-avatar.jpg' />"; else

echo "<img class='msg-photo' src='assets/images/avatars/$all[avatar]' />";

?>

(7)

<span class="msg-title"> <span

class="blue"><?php echo $all['nama_user'] ?></span><br />

<span><?php echo $all['hak_akses'] ?></span><br />

<span><?php echo $all['standar'] ?></span><br />

</span> </span> </a>

</li> <?php } ?> </ul> </li>

<li class="dropdown-footer center">

<a href="home-admin.php?page=form-view-data-user">See All Users <i class="ace-icon fa fa-arrow-right"></i></a> </li>

</ul> </li>

<li class="light-orange dropdown-modal"> <a data-toggle="dropdown" href="#" class="dropdown-toggle">

<?php

if (empty($usr['avatar'])) echo "<img class='nav-user-photo'

src='assets/images/avatars/no-avatar.jpg' />"; else

echo "<img class='nav-user-photo' src='assets/images/avatars/$usr[avatar]' />";

?>

<span class="user-info"><small>Welcome,</small> <?=$usr['nama_user']?> </span>

<i class="ace-icon fa fa-caret-down"></i> </a>

<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">

<li><a href="home-admin.php?page=form-ganti-password&id_user=<?=$_SESSION['id_user']?>"><i class="ace-icon fa

fa-key"></i>Change Password</a></li>

<li class="divider"></li> <li>

<a href="pages/login/logout.php"><i class="ace-icon fa fa-power-off"></i>Logout</a>

</li> </ul> </li> </ul> </div> </div> </div>

<div class="main-container ace-save-state" id="main-container"> <script type="text/javascript">

(8)

</script>

<div id="sidebar" class="sidebar responsive ace-save-state"> <script type="text/javascript">

try{ace.settings.loadState('sidebar')}catch(e){} </script>

<div class="sidebar-shortcuts" id="sidebar-shortcuts"> <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">

<button class="btn btn-success"><i class="ace-icon fa fa-signal"></i></button>

<button class="btn btn-info"><i class="ace-icon fa fa-pencil"></i></button>

<button class="btn btn-warning"><i class="ace-icon fa fa-user"></i></button>

<button class="btn btn-danger"><i class="ace-icon fa fa-cogs"></i></button>

</div>

<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">

<span class="btn btn-success"></span> <span class="btn btn-info"></span> <span class="btn btn-warning"></span> <span class="btn btn-danger"></span> </div>

</div>

<ul class="nav nav-list">

<li class=""><a href="home-admin.php"><i class="menu-icon fa fa-tachometer"></i><span class="menu-text"> Dashboard</span></a><b

class="arrow"></b></li>

<li class=""><a href="home-admin.php?page=form-view-data-user"><i class="menu-icon fa fa-gear"></i><span class="menu-text"> Management User</span></a><b class="arrow"></b></li>

<li class=""><a href="home-admin.php?page=form-view-data-dosen"><i class="menu-icon fa fa-user"></i><span class="menu-text"> Data Dosen</span></a><b class="arrow"></b></li>

</ul>

<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">

<i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>

</div> </div>

<div class="main-content">

<div class="main-content-inner">

<div class="breadcrumbs ace-save-state" id="breadcrumbs"> <ul class="breadcrumb">

<li><i class="ace-icon fa fa-home home-icon"></i><a href="home-admin.php">Home</a></li>

<li class="active">Admin</li> </ul>

</div>

<div class="page-content">

<div class="ace-settings-container" id="ace-settings-container">

(9)

<i class="ace-icon fa fa-cog bigger-130"></i> </div>

<!-- /.ace-settings-box -->

<div class="ace-settings-box clearfix" id="ace-settings-box">

<div class="pull-left width-50"> <div class="ace-settings-item"> <div class="pull-left">

<select id="skin-colorpicker" class="hide">

<option data-skin="no-skin" value="#438EB9">#438EB9</option>

<option data-skin="skin-1" value="#222A2D">#222A2D</option>

<option data-skin="skin-2" value="#C6487E">#C6487E</option>

<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>

</select> </div>

<span>&nbsp; Choose Skin</span> </div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-navbar" autocomplete="off" /> <label class="lbl" for="ace-settings-navbar"> Fixed Navbar</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-sidebar" autocomplete="off" />

<label class="lbl" for="ace-settings-sidebar"> Fixed Sidebar</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-breadcrumbs"

autocomplete="off" />

<label class="lbl" for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" autocomplete="off" />

<label class="lbl" for="ace-settings-rtl"> Right To Left (rtl)</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-add-container"

autocomplete="off" />

<label class="lbl" for="ace-settings-add-container">

Inside <b>.container</b> </label>

(10)

</div>

<div class="pull-left width-50"> <div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-hover" autocomplete="off" />

<label class="lbl" for="ace-settings-hover"> Submenu on Hover</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-compact" autocomplete="off" />

<label class="lbl" for="ace-settings-compact"> Compact Sidebar</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-highlight" autocomplete="off" />

<label class="lbl" for="ace-settings-highlight"> Alt. Active Item</label>

</div> </div> </div> </div>

<!-- /.content --> <?php

$page = (isset($_GET['page']))? $_GET['page'] : "main";

switch ($page) {

case 'form-view-data-user': include "pages/admin/user/form-view-data-user.php"; break;

case 'form-master-data-user': include "pages/admin/user/form-master-data-user.php"; break;

case 'master-user': include "pages/admin/user/master-user.php"; break;

case 'form-edit-data-user': include "pages/admin/user/form-edit-data-user.php"; break;

case 'edit-data-user': include "pages/admin/user/edit-data-user.php"; break;

case 'delete-data-user': include "pages/admin/user/delete-data-user.php"; break;

case 'form-view-data-dosen': include "pages/admin/dosen/form-view-data-dosen.php"; break;

case 'form-master-data-dosen': include "pages/admin/dosen/form-master-data-dosen.php"; break;

case 'master-dosen': include "pages/admin/dosen/master-dosen.php"; break;

case 'form-edit-data-dosen': include "pages/admin/dosen/form-edit-data-dosen.php"; break;

case 'edit-data-dosen': include "pages/admin/dosen/edit-data-dosen.php"; break;

case 'delete-data-dosen': include "pages/admin/dosen/delete-data-dosen.php"; break;

case 'detail-data-dosen': include "pages/admin/dosen/detail-data-dosen.php"; break;

(11)

case 'form-ganti-password': include "pages/admin/form-ganti-password.php"; break;

case 'ganti-password': include "pages/admin/ganti-password.php"; break;

default : include 'dashboard.php'; }

?> </div> </div> </div>

<div class="footer">

<div class="footer-inner">

<div class="footer-content"> <span class="bigger-110">

<a>BORANG APP</a> &copy; 2017. Version 1.0 </span>

</div> </div> </div>

<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">

<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>

</a> </div>

<!-- basic scripts --> <!--[if !IE]> --> <!-- <![endif]--> <!--[if IE]>

<script src="assets/js/jquery-1.11.3.min.js"></script> <![endif]-->

<script type="text/javascript">

if('ontouchstart' in document.documentElement) document.write("<script

src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>"); </script>

<script src="assets/js/bootstrap.min.js"></script> <!-- page specific plugin scripts -->

<!--[if lte IE 8]>

<script src="assets/js/excanvas.min.js"></script> <![endif]-->

<script src="assets/js/jquery-ui.custom.min.js"></script> <script src="assets/js/jquery.ui.touch-punch.min.js"></script> <script src="assets/js/jquery.easypiechart.min.js"></script> <script src="assets/js/jquery.sparkline.index.min.js"></script> <script src="assets/js/jquery.flot.min.js"></script>

<script src="assets/js/jquery.flot.pie.min.js"></script> <script src="assets/js/jquery.flot.resize.min.js"></script> <!-- ace scripts -->

<script src="assets/js/ace-elements.min.js"></script> <script src="assets/js/ace.min.js"></script>

<!-- inline scripts related to this page --> </body>

</html>

(12)

<?php

ob_start(); session_start();

if(!isset($_SESSION['id_user'])){ die("<b>Oops!</b> Access Failed.

<p>Sistem Logout. Anda harus melakukan Login kembali.</p> <button type='button'

onclick=location.href='index.php'>Back</button>"); }

if($_SESSION['hak_akses']!="Prodi"){ die("<b>Oops!</b> Access Failed. <p>Anda Bukan Prodi.</p> <button type='button'

onclick=location.href='index.php'>Back</button>"); }

include "config/koneksi.php";

$tampilUsr =mysql_query("SELECT * FROM tb_user WHERE id_user='$_SESSION[id_user]'");

$usr =mysql_fetch_array($tampilUsr);

$tampilBor =mysql_query("SELECT * FROM tb_borang WHERE standar='$_SESSION[standar]'");

$jmlbor =mysql_num_rows($tampilBor); ?>

<!DOCTYPE html> <html lang="en"> <head>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta charset="utf-8" />

<title>Aplikasi Sistem Pendukung Pengisian Data Borang | BORANG APP Ver 1.0</title>

<meta name="description" content="overview &amp; stats" />

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

<!-- bootstrap & fontawesome -->

<link rel="stylesheet" href="assets/css/bootstrap.min.css" /> <link rel="stylesheet" href="assets/font-awesome/4.5.0/css/font-awesome.min.css" />

<!-- page specific plugin styles -->

<link rel="stylesheet" href="assets/css/chosen.min.css" /> <link rel="stylesheet"

href="assets/css/bootstrap-datepicker3.min.css" />

<!-- text fonts -->

<link rel="stylesheet" href="assets/css/fonts.googleapis.com.css" />

<!-- ace styles -->

<link rel="stylesheet" href="assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />

<!--[if lte IE 9]>

<link rel="stylesheet" href="assets/css/ace-part2.min.css" class="ace-main-stylesheet" />

(13)

<link rel="stylesheet" href="assets/css/ace-skins.min.css" /> <link rel="stylesheet" href="assets/css/ace-rtl.min.css" />

<!--[if lte IE 9]>

<link rel="stylesheet" href="assets/css/ace-ie.min.css" /> <![endif]-->

<!-- inline styles related to this page -->

<!-- ace settings handler -->

<script src="assets/js/ace-extra.min.js"></script> <script src="assets/js/jquery-2.1.4.min.js"></script>

<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

<!--[if lte IE 8]>

<script src="assets/js/html5shiv.min.js"></script> <script src="assets/js/respond.min.js"></script> <![endif]-->

</head>

<body class="no-skin">

<div id="navbar" class="navbar navbar-default ace-save-state"> <div class="navbar-container ace-save-state" id="navbar-container">

<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">

<span class="sr-only">Toggle sidebar</span> <span class="icon-bar"></span>

<span class="icon-bar"></span> <span class="icon-bar"></span> </button>

<div class="navbar-header pull-left">

<a href="home-prodi.php" class="navbar-brand"> <small><i class="fa fa-inbox"></i>&nbsp; BORANG APP</small>

</a> </div>

<div class="navbar-buttons navbar-header pull-right" role="navigation">

<ul class="nav ace-nav">

<li class="purple dropdown-modal">

<a data-toggle="dropdown" class="dropdown-toggle" href="#">

<i class="ace-icon fa fa-book icon-animated-vertical"></i> &nbsp;<span class="badge badge-primary"><?=$jmlbor?></span> </a>

<ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">

<li class="dropdown-header">

<i class="ace-icon fa fa-book"></i> <?=$jmlbor?> Borang <?=$_SESSION['standar']?>

</li>

<li class="dropdown-content">

(14)

<?php while ($bor=mysql_fetch_array($tampilBor)){

?> <li>

<a class="clearfix">

<span class="blue"><?php echo $bor['nomor'] ?></span>

<span class="msg-body"> <span class="msg-title"> <?php echo

$bor['uraian'] ?>

</span> </span> </a>

</li> <?php } ?> </ul> </li>

<li class="dropdown-footer center">

<a href="home-prodi.php?page=form-view-data-borang">See All Borang <i class="ace-icon fa fa-arrow-right"></i></a> </li>

</ul> </li>

<li class="light-orange dropdown-modal"> <a data-toggle="dropdown" href="#" class="dropdown-toggle">

<?php

if (empty($usr['avatar'])) echo "<img class='nav-user-photo'

src='assets/images/avatars/no-avatar.jpg' />"; else

echo "<img class='nav-user-photo' src='assets/images/avatars/$usr[avatar]' />";

?>

<span class="user-info"><small>Welcome,</small> <?=$usr['nama_user']?> </span>

<i class="ace-icon fa fa-caret-down"></i> </a>

<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">

<li><a href="home-prodi.php?page=form-ganti-password&id_user=<?=$_SESSION['id_user']?>"><i class="ace-icon fa

fa-key"></i>Change Password</a></li>

<li class="divider"></li> <li>

<a href="pages/login/logout.php"><i class="ace-icon fa fa-power-off"></i>Logout</a>

(15)

</div> </div>

<div class="main-container ace-save-state" id="main-container"> <script type="text/javascript">

try{ace.settings.loadState('main-container')}catch(e){} </script>

<div id="sidebar" class="sidebar responsive ace-save-state"> <script type="text/javascript">

try{ace.settings.loadState('sidebar')}catch(e){} </script>

<div class="sidebar-shortcuts" id="sidebar-shortcuts"> <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">

<button class="btn btn-success"><i class="ace-icon fa fa-signal"></i></button>

<button class="btn btn-info"><i class="ace-icon fa fa-pencil"></i></button>

<button class="btn btn-warning"><i class="ace-icon fa fa-user"></i></button>

<button class="btn btn-danger"><i class="ace-icon fa fa-cogs"></i></button>

</div>

<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">

<span class="btn btn-success"></span> <span class="btn btn-info"></span> <span class="btn btn-warning"></span> <span class="btn btn-danger"></span> </div>

</div>

<ul class="nav nav-list">

<li class=""><a href="home-prodi.php"><i class="menu-icon fa fa-tachometer"></i><span class="menu-text"> Dashboard</span></a><b

class="arrow"></b></li>

<li class=""><a href="home-prodi.php?page=form-view-data-dosen"><i class="menu-icon fa fa-user"></i><span class="menu-text"> Data Dosen</span></a><b class="arrow"></b></li>

<li class=""><a href="home-prodi.php?page=form-view-data-borang"><i class="menu-icon fa fa-cloud-upload"></i><span class="menu-text"> Upload Borang</span></a><b class="arrow"></b></li>

<li class=""><a href="home-prodi.php?page=form-view-data-file"><i class="menu-icon fa fa-upload"></i><span class="menu-text"> Upload File</span></a><b class="arrow"></b></li>

<li class=""><a href="home-prodi.php?page=report"><i class="menu-icon fa fa-print"></i><span class="menu-text">

Report</span></a><b class="arrow"></b></li> </ul>

<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">

<i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>

</div> </div>

<div class="main-content">

<div class="main-content-inner">

(16)

<ul class="breadcrumb">

<li><i class="ace-icon fa fa-home home-icon"></i><a href="home-prodi.php">Home</a></li>

<li class="active">Prodi</li>

<li class="active"><?=$usr['standar']?></li> </ul>

</div>

<div class="page-content">

<div class="ace-settings-container" id="ace-settings-container">

<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-ace-settings-btn">

<i class="ace-icon fa fa-cog bigger-130"></i> </div>

<!-- /.ace-settings-box -->

<div class="ace-settings-box clearfix" id="ace-settings-box">

<div class="pull-left width-50"> <div class="ace-settings-item"> <div class="pull-left">

<select id="skin-colorpicker" class="hide">

<option data-skin="no-skin" value="#438EB9">#438EB9</option>

<option data-skin="skin-1" value="#222A2D">#222A2D</option>

<option data-skin="skin-2" value="#C6487E">#C6487E</option>

<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>

</select> </div>

<span>&nbsp; Choose Skin</span> </div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-navbar" autocomplete="off" /> <label class="lbl" for="ace-settings-navbar"> Fixed Navbar</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-sidebar" autocomplete="off" />

<label class="lbl" for="ace-settings-sidebar"> Fixed Sidebar</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-breadcrumbs"

autocomplete="off" />

<label class="lbl" for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>

</div>

<div class="ace-settings-item">

(17)

<label class="lbl" for="ace-settings-rtl"> Right To Left (rtl)</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-add-container"

autocomplete="off" />

<label class="lbl" for="ace-settings-add-container">

Inside <b>.container</b> </label>

</div> </div>

<div class="pull-left width-50"> <div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-hover" autocomplete="off" />

<label class="lbl" for="ace-settings-hover"> Submenu on Hover</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-compact" autocomplete="off" />

<label class="lbl" for="ace-settings-compact"> Compact Sidebar</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-highlight" autocomplete="off" />

<label class="lbl" for="ace-settings-highlight"> Alt. Active Item</label>

</div> </div> </div> </div>

<!-- /.content --> <?php

$page = (isset($_GET['page']))? $_GET['page'] : "main";

switch ($page) {

case 'form-view-data-borang': include "pages/prodi/borang/form-view-data-borang.php"; break;

case 'form-master-data-borang': include "pages/prodi/borang/form-master-data-borang.php"; break;

case 'master-data-borang': include "pages/prodi/borang/master-data-borang.php"; break;

case 'form-edit-data-borang': include "pages/prodi/borang/form-edit-data-borang.php"; break;

case 'edit-data-borang': include "pages/prodi/borang/edit-data-borang.php"; break;

case 'delete-data-borang': include "pages/prodi/borang/delete-data-borang.php"; break;

case 'form-tambah-penjelasan': include "pages/prodi/borang/form-tambah-penjelasan.php"; break;

case 'tambah-penjelasan': include "pages/prodi/borang/tambah-penjelasan.php"; break;

(18)

case 'form-view-data-file': include "pages/prodi/file/form-view-data-file.php"; break;

case 'form-upload-file': include "pages/prodi/file/form-upload-file.php"; break;

case 'upload-file': include "pages/prodi/file/upload-file.php"; break;

case 'form-edit-file': include "pages/prodi/file/form-edit-file.php"; break;

case 'edit-file': include "pages/prodi/file/edit-file.php"; break;

case 'report': include "pages/prodi/report/report.php"; break;

case 'detail-borang': include "pages/prodi/report/detail-borang.php"; break;

case 'form-view-data-dosen': include "pages/prodi/dosen/form-view-data-dosen.php"; break;

case 'detail-data-dosen': include "pages/prodi/dosen/detail-data-dosen.php"; break;

case 'form-ganti-password': include "pages/prodi/form-ganti-password.php"; break;

case 'ganti-password': include "pages/prodi/ganti-password.php"; break;

default : include 'dashboard.php'; }

?> </div> </div> </div>

<div class="footer">

<div class="footer-inner">

<div class="footer-content"> <span class="bigger-110">

<a>BORANG APP</a> &copy; 2017. Version 1.0 </span>

</div> </div> </div>

<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">

<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>

</a> </div>

<!-- basic scripts --> <!--[if !IE]> --> <!-- <![endif]--> <!--[if IE]>

<script src="assets/js/jquery-1.11.3.min.js"></script> <![endif]-->

<script type="text/javascript">

if('ontouchstart' in document.documentElement) document.write("<script

(19)

</script>

<script src="assets/js/bootstrap.min.js"></script> <!-- page specific plugin scripts -->

<!--[if lte IE 8]>

<script src="assets/js/excanvas.min.js"></script> <![endif]-->

<script src="assets/js/jquery-ui.custom.min.js"></script> <script src="assets/js/jquery.ui.touch-punch.min.js"></script> <script src="assets/js/jquery.easypiechart.min.js"></script> <script src="assets/js/jquery.sparkline.index.min.js"></script> <script src="assets/js/jquery.flot.min.js"></script>

<script src="assets/js/jquery.flot.pie.min.js"></script> <script src="assets/js/jquery.flot.resize.min.js"></script> <!-- ace scripts -->

<script src="assets/js/ace-elements.min.js"></script> <script src="assets/js/ace.min.js"></script>

<!-- inline scripts related to this page --> </body>

</html>

4. Home-pimpinan.php

<?php

ob_start(); session_start();

if(!isset($_SESSION['id_user'])){ die("<b>Oops!</b> Access Failed.

<p>Sistem Logout. Anda harus melakukan Login kembali.</p> <button type='button'

onclick=location.href='index.php'>Back</button>"); }

if($_SESSION['hak_akses']!="Pimpinan"){ die("<b>Oops!</b> Access Failed. <p>Anda Bukan Pimpinan.</p> <button type='button'

onclick=location.href='index.php'>Back</button>"); }

include "config/koneksi.php";

$tampilUsr =mysql_query("SELECT * FROM tb_user WHERE id_user='$_SESSION[id_user]'");

$usr =mysql_fetch_array($tampilUsr); ?>

<!DOCTYPE html> <html lang="en"> <head>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta charset="utf-8" />

<title>Aplikasi Sistem Pendukung Pengisian Data Borang | BORANG APP Ver 1.0</title>

<meta name="description" content="overview &amp; stats" />

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

<!-- bootstrap & fontawesome -->

(20)

<link rel="stylesheet" href="assets/font-awesome/4.5.0/css/font-awesome.min.css" />

<!-- page specific plugin styles -->

<link rel="stylesheet" href="assets/css/chosen.min.css" /> <link rel="stylesheet"

href="assets/css/bootstrap-datepicker3.min.css" />

<!-- text fonts -->

<link rel="stylesheet" href="assets/css/fonts.googleapis.com.css" />

<!-- ace styles -->

<link rel="stylesheet" href="assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />

<!--[if lte IE 9]>

<link rel="stylesheet" href="assets/css/ace-part2.min.css" class="ace-main-stylesheet" />

<![endif]-->

<link rel="stylesheet" href="assets/css/ace-skins.min.css" /> <link rel="stylesheet" href="assets/css/ace-rtl.min.css" />

<!--[if lte IE 9]>

<link rel="stylesheet" href="assets/css/ace-ie.min.css" /> <![endif]-->

<!-- inline styles related to this page -->

<!-- ace settings handler -->

<script src="assets/js/ace-extra.min.js"></script> <script src="assets/js/jquery-2.1.4.min.js"></script>

<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

<!--[if lte IE 8]>

<script src="assets/js/html5shiv.min.js"></script> <script src="assets/js/respond.min.js"></script> <![endif]-->

</head>

<body class="no-skin">

<div id="navbar" class="navbar navbar-default ace-save-state"> <div class="navbar-container ace-save-state" id="navbar-container">

<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">

<span class="sr-only">Toggle sidebar</span> <span class="icon-bar"></span>

<span class="icon-bar"></span> <span class="icon-bar"></span> </button>

<div class="navbar-header pull-left">

<a href="home-pimpinan.php" class="navbar-brand"> <small><i class="fa fa-inbox"></i>&nbsp; BORANG APP</small>

(21)

<div class="navbar-buttons navbar-header pull-right" role="navigation">

<ul class="nav ace-nav">

<li class="light-orange dropdown-modal"> <a data-toggle="dropdown" href="#" class="dropdown-toggle">

<?php

if (empty($usr['avatar'])) echo "<img class='nav-user-photo'

src='assets/images/avatars/no-avatar.jpg' />"; else

echo "<img class='nav-user-photo' src='assets/images/avatars/$usr[avatar]' />";

?>

<span class="user-info"><small>Welcome,</small> <?=$usr['nama_user']?> </span>

<i class="ace-icon fa fa-caret-down"></i> </a>

<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">

<li><a href="home-pimpinan.php?page=form-ganti-password&id_user=<?=$_SESSION['id_user']?>"><i class="ace-icon fa fa-key"></i>Change Password</a></li>

<li class="divider"></li> <li>

<a href="pages/login/logout.php"><i class="ace-icon fa fa-power-off"></i>Logout</a>

</li> </ul> </li> </ul> </div> </div> </div>

<div class="main-container ace-save-state" id="main-container"> <script type="text/javascript">

try{ace.settings.loadState('main-container')}catch(e){} </script>

<div id="sidebar" class="sidebar responsive ace-save-state"> <script type="text/javascript">

try{ace.settings.loadState('sidebar')}catch(e){} </script>

<div class="sidebar-shortcuts" id="sidebar-shortcuts"> <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">

<button class="btn btn-success"><i class="ace-icon fa fa-signal"></i></button>

<button class="btn btn-info"><i class="ace-icon fa fa-pencil"></i></button>

<button class="btn btn-warning"><i class="ace-icon fa fa-user"></i></button>

<button class="btn btn-danger"><i class="ace-icon fa fa-cogs"></i></button>

</div>

(22)

<span class="btn btn-success"></span> <span class="btn btn-info"></span> <span class="btn btn-warning"></span> <span class="btn btn-danger"></span> </div>

</div>

<ul class="nav nav-list">

<li class=""><a href="home-pimpinan.php"><i class="menu-icon fa fa-tachometer"></i><span class="menu-text"> Dashboard</span></a><b class="arrow"></b></li>

<li class=""><a href="home-pimpinan.php?page=form-view-data-dosen"><i class="menu-icon fa fa-user"></i><span class="menu-text"> Data Dosen</span></a><b class="arrow"></b></li>

<li class="">

<a href="#" class="dropdown-toggle"><i class="menu-icon fa fa-print"></i><span class="menu-text"> Report</span><b class="arrow fa fa-angle-down"></b></a><b class="arrow"></b>

<ul class="submenu">

<li class=""><a

href="home-pimpinan.php?page=report&standar=Standar-1"><i class="menu-icon fa fa-caret-right"></i> Standar-1</a></li>

<li class=""><a

href="home-pimpinan.php?page=report&standar=Standar-2"><i class="menu-icon fa fa-caret-right"></i> Standar-2</a></li>

<li class=""><a

href="home-pimpinan.php?page=report&standar=Standar-3"><i class="menu-icon fa fa-caret-right"></i> Standar-3</a></li>

<li class=""><a

href="home-pimpinan.php?page=report&standar=Standar-4"><i class="menu-icon fa fa-caret-right"></i> Standar-4</a></li>

<li class=""><a

href="home-pimpinan.php?page=report&standar=Standar-5"><i class="menu-icon fa fa-caret-right"></i> Standar-5</a></li>

<li class=""><a

href="home-pimpinan.php?page=report&standar=Standar-6"><i class="menu-icon fa fa-caret-right"></i> Standar-6</a></li>

<li class=""><a

href="home-pimpinan.php?page=report&standar=Standar-7"><i class="menu-icon fa fa-caret-right"></i> Standar-7</a></li>

</ul> </li> </ul>

<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">

<i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>

</div> </div>

<div class="main-content">

<div class="main-content-inner">

<div class="breadcrumbs ace-save-state" id="breadcrumbs"> <ul class="breadcrumb">

<li><i class="ace-icon fa fa-home home-icon"></i><a href="home-pimpinan.php">Home</a></li>

(23)

</div>

<div class="page-content">

<div class="ace-settings-container" id="ace-settings-container">

<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-ace-settings-btn">

<i class="ace-icon fa fa-cog bigger-130"></i> </div>

<!-- /.ace-settings-box -->

<div class="ace-settings-box clearfix" id="ace-settings-box">

<div class="pull-left width-50"> <div class="ace-settings-item"> <div class="pull-left">

<select id="skin-colorpicker" class="hide">

<option data-skin="no-skin" value="#438EB9">#438EB9</option>

<option data-skin="skin-1" value="#222A2D">#222A2D</option>

<option data-skin="skin-2" value="#C6487E">#C6487E</option>

<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>

</select> </div>

<span>&nbsp; Choose Skin</span> </div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-navbar" autocomplete="off" /> <label class="lbl" for="ace-settings-navbar"> Fixed Navbar</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-sidebar" autocomplete="off" />

<label class="lbl" for="ace-settings-sidebar"> Fixed Sidebar</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-breadcrumbs"

autocomplete="off" />

<label class="lbl" for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" autocomplete="off" />

<label class="lbl" for="ace-settings-rtl"> Right To Left (rtl)</label>

</div>

(24)

<input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-add-container"

autocomplete="off" />

<label class="lbl" for="ace-settings-add-container">

Inside <b>.container</b> </label>

</div> </div>

<div class="pull-left width-50"> <div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-hover" autocomplete="off" />

<label class="lbl" for="ace-settings-hover"> Submenu on Hover</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-compact" autocomplete="off" />

<label class="lbl" for="ace-settings-compact"> Compact Sidebar</label>

</div>

<div class="ace-settings-item">

<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-highlight" autocomplete="off" />

<label class="lbl" for="ace-settings-highlight"> Alt. Active Item</label>

</div> </div> </div> </div>

<!-- /.content --> <?php

$page = (isset($_GET['page']))? $_GET['page'] : "main";

switch ($page) {

case 'report': include "pages/pimpinan/report/report.php"; break;

case 'detail-borang': include "pages/pimpinan/report/detail-borang.php"; break;

case 'form-view-data-dosen': include "pages/pimpinan/dosen/form-view-data-dosen.php"; break;

case 'detail-data-dosen': include "pages/pimpinan/dosen/detail-data-dosen.php"; break;

case 'form-ganti-password': include "pages/pimpinan/form-ganti-password.php"; break;

case 'ganti-password': include "pages/pimpinan/ganti-password.php"; break;

default : include 'dashboard.php'; }

(25)

<div class="footer">

<div class="footer-inner">

<div class="footer-content"> <span class="bigger-110">

<a>BORANG APP</a> &copy; 2017. Version 1.0 </span>

</div> </div> </div>

<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">

<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>

</a> </div>

<!-- basic scripts --> <!--[if !IE]> --> <!-- <![endif]--> <!--[if IE]>

<script src="assets/js/jquery-1.11.3.min.js"></script> <![endif]-->

<script type="text/javascript">

if('ontouchstart' in document.documentElement) document.write("<script

src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>"); </script>

<script src="assets/js/bootstrap.min.js"></script> <!-- page specific plugin scripts -->

<!--[if lte IE 8]>

<script src="assets/js/excanvas.min.js"></script> <![endif]-->

<script src="assets/js/jquery-ui.custom.min.js"></script> <script src="assets/js/jquery.ui.touch-punch.min.js"></script> <script src="assets/js/jquery.easypiechart.min.js"></script> <script src="assets/js/jquery.sparkline.index.min.js"></script> <script src="assets/js/jquery.flot.min.js"></script>

<script src="assets/js/jquery.flot.pie.min.js"></script> <script src="assets/js/jquery.flot.resize.min.js"></script> <!-- ace scripts -->

<script src="assets/js/ace-elements.min.js"></script> <script src="assets/js/ace.min.js"></script>

<!-- inline scripts related to this page --> </body>

</html>

5. Index.php

<?php

ob_start(); session_start(); ?>

<!DOCTYPE html> <html lang="en"> <head>

Figur

table header
table header . View in document p.62

Referensi

Memperbarui...