PHP Classes

File: application/views/report/report.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   PHP Attendance Management System using Fingerprint   application/views/report/report.php   Download  
File: application/views/report/report.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Attendance Management System using Fingerprint
Keep track of employee attendance with fingerprint
Author: By
Last change:
Date: 11 months ago
Size: 6,057 bytes


Class file image Download
<div class="container">
    <h5>Hello <span><?php echo $first_name; ?></span>.</h5>

    <table id="data-table" class="display" cellspacing="0" width="100%">
                In Time
                Out Time
                Work Hour
                Over Time
                Late Time
                Early Out Time
                In Location
                Out Location


    <div class="col-md-12" style="text-align:center;">
        Copyright&copy; - <?php echo date('Y'); ?> | Create by <a
</div><!-- /container -->

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                <h4 class="modal-title" id="myModalLabel">Attendance Login System</h4>
            <div class="modal-body">
                <p>Attendance login system is based on the <a
                <p>If you have question, please email me : <a
                    Visit: <a href=""
                <p>The MIT License (MIT).</p>
                <p>Copyright&copy; <?php echo date('Y'); ?>, Abed Putra.</p>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

<!-- /Load Js -->
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src="<?php echo base_url() . 'public/js/main.js' ?>"></script>
<script type="text/javascript"
<script type="text/javascript"
<script src=""></script>

    var table;
    $(document).ready(function () {

        $.fn.dataTableExt.oApi.fnPagingInfo = function (oSettings) {
            return {
                "iStart": oSettings._iDisplayStart,
                "iEnd": oSettings.fnDisplayEnd(),
                "iLength": oSettings._iDisplayLength,
                "iTotal": oSettings.fnRecordsTotal(),
                "iFilteredTotal": oSettings.fnRecordsDisplay(),
                "iPage": Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength),
                "iTotalPages": Math.ceil(oSettings.fnRecordsDisplay() / oSettings._iDisplayLength)

        table = $("#data-table").DataTable({
            initComplete: function () {
                var api = this.api();
                $('#data-table_filter input')
                    .on('input.DT', function () {
            oLanguage: {
                sProcessing: "loading..."
            processing: true,
            serverSide: false,
            "scrollX": true,
            ajax: {
                "url": "<?php echo site_url('report/dataTableJson'); ?>",
                "type": "POST",
                "data": {"role": "<?php echo $role; ?>", "name": "<?php echo $name; ?>"}
            dom: 'lBfrtip',
            buttons: [
                'csv', 'excel', 'print'
            columns: [
                {"data": "id", width: 20},
                {"data": "name", width: 170},
                {"data": "date", width: 70},
                {"data": "in_time", width: 70},
                {"data": "out_time", width: 70},
                {"data": "work_hour", width: 70},
                {"data": "over_time", width: 70},
                {"data": "late_time", width: 70},
                {"data": "early_out_time", width: 70},
                {"data": "in_location", width: 170},
                {"data": "out_location", width: 170}
            order: [[2, 'desc'],[3, 'desc']],
            rowCallback: function (row, data, iDisplayIndex) {
                var info = this.fnPagingInfo();
                var page = info.iPage;
                var length = info.iLength;
                $('td:eq(0)', row).html();

        $(".form-control.input-sm").attr("placeholder", "Search multi columns");
        $(".dataTables_length").css("margin-right", "10px");