当前位置: 首页>>代码示例>>PHP>>正文


PHP b_logged函数代码示例

本文整理汇总了PHP中b_logged函数的典型用法代码示例。如果您正苦于以下问题:PHP b_logged函数的具体用法?PHP b_logged怎么用?PHP b_logged使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了b_logged函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tunggakan

    function tunggakan()
    {
        if (b_logged()) {
            $arr = array('is_print' => 1);
            $user = $this->db->query('select
					b.NAMA_LKP,
					b.NIP,
					c.NAMA as jabatan
					from g_users a
					left join pegawai b on a.PEGAWAI_ID=b.PEGAWAI_ID
					left join jabatan c on c.ID=b.JABATAN_ID
					where a.NID=' . $this->db->escape($this->session->userdata('SESS_USER_ID')))->row();
            $data['nama_ptgs'] = $user->NAMA_LKP;
            $data['jabatan'] = $user->JABATAN;
            $data['nip'] = $user->NIP;
            $data['mod'] = 'penerbitan_sk';
            $data['button_form'] = $this->load->view('element/button', $arr, true);
            //$data['title_form']   = get_name_menu($this->uri->segment(1));
            $data['title_form'] = 'CETAK DAFTAR TUNGGAKAN';
            $data['form'] = $this->load->view('form_daftar_tunggakan', $data, true);
            $data['main_content'] = $this->load->view('daftar', $data, true);
            //$data['main_content'] = $this->load->view('form_daftar_tunggakan',$data,true);
            $this->load->vars($data);
        } else {
            $data['main_content'] = $this->load->view('login/login', '', true);
        }
        $this->load->view($this->config->item('layout_dir') . '/template', $data);
    }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:28,代码来源:penerbitan_sk.php

示例2: login_info

function login_info($class = "")
{
    if (b_logged()) {
        $ainfouser = b_userinfo();
        echo '<div id="login_info" ' . ($class ? 'class="' . $class . '"' : '') . '> ' . "\n" . 'Logged as <b>' . $ainfouser['name'] . '</b> on ' . $ainfouser['logged'] . ' from IP ' . $ainfouser['ip'] . '<br> ' . "\n" . 'Last Login on ' . $ainfouser['lastlogin'] . ' until ' . $ainfouser['lastlogout'] . ' from IP ' . $ainfouser['ip'] . '</div> <!-- login_info --> ' . "\n";
    }
}
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:7,代码来源:main.php

示例3: load_menu

/**
 * Mengambil data menu
 */
function load_menu()
{
    $csql = "select cgroup, nid from " . PREFIX . "groupfrontmenus order by nurut, cgroup";
    $nresult = gcms_query($csql);
    $i = 0;
    $menus = array();
    while ($ogroup = gcms_fetch_object($nresult)) {
        if (b_admin(b_getuserlogin())) {
            $cwhere = "where a.nid_groupfrontmenus='" . $ogroup->nid . "'";
        } else {
            $cwhere = "left join " . PREFIX . "grantedfrontmenus as b on a.nid=b.nid_frontmenus\r\n                              where a.nid_groupfrontmenus='" . $ogroup->nid . "'  and \r\n                              (b.nid_users='" . b_getuserlogin() . "' or a.bsecure=0)";
        }
        $csql = "select a.* from " . PREFIX . "frontmenus as a {$cwhere} order by a.nurut, a.cmenu";
        $nresult2 = gcms_query($csql);
        if (gcms_fetch_row($nresult2)) {
            if (!$ogroup->bhide) {
                $menus[$i][0] = str_replace(" ", "&nbsp;", stripslashes($ogroup->cgroup));
                $j = 1;
                $nresult2 = gcms_query($csql);
                while ($omenu = gcms_fetch_object($nresult2)) {
                    if ($omenu->bsecure and b_logged() or !$omenu->bsecure) {
                        $menus[$i][$j][0] = build_menu($omenu);
                        $menus[$i][$j][1] = stripslashes($omenu->cmenu);
                        $j++;
                    }
                }
                $i++;
            }
        }
    }
    return $menus;
}
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:35,代码来源:lib_menu_old.php

示例4: index

 function index()
 {
     if (b_logged()) {
         $data['main_content'] = $this->load->view('panel/panel', '', true);
     } else {
         $data['main_content'] = $this->load->view('login/login', '', true);
     }
     $this->load->view($this->config->item('layout_dir') . '/template', $data);
 }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:9,代码来源:main.php

示例5: b_getuserlogin

function b_getuserlogin()
{
    $CI =& get_instance();
    if (b_logged()) {
        $nreturn = $CI->session->userdata('SESS_USER_ID');
    } else {
        $nreturn = 0;
    }
    return $nreturn;
}
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:10,代码来源:user.lib_helper.php

示例6: index

 function index()
 {
     if (b_logged()) {
         $data['main_content'] = 'master/desa';
     } else {
         $data['main_content'] = 'login/login';
     }
     $this->load->view($this->config->item('layout_dir') . '/template', $data);
     //show('',$data);
 }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:10,代码来源:ref_ktg_rekening.php

示例7: index

 function index()
 {
     if (b_logged()) {
         $row = $this->data_model->get_all_data();
         $satker = "'':'',";
         for ($i = 0; $i < count($row); $i++) {
             $satker .= "'" . $row[$i]->ID_SATKER . "':'" . $row[$i]->KODE_SATKER . " - " . $row[$i]->NAMA_SATKER . "',";
         }
         $data['list_satker'] = $satker;
         $data['main_content'] = $this->load->view('master/daftar_satker', '', true);
     } else {
         $data['main_content'] = $this->load->view('login/login', '', true);
     }
     $this->load->view($this->config->item('layout_dir') . '/template', $data);
 }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:15,代码来源:satker.php

示例8: index

 function index()
 {
     if (b_logged()) {
         $arr = array('is_save' => 1, 'is_cancel' => 1);
         $data['mod'] = 'reg_airtanah';
         $data['button_form'] = $this->load->view('element/button', $arr, true);
         $data['title_form'] = get_name_menu($this->uri->segment(1));
         $data['form'] = $this->load->view('form', $data, true);
         $data['main_content'] = $this->load->view('daftar', $data, true);
         $this->load->vars($data);
     } else {
         $data['main_content'] = $this->load->view('login/login', '', true);
     }
     $this->load->view($this->config->item('layout_dir') . '/template', $data);
 }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:15,代码来源:reg_airtanah.php

示例9: self

 function self()
 {
     if (b_logged()) {
         $arr = array('is_save' => 1, 'is_cancel' => 1);
         $data['title_form'] = 'SELF ASSESMENT';
         $data['mod'] = 'penerimaan_pr';
         $data['button_form'] = $this->load->view('element/button', $arr, true);
         //$data['title_form']   = get_name_menu($this->uri->segment(1));
         $data['form'] = $this->load->view('penerimaan_self', $data, true);
         $data['main_content'] = $this->load->view('daftar', $data, true);
         $this->load->vars($data);
     } else {
         $data['main_content'] = $this->load->view('login/login', '', true);
     }
     $this->load->view($this->config->item('layout_dir') . '/template', $data);
 }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:16,代码来源:penerimaan_pr.php

示例10: index

 function index()
 {
     if (b_logged()) {
         $this->load->model('kecamatan_model', 'kecamatan');
         $row = $this->kecamatan->get_all_data();
         for ($i = 0; $i < count($row); $i++) {
             $kecamatan .= "'" . $row[$i]->CAMAT_ID . "':'" . $row[$i]->CAMAT_NAMA . " (" . $row[$i]->CAMAT_KODE . ")',";
         }
         $data['kecamatan'] = $kecamatan;
         $data['main_content'] = $this->load->view('master/daftar_desa', '', true);
     } else {
         $data['main_content'] = $this->load->view('login/login', '', true);
     }
     $this->load->view($this->config->item('layout_dir') . '/template', $data);
     //show('',$data);
 }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:16,代码来源:desa.php

示例11: index

 function index()
 {
     if (b_logged()) {
         $this->load->model('desa_model');
         $arr = array();
         $row = $this->desa_model->get_all_data();
         for ($i = 0; $i < count($row); $i++) {
             /*$arr[$i]['id']   = $row[$i]->ID;
             		$arr[$i]['nama'] = $row[$i]->DESA_NAMA.'('.$row[$i]->DESA_KODE.')';*/
             $desa .= "'" . $row[$i]->ID . "':'" . $row[$i]->DESA_NAMA . " (" . $row[$i]->DESA_KODE . ")',";
         }
         $data['desa'] = $desa;
         $data['main_content'] = $this->load->view('pendaftaran/daftar_pemohon_pribadi', $data, true);
     } else {
         $data['main_content'] = 'login/login';
     }
     $this->load->view($this->config->item('layout_dir') . '/template', $data);
 }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:18,代码来源:pemohon_pribadi.php

示例12: index

 function index()
 {
     if (b_logged()) {
         $tgl = date('d/m/Y');
         $jatem_bayar = $this->db->query('select jatem_bayar from ref_jatuh_tempo')->row()->JATEM_BAYAR;
         $tgl_tempo = getExpired($tgl, $jatem_bayar);
         $arr = array('is_save' => 1, 'is_cancel' => 1);
         $data['tgl_penetapan'] = $tgl;
         $data['tgl_setor'] = $tgl_tempo;
         $data['mod'] = 'penetapan_pr';
         $data['button_form'] = $this->load->view('element/button', $arr, true);
         $data['title_form'] = get_name_menu($this->uri->segment(1));
         $data['form'] = $this->load->view('form', $data, true);
         $data['main_content'] = $this->load->view('daftar', $data, true);
         $this->load->vars($data);
     } else {
         $data['main_content'] = $this->load->view('login/login', '', true);
     }
     $this->load->view($this->config->item('layout_dir') . '/template', $data);
 }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:20,代码来源:penetapan_pr.php

示例13: index

 function index()
 {
     if (b_logged()) {
         $this->load->model('kode_usaha_model', 'kode_usaha');
         $result = $this->kode_usaha->get_all_data();
         $data['data_form']['opt_kode_usaha'] = '';
         if ($result) {
             foreach ($result as $row) {
                 $data['data_form']['opt_kode_usaha'] .= "<option value='{$row->ID}'>{$row->NAMA}</option>";
             }
         }
         $data['title_form'] = get_name_menu($this->uri->segment(1));
         $arr = array('is_save' => 1, 'is_cancel' => 1);
         $data['button_form'] = $this->load->view('element/button', $arr, true);
         $data['form'] = $this->load->view('pendaftaran/form_np_pribadi', $data, true);
         $data['main_content'] = $this->load->view('pendaftaran/daftar_np_pribadi', $data, true);
     } else {
         //$data['main_content'] = 'login/login';
     }
     $this->load->view($this->config->item('layout_dir') . '/template', $data);
 }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:21,代码来源:np_pribadi.php

示例14: index

 function index()
 {
     if (b_logged()) {
         $this->load->model('jabatan_model', 'jabatan');
         $this->load->model('pangkat_model', 'pangkat');
         $row = $this->jabatan->get_all_data();
         for ($i = 0; $i < count($row); $i++) {
             $jabatan .= "'" . $row[$i]->ID . "':'" . $row[$i]->NAMA . "',";
         }
         $row = $this->pangkat->get_all_data();
         for ($i = 0; $i < count($row); $i++) {
             $pangkat .= "'" . $row[$i]->ID_PANGKAT . "':'" . $row[$i]->KODE_PANGKAT . "',";
         }
         $data['jabatan'] = $jabatan;
         $data['pangkat'] = $pangkat;
         $data['main_content'] = $this->load->view('master/daftar_pegawai', '', true);
     } else {
         $data['main_content'] = $this->load->view('login/login', '', true);
     }
     $this->load->view($this->config->item('layout_dir') . '/template', $data);
 }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:21,代码来源:pegawai.php

示例15: index

 function index()
 {
     if (b_logged()) {
         if (!isset($_POST['oper'])) {
             $data['main_content'] = $this->load->view('master/daftar_pangkat', '', true);
             $this->load->view($this->config->item('layout_dir') . '/template', $data);
         } else {
             if ($_POST['oper'] === 'add') {
                 $this->insert($_POST);
             } else {
                 if ($_POST['oper'] === 'edit') {
                     $this->update($_POST);
                 } else {
                     if ($_POST['oper'] === 'del') {
                         $this->delete($_POST);
                     }
                 }
             }
         }
     } else {
         $data['main_content'] = $this->load->view('login/login', '', true);
         $this->load->view($this->config->item('layout_dir') . '/template', $data);
     }
 }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:24,代码来源:pangkat.php


注:本文中的b_logged函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。