><a href="<?php echo $base_link; ?> /broadcast"><i class="fa fa-bullhorn"></i> <?php echo $page; ?> </a></li> <li <?php echo ($page = 'Pesan Keluar') == Headers::get_instance()->get_page_name() ? 'class="active"' : ''; ?> ><a href="<?php echo $base_link; ?> /pesan-keluar"><i class="glyphicon glyphicon-open"></i> <?php echo $page; if ($x = Outbox::get_instance()->_count()) { ?> <span class="badge pull-right"><?php echo $x; ?> </span><?php } ?> </a></li> <li <?php echo ($page = 'Pesan Masuk') == Headers::get_instance()->get_page_name() ? 'class="active"' : ''; ?> ><a href="<?php echo $base_link; ?> /pesan-masuk"><i class="glyphicon glyphicon-save"></i> <?php
<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)) { ?> <div class="alert alert-success"> <p><i class="glyphicon glyphicon-ok"></i> Pesan sedang di kirim, klik <a href="<?php echo LRS_URI_PATH . DS . Contents::get_instance()->get_view(); ?> /pesan-keluar">Pesan Keluar</a> untuk melihat status pesan.</p> </div> <?php } else { ?> <div class="alert alert-danger"> <p><i class="glyphicon glyphicon-remove"></i> Terjadi kesalahan, harap menghubungi administrator.</p> </div> <?php }
<?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; ?>