• Tidak ada hasil yang ditemukan

Sistem Informasi Hasil Studi Siswa SMA Negeri 1 Medan Berbasis Web

N/A
N/A
Protected

Academic year: 2017

Membagikan "Sistem Informasi Hasil Studi Siswa SMA Negeri 1 Medan Berbasis Web"

Copied!
56
0
0

Teks penuh

(1)

LISTING PROGRAM

1. connect.php <?php

$con = mysqli_connect("localhost","root","","sman1medan");

// Check connection

if (mysqli_connect_errno()) {

echo "Failed to connect to MySQL: " . mysqli_connect_error(); }

?>

2. cek-studi.php <?php

session_start();

if (!isset($_SESSION['customer'])) header('location:signin.php'); include 'connect.php';

?>

<!DOCTYPE html> <html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1"> <title>SMAN 1 Medan</title>

(2)

<!--Icons-->

<script src="js/lumino.glyphs.js"></script>

<!--[if lt IE 9]>

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

</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container-fluid">

<div class="navbar-header">

<button type="button" class="navbar-toggle collapsed" 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.php"><span>Portal Akademik </span>SMA Negeri 1 Medan</a>

<ul class="user-menu">

<li class="dropdown pull-right">

<a href="#" class="dropdown-toggle" data-toggle="dropdown"><svg class="glyph stroked male-user"><use

xlink:href="#stroked-male-user"></use></svg> <?php echo $_SESSION['customer'] ?> <span class="caret"></span></a>

<ul class="dropdown-menu" role="menu"> <li><a href="profil.php"><svg class="glyph stroked male-user"><use

xlink:href="#stroked-male-user"></use></svg> Profile</a></li>

(3)

</ul> </li>

</ul> </div>

</div><!-- /.container-fluid --> </nav>

<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar"> <form role="search">

<div class="form-group">

<input type="text" class="form-control" placeholder="Search">

</div> </form>

<ul class="nav menu">

<li><a href="profil.php"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg><strong><?php echo $_SESSION['customer'] ?></strong></a></li>

<li><a href="index.php"><svg class="glyph stroked dashboard-dial"><use xlink:href="#stroked-dashboard-dial"></use></svg> Dashboard</a></li>

<li><a href="jadwal.php"><svg class="glyph stroked calendar"><use xlink:href="#stroked-calendar"></use></svg> Jadwal Pelajaran</a></li>

<li class="active">

<a href="cek-studi.php">

<span data-toggle="collapse" href="#sub-item-1"><svg class="glyph stroked notepad "><use

xlink:href="#stroked-notepad"/></svg></span> Informasi Nilai </a>

</li>

<li class="parent">

<ul class="children collapse in" id="sub-item-1"> <li>

(4)

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Harian

</a> </li> <li>

<a class="" href="uts-pro.php">

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Tengah Semester

</a> </li> <li>

<a class="" href="uas-pro.php">

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Akhir Semester

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

</li>

<li><a href="password.php"><svg class="glyph stroked pencil"><use xlink:href="#stroked-pencil"></use></svg> Ganti

Password</a></li>

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

<li><a href="signout.php"><svg class="glyph stroked arrow left"><use xlink:href="#stroked-arrow-left"/></svg> Logout</a></li>

</ul>

<div class="attribution">Website portal <a href="#">SMAN 1 Medan</a><br/>developed by Ardiansyah</div>

</div><!--/.sidebar-->

<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">

<div class="row">

(5)

<li><a href="#"><svg class="glyph stroked home"><use xlink:href="#stroked-home"></use></svg></a></li>

<li class="active">Icons</li> </ol>

</div><!--/.row-->

<div class="row">

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

<h1 class="page-header">Data Nilai Siswa</h1> </div>

</div><!--/.row-->

<div class="row">

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

<div class="panel panel-default">

<div class="panel-heading">Pilih Kategori</div> <div class="panel-body">

<div class="row">

<a href="uh-pro.php">

<div class="col-xs-12 col-md-6 col-lg-3" style="width: 380px;">

<div class="panel panel-teal panel-widget"> <div class="row no-padding">

<div class="col-sm-3 col-lg-5 widget-left">

<svg class="glyph stroked app-window-with-content"><use

xlink:href="#stroked-app-window-with-content"></use></svg>

</div>

<div class="col-sm-9 col-lg-7 widget-right">

(6)

<div class="text-muted">Ulangan Harian</div>

</div> </div>

</div> </div>

</a>

<a href="uts-pro.php">

<div class="col-xs-12 col-md-6 col-lg-3" style="width: 390px;">

<div class="panel panel-teal panel-widget"> <div class="row no-padding">

<div class="col-sm-3 col-lg-5 widget-left">

<svg class="glyph stroked app-window-with-content"><use

xlink:href="#stroked-app-window-with-content"></use></svg>

</div>

<div class="col-sm-9 col-lg-7 widget-right">

<div class="large">UTS</div> <div class="text-muted">Ulangan Tengah Semester</div>

</div> </div>

</div> </div>

</a>

<a href="uas-pro.php">

<div class="col-xs-12 col-md-6 col-lg-3" style="width: 380px;">

(7)

<div class="col-sm-3 col-lg-5 widget-left">

<svg class="glyph stroked app-window-with-content"><use

xlink:href="#stroked-app-window-with-content"></use></svg>

</div>

<div class="col-sm-9 col-lg-7 widget-right">

<div class="large">UAS</div> <div class="text-muted">Ulangan Akhir Semester</div>

</div> </div>

</div> </div>

</a>

</div><!--/.row-->

</div> </div>

</div>

</div><!--/.row-->

</div><!--/.main-->

(8)

<script>

!function ($) {

$(document).on("click","ul.nav li.parent > a > span.icon", function(){

$(this).find('em:first').toggleClass("glyphicon-minus");

});

$(".sidebar

span.icon").find('em:first').addClass("glyphicon-plus"); }(window.jQuery);

$(window).on('resize', function () {

if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')

})

$(window).on('resize', function () {

if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')

}) </script> </body>

</html>

3. index.php <?php

session_start();

if (!isset($_SESSION['customer'])) header('location:signin.php'); include 'connect.php';

?>

(9)

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1"> <title>SMAN 1 Medan</title>

<link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/datepicker3.css" rel="stylesheet"> <link href="css/styles.css" rel="stylesheet"> <link rel="shortcut icon" href="favico.png" /> <!--Icons-->

<script src="js/lumino.glyphs.js"></script>

<!--[if lt IE 9]>

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

</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container-fluid">

<div class="navbar-header">

<button type="button" class="navbar-toggle collapsed" 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.php"><span>Portal Akademik </span>SMA Negeri 1 Medan</a>

(10)

<li class="dropdown pull-right">

<a href="#" class="dropdown-toggle" data-toggle="dropdown"><svg class="glyph stroked male-user"><use

xlink:href="#stroked-male-user"></use></svg> <?php echo $_SESSION['customer'] ?> <span class="caret"></span></a>

<ul class="dropdown-menu" role="menu"> <li><a href="profil.php"><svg class="glyph stroked male-user"><use

xlink:href="#stroked-male-user"></use></svg> Profile</a></li>

<li><a href="signout.php"><svg class="glyph stroked cancel"><use xlink:href="#stroked-cancel"></use></svg> Logout</a></li>

</ul> </li>

</ul> </div>

</div><!-- /.container-fluid --> </nav>

<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar"> <form role="search">

<div class="form-group">

<input type="text" class="form-control" placeholder="Search">

</div> </form>

<ul class="nav menu">

<li><a href="profil.php"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg><strong><?php echo $_SESSION['customer'] ?></strong></a></li>

<li class="active"><a href="index.php"><svg class="glyph stroked dashboard-dial"><use

xlink:href="#stroked-dashboard-dial"></use></svg> Dashboard</a></li>

<li><a href="jadwal.php"><svg class="glyph stroked calendar"><use xlink:href="#stroked-calendar"></use></svg> Jadwal Pelajaran</a></li>

(11)

<a href="cek-studi.php">

<span data-toggle="collapse" href="#sub-item-1"><svg class="glyph stroked notepad "><use

xlink:href="#stroked-notepad"/></svg></span> Informasi Nilai </a>

<ul class="children collapse" id="sub-item-1"> <li>

<a class="" href="#">

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Harian

</a> </li> <li>

<a class="" href="#">

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Tengah Semester

</a> </li> <li>

<a class="" href="#">

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan AKhir Semester

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

</li>

<li><a href="password.php"><svg class="glyph stroked pencil"><use xlink:href="#stroked-pencil"></use></svg> Ganti

Password</a></li>

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

<li><a href="signout.php"><svg class="glyph stroked arrow left"><use xlink:href="#stroked-arrow-left"/></svg> Logout</a></li>

(12)

<div class="attribution">Website portal <a href="#">SMAN 1 Medan</a><br/>developed by Ardiansyah</div>

</div><!--/.sidebar-->

<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">

<div class="row">

<ol class="breadcrumb">

<li><a href="#"><svg class="glyph stroked home"><use xlink:href="#stroked-home"></use></svg></a></li>

<li class="active"><?php echo $_SESSION['customer'] ?></li>

</ol>

</div><!--/.row-->

<div class="row">

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

<h1 class="page-header">Selamat datang, <?php echo $_SESSION['customer'] ?></h1>

</div>

</div><!--/.row-->

<div class="row">

<div class="col-xs-6 col-md-3">

<div class="panel panel-default">

<div class="panel-body easypiechart-panel"> <h4>Pencapaian Tugas Individu</h4> <div class="easypiechart"

id="easypiechart-blue" data-percent="92" ><span class="percent">92%</span> </div>

</div> </div>

</div>

(13)

<div class="panel panel-default">

<div class="panel-body easypiechart-panel"> <h4>Pencapaian Tugas Kelompok</h4> <div class="easypiechart"

id="easypiechart-orange" data-percent="65" ><span class="percent">65%</span> </div>

</div> </div>

</div>

<div class="col-xs-6 col-md-3">

<div class="panel panel-default">

<div class="panel-body easypiechart-panel"> <h4>Persiapan Festival</h4>

<div class="easypiechart"

id="easypiechart-teal" data-percent="56" ><span class="percent">56%</span> </div>

</div> </div>

</div>

<div class="col-xs-6 col-md-3">

<div class="panel panel-default">

<div class="panel-body easypiechart-panel"> <h4>Total Nilai Masuk</h4>

<div class="easypiechart"

id="easypiechart-red" data-percent="27" ><span class="percent">27%</span> </div>

</div> </div>

</div>

</div><!--/.row-->

<div class="row">

(14)

<div class="panel panel-red">

<div class="panel-heading dark-overlay">Agenda Kegiatan</div>

<div class="panel-body"> <?php

$query = mysqli_query($con,"SELECT * FROM agenda"); while($row = mysqli_fetch_array($query)){

$id_agenda = $row['id_agenda']; $foto = $row['foto'];

echo"<center><img src='images/$foto' alt='$id_agenda' width='250px' height='250px'></center>";

} ?>

</div> </div>

</div><!--/.col-->

<div class="col-md-8">

<div class="panel panel-blue">

<div class="panel-heading dark-overlay"><svg class="glyph stroked clipboard-with-paper"><use

xlink:href="#stroked-clipboard-with-paper"></use></svg>To-do List</div> <div class="panel-body">

<ul class="todo-list"> <li class="todo-list-item">

<div class="checkbox">

<input type="checkbox" id="checkbox" />

<label for="checkbox">Make a plan for today</label>

</div>

(15)

<a href="#"><svg class="glyph stroked pencil"><use

xlink:href="#stroked-pencil"></use></svg></a>

<a href="#" class="flag"><svg class="glyph stroked flag"><use xlink:href="#stroked-flag"></use></svg></a>

<a href="#"

class="trash"><svg class="glyph stroked trash"><use xlink:href="#stroked-trash"></use></svg></a>

</div> </li>

<li class="todo-list-item"> <div class="checkbox">

<input type="checkbox" id="checkbox" />

<label for="checkbox">Update Basecamp</label>

</div>

<div class="pull-right action-buttons">

<a href="#"><svg class="glyph stroked pencil"><use

xlink:href="#stroked-pencil"></use></svg></a>

<a href="#" class="flag"><svg class="glyph stroked flag"><use xlink:href="#stroked-flag"></use></svg></a>

<a href="#"

class="trash"><svg class="glyph stroked trash"><use xlink:href="#stroked-trash"></use></svg></a>

</div> </li>

<li class="todo-list-item"> <div class="checkbox">

<input type="checkbox" id="checkbox" />

<label for="checkbox">Send email to Jane</label>

(16)
(17)

</div>

<div class="pull-right action-buttons">

<a href="#"><svg class="glyph stroked pencil"><use

xlink:href="#stroked-pencil"></use></svg></a>

<a href="#" class="flag"><svg class="glyph stroked flag"><use xlink:href="#stroked-flag"></use></svg></a>

<a href="#"

class="trash"><svg class="glyph stroked trash"><use xlink:href="#stroked-trash"></use></svg></a>

</div> </li>

<li class="todo-list-item"> <div class="checkbox">

<input type="checkbox" id="checkbox" />

<label for="checkbox">Tidy up workspace</label>

</div>

<div class="pull-right action-buttons">

<a href="#"><svg class="glyph stroked pencil"><use

xlink:href="#stroked-pencil"></use></svg></a>

<a href="#" class="flag"><svg class="glyph stroked flag"><use xlink:href="#stroked-flag"></use></svg></a>

<a href="#"

class="trash"><svg class="glyph stroked trash"><use xlink:href="#stroked-trash"></use></svg></a>

</div> </li>

</ul> </div>

(18)

<input id="btn-input" type="text" class="form-control input-md" placeholder="Add new task" />

<span class="input-group-btn"> <button class="btn btn-primary btn-md" id="btn-todo">Add</button>

</span> </div>

</div> </div>

</div><!--/.col--> </div><!--/.row-->

</div> <!--/.main-->

<script src="js/jquery-1.11.1.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/chart.min.js"></script> <script src="js/chart-data.js"></script> <script src="js/easypiechart.js"></script> <script src="js/easypiechart-data.js"></script> <script src="js/bootstrap-datepicker.js"></script> <script>

$('#calendar').datepicker({ });

!function ($) {

$(document).on("click","ul.nav li.parent > a > span.icon", function(){

$(this).find('em:first').toggleClass("glyphicon-minus"); });

$(".sidebar span.icon").find('em:first').addClass("glyphicon-plus");

(19)

$(window).on('resize', function () {

if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')

})

$(window).on('resize', function () {

if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')

}) </script> </body>

</html>

4. uas-pro.php <?php

session_start(); error_reporting(0); include "connect.php";

$nama=$_SESSION['customer']; $jurusan=$_POST['jurusan']; $semester=$_POST['semester']; $kelas = $_POST['kelas'];

$user = mysqli_query($con,"SELECT * FROM uas WHERE nama='$nama' AND jurusan LIKE '%$jurusan%' AND semester='$semester' AND kelas='$kelas'");

?>

<!DOCTYPE html> <html>

<head>

(20)

<meta name="viewport" content="width=device-width, initial-scale=1"> <title>SMAN 1 Medan</title>

<link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/datepicker3.css" rel="stylesheet"> <link href="css/styles.css" rel="stylesheet"> <link rel="shortcut icon" href="favico.png" /> <!--Icons-->

<script src="js/lumino.glyphs.js"></script>

<!--[if lt IE 9]>

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

</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container-fluid">

<div class="navbar-header">

<button type="button" class="navbar-toggle collapsed" 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.php"><span>Portal Akademik </span>SMA Negeri 1 Medan</a>

<ul class="user-menu">

(21)

<a href="#" class="dropdown-toggle" data-toggle="dropdown"><svg class="glyph stroked male-user"><use

xlink:href="#stroked-male-user"></use></svg> <?php echo $_SESSION['customer'] ?> <span class="caret"></span></a>

<ul class="dropdown-menu" role="menu"> <li><a href="profil.php"><svg class="glyph stroked male-user"><use

xlink:href="#stroked-male-user"></use></svg> Profile</a></li>

<li><a href="signout.php"><svg class="glyph stroked cancel"><use xlink:href="#stroked-cancel"></use></svg> Logout</a></li>

</ul> </li>

</ul> </div>

</div><!-- /.container-fluid --> </nav>

<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar"> <form role="search">

<div class="form-group">

<input type="text" class="form-control" placeholder="Search">

</div> </form>

<ul class="nav menu">

<li><a href="profil.php"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg><strong><?php echo $_SESSION['customer'] ?></strong></a></li>

<li><a href="index.php"><svg class="glyph stroked dashboard-dial"><use xlink:href="#stroked-dashboard-dial"></use></svg> Dashboard</a></li>

<li><a href="jadwal.php"><svg class="glyph stroked calendar"><use xlink:href="#stroked-calendar"></use></svg> Jadwal Pelajaran</a></li>

<li class="active">

(22)

<span data-toggle="collapse" href="#sub-item-1"><svg class="glyph stroked notepad "><use

xlink:href="#stroked-notepad"/></svg></span> Informasi Nilai </a>

</li>

<li class="parent">

<ul class="children collapse in" id="sub-item-1"> <li>

<a class="" href="uh-pro.php">

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Harian

</a> </li> <li>

<a class="" href="uts-pro.php">

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Tengah Semester

</a> </li> <li>

<a class="" href="uas-pro.php">

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Akhir Semester

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

</li>

<li><a href="password.php"><svg class="glyph stroked pencil"><use xlink:href="#stroked-pencil"></use></svg> Ganti

Password</a></li>

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

(23)

<div class="attribution">Website portal <a href="#">SMAN 1 Medan</a><br/>developed by Ardiansyah</div>

</div><!--/.sidebar-->

<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">

<div class="row">

<ol class="breadcrumb">

<li><a href="#"><svg class="glyph stroked home"><use xlink:href="#stroked-home"></use></svg></a></li>

<li class="active">Icons</li> </ol>

</div><!--/.row-->

<div class="row">

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

<h1 class="page-header">Informasi Nilai Siswa</h1> </div>

</div><!--/.row-->

<div class="row">

<div class="col-md-3">

<div class="panel panel-info">

<div class="panel-heading"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg> <?php echo $_SESSION['customer'] ?></div>

<div class="panel-body"> <div class="row">

<form action="uas-pro.php" method="POST" style="padding-right: 15px; padding-left: 15px;">

<div class="form-group"> <label>Jurusan</label>

(24)

<option value="mia">MIA</option>

<option value="sos">SOS</option>

</select> </div>

<div class="form-group"> <label>Kelas</label>

<select class="form-control" name="kelas">

<option value="X">X</option>

<option value="XI">XI</option>

<option value="XII">XII</option>

</select> </div>

<div class="form-group"> <label>Semester</label> <select class="form-control" name="semester">

<option value="I">I</option>

<option value="II">II</option>

</select> </div>

<button type="submit" class="btn btn-primary">Lihat Nilai</button>

<button type="reset" class="btn btn-default">Reset</button>

(25)

</div> </div>

</div> </div>

<div class="col-md-8">

<div class="panel panel-success"> <div class="panel-heading">

Data Nilai </div>

<div class="panel-body"> <table class="table"> <thead>

<tr>

<th>No.</th><th>Mata Pelajaran</th><th>Nilai</th><th>Huruf</th>

</tr> </thead> <?php

while ($row = mysqli_fetch_array($user)): ?>

<tr>

<td>1.</td>

<td>Pendidikan Agama</td>

<td><?= $n = $row['agama'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>2.</td>

<td>Bahasa Indonesia</td>

(26)

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>3.</td>

<td>Bahasa Inggris</td>

<td><?= $n = $row['bing'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>4.</td>

<td>Matematika</td>

<td><?= $n = $row['mate'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>5.</td>

<td>Penjaskes</td>

<td><?= $n = $row['penjas'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>6.</td>

<td>Seni Budaya</td>

<td><?= $n = $row['seni'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

(27)

<td><?= $n = $row['fisika'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>8.</td> <td>Biologi</td>

<td><?= $n = $row['biologi'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>9.</td> <td>Kimia</td>

<td><?= $n = $row['kimia'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>10.</td> <td>Ekonomi</td>

<td><?= $n = $row['ekonomi'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>11.</td>

<td>Sosiologi</td>

<td><?= $n = $row['sosiologi'] ?></td>

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

(28)

<td>12.</td> <td>Geografi</td>

<td><?= $n = $row['geografi'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>13.</td> <td>Sejarah</td>

<td><?= $n = $row['sejarah'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <?php endwhile; ?> </table>

</div> </div>

</div>

</div><!--/.row-->

</div><!--/.main-->

<script src="js/jquery-1.11.1.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/chart.min.js"></script> <script src="js/chart-data.js"></script> <script src="js/easypiechart.js"></script> <script src="js/easypiechart-data.js"></script> <script src="js/bootstrap-datepicker.js"></script> <script src="js/bootstrap-table.js"></script> <script>

(29)

$(document).on("click","ul.nav li.parent > a > span.icon", function(){

$(this).find('em:first').toggleClass("glyphicon-minus");

});

$(".sidebar

span.icon").find('em:first').addClass("glyphicon-plus"); }(window.jQuery);

$(window).on('resize', function () {

if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')

})

$(window).on('resize', function () {

if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')

}) </script> </body>

</html>

5. uh-pro.php <?php

session_start(); error_reporting(0); include "connect.php";

$jurusan=$_POST['jurusan']; $semester=$_POST['semester']; $kelas = $_POST['kelas'];

(30)

?>

<!DOCTYPE html> <html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1"> <title>SMAN 1 Medan</title>

<link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/datepicker3.css" rel="stylesheet"> <link href="css/styles.css" rel="stylesheet"> <link rel="shortcut icon" href="favico.png" /> <!--Icons-->

<script src="js/lumino.glyphs.js"></script>

<!--[if lt IE 9]>

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

</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">

<div class="container-fluid"> <div class="navbar-header">

<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse">

(31)

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

<a class="navbar-brand" href="index.php"><span>Portal Akademik </span>SMA Negeri 1 Medan</a>

<ul class="user-menu">

<li class="dropdown pull-right">

<a href="#" class="dropdown-toggle" data-toggle="dropdown"><svg class="glyph stroked male-user"><use

xlink:href="#stroked-male-user"></use></svg> <?php echo $_SESSION['customer'] ?> <span class="caret"></span></a>

<ul class="dropdown-menu" role="menu"> <li><a href="profil.php"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg> Profile</a></li>

<li><a href="signout.php"><svg

class="glyph stroked cancel"><use xlink:href="#stroked-cancel"></use></svg> Logout</a></li>

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

</div><!-- /.container-fluid --> </nav>

<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar"> <form role="search">

<div class="form-group">

<input type="text" class="form-control" placeholder="Search">

</div> </form>

(32)

<li><a href="profil.php"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg><strong><?php echo $_SESSION['customer'] ?></strong></a></li>

<li><a href="index.php"><svg class="glyph stroked dashboard-dial"><use xlink:href="#stroked-dashboard-dial"></use></svg> Dashboard</a></li>

<li><a href="jadwal.php"><svg class="glyph stroked calendar"><use xlink:href="#stroked-calendar"></use></svg> Jadwal Pelajaran</a></li>

<li class="active">

<a href="cek-studi.php">

<span data-toggle="collapse" href="#sub-item-1"><svg class="glyph stroked notepad "><use

xlink:href="#stroked-notepad"/></svg></span> Informasi Nilai </a>

</li>

<li class="parent">

<ul class="children collapse in" id="sub-item-1"> <li>

<a class="" href="uh-pro.php">

<svg class="glyph stroked

chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Harian </a>

</li> <li>

<a class="" href="uts-pro.php">

<svg class="glyph stroked

chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Tengah Semester

</a> </li> <li>

<a class="" href="uas-pro.php">

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Akhir Semester

(33)

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

<li><a href="password.php"><svg class="glyph stroked pencil"><use xlink:href="#stroked-pencil"></use></svg> Ganti

Password</a></li>

<li role="presentation" class="divider"></li> <li><a

href="signout.php"><strong>Logout</strong></a></li> </ul>

<div class="attribution">Website portal <a href="#">SMAN 1 Medan</a><br/>developed by Ardiansyah</div>

</div><!--/.sidebar-->

<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">

<div class="row">

<ol class="breadcrumb">

<li><a href="#"><svg class="glyph stroked home"><use xlink:href="#stroked-home"></use></svg></a></li>

<li class="active">Icons</li> </ol>

</div><!--/.row-->

<div class="row">

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

<h1 class="page-header">Informasi Nilai Siswa</h1> </div>

</div><!--/.row-->

<div class="row">

<div class="col-md-3">

(34)

<div class="panel-heading"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg> <?php echo $_SESSION['customer'] ?></div>

<div class="panel-body"> <div class="row">

<form action="uas-pro.php" method="POST" style="padding-right: 15px; padding-left: 15px;">

<div class="form-group"> <label>Jurusan</label>

<select class="form-control" name="jurusan">

<option value="mia">MIA</option> <option value="sos">SOS</option> </select>

</div>

<div class="form-group"> <label>Kelas</label>

<select class="form-control" name="kelas">

<option value="X">X</option> <option value="XI">XI</option> <option value="XII">XII</option> </select>

</div>

<div class="form-group"> <label>Semester</label> <select class="form-control" name="semester">

<option value="I">I</option> <option value="II">II</option> </select>

(35)

<button type="submit" class="btn btn-primary">Lihat Nilai</button>

<button type="reset" class="btn btn-default">Reset</button>

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

<div class="col-md-8">

<div class="panel panel-success"> <div class="panel-heading"> Data Nilai

</div>

<div class="panel-body"> <table class="table"> <thead>

<tr>

<th>No.</th><th>Mata Pelajaran</th><th>Nilai</th><th>Huruf</th>

</tr> </thead> <?php

while ($row = mysqli_fetch_array($user)): ?>

<tr>

<td><input type='hidden' name='id_user' value='id_user'>

</tr> <tr>

<td>1.</td>

(36)

<td><?= $n = $row['agama'] ?></td>

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>2.</td>

<td>Bahasa Indonesia</td> <td><?= $n = $row['bindo'] ?></td>

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>3.</td>

<td>Bahasa Inggris</td>

<td><?= $n = $row['bing'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>4.</td>

<td>Matematika</td>

<td><?= $n = $row['mate'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>5.</td>

<td>Penjaskes</td>

<td><?= $n = $row['penjas'] ?></td>

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

(37)

<tr>

<td>6.</td>

<td>Seni Budaya</td>

<td><?= $n = $row['seni'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>7.</td> <td>Fisika</td>

<td><?= $n = $row['fisika'] ?></td>

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>8.</td> <td>Biologi</td>

<td><?= $n = $row['biologi'] ?></td>

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>9.</td> <td>Kimia</td>

<td><?= $n = $row['kimia'] ?></td>

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

(38)

<td><?= $n = $row['ekonomi'] ?></td>

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>11.</td>

<td>Sosiologi</td>

<td><?= $n = $row['sosiologi'] ?></td>

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>12.</td> <td>Geografi</td>

<td><?= $n = $row['geografi'] ?></td>

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>13.</td> <td>Sejarah</td>

<td><?= $n = $row['sejarah'] ?></td>

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <?php endwhile; ?> </table>

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

(39)

</div><!--/.main-->

<script src="js/jquery-1.11.1.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/chart.min.js"></script> <script src="js/chart-data.js"></script> <script src="js/easypiechart.js"></script> <script src="js/easypiechart-data.js"></script> <script src="js/bootstrap-datepicker.js"></script> <script src="js/bootstrap-table.js"></script> <script>

!function ($) {

$(document).on("click","ul.nav li.parent > a > span.icon", function(){

$(this).find('em:first').toggleClass("glyphicon-minus");

});

$(".sidebar

span.icon").find('em:first').addClass("glyphicon-plus"); }(window.jQuery);

$(window).on('resize', function () {

if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')

})

$(window).on('resize', function () {

if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')

})

</script> </body>

(40)

6. uts-pro.php <?php

session_start(); error_reporting(0); include "connect.php";

$jurusan=$_POST['jurusan']; $semester=$_POST['semester']; $kelas = $_POST['kelas'];

$user = mysqli_query($con,"SELECT * FROM uas WHERE jurusan LIKE '%$jurusan%' AND semester='$semester' AND kelas='$kelas'");

?>

<!DOCTYPE html> <html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1"> <title>SMAN 1 Medan</title>

<link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/datepicker3.css" rel="stylesheet"> <link href="css/styles.css" rel="stylesheet"> <link rel="shortcut icon" href="favico.png" /> <!--Icons-->

<script src="js/lumino.glyphs.js"></script>

<!--[if lt IE 9]>

(41)

<![endif]-->

</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container-fluid">

<div class="navbar-header">

<button type="button" class="navbar-toggle collapsed" 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.php"><span>Portal Akademik </span>SMA Negeri 1 Medan</a>

<ul class="user-menu">

<li class="dropdown pull-right">

<a href="#" class="dropdown-toggle" data-toggle="dropdown"><svg class="glyph stroked male-user"><use

xlink:href="#stroked-male-user"></use></svg> <?php echo $_SESSION['customer'] ?> <span class="caret"></span></a>

<ul class="dropdown-menu" role="menu"> <li><a href="profil.php"><svg class="glyph stroked male-user"><use

xlink:href="#stroked-male-user"></use></svg> Profile</a></li>

<li><a href="signout.php"><svg class="glyph stroked cancel"><use xlink:href="#stroked-cancel"></use></svg> Logout</a></li>

</ul> </li>

</ul> </div>

(42)

</nav>

<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar"> <form role="search">

<div class="form-group">

<input type="text" class="form-control" placeholder="Search">

</div> </form>

<ul class="nav menu">

<li><a href="profil.php"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg><strong><?php echo $_SESSION['customer'] ?></strong></a></li>

<li><a href="index.php"><svg class="glyph stroked dashboard-dial"><use xlink:href="#stroked-dashboard-dial"></use></svg> Dashboard</a></li>

<li><a href="jadwal.php"><svg class="glyph stroked calendar"><use xlink:href="#stroked-calendar"></use></svg> Jadwal Pelajaran</a></li>

<li class="active">

<a href="cek-studi.php">

<span data-toggle="collapse" href="#sub-item-1"><svg class="glyph stroked notepad "><use

xlink:href="#stroked-notepad"/></svg></span> Informasi Nilai </a>

</li>

<li class="parent">

<ul class="children collapse in" id="sub-item-1"> <li>

<a class="" href="uh-pro.php">

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Harian

</a> </li> <li>

(43)

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Tengah Semester

</a> </li> <li>

<a class="" href="uas-pro.php">

<svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Ulangan Akhir Semester

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

</li>

<li><a href="password.php"><svg class="glyph stroked pencil"><use xlink:href="#stroked-pencil"></use></svg> Ganti

Password</a></li>

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

<li><a href="signout.php"><strong>Logout</strong></a></li> </ul>

<div class="attribution">Website portal <a href="#">SMAN 1 Medan</a><br/>developed by Ardiansyah</div>

</div><!--/.sidebar-->

<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">

<div class="row">

<ol class="breadcrumb">

<li><a href="#"><svg class="glyph stroked home"><use xlink:href="#stroked-home"></use></svg></a></li>

<li class="active">Icons</li> </ol>

</div><!--/.row-->

<div class="row">

(44)

<h1 class="page-header">Informasi Nilai Siswa</h1> </div>

</div><!--/.row-->

<div class="row">

<div class="col-md-3">

<div class="panel panel-info">

<div class="panel-heading"><svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg> <?php echo $_SESSION['customer'] ?></div>

<div class="panel-body"> <div class="row">

<form action="uas-pro.php" method="POST" style="padding-right: 15px; padding-left: 15px;">

<div class="form-group"> <label>Jurusan</label>

<select class="form-control" name="jurusan">

<option value="mia">MIA</option>

<option value="sos">SOS</option>

</select> </div>

<div class="form-group"> <label>Kelas</label>

<select class="form-control" name="kelas">

<option value="X">X</option>

<option value="XI">XI</option>

(45)

</select> </div>

<div class="form-group"> <label>Semester</label> <select class="form-control" name="semester">

<option value="I">I</option>

<option value="II">II</option>

</select> </div>

<button type="submit" class="btn btn-primary">Lihat Nilai</button>

<button type="reset" class="btn btn-default">Reset</button>

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

</div> </div>

<div class="col-md-8">

<div class="panel panel-success"> <div class="panel-heading">

Data Nilai </div>

<div class="panel-body"> <table class="table"> <thead>

<tr>

(46)

</tr> </thead> <?php

while ($row = mysqli_fetch_array($user)): ?>

<tr>

<td><input type='hidden' name='id_user' value='id_user'>

</tr> <tr>

<td>1.</td>

<td>Pendidikan Agama</td>

<td><?= $n = $row['agama'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>2.</td>

<td>Bahasa Indonesia</td>

<td><?= $n = $row['bindo'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>3.</td>

<td>Bahasa Inggris</td>

<td><?= $n = $row['bing'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>4.</td>

<td>Matematika</td>

(47)

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>5.</td>

<td>Penjaskes</td>

<td><?= $n = $row['penjas'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>6.</td>

<td>Seni Budaya</td>

<td><?= $n = $row['seni'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>7.</td> <td>Fisika</td>

<td><?= $n = $row['fisika'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>8.</td> <td>Biologi</td>

<td><?= $n = $row['biologi'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

(48)

<td><?= $n = $row['kimia'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>10.</td> <td>Ekonomi</td>

<td><?= $n = $row['ekonomi'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>11.</td>

<td>Sosiologi</td>

<td><?= $n = $row['sosiologi'] ?></td>

<td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>12.</td> <td>Geografi</td>

<td><?= $n = $row['geografi'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

</tr> <tr>

<td>13.</td> <td>Sejarah</td>

<td><?= $n = $row['sejarah'] ?></td> <td><?= ($n > 85) ? 'A' : (($n > 75) ? 'B' : (($n > 65) ? 'C' : 'D')) ?></td>

(49)

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

</div>

</div><!--/.row-->

</div><!--/.main-->

<script src="js/jquery-1.11.1.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/chart.min.js"></script> <script src="js/chart-data.js"></script> <script src="js/easypiechart.js"></script> <script src="js/easypiechart-data.js"></script> <script src="js/bootstrap-datepicker.js"></script> <script src="js/bootstrap-table.js"></script> <script>

!function ($) {

$(document).on("click","ul.nav li.parent > a > span.icon", function(){

$(this).find('em:first').toggleClass("glyphicon-minus");

});

$(".sidebar

span.icon").find('em:first').addClass("glyphicon-plus"); }(window.jQuery);

$(window).on('resize', function () {

if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')

})

$(window).on('resize', function () {

(50)
(51)
(52)
(53)
(54)
(55)
(56)

}) </script> </body>

Referensi

Dokumen terkait

Dalam penelitian ini juga memberikan bukti bahwa rasio WCTA, RETA dan MVEBVD pada model Altman serta rasio WCTA pada model Springate secara statistik berbeda untuk kondisi bank

sehingga akan menghasilkan kinerja karyawan yang baik bagi perusahaan. Oleh sebab itu penelitian ini dilakukan untuk meneliti

Mempraktikkan berbagai kombinasi gerak dasar melalui permainan dan nilai-nilai yang terkandung di dalamnya Kompetensi Dasar Indikator Materi Pokok Diri sendiri Keluarga

Seperti hal ketika yang berikut ini dibutuhkan untuk mencatatat dikantor daerah pengangkutan atau transportasi yang mengawasi daerah tempat Anda tinggal, dan semua kendaraan

Hasil uji statistik menunjukkan bahwa tidak ada pengaruh sikap petugas terhadap kualitas vaksin campak, hal tersebut dapat disebabkan karena mayoritas sikap bidan di desa

[r]

MEDIA : MEDIA INDONESIA TANGGAL : 7

Hasil penelitian menunjukan bahwa sebagian kecil dari siswa kelas II A SLTP Negeri 32 Banjarmasin melakukan perilaku menyimpang, hal tersebut dibuktikan oleh hasil