Пример #1
0
        </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)) {
        ?>
                    <div class="alert alert-success">
                        <p><i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;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 {
Пример #2
0
                        </div>

                    <?php 
            }
        } elseif ($is_hapus) {
            if (Kontak::get_instance()->_delete(Routes::get_instance()->get_tingkat(5))) {
                ?>
                            <div class="alert alert-warning">
                                <p><i class="glyphicon glyphicon-ok"></i> Kontak berhasil dihapus.</p>
                            </div>
                        <?php 
            }
        }
        $daftar_grup = Grup::get_instance()->_gets(array('number' => -1));
        $daftar_kontak = Kontak::get_instance()->_gets(array('Name' => $list_params['Name'], 'GroupID' => $list_params['GroupID'], 'number' => $list_params['number'], 'offset' => ($list_params['page'] - 1) * $list_params['number']));
        $daftar_kontak_count = Kontak::get_instance()->_count();
        ?>

                    <form class="form-horizontal">
                        <div class="form-group">
                            <div class="col-sm-4 col-lg-3">
                                <select name="GroupID" class="form-control">
                                    <option value="-1">-- pilih --</option>
                                    <?php 
        /** @var $grup ModelGrup */
        foreach ($daftar_grup as $grup) {
            ?>
                                        <option value="<?php 
            echo $grup->getID();
            ?>
" <?php