本文整理汇总了PHP中active_module函数的典型用法代码示例。如果您正苦于以下问题:PHP active_module函数的具体用法?PHP active_module怎么用?PHP active_module使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了active_module函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index()
{
if (!$this->module_auth->read) {
$this->session->set_flashdata('msg_warning', $this->module_auth->msg_read);
redirect('info');
}
$data['current'] = 'pendataan';
$data['apps'] = $this->apps_model->get_active_only();
$select_data = $this->load->model('sptpd_type_model')->get_select();
$options = array();
foreach ($select_data as $row) {
$options[$row->id] = $row->typenm;
}
$options[999] = 'SEMUA DOKUMEN';
$js = 'id="type_id" class="input-small" onChange="void(0);"';
$select = form_dropdown('type_id', $options, 999, $js);
$select = preg_replace("/[\r\n]+/", "", $select);
$data['select_sptpd_type'] = $select;
$select_data = $this->load->model('usaha_model')->get_select();
$options = array();
foreach ($select_data as $row) {
$options[$row->id] = $row->nama;
}
$js = 'id="usaha_id" class="input-medium"';
$options[999] = 'SEMUA PAJAK';
$select = form_dropdown('usaha_id', $options, 999, $js);
$select = preg_replace("/[\r\n]+/", "", $select);
$data['select_usaha'] = $select;
$this->load->view(active_module() . '/vsptpd', $data);
}
示例2: __construct
function __construct()
{
parent::__construct();
if (active_module() != 'pendataan') {
show_404();
exit;
}
$this->load->model('login_model');
if ($grp = $this->login_model->check_user_app()) {
$this->session->set_userdata('groupid', $grp->group_id);
$this->session->set_userdata('groupkd', $grp->group_kode);
$this->session->set_userdata('groupname', htmlspecialchars($grp->group_nama));
}
$this->load->model(array('apps_model', 'pad_model'));
$this->load->helper(active_module());
if ($this->session->userdata('groupkd') == 'esptpd_wp') {
$login_wp = $this->pad_model->set_wp_login($this->session->userdata('uid'));
if ($login_wp) {
$this->session->set_userdata('wp_login', TRUE);
$this->session->set_userdata('wp_id', $login_wp->id);
$this->session->set_userdata('wp_nm', htmlspecialchars($login_wp->nama));
} else {
$this->session->set_flashdata('msg_error', 'User ID/Password salah atau tidak terdaftar!');
redirect('login');
}
} else {
$this->session->set_userdata('wp_login', FALSE);
}
}
示例3: __construct
function __construct()
{
parent::__construct();
$this->pad_module = strtolower($this->router->fetch_module());
if (active_module() != $this->pad_module) {
show_404();
exit;
}
$this->load->model('login_model');
if ($grp = $this->login_model->check_user_app()) {
$this->session->set_userdata('groupid', $grp->group_id);
$this->session->set_userdata('groupkd', $grp->group_kode);
$this->session->set_userdata('groupname', htmlspecialchars($grp->group_nama));
}
$this->load->model(array('apps_model', 'pad_model'));
$this->load->helper(active_module());
// Cek login Calon Wajib Pajak (CWP)
if ($this->session->userdata('groupkd') == 'pad_ereg') {
$login_cwp = $this->pad_model->set_cwp_login($this->session->userdata('uid'));
if ($login_cwp) {
$this->session->set_userdata('cwp_login', TRUE);
$this->session->set_userdata('cwp_id', $login_cwp->id);
$this->session->set_userdata('cwp_nm', htmlspecialchars($login_cwp->customernm));
} else {
$this->session->set_flashdata('msg_error', 'User ID/Password salah atau tidak terdaftar!');
redirect('login');
}
} else {
$this->session->set_userdata('cwp_login', FALSE);
}
$this->load->model(array('apps_model', 'login_model'));
$this->load->helper(active_module());
}
示例4: index
public function index()
{
$this->load_auth();
if (!$this->module_auth->read) {
$this->session->set_flashdata('msg_warning', $this->module_auth->msg_read);
redirect('info');
}
$data['current'] = $this->module;
$data['controller'] = $this->controller;
$data['apps'] = $this->apps_model->get_active_only();
$month = date('m');
$options = array('01' => 'JANUARI', '02' => 'FEBRUARI', '03' => 'MARET', '04' => 'APRIL', '05' => 'MEI', '06' => 'JUNI', '07' => 'JULI', '08' => 'AGUSTUS', '09' => 'SEPTEMBER', '10' => 'OKTOBER', '11' => 'NOVEMBER', '12' => 'DESEMBER');
$js = 'id="bulan_id" class="input-medium"';
$select = form_dropdown('usaha_id', $options, $month, $js);
$select = preg_replace("/[\r\n]+/", "", $select);
$data['select_bulan'] = $select;
$options = array('1' => 'BELUM PROSES', '2' => 'SUDAH PROSES');
$js = 'id="proses_id" class="input-medium"';
$select = form_dropdown('proses_id', $options, 1, $js);
$select = preg_replace("/[\r\n]+/", "", $select);
$data['select_proses_id'] = $select;
$select_data = $this->load->model('pegawai_model')->get_select();
$options = array();
if ($select_data) {
foreach ($select_data as $row) {
$options[$row->id] = $row->nama;
}
}
$options[999] = 'TIDAK ADA';
$js = 'id="petugas_id" class="input-large" ';
$data['select_petugas'] = form_dropdown('petugas_id', $options, 999, $js);
$js = 'id="pejabat_id" class="input-large" ';
$data['select_pejabat'] = form_dropdown('pejabat_id', $options, 999, $js);
$this->load->view(active_module() . '/vstpd', $data);
}
示例5: app_img_header
function app_img_header($img_url = 'assets/img/img_header.png')
{
if (file_exists('assets/img/app/img_header_' . active_module() . '.png')) {
$ret = base_url('assets/img/app/img_header_' . active_module() . '.png');
} else {
$ret = base_url($img_url);
}
return $ret;
}
示例6: __construct
function __construct()
{
parent::__construct();
if (active_module() != 'admin') {
if (!is_super_admin()) {
redirect('logout');
}
}
$this->load->model(array('apps_model'));
}
示例7: __construct
function __construct()
{
parent::__construct();
if (!$this->session->userdata('login')) {
$this->session->set_flashdata('msg_warning', 'Session telah kadaluarsa, silahkan login ulang.');
redirect('login');
exit;
}
$this->load->library('module_auth', array('module' => $this->module));
$this->load->model(array('apps_model', 'bphtb_model', 'sspd_model', 'ppat_model', 'dasar_model', 'perolehan_model', 'ppat_user_model', 'tp_model', 'validasi_model', 'penerimaan_model', 'berkas_in_model', 'sk_model', 'penerimaan_model', 'status_hak_model'));
$this->load->helper(active_module());
}
示例8: __construct
function __construct()
{
parent::__construct();
if (!is_login()) {
echo "<script>window.location.replace('" . base_url() . "');</script>";
exit;
}
$module = 'penetapan';
$this->load->library('module_auth', array('module' => $module));
$this->load->model(array('apps_model', 'subjek_pajak_model'));
$this->load->helper(active_module('pad_helper'));
}
示例9: __construct
function __construct()
{
parent::__construct();
if (!is_login()) {
echo "<script>window.location.replace('" . base_url() . "');</script>";
exit;
}
$module = 'referensi';
$this->load->library('module_auth', array('module' => $module));
$this->load->model(array('apps_model', 'pegawai_model'));
$this->load->helper(active_module());
}
示例10: __construct
function __construct()
{
parent::__construct();
if (!$this->session->userdata('login')) {
$this->session->set_flashdata('msg_warning', 'Session telah kadaluarsa, silahkan login ulang.');
redirect('login');
exit;
}
$this->load->library('module_auth', array('module' => $this->module));
$this->load->model(array('apps_model', 'bphtb_model', 'sspd_model'));
$this->load->helper(active_module());
}
示例11: __construct
function __construct()
{
parent::__construct();
if (!is_login()) {
echo "<script>window.location.replace('" . base_url() . "');</script>";
exit;
}
$module = 'lap_pendaftaran';
$this->load->library('module_auth', array('module' => $module));
$this->load->model(array('apps_model'));
$this->load->helper(active_module());
$this->load->library(array('PHPExcel', 'PHPExcel/IOFactory'));
}
示例12: __construct
function __construct()
{
parent::__construct();
if (!is_login()) {
echo "<script>window.location.replace('" . base_url() . "');</script>";
exit;
}
if ($this->uri->segment(2) == 'skpdj') {
$this->module = 'penetapan';
$this->controller = 'skpdj';
}
$this->load->model(array('apps_model', 'subjek_pajak_model'));
$this->load->helper(active_module('pad_helper'));
}
示例13: index
public function index()
{
$this->load_auth();
if (!$this->module_auth->read) {
$this->session->set_flashdata('msg_warning', $this->module_auth->msg_read);
redirect('info');
}
$data['current'] = $this->module;
$data['controller'] = $this->controller;
$data['apps'] = $this->apps_model->get_active_only();
$options = array('1' => 'BLM PROSES', '2' => 'SDH PROSES');
$js = 'id="proses_id" class="form-group" style="width:150px;"';
$select = form_dropdown('proses_id', $options, 1, $js);
$select = preg_replace("/[\r\n]+/", "", $select);
$data['select_proses_id'] = $select;
$options = array('1' => 'BLM VALIDASI', '2' => 'SDH VALIDASI');
$js = 'id="validasi_id" class="input-small" style="width:105px;"';
$select = form_dropdown('validasi_id', $options, 1, $js);
$select = preg_replace("/[\r\n]+/", "", $select);
$data['select_validasi_id'] = $select;
$options = array('1' => 'K B', '2' => 'L B', '3' => 'N');
$js = 'id="validasi_id" class="input-small" style="width:105px;"';
$select = form_dropdown('validasi_id', $options, 1, $js);
$select = preg_replace("/[\r\n]+/", "", $select);
$data['select_status'] = $select;
$select_data = $this->tp_model->get_select();
$options = array();
if ($select_data) {
foreach ($select_data as $row) {
$options[$row->id] = $row->nama;
}
}
$js = 'id="tp_id" class="input"';
$select = form_dropdown('tp_id', $options, 1, $js);
$select = preg_replace("/[\r\n]+/", "", $select);
$data['select_tp'] = $select;
$select_data = $this->load->model('pegawai_model')->get_select();
$options = array();
if ($select_data) {
foreach ($select_data as $row) {
$options[$row->id] = $row->nama;
}
}
$options[999] = 'TIDAK ADA';
$js = 'id="petugas_id" class="input-large" ';
$data['select_petugas'] = form_dropdown('petugas_id', $options, 999, $js);
$js = 'id="pejabat_id" class="input-large" ';
$data['select_pejabat'] = form_dropdown('pejabat_id', $options, 999, $js);
$this->load->view(active_module() . '/vpemeriksaan', $data);
}
示例14: __construct
function __construct()
{
parent::__construct();
if (!$this->session->userdata('login')) {
$this->session->set_flashdata('msg_warning', 'Session telah kadaluarsa, silahkan login ulang.');
redirect('login');
exit;
}
$this->load->library('module_auth', array('module' => $this->module));
$this->load->model(array('apps_model', 'bphtb_model', 'sspd_model', 'ppat_model', 'dasar_model', 'perolehan_model', 'ppat_user_model', 'tp_model', 'approval_model', 'penerimaan_model', 'validasi_model', 'validasi_user_model', 'status_hak_model'));
//cek level user/pejabat yg memvalidasi
//mungkin user tanpa level disetarakan dengan level=1 (staff) saja
$this->levelv = $this->validasi_user_model->get_level();
$this->load->helper(active_module());
}
示例15: __construct
function __construct()
{
parent::__construct();
if (active_module() != 'pad') {
show_404();
exit;
}
$this->load->model('login_model');
if ($grp = $this->login_model->check_user_app()) {
$this->session->set_userdata('groupid', $grp->group_id);
$this->session->set_userdata('groupkd', $grp->group_kode);
$this->session->set_userdata('groupname', htmlspecialchars($grp->group_nama));
}
$this->load->model(array('apps_model', 'login_model'));
$this->load->helper(active_module());
}