0% found this document useful (0 votes)
42 views17 pages

Lamp Iran

The document contains code for a login page and an attendance input page for a student monitoring system. The login page allows a user to enter their username and password. The attendance input page displays a form to select attendance status (present, late, etc.) for each student in a class for a given date and time period. It loops through each student, displaying their details and a radio button group to select their attendance status for the date.

Uploaded by

MERY
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views17 pages

Lamp Iran

The document contains code for a login page and an attendance input page for a student monitoring system. The login page allows a user to enter their username and password. The attendance input page displays a form to select attendance status (present, late, etc.) for each student in a class for a given date and time period. It loops through each student, displaying their details and a radio button group to select their attendance status for the date.

Uploaded by

MERY
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

1.

Listing Login
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-
scale=1.0">
<title>MONITORING SISWA</title>
<!-- Core CSS - Include with every page -->
<link href="css/bootstrap.min.css"
rel="stylesheet">
<link href="font-awesome/css/font-
awesome.css" rel="stylesheet">

<!-- SB Admin CSS - Include with every page -->


<link href="css/sb-admin.css"
rel="stylesheet">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-4 col-md-offset-
4">

<div class="login-panel panel


panel-default">

<div class="panel-heading">

<h3 class="panel-title"
align="center">Login</h3>
<img
src="satu1.png" height="150" width="325"
align="center" >
</div>
<div class="panel-body">
<form role="form"
method="post" action="ceklog.php">
<fieldset>
<div
class="form-group">
2

<input class="form-control"
placeholder="Username" name="username"
autofocus>
</div>
<div
class="form-group">
<input
class="form-control" placeholder="Password"
name="password" type="password" value="">
</div>
<!-- Change
this to a button or input when using this as a
form -->
<button
class="btn btn-lg btn-success btn-
block">Login</a>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</div>

<!-- Core Scripts - Include with every page


-->
<script src="js/jquery-1.10.2.js"></script>
<script src="js/bootstrap.min.js"></script>
<script
src="js/plugins/metisMenu/jquery.metisMenu.js">
</script>
<!-- SB Admin Scripts - Include with every
page -->
<script src="js/sb-admin.js"></script>
</body>
</html>

A-2
3

2. Listing input_absen.php
<div class="row">
<div class="col-lg-12">
<h3 class="page-
header"><strong>Input Data Absensi Tanggal : <?php

if($_GET['tanggal']<10){
$rw="0$_GET[tanggal]";}else{ $rw="$_GET[tanggal]"; }

if($_GET['bulan']<10){ $rc="0$_GET[bulan]";}else{
$rc="$_GET[bulan]";}

$dt=$rw."-".$rc."-".$_GET['tahun'];
echo
$dt;
?>
</strong></h3>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
Data Siswa <?php

$sqlj=mysql_query("select * from kelas where


idk='$_SESSION[idk]'");

$rsj=mysql_fetch_array($sqlj);

echo
"Kelas $rsj[nama]";

$klas=$_GET['kls'];
$rg=10;
while($rg>0){

if($_GET['jam']==$rg){
?>

<a
href="media.php?module=input_absen&jam=<?php echo $rg
?>&kls=<?php echo $_GET['kls'] ?>&tanggal=<?php echo
$_GET['tanggal'] ?>&bulan=<?php echo $_GET['bulan']
?>&tahun=<?php echo $_GET['tahun'] ?>" class="navbar-

A-3
4

right text-danger">&nbsp; Jam ke <?php echo $rg ?>


&nbsp;</a>
<?php }else{ ?>
<a
href="media.php?module=input_absen&jam=<?php echo $rg
?>&kls=<?php echo $_GET['kls'] ?>&tanggal=<?php echo
$_GET['tanggal'] ?>&bulan=<?php echo $_GET['bulan']
?>&tahun=<?php echo $_GET['tahun'] ?>" class="navbar-
right">&nbsp; Jam ke <?php echo $rg ?> &nbsp;</a>

<?php } ?>

<?php $rg--; } ?>


</div>
<div class="panel-body">
<div class="table-
responsive">
<form method="post"
role="form"
action="././module/simpan.php?act=input_absen&jam=<?p
hp echo $_GET['jam'] ?>&klas=<?php echo $klas ?>">
<table class="table
table-striped table-bordered table-hover"
id="dataTables-example">
<thead>
<tr>
<th
class="text-center">NIS</th>
<th
class="text-center">Nama</th>
<th
class="text-center">Jenis Kelamin</th>
<th
class="text-center">Alamat</th>
<th
class="text-center">No Telepon</th>
<th
class="text-center">Keterangan</th>

</tr>
</thead>
<tbody>
<?php
$no=1;
$tg=date("d-m-Y");
$sql=mysql_query("select * from siswa where
idk='$_GET[kls]'");
while($rs=mysql_fetch_array($sql)){

A-4
5

$sqla=mysql_query("select * from absen where


ids='$rs[ids]' and tgl='$dt' and jam='$_GET[jam]'");
$rsa=mysql_fetch_array($sqla);
$conk=mysql_num_rows($sqla);
$sqlw=mysql_query("select * from kelas where
idk='$rs[idk]'");
$rsw=mysql_fetch_array($sqlw);
$sqlb=mysql_query("select * from sekolah where
id='$rsw[id]'");
$rsb=mysql_fetch_array($sqlb);

?> <tr
class="odd gradeX">
<td><?php
echo"$rs[nis]"; ?></td>
<td><?php
echo"$rs[nama]"; ?></td>
<?php
if($rs['jk']=="L"){
?>
<td
class="text-center">Laki - Laki</td>
<?php
}else{
?>
<td
class="text-center" >Perempuan</td>
<?php
}
?>

<td><?php
echo"$rs[alamat]"; ?></td>
<td><?php
echo"$rs[tlp]"; ?></td>
<td
class="text-center">

<div class="form-group">

<?php
if($conk==0){
?>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="A" >A
</label>
A-5
6

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="I">I
</label>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="S">S
</label>

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="M" >M
</label>

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="N" checked>N
</label>

<?php } ?>

<?php
if($rsa['ket']=="A"){
?>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="A" checked >A
</label>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="I">I
</label>
<label
class="radio-inline">

A-6
7

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="S">S
</label>

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="M" >M
</label>

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="N" >N
</label>

<?php } ?>
<?php
if($rsa['ket']=="I"){
?>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="A" >A
</label>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="I" checked>I
</label>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="S">S
</label>

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="M" >M
</label>
A-7
8

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="N" >N
</label>

<?php } ?>
<?php
if($rsa['ket']=="S"){
?>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="A" >A
</label>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="I" >I
</label>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="S" checked>S
</label>

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="M" >M
</label>

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="N" >N
</label>

<?php } ?>
<?php
A-8
9

if($rsa['ket']=="M"){
?>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="A" >A
</label>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="I" >I
</label>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="S" >S
</label>

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="M" checked>M
</label>

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="N" >N
</label>

<?php } ?>
<?php
if($rsa['ket']=="N"){
?>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="A" >A
</label>
<label
class="radio-inline">

A-9
10

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="I" >I
</label>
<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="S" >S
</label>

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="M" >M
</label>

<label
class="radio-inline">

<input type="radio" name="<?php echo $rs['ids'] ?>"


value="N" checked >N
</label>

<?php } ?>

</div>

</td>

</tr>
<?php
}
?>
</tbody>
</table>
<button
type="submit" class="btn btn-success">SImpan
Data</button>

</form>
</div>
<!-- /.table-responsive -
->
<br>
<div class="well">
A-10
11

<h4>Keterangan
Absensi</h4>
<p>A = Tidak Masuk
Tanpa Keterangan</p>
<p>I = Tidak Masuk
Ada Surat Ijin Atau Pemberitahuan</p>
<p>S = Tidak Masuk
Ada Surat Dokter Atau Pemberitahuan</p>
<p>M = Hadir</p>
<p>N = Belum Ada
Keterangan Absensi</p>

</div>
</div>
<!-- /.panel-body -->
</div>
<!-- /.panel -->
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->

A-11
2

A-2
3

A-3
4

A-4
5

A-5
6

A-6

You might also like