<?php

namespace LRS\OfficeServer\Views\Admin;

use LRS\OfficeServer\Controller\Contents;
use LRS\OfficeServer\Controller\Headers;
use LRS\OfficeServer\Controller\SentItem;
use LRS\OfficeServer\Controller\Routes;
use LRS\OfficeServer\Model\PesanTerkirim;
Headers::get_instance()->set_page_title('Pesan Terkirim')->set_page_name('Pesan Terkirim');
$tingkat1 = Routes::get_instance()->get_tingkat(1);
$daftar_pesan = SentItem::get_instance()->_gets(array('number' => -1));
$daftar_pesan_count = SentItem::get_instance()->_count();
Contents::get_instance()->get_header();
?>

<div class="container-fluid">
    <div class="row">
        <div class="col-xs-3 col-sm-2 sidebar">
            <?php 
Contents::get_instance()->get_sidebar();
?>
        </div>
        <div class="col-xs-9 col-sm-10 main">
            <h1 class="page-header">
                Pesan
                <small>Terkirim</small>
            </h1>
            <p>Berikut adalah daftar pesan yang telah terkirim.</p>
            <table class="table table-bordered table-striped">
                <thead>
Example #2
0
<?php

namespace LRS\OfficeServer\Views\Publik;

use LRS\OfficeServer\Controller\Headers;
use LRS\OfficeServer\Controller\Helpers;
$headers = Headers::get_instance()->add_head_meta(array(array('charset' => 'utf-8'), array('http-equiv' => 'X-UA-Compatible', 'content' => 'IE=edge'), array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1'), array('name' => 'description', 'content' => LRS_APP_DESCRIPTION), array('name' => 'author', 'content' => LRS_APP_AUTHOR)))->add_style('bootstrap.min.css')->add_style('bootstrap-theme.min.css')->add_style('font-awesome.min.css')->add_style('style.css')->add_favicon();
?>
<!-- Dikembangkan oleh <?php 
echo LRS_APP_DEVELOPER;
?>
 -->

<!DOCTYPE html>
<html lang="id">
<head>
    <?php 
echo $headers->get_head_meta();
?>
    <?php 
echo $headers->get_head_title();
?>
    <?php 
echo $headers->get_head_link();
?>
    <?php 
echo $headers->get_head_script();
?>
</head>

<body class="publik">
Example #3
0
$obj_absen = Absents::get_instance()->_get($this_day, $obj_people->getId());
!is_null($obj_absen->getStatus()) || $obj_absen->setStatus(Absents::status_tidak_masuk);
if ($is_absen_mulai) {
    $obj_absen->setDate($this_day)->setPeopleId($obj_people->getId())->setWorktimeStart(date('H:i:s'))->setStatus(Absents::status_masuk);
    lrs_redirect(LRS_URI_PATH . DS . $tingkat1 . DS . $tingkat2 . '?status=' . (Absents::get_instance()->_update($obj_absen) ? 1 : 999));
} elseif ($is_absen_berhenti) {
    $obj_absen->setWorktimeEnd(date('H:i:s'))->setStatus(Absents::status_selesai);
    lrs_redirect(LRS_URI_PATH . DS . $tingkat1 . DS . $tingkat2 . '?status=' . (Absents::get_instance()->_update($obj_absen) ? 2 : 999));
} elseif ($is_absen_berhenti_sebelum_waktunya) {
    $obj_absen->setWorktimeEnd(date('H:i:s'))->setStatus(Absents::status_izin_pulang)->setNote($_REQUEST['note']);
    lrs_redirect(LRS_URI_PATH . DS . $tingkat1 . DS . $tingkat2 . '?status=' . (Absents::get_instance()->_update($obj_absen) ? 3 : 999));
}
$default_params = array('range_date_start' => '', 'range_date_end' => '', 'number' => 10, 'page' => 1);
$list_params = sync_default_params($default_params, $_GET);
$hari_libur = json_decode(Options::get_instance()->get_option('hari_libur', array()), true);
Headers::get_instance()->set_page_title('Absen')->set_page_name('Absen')->set_page_sub_name($is_absen_histori ? 'Histori' : 'Absen');
Contents::get_instance()->get_header();
?>

<div class="container-fluid">
    <div class="row">
        <div class="col-xs-3 col-sm-2 sidebar">
            <?php 
Contents::get_instance()->get_sidebar();
?>
        </div>
        <div class="col-xs-9 col-sm-10 main">

            <?php 
if ($is_absen_histori) {
    ?>
Example #4
0
?>

<div class="container-fluid">
    <div class="row">
        <div class="col-xs-3 col-sm-2 sidebar">
            <?php 
Contents::get_instance()->get_sidebar();
?>
        </div>
        <div class="col-xs-9 col-sm-10 main">
            <h1 class="page-header">
                <?php 
echo Headers::get_instance()->get_page_name();
?>
                <small><?php 
echo Headers::get_instance()->get_page_sub_name();
?>
</small>
            </h1>
            <?php 
if ($aksi_kirim_pesan) {
    $pesan_keluars = array();
    foreach ($_REQUEST['GroupID'] as $GroupID) {
        $daftar_kontak = Kontak::get_instance()->_gets(array('GroupID' => $GroupID, 'number' => -1));
        /** @var $kontak ModelKontak */
        foreach ($daftar_kontak as $kontak) {
            $pesan_keluars[] = array($kontak->getNumber(), $_REQUEST['TextDecoded'], LRS_APP_AUTHOR);
        }
    }
    if (Outbox::get_instance()->_inserts($pesan_keluars)) {
        ?>
Example #5
0
<?php

namespace LRS\OfficeServer\Views\Publik;

use LRS\OfficeServer\Controller\Contents;
use LRS\OfficeServer\Controller\Headers;
use LRS\OfficeServer\Controller\Sessions;
Headers::get_instance()->set_page_title('Halaman tidak ditemukan');
Contents::get_instance()->get_header(Sessions::get_instance()->_has() ? 'loggedin' : '');
?>

    <div class="jumbotron">
        <div class="container">
            <h1>Aduh :(</h1>
            <p>Halaman yang side coba akses tidak ada atau sudah dihapus.</p>
            <p><a href="<?php 
echo LRS_URI_PATH;
?>
" class="btn btn-primary"><i class="glyphicon glyphicon-home"></i> Beranda</a></p>
        </div>
    </div>

<?php 
Contents::get_instance()->get_footer();
Example #6
0
<?php

namespace LRS\OfficeServer\Views\Staff;

use LRS\OfficeServer\Controller\Contents;
use LRS\OfficeServer\Controller\Headers;
use LRS\OfficeServer\Controller\Sessions;
$obj_people = Sessions::get_instance()->_retrieve()->getObjPeople();
Headers::get_instance()->set_page_title('Staff')->set_page_name('Staff');
Contents::get_instance()->get_header();
?>

<div class="container-fluid">
    <div class="row">
        <div class="col-xs-3 col-sm-2 sidebar">
            <?php 
Contents::get_instance()->get_sidebar();
?>
        </div>
        <div class="col-xs-9 col-sm-10 main">
            <h1 class="page-header">
                Hi, <?php 
echo $obj_people->getFirstName();
?>
            </h1>
        </div>
    </div>
</div>

<?php 
Contents::get_instance()->get_footer();
Example #7
0
<?php

/**
 * LRsoft Corp.
 * http://lrsoft.co.id
 *
 * Author : Zaf
 */
namespace LRS\OfficeServer\Views\Publik;

use LRS\OfficeServer\Controller\Contents;
use LRS\OfficeServer\Controller\Headers;
use LRS\OfficeServer\Controller\Sessions;
Headers::get_instance()->set_page_title('Pusat Informasi');
Contents::get_instance()->get_header(Sessions::get_instance()->_has() ? 'loggedin' : '');
?>

    <div class="container info">
        <div class="row">
            <div class="col-sm-8 main">
                <div class="item">
                    <h2 class="title">Ada masalah?</h2>
                    <div class="content">
                        <p>Malu berjalan, sesat bertanya.</p>
                        <hr/>
                        <h3>
                            Project Manager
                            <small>Research and Development (R&D)</small>
                        </h3>
                        <p>
                            <i class="fa fa-suitcase"></i>&nbsp;&nbsp;Ahmad Zafrullah
<?php

namespace LRS\OfficeServer\Views\Admin;

use LRS\OfficeServer\Controller\Contents;
use LRS\OfficeServer\Controller\Headers;
use LRS\OfficeServer\Controller\Helpers;
use LRS\OfficeServer\Controller\Inbox;
use LRS\OfficeServer\Controller\Outbox;
use LRS\OfficeServer\Controller\Routes;
use LRS\OfficeServer\Model\PesanMasuk;
use LRS\OfficeServer\Model\PesanKeluar;
Headers::get_instance()->set_page_title('Pesan Masuk ' . Inbox::public_prefix)->set_page_name('Pesan Masuk ' . Inbox::public_prefix);
$tingkat1 = Routes::get_instance()->get_tingkat(1);
$tingkat2 = Routes::get_instance()->get_tingkat(2);
$status = false;
$is_hapus = Routes::get_instance()->is_tingkat(3, Helpers::aksi_hapus) && Routes::get_instance()->has_tingkat(4);
$is_lihat = Routes::get_instance()->is_tingkat(3, Helpers::aksi_lihat) && Routes::get_instance()->has_tingkat(4);
$is_tampilkan = Routes::get_instance()->is_tingkat(3, Helpers::aksi_tampilkan) && Routes::get_instance()->has_tingkat(4);
if ($is_hapus) {
    $status = Inbox::get_instance()->_delete(Routes::get_instance()->get_tingkat(4));
} elseif ($is_tampilkan) {
    $status = Inbox::get_instance()->_set_processed(Routes::get_instance()->get_tingkat(4), Inbox::processed_display);
}
$daftar_pesan = Inbox::get_instance()->_gets(array('public_prefix' => Inbox::public_prefix, 'number' => -1));
$daftar_pesan_count = Inbox::get_instance()->_count();
Contents::get_instance()->get_header();
?>

<div class="container-fluid">
    <div class="row">
Example #9
0
?>
<ul class="nav nav-sidebar">
    <li <?php 
echo 'Staff' == Headers::get_instance()->get_page_name() ? 'class="active"' : '';
?>
 ><a href="<?php 
echo $base_link;
?>
"><i class="fa fa-user"></i>&nbsp;&nbsp;Staff</a></li>
    <li <?php 
echo 'Absen' == Headers::get_instance()->get_page_name() ? 'class="active"' : '';
?>
 >
        <a href="<?php 
echo $base_link;
?>
/absen"><i class="fa fa-calendar"></i>&nbsp;&nbsp;Absen</a>
        <ul class="nav nav-sidebar">
            <li <?php 
echo ($page = 'Histori') == Headers::get_instance()->get_page_sub_name() ? 'class="active"' : '';
?>
 ><a href="<?php 
echo $base_link;
?>
/absen/histori"><?php 
echo $page;
?>
</a></li>
        </ul>
    </li>
</ul><?php 
Example #10
0
<?php

namespace LRS\OfficeServer\Views\Admin;

use LRS\OfficeServer\Controller\Contents;
use LRS\OfficeServer\Controller\Headers;
use LRS\OfficeServer\Controller\Helpers;
use LRS\OfficeServer\Controller\Inbox;
use LRS\OfficeServer\Controller\Outbox;
use LRS\OfficeServer\Controller\Routes;
use LRS\OfficeServer\Model\PesanMasuk;
use LRS\OfficeServer\Model\PesanKeluar;
Headers::get_instance()->set_page_title('Pesan Masuk')->set_page_name('Pesan Masuk');
$tingkat1 = Routes::get_instance()->get_tingkat(1);
$tingkat2 = Routes::get_instance()->get_tingkat(2);
$status = false;
$is_hapus = Routes::get_instance()->is_tingkat(3, Helpers::aksi_hapus) && Routes::get_instance()->has_tingkat(4);
$is_lihat = Routes::get_instance()->is_tingkat(3, Helpers::aksi_lihat) && Routes::get_instance()->has_tingkat(4);
if ($is_hapus) {
    $status = Inbox::get_instance()->_delete(Routes::get_instance()->get_tingkat(4));
}
$daftar_pesan = Inbox::get_instance()->_gets(array('number' => -1));
$daftar_pesan_count = Inbox::get_instance()->_count();
Contents::get_instance()->get_header();
?>

<div class="container-fluid">
    <div class="row">
        <div class="col-xs-3 col-sm-2 sidebar">
            <?php 
Contents::get_instance()->get_sidebar();
Example #11
0
}
?>
</a></li>
    <li <?php 
echo ($page = 'Pesan Masuk ' . Inbox::public_prefix) == Headers::get_instance()->get_page_name() ? 'class="active"' : '';
?>
 ><a href="<?php 
echo $base_link;
?>
/pesan-masuk-publik"><i class="glyphicon glyphicon-save"></i>&nbsp;&nbsp;<?php 
echo $page;
if ($x = Inbox::get_instance()->_public_unread_count()) {
    ?>
<span class="badge pull-right"><?php 
    echo $x;
    ?>
</span><?php 
}
?>
</a></li>
    <li <?php 
echo ($page = 'Pesan Terkirim') == Headers::get_instance()->get_page_name() ? 'class="active"' : '';
?>
 ><a href="<?php 
echo $base_link;
?>
/pesan-terkirim"><i class="glyphicon glyphicon-saved"></i>&nbsp;&nbsp;<?php 
echo $page;
?>
</a></li>
</ul><?php 
Example #12
0
<?php

namespace LRS\OfficeServer\Views\Publik;

use LRS\OfficeServer\Controller\Contents;
use LRS\OfficeServer\Controller\Headers;
use LRS\OfficeServer\Controller\Sessions;
Headers::get_instance()->set_page_title('Beranda');
Contents::get_instance()->get_header(Sessions::get_instance()->_has() ? 'loggedin' : '');
?>

<div class="jumbotron unram-splash">
    <div class="container">
        <h1>LRsoft Office Server</h1>
        <p>Sistem LRsoft Office Server merupakan aplikasi yang dikembangkan untuk menunjang kinerja dan disiplin rekan/staff di CV. LRsoft.</p>
    </div>
</div>

<?php 
Contents::get_instance()->get_footer();
Example #13
0
$tingkat1 = Routes::get_instance()->get_tingkat(1);
$tingkat2 = Routes::get_instance()->get_tingkat(2);
$tingkat3 = Routes::get_instance()->get_tingkat(3);
$is_kontak_daftar = Routes::get_instance()->is_tingkat(3, 'daftar');
$is_kontak_grup = Routes::get_instance()->is_tingkat(3, 'grup');
$is_perbaiki = Routes::get_instance()->is_tingkat(4, Helpers::aksi_perbaiki) && Routes::get_instance()->has_tingkat(5);
$is_simpan = Routes::get_instance()->is_tingkat(4, Helpers::aksi_simpan);
$is_hapus = Routes::get_instance()->is_tingkat(4, Helpers::aksi_hapus);
$is_kirim_pesan = $is_kontak_daftar && Routes::get_instance()->is_tingkat(4, Helpers::aksi_kirim_pesan);
$aksi = isset($_REQUEST[Helpers::aksi_param]) ? $_REQUEST[Helpers::aksi_param] : '';
$aksi_perbarui = $aksi == Helpers::aksi_perbarui;
$aksi_tambah = $aksi == Helpers::aksi_tambah;
$aksi_kirim_pesan = $aksi == Helpers::aksi_kirim_pesan;
$default_params = array('Name' => '', 'GroupID' => -1, 'number' => 10, 'page' => 1);
$list_params = sync_default_params($default_params, $_GET);
Headers::get_instance()->set_page_title('Kontak')->set_page_name('Kontak')->set_page_sub_name($is_kontak_grup ? 'Grup' : 'Daftar');
Contents::get_instance()->get_header();
?>

<div class="container-fluid">
    <div class="row">
        <div class="col-xs-3 col-sm-2 sidebar">
            <?php 
Contents::get_instance()->get_sidebar();
?>
        </div>
        <div class="col-xs-9 col-sm-10 main">

            <h1 class="page-header">Kontak</h1>

            <?php 
Example #14
0
use LRS\OfficeServer\Controller\Helpers;
use LRS\OfficeServer\Controller\Routes;
$status = isset($_REQUEST[Helpers::status_param]) ? $_REQUEST[Helpers::status_param] : '';
$tingkat1 = Routes::get_instance()->get_tingkat(1);
$tingkat2 = Routes::get_instance()->get_tingkat(2);
$is_simpan = Routes::get_instance()->is_tingkat(2, Helpers::aksi_simpan);
if ($is_simpan) {
    Options::get_instance()->set_option('hari_libur', mysql_real_escape_string(json_encode($_REQUEST['hari_libur'])));
    Options::get_instance()->set_option('durasi_kerja', $_REQUEST['durasi_kerja']);
    lrs_redirect(LRS_URI_PATH . DS . $tingkat1 . DS . '?status=2');
}
$hari_libur = json_decode(Options::get_instance()->get_option('hari_libur', array()), true);
$durasi_kerja = Options::get_instance()->get_option('durasi_kerja', 0);
$obj_people = Sessions::get_instance()->_retrieve()->getObjPeople();
$days_a_week_lists = array(1 => 'Monday', 2 => 'Tuesday', 3 => 'Wednesday', 4 => 'Thursday', 5 => 'Friday', 6 => 'Saturday', 7 => 'Sunday');
Headers::get_instance()->set_page_title('Admin')->set_page_name('Admin');
Contents::get_instance()->get_header();
?>

<div class="container-fluid">
    <div class="row">
        <div class="col-xs-3 col-sm-2 sidebar">
            <?php 
Contents::get_instance()->get_sidebar();
?>
        </div>
        <div class="col-xs-9 col-sm-10 main">

            <h1 class="page-header">
                Admin
                <small><?php 
Example #15
0
<?php

namespace LRS\OfficeServer\Views\Admin;

use LRS\OfficeServer\Controller\Contents;
use LRS\OfficeServer\Controller\Headers;
use LRS\OfficeServer\Controller\Outbox;
use LRS\OfficeServer\Controller\Routes;
use LRS\OfficeServer\Model\PesanKeluar;
Headers::get_instance()->set_page_title('Pesan Keluar')->set_page_name('Pesan Keluar');
$tingkat1 = Routes::get_instance()->get_tingkat(1);
$daftar_pesan = Outbox::get_instance()->_gets(array('number' => -1));
$daftar_pesan_count = Outbox::get_instance()->_count();
Contents::get_instance()->get_header();
?>

<div class="container-fluid">
    <div class="row">
        <div class="col-xs-3 col-sm-2 sidebar">
            <?php 
Contents::get_instance()->get_sidebar();
?>
        </div>
        <div class="col-xs-9 col-sm-10 main">
            <h1 class="page-header">
                Pesan
                <small>Keluar</small>
            </h1>
            <p>Berikut adalah daftar pesan yang telah disubmit namun masih dalam proses pengiriman, klik <a href="<?php 
echo LRS_URI_PATH . DS . $tingkat1;
?>
Example #16
0
     * sisipkan di header nya
     */
    Headers::get_instance()->add_head_meta(array(array('http-equiv' => 'refresh', 'content' => '0;url=' . $redirect_to)));
} elseif ($is_keluar) {
    /**
     * bersihkan Session nya
     */
    Sessions::get_instance()->_destroy();
    /**
     * periksa tujuan redirect
     */
    $redirect_to = isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : LRS_URI_PATH;
    /**
     * sisipkan di headernya
     */
    Headers::get_instance()->add_head_meta(array(array('http-equiv' => 'refresh', 'content' => '0;url=' . $redirect_to)));
}
Contents::get_instance()->get_header(Sessions::get_instance()->_has() ? 'loggedin' : '');
?>

    <div class="container autentikasi">
        <div class="row">
            <div class="col-lg-6 col-lg-offset-3">
                <?php 
if ($is_masuk) {
    if ($is_masuk_success) {
        ?>
                        <div class="alert alert-success">
                            <p><i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<?php 
        echo Authentications::$error_messages[$auth_status];
        ?>