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


PHP active_module_url函数代码示例

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


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

示例1: show_rpt

 function show_rpt()
 {
     $cls_mtd_html = $this->router->fetch_class() . "/cetak/html/";
     $cls_mtd_pdf = $this->router->fetch_class() . "/cetak/pdf/";
     $data['rpt_html'] = active_module_url($cls_mtd_html . $_SERVER['QUERY_STRING']);
     $data['rpt_pdf'] = active_module_url($cls_mtd_pdf . $_SERVER['QUERY_STRING']);
     $this->load->view('vjasper_viewer', $data);
 }
开发者ID:aagusti,项目名称:bphtb-php-rpc,代码行数:8,代码来源:lap_berkas.php

示例2: update_stat

 function update_stat()
 {
     if (!$this->module_auth->update) {
         $this->session->set_flashdata('msg_warning', $this->module_auth->msg_update);
         redirect(active_module_url($this->controller));
     }
     $user_id = $this->uri->segment(4);
     $level_id = $this->uri->segment(5);
     $val = $this->uri->segment(6);
     if ($val == 0) {
         $this->db->where('user_id', $user_id);
         $this->db->where('level_id', $level_id);
         $this->db->delete('bphtb_validasi_user');
     } else {
         $data = array('user_id' => $user_id, 'level_id' => $level_id);
         $this->db->insert('bphtb_validasi_user', $data);
     }
 }
开发者ID:aagusti,项目名称:bphtb-php-rpc,代码行数:18,代码来源:user_validasi.php

示例3: update_step

 public function update_step()
 {
     $app_id = $this->uri->segment(4);
     $data['current'] = 'pengaturan';
     $data['faction'] = active_module_url('app_status/update_step/' . $app_id);
     $data['dt'] = $this->fpost();
     $data['dt']['app_id'] = $app_id;
     $this->fvalidation();
     if ($this->form_validation->run() == TRUE) {
         $app_id = $this->input->post('app_id');
         $tahun = $this->input->post('tahun');
         $step = $this->input->post('step');
         if ($this->app_status_model->cek_tahun($app_id, $tahun)) {
             $this->app_status_model->update($app_id, $tahun, $step);
         } else {
             $this->app_status_model->save($app_id, $tahun, $step);
         }
         $this->session->set_flashdata('msg_success', 'Data telah disimpan');
         redirect(active_module_url('apps'));
     }
     $this->load->view('vapp_status_form', $data);
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:22,代码来源:app_status.php

示例4: index

 public function index()
 {
     if (!$this->module_auth->read) {
         $this->session->set_flashdata('msg_warning', $this->module_auth->msg_read);
         redirect(active_module_url(''));
     }
     $data['current'] = $this->current;
     $data['apps'] = $this->apps_model->get_active_only();
     $nop = isset($_GET['nop']) ? $_GET['nop'] : '';
     $data['nop'] = $nop;
     $data_source = array();
     if (PBB_USE_RPC) {
         $result = ws_info_op($nop);
         if ($result['result']['code'] == 0) {
             $data_source = $result['result']['params']['data'];
         }
     } else {
         $data_source = $this->bphtb_model->informasi_objek_pajak($nop);
     }
     $data['data_source'] = $data_source;
     $this->load->view('vobjek_pajak', $data);
 }
开发者ID:aagusti,项目名称:bphtb-php-rpc,代码行数:22,代码来源:objek_pajak.php

示例5: active_module_url

                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Pendaftaran <strong class="caret"></strong></a>
                        <ul class="dropdown-menu">
                            <li><a href="<?php 
        echo active_module_url('daftar');
        ?>
">Calon Wajib Pajak</a></li>
                        </ul>
                    </li>
                    <li class="dropdown <?php 
        echo $current == 'referensi' ? 'active' : '';
        ?>
">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Referensi <strong class="caret"></strong></a>
                        <ul class="dropdown-menu">
                            <li><a href="<?php 
        echo active_module_url('daftar_status');
        ?>
">Status Pendaftaran</a></li>
                        </ul>
                    </li>
                    <?php 
    } else {
        ?>
                    <?php 
    }
    ?>
                    
                </ul>
            </div>
			<?php 
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:31,代码来源:_navbar.php

示例6: update

 function update()
 {
     if (!$_POST) {
         redirect(active_module_url('bphtb_unposted'));
     }
     // cek aja dulu
     $bphtb_nop = trim($_POST["bphtb_nop"]);
     $pbb_nop = trim($_POST["pbb_nop"]);
     if ($bphtb_nop != $pbb_nop) {
         $pbb_nop = preg_replace('/[^0-9]/', '', $pbb_nop);
         if ($this->bphtb_pbb_model->cari_op($pbb_nop)) {
             $this->session->set_flashdata('msg_error', "PBB NOP baru ({$_POST["pbb_nop"]}) sudah ada, Proses dibatalkan");
             redirect(active_module_url('bphtb_unposted'));
         }
     }
     // update bphtb sspd
     $data = array('pbb_nop' => $_POST["pbb_nop"], 'wp_nama' => $_POST["wp_nama"], 'wp_npwp' => $_POST["wp_npwp"], 'wp_alamat' => $_POST["wp_alamat"], 'wp_blok_kav' => $_POST["wp_blok_kav"], 'wp_kelurahan' => $_POST["wp_kelurahan"], 'wp_rt' => substr($_POST["wp_rt"], -3), 'wp_rw' => substr($_POST["wp_rw"], -2), 'wp_kecamatan' => $_POST["wp_kecamatan"], 'wp_kota' => $_POST["wp_kota"], 'wp_provinsi' => $_POST["wp_provinsi"], 'op_alamat' => $_POST["op_alamat"], 'op_blok_kav' => $_POST["op_blok_kav"], 'op_rt' => $_POST["op_rt"], 'op_rw' => $_POST["op_rw"], 'bumi_luas' => $_POST["bumi_luas"], 'bumi_njop' => $_POST["bumi_njop"], 'bng_luas' => $_POST["bng_luas"], 'bng_njop' => $_POST["bng_njop"], 'wp_identitas' => trim($_POST["wp_identitas"]), 'posted' => 1);
     $this->bphtb_pbb_model->update_sspd($_POST["bphtb_sspd_id"], $data);
     /*
     1. cari subjek pajak sesuai subjek_pajak_id ($_POST["wp_identitas"])
         2. jika ada diupdate, jika tidak insert baru
     3. jika inset/update berhasil,
         4. jika nop_pbb tidak sama dengan nop_bphtb maka
                 insert data dat_objek_pajak
                 insert data dat_op_bumi
            else
                 update dat_objek_pajak
                 update dat_op_bumi
     */
     // update dat_subjek_pajak
     $subjek_pajak_id = trim($_POST["wp_identitas"]);
     $data = array('subjek_pajak_id' => $subjek_pajak_id, 'nm_wp' => $_POST["wp_nama"], 'npwp' => $_POST["wp_npwp"], 'jalan_wp' => $_POST["wp_alamat"], 'blok_kav_no_wp' => $_POST["wp_blok_kav"], 'kelurahan_wp' => $_POST["wp_kelurahan"], 'rt_wp' => substr($_POST["wp_rt"], -3), 'rw_wp' => substr($_POST["wp_rw"], -2), 'kecamatan_wp' => $_POST["wp_kecamatan"], 'kota_wp' => $_POST["wp_kota"], 'propinsi_wp' => $_POST["wp_provinsi"]);
     $update_sp = false;
     if ($this->bphtb_pbb_model->cari_sp($subjek_pajak_id, $data)) {
         // update dat_subjek_pajak
         if ($this->bphtb_pbb_model->update_sp($subjek_pajak_id, $data)) {
             $update_sp = true;
         }
     } else {
         // insert dat_subjek_pajak
         if ($this->bphtb_pbb_model->insert_sp($data)) {
             $update_sp = true;
         }
     }
     if ($update_sp) {
         $data = array('subjek_pajak_id' => $_POST["wp_identitas"], 'jalan_op' => $_POST["op_alamat"], 'blok_kav_no_op' => $_POST["op_blok_kav"], 'rt_op' => substr($_POST["op_rt"], -3), 'rw_op' => substr($_POST["op_rw"], -2), 'total_luas_bumi' => $_POST["bumi_luas"], 'njop_bumi' => $_POST["bumi_njop"], 'total_luas_bng' => $_POST["bng_luas"], 'njop_bng' => $_POST["bng_njop"]);
         $bphtb_nop = trim($_POST["bphtb_nop"]);
         $pbb_nop = trim($_POST["pbb_nop"]);
         if ($bphtb_nop == $pbb_nop) {
             // update dat_objek_pajak
             $this->bphtb_pbb_model->update_op($_POST["nop"], $data);
         } else {
             // insert dat_objek_pajak
             if ($op_lama = $this->bphtb_pbb_model->cari_op($_POST["nop"])) {
                 $pbb_nop = preg_replace('/[^0-9]/', '', $pbb_nop);
                 $kd_propinsi = substr($pbb_nop, 0, 2);
                 $kd_dati2 = substr($pbb_nop, 2, 2);
                 $kd_kecamatan = substr($pbb_nop, 4, 3);
                 $kd_kelurahan = substr($pbb_nop, 7, 3);
                 $kd_blok = substr($pbb_nop, 10, 3);
                 $no_urut = substr($pbb_nop, 13, 4);
                 $kd_jns_op = substr($pbb_nop, -1);
                 $data2 = array_merge($data, array('kd_propinsi' => $kd_propinsi, 'kd_dati2' => $kd_dati2, 'kd_kecamatan' => $kd_kecamatan, 'kd_kelurahan' => $kd_kelurahan, 'kd_blok' => $kd_blok, 'no_urut' => $no_urut, 'kd_jns_op' => $kd_jns_op, 'no_formulir_spop' => $op_lama->no_formulir_spop, 'no_persil' => $op_lama->no_persil, 'kd_status_cabang' => $op_lama->kd_status_cabang, 'kd_status_wp' => $op_lama->kd_status_wp, 'status_peta_op' => $op_lama->status_peta_op, 'jns_transaksi_op' => $op_lama->jns_transaksi_op, 'tgl_pendataan_op' => $op_lama->tgl_pendataan_op, 'nip_pendata' => $op_lama->nip_pendata, 'tgl_pemeriksaan_op' => $op_lama->tgl_pemeriksaan_op, 'nip_pemeriksa_op' => $op_lama->nip_pemeriksa_op, 'tgl_perekaman_op' => $op_lama->tgl_perekaman_op, 'nip_perekam_op' => $op_lama->nip_perekam_op));
                 // insert dat_objek_pajak
                 $this->bphtb_pbb_model->insert_op($data2);
             }
         }
         // update dat_objek_pajak lagi (subjek_pajak_id fk)
         /*
         $data = array (
             'subjek_pajak_id' => trim($_POST["wp_identitas"]),
         );
         $this->bphtb_pbb_model->update_op_sp_id(trim($_POST["sp_id"]), $data);
         */
         // update dat_op_bumi
         // ...
     }
     $this->session->set_flashdata('msg_success', 'Data telah diupdate');
     redirect(active_module_url('bphtb_unposted'));
 }
开发者ID:aagusti,项目名称:bphtb-php-rpc,代码行数:80,代码来源:bphtb_unposted.php

示例7: do_update_status

 public function do_update_status()
 {
     $this->load_auth();
     if (!$this->module_auth->update) {
         $this->session->set_flashdata('msg_warning', $this->module_auth->msg_update);
         redirect(active_module_url('daftar'));
     }
     $data['current'] = 'pendaftaran';
     $data['apps'] = $this->apps_model->get_active_only();
     $data['faction'] = active_module_url('daftar/do_update_status');
     $this->form_validation->set_rules('status_id', 'Status', 'required');
     $this->form_validation->set_rules('keterangan', 'Keterangan', 'max_length[255]');
     if ($this->form_validation->run() == TRUE) {
         $update_data = array('daftar_id' => $this->input->post('id'), 'status_id' => $this->input->post('status_id'), 'keterangan' => $this->input->post('keterangan'), 'create_date' => date('Y-m-d'), 'create_uid' => sipkd_user_id());
         $this->daftar_hist_model->save($update_data);
         $this->session->set_flashdata('msg_success', 'Data telah diupdate');
         redirect(active_module_url('daftar'));
     }
     $data['dt']['id'] = $this->input->post('id');
     $data['dt']['formno'] = $this->input->post('formno');
     $data['dt']['reg_date'] = $this->input->post('reg_date');
     $data['dt']['customernm'] = $this->input->post('customernm');
     $data['dt']['alamat'] = $this->input->post('alamat');
     $select_data = $this->daftar_status_model->get_select();
     $options = array();
     if ($select_data) {
         foreach ($select_data as $row) {
             $options[$row->id] = $row->uraian;
         }
     }
     $js = 'id="status_id" class="input-large" required ';
     $data['select_status'] = form_dropdown('status_id', $options, $this->input->post('status_id'), $js);
     $data['dt']['keterangan'] = $this->input->post('keterangan');
     $this->load->view('vdaftar_form_status', $data);
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:35,代码来源:daftar.php

示例8: active_module_url

$('#btn_dialog_ok').click(function() {
	if (mID == '' || mID == null)
		alert('Data belum dipilih.');
	else {
		$('#userid').val(mID.replace(/\./g, ''));
		$('#nama').val(mNama);
		$('#cust_id').val(cust_id);

		$('#cuDialog').modal('hide');
	}
});

$('#btn_cancel').click(function() {
	window.location = "<?php 
echo active_module_url('user_reg');
?>
";
});
});
</script>

<section class="content">
	<!-- Modal -->

	<div id="cuDialog" class="modal">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
					<h4 class="modal-title">Wajib Pajak</h4>
开发者ID:aagusti,项目名称:padl-tng,代码行数:30,代码来源:vuser_reg_form.php

示例9: delete

 public function delete()
 {
     $id = $this->uri->segment(4);
     if ($id && $this->users_model->get($id)) {
         $this->db->delete('user_groups', array('user_id' => $id));
         if ($this->users_model->delete($id)) {
             $this->session->set_flashdata('msg_success', 'Data telah dihapus');
         } else {
             $this->session->set_flashdata('msg_error', 'Gagal');
         }
         redirect(active_module_url('user_reg'));
     } else {
         show_404();
     }
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:15,代码来源:user_reg.php

示例10: active_module_url

    ?>
">Zona</a></li>
              <li><a href="<?php 
    echo active_module_url('air_hda');
    ?>
">HDA</a></li>
              

            </ul>
          </li>
        </ul>
      </li>
          
      <li class="header">SETTING</li>
      <li><a href="<?php 
    echo active_module_url('pemda');
    ?>
">
          <i class="fa fa-circle-o text-danger"></i>PAD Module</a></li>
    </ul>
  </section>

</aside>
<div class="content-wrapper">
<!--
 <link href="<?php 
    echo base_url();
    ?>
assets/adminlte/plugins/datepicker/datepicker3.min.css" rel="stylesheet" type="text/css" />
 <script src="<?php 
    echo base_url();
开发者ID:aagusti,项目名称:padl-tng,代码行数:31,代码来源:_navbar.php

示例11: function

		$('#form_op')[0].reset();
	},
	error: function (xhr, desc, er) {
		alert(er);
	}
});


});

$('#btn_op_delete').click(function() {
if(opID) {
	var hapus = confirm('Hapus data ini?');
	if(hapus==true) {
		var url  = '<?php 
echo active_module_url();
?>
subjek_pajak/delete_op/'+opID;
		$.get(url, function(data) {
			if (data=='sip') {
				reload_grid();
				$('#btn_op_cancel').trigger('click');
			} else alert ('Gagal hapus!');
		});
	};
}else{
	alert('Silahkan pilih data yang akan dihapus');
}
});

$('#btn_op_cancel').click(function() {
开发者ID:aagusti,项目名称:padl-tng,代码行数:31,代码来源:vsubjek_pajak_form_new.php

示例12: active_module_url

<?php

$this->load->view('_head');
$this->load->view(active_module() . '/_navbar');
?>

<script>
	$(document).ready(function() {
		$('#btn_cancel').click(function() {
			window.location = "<?php 
echo $this->uri->segment(2) == 'users2' ? active_module_url() : active_module_url('users');
?>
";
		});
	});
</script>

<div class="content">
	<div class="container-fluid">
		<ul class="nav nav-tabs">
			<li class="active">
				<a href="#"><strong>USERS</strong></a>
			</li>
		</ul><br>
		
		<?php 
if (validation_errors()) {
    echo '<blockquote><strong>Harap melengkapi data berikut :</strong>';
    echo validation_errors('<small>', '</small>');
    echo '</blockquote>';
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:31,代码来源:vusers_form.php

示例13: delete

 public function delete()
 {
     if (!$this->module_auth->delete) {
         $this->session->set_flashdata('msg_warning', $this->module_auth->msg_delete);
         redirect(active_module_url('pegawai'));
     }
     $id = $this->uri->segment(4);
     if ($id && $this->pegawai_model->get($id)) {
         $this->pegawai_model->delete($id);
         $this->session->set_flashdata('msg_success', 'Data telah dihapus');
         redirect(active_module_url('pegawai'));
     } else {
         show_404();
     }
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:15,代码来源:pegawai.php

示例14: batal

 public function batal()
 {
     if (!$this->module_auth->delete) {
         $this->session->set_flashdata('msg_warning', $this->module_auth->msg_update);
         redirect(active_module_url($this->controller));
     }
     $approval_id = (int) $this->uri->segment(4);
     if ($approval_id && ($approval = $this->sspd_approval_model->get($approval_id))) {
         // hapus SSPD Approval
         $this->sspd_approval_model->delete($approval_id);
         // UPDATE SPPD
         $upd_sspd = array('tgl_approval' => NULL, 'status_daftar' => 2);
         $this->sspd_model->update($approval->sspd_id, $upd_sspd);
         echo "ok";
         exit;
     }
     echo "not ok";
 }
开发者ID:aagusti,项目名称:bphtb-php-rpc,代码行数:18,代码来源:sspd_approval.php

示例15: form_open

<style>
.page-header {
    padding: 4px 10px;
    margin-top: 2px;
    margin-bottom: 4px;
}
</style>

<div class="content">
    <div class="container-fluid">
        <ul class="nav nav-tabs">
            <li class="active"><a data-toggle="tab" href="#op"><strong>Objek Pajak</strong></a></li>
        </ul>
        <?php 
echo form_open(active_module_url('objek_pajak'), array('id' => 'myform', 'class' => 'form-horizontal', 'method' => 'get', 'style' => 'margin-bottom:2px;'));
?>
        <div class="control-group">
            <label class="control-label">Nomor Objek Pajak</label>
            <div class="controls">
                <input style="width:145px;" type="text" id="nop" class="input" value="<?php 
echo $nop != 0 ? $nop : '';
?>
" name="nop" autocomplete="off" required="required" placeholder="00.00.000.000.000-0000.0" size="30"/>
                <button class="btn btn-primary" type="submit">Cari</button>
                </select>
            </div>
        </div>
        </form>
        
        <?php 
开发者ID:aagusti,项目名称:bphtb-php-rpc,代码行数:30,代码来源:vobjek_pajak.php


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