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_lihat) {
    $obj_pesan = Inbox::get_instance()->_get(Routes::get_instance()->get_tingkat(4));
    if ($obj_pesan->hasProcessedFalse()) {
        Inbox::get_instance()->_set_processed($obj_pesan->getID(), Inbox::processed_true);
    }
    ?>
                <h1 class="page-header">
                    Pesan Masuk
                    <small>Lihat</small>
                </h1>

                <?php 
    $aksi = isset($_REQUEST[Helpers::aksi_param]) ? $_REQUEST[Helpers::aksi_param] : '';
    if ($aksi == Helpers::aksi_kirim_pesan) {
        $pesan_keluar = new PesanKeluar();
        $pesan_keluar->setDestinationNumber($_REQUEST['DestinationNumber'])->setTextDecoded($_REQUEST['TextDecoded'])->setCreatorID($obj_pesan->getID());
        if (Outbox::get_instance()->_insert($pesan_keluar)) {
            ?>
                        <div class="alert alert-success">
示例#2
0
<span class="badge pull-right"><?php 
    echo $x;
    ?>
</span><?php 
}
?>
</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