本文整理匯總了PHP中CCGetParentContainer函數的典型用法代碼示例。如果您正苦於以下問題:PHP CCGetParentContainer函數的具體用法?PHP CCGetParentContainer怎麽用?PHP CCGetParentContainer使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了CCGetParentContainer函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Page_BeforeShow
function Page_BeforeShow(&$sender)
{
$Page_BeforeShow = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $t_rep_lap_harian_teller;
//Compatibility
//End Page_BeforeShow
//Custom Code @562-2A29BDB7
// -------------------------
// Write your own code here.
global $Label1;
$tampil = CCGetFromGet('tampil');
$tgl_penerimaan = CCGetFromGet('tgl_penerimaan');
$nama_teller = CCGetFromGet('nama_teller');
$p_payment_type_id = CCGetFromGet('p_payment_type_id');
$param_arr = array();
$param_arr['tgl_penerimaan'] = CCGetFromGet('tgl_penerimaan');
$param_arr['nama_teller'] = CCGetFromGet('nama_teller');
$param_arr['p_payment_type_id'] = CCGetFromGet('p_payment_type_id');
if ($tampil == 'T') {
$Label1->SetText(GetCetakGeneralHTML($param_arr));
} elseif ($tampil == 'download_excel') {
print_excel($param_arr);
}
// -------------------------
//End Custom Code
//Close Page_BeforeShow @1-4BC230CD
return $Page_BeforeShow;
}
示例2: Page_BeforeShow
function Page_BeforeShow(&$sender)
{
$Page_BeforeShow = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $t_debt_letter_view_excel;
//Compatibility
//End Page_BeforeShow
//Custom Code @68-2A29BDB7
// -------------------------
// Write your own code here.
$cetak_excel = CCGetFromGet("cetak_excel", 0);
$t_customer_order_id = CCGetFromGet("t_customer_order_id", 0);
$p_vat_type_id = CCGetFromGet("p_vat_type_id", 0);
$param_arr = array();
if ($cetak_excel == 1) {
$param_arr['p_vat_type_id'] = $p_vat_type_id;
$param_arr['t_customer_order_id'] = $t_customer_order_id;
print_excel($param_arr);
}
// -------------------------
//End Custom Code
//Close Page_BeforeShow @1-4BC230CD
return $Page_BeforeShow;
}
示例3: Page_BeforeShow
function Page_BeforeShow(&$sender)
{
$Page_BeforeShow = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $t_laporan_rekap_surat_teguran_per_bulan;
//Compatibility
//End Page_BeforeShow
//Custom Code @572-2A29BDB7
// -------------------------
// Write your own code here.
$doAction = CCGetFromGet('doAction');
global $Label1;
$param_arr['p_year_period_id'] = CCGetFromGet('p_year_period_id');
$param_arr['year_code'] = CCGetFromGet('year_code');
if ($doAction == 'view_html') {
$Label1->SetText(GetCetakHTML($param_arr));
}
if ($doAction == 'view_excel') {
$Label1->SetText(GetCetakExcel($param_arr));
}
// -------------------------
//End Custom Code
//Close Page_BeforeShow @1-4BC230CD
return $Page_BeforeShow;
}
示例4: Login_Button_DoLogin1_OnClick
function Login_Button_DoLogin1_OnClick(&$sender)
{
$Login_Button_DoLogin1_OnClick = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $Login;
//Compatibility
//End Login_Button_DoLogin1_OnClick
//Login @9-DE10C29C
global $CCSLocales;
global $Redirect;
if (!CCLoginUser($Container->login->Value, md5($Container->password->Value))) {
$Container->Errors->addError($CCSLocales->GetText("CCS_LoginError"));
$Container->Errors->addError(md5($Container->password->Value));
$Container->password->SetValue("");
$Login_Button_DoLogin_OnClick = 0;
} else {
global $Redirect;
$Redirect = CCGetParam("ret_link", $Redirect);
$Login_Button_DoLogin_OnClick = 1;
}
//End Login
//Close Login_Button_DoLogin1_OnClick @8-58EB7BC1
return $Login_Button_DoLogin1_OnClick;
}
示例5: licensing_viewfilecontent_BeforeShow
function licensing_viewfilecontent_BeforeShow(&$sender)
{
$licensing_viewfilecontent_BeforeShow = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $licensing_viewfilecontent;
//Compatibility
//End licensing_viewfilecontent_BeforeShow
//Custom Code @3-2A29BDB7
// -------------------------
// Write your own code here.
$licensefile_guid = trim(CCGetFromGet("licensefile_guid", ""));
if (strlen($licensefile_guid) > 0) {
$params = array();
$params["licensefile_guid"] = $licensefile_guid;
$products = new \Alm\Products();
$licenseFile = $products->getLicenseFileByGuid($params);
$licenseFile = $licenseFile["licensefile"];
foreach ($licenseFile as $licensefile) {
$licensing_viewfilecontent->lbfileurl->SetValue($licensefile["filename"]);
}
} else {
header("Location: licensing.php");
}
// -------------------------
//End Custom Code
//Close licensing_viewfilecontent_BeforeShow @1-C96E08DA
return $licensing_viewfilecontent_BeforeShow;
}
示例6: contacts_holidays_list_BeforeShow
function contacts_holidays_list_BeforeShow(&$sender)
{
$contacts_holidays_list_BeforeShow = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $contacts_holidays_list;
//Compatibility
//End contacts_holidays_list_BeforeShow
//Custom Code @22-2A29BDB7
// -------------------------
// Write your own code here.
$del_guid = CCGetFromGet("del_guid", "");
$o = CCGetFromGet("o", "");
if ($o == "delrecord" && strlen($del_guid) > 0) {
global $FileName;
$params["guid"] = $del_guid;
$customers = new Customers();
$customers->deleteHolidaysByGuid($params);
$querystring = CCGetQueryString("QueryString", array("o", "del_guid"));
//Forcing redirect
header("Location: {$FileName}?{$querystring}");
}
// -------------------------
//End Custom Code
//Close contacts_holidays_list_BeforeShow @1-2AE37F02
return $contacts_holidays_list_BeforeShow;
}
示例7: Page_BeforeShow
function Page_BeforeShow(&$sender)
{
$Page_BeforeShow = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $t_bphtb_registration_list_update;
//Compatibility
//End Page_BeforeShow
//Custom Code @703-2A29BDB7
// -------------------------
// Write your own code here.
if (CCGetFromGet("submit_bphtb") == 1) {
$dbConn = new clsDBConnSIKP();
$sql = "select count(*) as jml from t_product_order_control where doc_id = " . CCGetFromGet('t_customer_order_id') . "and and p_w_doc_type_id = 505";
$dbConn->query($sql);
$jumlah_data;
if ($dbConn->next_record()) {
$jumlah_data = $dbConn->f('jml');
}
if ($jumlah_data == 0) {
$sql = "select sikp.f_first_submit_engine(505," . CCGetFromGet('t_customer_order_id') . ",'" . CCGetSession('UserLogin') . "')";
$dbConn->query($sql);
} else {
echo "\r\n\t\t\t\t<script>\r\n\t\t\t\t\talert('Data BPHTB Sudah Tersubmit');\r\n\t\t\t\t</script>\r\n\t\t\t";
//exit;
}
$dbConn->close();
header('Location:t_bphtb_registration_list.php');
exit;
}
// -------------------------
//End Custom Code
//Close Page_BeforeShow @1-4BC230CD
return $Page_BeforeShow;
}
示例8: Page_BeforeShow
function Page_BeforeShow(&$sender)
{
$Page_BeforeShow = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $t_laporan_ketetapan_vs_realisasi;
//Compatibility
//End Page_BeforeShow
//Custom Code @572-2A29BDB7
// -------------------------
// Write your own code here.
$doAction = CCGetFromGet('doAction');
global $Label1;
$param_arr['end_date'] = CCGetFromGet('date_end_laporan');
$param_arr['start_date'] = CCGetFromGet('date_start_laporan');
$param_arr['p_vat_type_id'] = CCGetFromGet('p_vat_type_id', '');
$param_arr['status_bayar'] = CCGetFromGet('ListBox1');
$param_arr['ketetapan'] = CCGetFromGet('ListBox2', 4);
$param_arr['vat_code'] = CCGetFromGet('vat_code');
if ($doAction == 'view_rekap_html') {
$Label1->SetText(GetCetakRekapHTML($param_arr));
}
if ($doAction == 'cetak_rekap_excel') {
GetCetakRekapHTML($param_arr);
}
// -------------------------
//End Custom Code
//Close Page_BeforeShow @1-4BC230CD
return $Page_BeforeShow;
}
示例9: 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;
}
示例10: 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;
}
示例11: date_count_values_BeforeShow
function date_count_values_BeforeShow(&$sender)
{
$date_count_values_BeforeShow = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $date_count_values;
//Compatibility
//End date_count_values_BeforeShow
//Custom Code @6-2A29BDB7
// -------------------------
$db = new clsDBconnection1();
$sql = "call patientdatecount;";
$db->query($sql);
$Result = $db->next_record();
$rs = $db->f('rs');
if ($Result) {
$date_count_values->SetValue($rs);
} else {
$date_count_values->SetValue(0);
}
$db->close();
// -------------------------
//End Custom Code
//Close date_count_values_BeforeShow @5-A61B4F44
return $date_count_values_BeforeShow;
}
示例12: Login_Button_DoLogin_OnClick
function Login_Button_DoLogin_OnClick(&$sender)
{
$Login_Button_DoLogin_OnClick = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $Login;
//Compatibility
//End Login_Button_DoLogin_OnClick
//Login @4-DE10C29C
global $CCSLocales;
global $Redirect;
if (!CCLoginUser($Container->username->Value, $Container->password->Value)) {
$Container->Errors->addError($CCSLocales->GetText("CCS_LoginError"));
$Container->password->SetValue("");
$Login_Button_DoLogin_OnClick = 0;
} else {
global $Redirect;
$seshmenu = "";
$glip = array("glyphicon-cog", "glyphicon-cog", "glyphicon-list", "glyphicon-folder-close", "glyphicon-usd", "glyphicon-gift", "glyphicon-time", "glyphicon-user", "glyphicon-log-in", "glyphicon-align-justify");
$DBhrcon_ = new clsDBhrcon();
$queryMD = "select p_module_id, code, description from p_module " . "where is_active='Y' order by listing_no";
$DBhrcon_->query($queryMD);
while ($DBhrcon_->next_record()) {
$seshmenu = $seshmenu . "<li><a href='../main/modul.php?p_module_id=" . $DBhrcon_->f("p_module_id") . "'" . "title='" . $DBhrcon_->f("code") . " " . $DBhrcon_->f("description") . "' target=''>" . "<i class='glyphicon " . $glip[$DBhrcon_->f("p_module_id")] . "' style='font-size: 32px; border:2px solid #ffffff; padding:3px'></i>";
}
$DBhrcon_->close();
CCSetSession("hmenu", $seshmenu);
$Redirect = CCGetParam("ret_link", $Redirect);
$Login_Button_DoLogin_OnClick = 1;
}
//End Login
//Close Login_Button_DoLogin_OnClick @3-0EB5DCFE
return $Login_Button_DoLogin_OnClick;
}
示例13: resellers_list_BeforeShow
function resellers_list_BeforeShow(&$sender)
{
$resellers_list_BeforeShow = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $resellers_list;
//Compatibility
//End resellers_list_BeforeShow
//Custom Code @5-2A29BDB7
// -------------------------
// Write your own code here.
$del_guid = CCGetFromGet("del_guid", "");
$o = CCGetFromGet("o", "");
if ($o == "delrecord" && strlen($del_guid) > 0) {
global $FileName;
$params["del_guid"] = $del_guid;
$products = new Alm\Products();
$products->deleteResellerByGuid($params);
$querystring = CCGetQueryString("QueryString", array("o", "del_guid"));
//Forcing redirect
header("Location: {$FileName}?{$querystring}");
}
// -------------------------
//End Custom Code
//Close resellers_list_BeforeShow @1-EB7F272F
return $resellers_list_BeforeShow;
}
示例14: Page_BeforeShow
function Page_BeforeShow(&$sender)
{
$Page_BeforeShow = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $t_rep_realisasi_harian_per_jenis_pajak;
//Compatibility
//End Page_BeforeShow
//Custom Code @568-2A29BDB7
// -------------------------
// Write your own code here.
// -------------------------
//End Custom Code
$doAction = CCGetFromGet('doAction');
if ($doAction == 'download_excel') {
$param_arr = array();
$param_arr['p_vat_type_id'] = CCGetFromGet('p_vat_type_id');
$param_arr['p_year_period_id'] = CCGetFromGet('p_year_period_id');
$param_arr['tgl_penerimaan'] = CCGetFromGet('tgl_penerimaan');
$param_arr['i_flag_setoran'] = CCGetFromGet('i_flag_setoran');
$param_arr['tgl_penerimaan_last'] = CCGetFromGet('tgl_penerimaan_last');
$param_arr['jenis_laporan'] = CCGetFromGet("jenis_laporan", "all");
print_excel($param_arr);
}
//Close Page_BeforeShow @1-4BC230CD
return $Page_BeforeShow;
}
示例15: 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;
}