function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_skpdkb_nihil; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. // ------------------------- //End Custom Code $cetak_laporan = CCGetFromGet('cetak_laporan'); global $Label1; // ------------------------- // Write your own code here. $tahun = CCGetFromGet('year_code'); $status = CCGetFromGet('status'); $param_arr = array(); $param_arr['tahun'] = $tahun; $param_arr['status'] = $status; if (!empty($param_arr['tahun'])) { $Label1->SetText(view_html($param_arr)); } // ------------------------- //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_piutang_pajak_berdasarkan_npwpd; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. // ------------------------- //End Custom Code $cetak_laporan = CCGetFromGet('cetak_laporan'); global $Label1; // ------------------------- // Write your own code here. if ($cetak_laporan == 'view_html') { $param_arr = array(); $param_arr['npwpd'] = CCGetFromGet('npwpd'); $Label1->SetText(view_html($param_arr)); } else { /* $param_arr=array(); $param_arr['year_period_id']=$t_laporan_piutang_pajak->p_year_period_id->GetValue(); $param_arr['p_vat_type_id']=$t_laporan_piutang_pajak->p_vat_type_id->GetValue(); $param_arr['year_code']=$t_laporan_piutang_pajak->year_code->GetValue(); print_laporan($param_arr); */ //exit; } // ------------------------- //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_pembayaran_wp_baru; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. // ------------------------- //End Custom Code $cetak_laporan = CCGetFromGet('cetak_laporan'); global $Label1; // ------------------------- // Write your own code here. if ($cetak_laporan == 'view_html') { $param_arr = array(); $param_arr['status_pembayaran'] = CCGetFromGet("status_pembayaran", 1); $param_arr['p_vat_type_id'] = CCGetFromGet("p_vat_type_id", ''); $param_arr['p_year_period_id'] = CCGetFromGet("p_year_period_id", ''); if ($param_arr['status_pembayaran'] == 1) { $param_arr['status_pembayaran_code'] = 'SUDAH PERNAH BAYAR'; } else { $param_arr['status_pembayaran_code'] = 'BELUM PERNAH BAYAR'; } $Label1->SetText(view_html($param_arr)); } // ------------------------- //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_piutang_pajak_all; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. // ------------------------- //End Custom Code $cetak_laporan = CCGetFromGet('cetak_laporan'); global $Label1; // ------------------------- // Write your own code here. if ($cetak_laporan == 'view_html') { $param_arr = array(); $param_arr['p_vat_type_id'] = CCGetFromGet("p_vat_type_id", 1); $param_arr['vat_code'] = CCGetFromGet("vat_code", ""); $Label1->SetText(view_html($param_arr)); } else { if ($cetak_laporan == 'download_excel') { $param_arr = array(); $param_arr['p_vat_type_id'] = CCGetFromGet("p_vat_type_id", 1); $param_arr['vat_code'] = CCGetFromGet("vat_code", ""); print_excel($param_arr); } } // ------------------------- //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_wp_per_wilayah; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. // ------------------------- //End Custom Code $cetak_laporan = CCGetFromGet('cetak_laporan'); global $Label1; // ------------------------- // Write your own code here. $param_arr = array(); $param_arr['kode_wilayah'] = CCGetFromGet("kode_wilayah", 1); $param_arr['p_vat_type_id'] = CCGetFromGet("p_vat_type_id", 1); $param_arr['p_account_status_id'] = CCGetFromGet("p_account_status_id", 1); if ($cetak_laporan == 'view_html') { $Label1->SetText(view_html($param_arr)); } if ($cetak_laporan == 'view_excel') { view_html($param_arr); } // ------------------------- //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function Page_BeforeShow(&$sender) { $Page_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_laporan_piutang_pajak3; //Compatibility //End Page_BeforeShow //Custom Code @10-2A29BDB7 // ------------------------- // Write your own code here. // ------------------------- //End Custom Code $cetak_laporan = CCGetFromGet('cetak_laporan'); global $Label1; global $t_laporan_piutang_pajak2; // ------------------------- // Write your own code here. $param_arr = array(); $param_arr['year_period_id'] = $t_laporan_piutang_pajak2->p_year_period_id->GetValue(); $param_arr['p_vat_type_id'] = $t_laporan_piutang_pajak2->p_vat_type_id->GetValue(); $param_arr['year_code'] = $t_laporan_piutang_pajak2->year_code->GetValue(); $param_arr['vat_code'] = $t_laporan_piutang_pajak2->vat_code->GetValue(); $param_arr['status_bayar'] = $t_laporan_piutang_pajak2->status_bayar->GetValue(); $param_arr['tgl_penerimaan'] = CCGetFromGet('tgl_penerimaan'); $param_arr['tgl_penerimaan_akhir'] = CCGetFromGet('tgl_penerimaan_akhir'); $t_laporan_piutang_pajak2->p_year_period_id->SetValue($param_arr['year_period_id']); $t_laporan_piutang_pajak2->year_code->SetValue($param_arr['year_code']); $t_laporan_piutang_pajak2->p_vat_type_id->SetValue($param_arr['p_vat_type_id']); $t_laporan_piutang_pajak2->vat_code->SetValue($param_arr['vat_code']); $t_laporan_piutang_pajak2->status_bayar->SetValue($param_arr['status_bayar']); //$t_laporan_piutang_pajak2->tgl_penerimaan->SetValue($param_arr['tgl_penerimaan']); if ($cetak_laporan == 'view_html') { $Label1->SetText(view_html($param_arr)); } if ($cetak_laporan == 'view_excel') { view_html($param_arr); } /*else if($t_laporan_piutang_pajak2->cetak_laporan->GetValue()=='T'){ $param_arr=array(); $param_arr['year_period_id']=$t_laporan_piutang_pajak2->p_year_period_id->GetValue(); $param_arr['p_vat_type_id']=$t_laporan_piutang_pajak2->p_vat_type_id->GetValue(); $param_arr['year_code']=$t_laporan_piutang_pajak2->year_code->GetValue(); print_laporan($param_arr); exit; } */ // ------------------------- //Close Page_BeforeShow @1-4BC230CD return $Page_BeforeShow; }
function metaform() { if (isset($_REQUEST['form_name'])) { $GLOBALS['form_name'] = format_varname($_REQUEST['form_name']); $GLOBALS['singular'] = format_varname($_REQUEST['singular']); tem_set('singular', $GLOBALS['singular']); $GLOBALS['opt_email'] = format_yesno($_REQUEST['opt_email']); tem_set('opt_email', $GLOBALS['opt_email']); $GLOBALS['opt_db'] = format_yesno($_REQUEST['opt_db']); tem_set('opt_db', $GLOBALS['opt_db']); $GLOBALS['opt_listing'] = format_yesno($_REQUEST['opt_listing']); tem_set('opt_listing', $GLOBALS['opt_listing']); $GLOBALS['opt_display'] = format_yesno($_REQUEST['opt_display']); tem_set('opt_display', $GLOBALS['opt_display']); $GLOBALS['opt_http_pass'] = format_yesno($_REQUEST['opt_http_pass']); tem_set('opt_http_pass', $GLOBALS['opt_http_pass']); } else { $GLOBALS['form_name'] = 'some_form'; } if (isset($_REQUEST['fields'])) { if (isset($_REQUEST['view_sql'])) { view_sql(); exit; } elseif (isset($_REQUEST['view_php'])) { view_php(); exit; } elseif (isset($_REQUEST['view_html'])) { view_html(); exit; } elseif (isset($_REQUEST['view_email'])) { view_email(); exit; } elseif (isset($_REQUEST['download_tar'])) { download_tar(); exit; } elseif (isset($_REQUEST['preview'])) { preview(); exit; } elseif (isset($_REQUEST['edit'])) { tem_set('fields', $_REQUEST['fields']); tem_set('form_name', $GLOBALS['form_name']); # fall through } else { die("Sorry... couldn't tell which button you pressed"); } } set_form_action(); tem_load('code/wfpl/metaform/main.html'); list_available_types(); tem_output(); }