<!--main-container-part-->

<div id="content">
    <!--breadcrumbs-->
    <div id="content-header">
        <div id="breadcrumb"> <a href="<?php echo site_url('admin'); ?>" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a></div>
    </div>
    <!--End-breadcrumbs-->

    <!--Action boxes-->
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <div class="widget-box">
                    <div class="widget-title"> <span class="icon"> <i class="icon-refresh"></i> </span>
                        <h5><?php echo $judul_halaman; ?></h5>
                    </div>
                    <div class="widget-content">
                        <?php
                        $path_file = FCPATH . 'assets/uploads/tanggal_upload.txt';

                        if (file_exists($path_file)) {
                            $tanggal_update = trim(file_get_contents($path_file));
                            $class_alert    = status_waktu_class($tanggal_update);
                            $yang_lalu      = waktu_yang_lalu($tanggal_update);
                        ?>
                            <div class="alert <?php echo $class_alert; ?>">
                                <i class="icon-time"></i>
                                Terakhir sinkronisasi nilai adalah
                                <strong><?php echo date('d M Y H:i', strtotime($tanggal_update)); ?></strong>
                                (<?php echo $yang_lalu; ?>)
                            </div>
                        <?php
                        } else {
                        ?>
                            <div class="alert alert-warning">
                                <i class="icon-info-sign"></i>
                                Belum pernah dilakukan upload nilai.
                            </div>
                        <?php
                        }
                        ?>


                        <?php
                        if ($pesan != "") {
                            echo '<div class="alert alert-danger">' . $pesan . '</div>';
                        }
                        ?>
                        <hr />
                        <a href="<?php echo site_url('admin/upload_nilai/do'); ?>" class="btn btn-warning">Upload Nilai</a>
                    </div>
                </div>
            </div>
        </div>
        <hr />
    </div>
</div>
