</div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label" for="datepicker">Tanggal Lahir</label>
                                    <div class="controls">
                                            <input type="text" class="datepick" id="tanggalLahir" name="tanggalLahir">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="select" class="control-label">Tempat Lahir (Kota)</label>
                                    <div class="controls">
                                        <select name="tempatLahir" id="tempatLahir">
                                            <option value="*" selected>Pilih Kota</option>
                                            <?php 
$conn = new Citdbase();
$listKota = $conn->CIT_SELECT("tref_city");
foreach ($listKota as $r) {
    ?>
                                            <option value="<?php 
    echo $r["kotaID"];
    ?>
"><?php 
    echo $r["kotaNama"];
    ?>
</option>
                                            <?php 
}
?>
                                        </select>
                                    </div>
                                </div>
<?php

$modulActive = $this->session->userdata('setmodule');
$conn = new Citdbase();
$moduleID = $conn->CIT_GETSOMETHING("modulID", "conf_modul", array('modulPage_Form_Controller' => $modulActive));
$listSubModule = $conn->CIT_SELECT("conf_submodul", 'equal', array('modulID' => $moduleID, 'is_aktif' => 'Y'));
?>
<div class="navi">
    <ul class='main-nav'>
        <li class='active'>
            <a href="<?php 
echo site_url($modulActive);
?>
" class='light'>
                        <div class="ico"><i class="icon-home icon-white"></i></div>
                        Modul <?php 
echo ucfirst($modulActive);
?>
                        <!-- <span class="label label-warning">10</span>// -->
                </a>
        </li>
        <?php 
foreach ($listSubModule as $recListSubModule) {
    if ($SubModul == $recListSubModule["submodulNama"]) {
        $class_open = "active open";
        $subclass_open = "collapsed-nav";
    } else {
        $class_open = "";
        $subclass_open = "collapsed-nav closed";
    }
    ?>
Пример #3
0
/* mengeksekusi stored procedure */
$result = $this->db->query($sql, array(mysql_escape_string($usernip)), TRUE)->result();
/* inisialisasi dan instansiasi class citdbase untuk mengkases table dengan queri code-igniter */
$conn = new Citdbase();
/* keluarkan data hasil eksekusi kueri */
foreach ($result as $row) {
    ?>
    <h3><?php 
    echo strtoupper($row->modulNama);
    ?>
</h3>
    <!-- membentuk link dan menu untuk masing-masing modul //-->
    <ul class="toggle">
    <?php 
    /* mendapatkan nama menu serta link tujuan */
    $submenu = $conn->CIT_SELECT('conf_submodul', 'equal', array('modulID' => $row->modulID, 'is_aktif' => 'Y'));
    foreach ($submenu as $value) {
        ?>
        <li class="icn_settings"><a onclick="loadUrl('<?php 
        echo $value["submodulPage_Form_Controller"];
        ?>
')" href="javascript:void(0);"><?php 
        echo $value["submodulNama"];
        ?>
</a></li>
    <?php 
    }
    ?>
    </ul>
<?php 
}