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


PHP CCGetEvent函数代码示例

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


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

示例1: Show

 function Show($Name)
 {
     global $Tpl;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");
     if (!$this->Enabled) {
         return "";
     }
     $Tpl->LoadTemplate($this->TemplatePath . $this->TemplateFileName, $Name);
     $Tpl->Parse($Name, false);
     $Tpl->SetVar($Name, $Tpl->GetVar($Name));
 }
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:11,代码来源:Footer.php

示例2: Delete

 function Delete()
 {
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildDelete");
     $SQL = "DELETE FROM `users` WHERE " . $this->Where;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteDelete");
     $this->query($SQL);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteDelete");
     if ($this->Errors->Count() > 0) {
         $this->Errors->AddError($this->Errors->ToString());
     }
 }
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:11,代码来源:UserMaintanence.php

示例3: header

    header("Location: " . $Redirect);
    $header_outofbound->Class_Terminate();
    unset($header_outofbound);
    $footer->Class_Terminate();
    unset($footer);
    unset($Tpl);
    exit;
}
//End Go to destination page
//Show Page @1-65A57857
$header_outofbound->Show();
$footer->Show();
$Tpl->block_path = "";
$Tpl->Parse($BlockToParse, false);
if (!isset($main_block)) {
    $main_block = $Tpl->GetVar($BlockToParse);
}
$main_block = CCConvertEncoding($main_block, $FileEncoding, $TemplateEncoding);
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeOutput", $MainPage);
if ($CCSEventResult) {
    echo $main_block;
}
//End Show Page
//Unload Page @1-1F225DEA
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$header_outofbound->Class_Terminate();
unset($header_outofbound);
$footer->Class_Terminate();
unset($footer);
unset($Tpl);
//End Unload Page
开发者ID:Okwori,项目名称:iRadiology,代码行数:31,代码来源:index.php

示例4: Open

 function Open()
 {
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect");
     $this->CountSQL = "SELECT COUNT(*)  " . "FROM feedback";
     $this->SQL = "SELECT *  " . "FROM feedback";
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect");
     $this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
     $this->query(CCBuildSQL($this->SQL, $this->Where, $this->Order));
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect");
     $this->MoveToPage($this->AbsolutePage);
 }
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:11,代码来源:Feedback.php

示例5: Delete

 function Delete()
 {
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->CmdExecution = true;
     $Where = "";
     $wp = new clsSQLParameters($this->ErrorBlock);
     $wp->AddParameter("1", "ctrlp_user_attribute_id", ccsFloat, "", "", $this->p_user_attribute_id->GetValue(true), "", false);
     if (!$wp->AllParamsSet()) {
         $this->Errors->addError($CCSLocales->GetText("CCS_CustomOperationError_MissingParameters"));
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildDelete", $this->Parent);
     $wp->Criterion[1] = $wp->Operation(opEqual, "p_user_attribute_id", $wp->GetDBValue("1"), $this->ToSQL($wp->GetDBValue("1"), ccsFloat), false);
     $Where = $wp->Criterion[1];
     $this->SQL = "DELETE FROM p_user_attribute";
     $this->SQL = CCBuildSQL($this->SQL, $Where, "");
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteDelete", $this->Parent);
     if ($this->Errors->Count() == 0 && $this->CmdExecution) {
         $this->query($this->SQL);
         $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteDelete", $this->Parent);
     }
 }
开发者ID:rayminami,项目名称:chumanis,代码行数:22,代码来源:p_user_attribute_form.php

示例6: Delete

 function Delete()
 {
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->CmdExecution = true;
     $this->cp["t_cust_order_legal_doc_id"] = new clsSQLParameter("ctrlt_cust_order_legal_doc_id", ccsFloat, "", "", $this->t_cust_order_legal_doc_id->GetValue(true), 0, false, $this->ErrorBlock);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildDelete", $this->Parent);
     if (!is_null($this->cp["t_cust_order_legal_doc_id"]->GetValue()) and !strlen($this->cp["t_cust_order_legal_doc_id"]->GetText()) and !is_bool($this->cp["t_cust_order_legal_doc_id"]->GetValue())) {
         $this->cp["t_cust_order_legal_doc_id"]->SetValue($this->t_cust_order_legal_doc_id->GetValue(true));
     }
     if (!strlen($this->cp["t_cust_order_legal_doc_id"]->GetText()) and !is_bool($this->cp["t_cust_order_legal_doc_id"]->GetValue(true))) {
         $this->cp["t_cust_order_legal_doc_id"]->SetText(0);
     }
     $this->SQL = "DELETE FROM t_cust_order_legal_doc\n" . "WHERE t_cust_order_legal_doc_id = " . $this->SQLValue($this->cp["t_cust_order_legal_doc_id"]->GetDBValue(), ccsFloat) . "";
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteDelete", $this->Parent);
     if ($this->Errors->Count() == 0 && $this->CmdExecution) {
         $this->query($this->SQL);
         $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteDelete", $this->Parent);
     }
 }
开发者ID:rayminami,项目名称:mpd-online,代码行数:20,代码来源:t_cust_order_legal_doc_ro_npwd.php

示例7: Show

 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->creation_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->created_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->qty_room_sold->Errors->ToString());
         $Error = ComposeStrings($Error, $this->npwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_cust_account_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->finance_period_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_finance_period_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_year_period_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->year_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->total_trans_amount->Errors->ToString());
         $Error = ComposeStrings($Error, $this->start_period->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_start_period->Errors->ToString());
         $Error = ComposeStrings($Error, $this->end_period->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_end_period->Errors->ToString());
         $Error = ComposeStrings($Error, $this->company_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->vat_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_vat_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->vat_code_dtl->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_vat_type_dtl_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->vat_code_dtl_cls->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_vat_type_dtl_cls_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->mode_denda->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->creation_date->Show();
     $this->created_by->Show();
     $this->updated_date->Show();
     $this->updated_by->Show();
     $this->qty_room_sold->Show();
     $this->npwd->Show();
     $this->t_cust_account_id->Show();
     $this->finance_period_code->Show();
     $this->p_finance_period_id->Show();
     $this->p_year_period_id->Show();
     $this->year_code->Show();
     $this->total_trans_amount->Show();
     $this->start_period->Show();
     $this->DatePicker_start_period->Show();
     $this->end_period->Show();
     $this->DatePicker_end_period->Show();
     $this->Button1->Show();
     $this->company_name->Show();
     $this->vat_code->Show();
     $this->p_vat_type_id->Show();
     $this->vat_code_dtl->Show();
     $this->p_vat_type_dtl_id->Show();
     $this->vat_code_dtl_cls->Show();
     $this->p_vat_type_dtl_cls_id->Show();
     $this->mode_denda->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
 }
开发者ID:rayminami,项目名称:mpd-online,代码行数:86,代码来源:t_vat_setllement_manual_skpdkb_tambahan.php

示例8: Show

 function Show()
 {
     global $Tpl;
     if ($this->Visible) {
         $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");
         $Tpl->Parse("Button " . $this->Name, false);
     }
 }
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:8,代码来源:Classes.php

示例9: Open

 function Open()
 {
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
     $this->CountSQL = "SELECT COUNT(*) FROM (select * from f_status_sudah_transaksi(" . $this->SQLValue($this->wp->GetDBValue("1"), ccsFloat) . ")) cnt";
     $this->SQL = "select * from f_status_sudah_transaksi(" . $this->SQLValue($this->wp->GetDBValue("1"), ccsFloat) . ")";
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent);
     if ($this->CountSQL) {
         $this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
     } else {
         $this->RecordsCount = "CCS not counted";
     }
     $this->query($this->OptimizeSQL(CCBuildSQL($this->SQL, $this->Where, $this->Order)));
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect", $this->Parent);
 }
开发者ID:rayminami,项目名称:mpd-online,代码行数:14,代码来源:t_status_pelaporan_transaksi_sudah_lapor.php

示例10: Open

 function Open()
 {
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
     $this->CountSQL = "SELECT COUNT(*)\n\n" . "FROM v_vat_reg_employee";
     $this->SQL = "SELECT * \n\n" . "FROM v_vat_reg_employee {SQL_Where} {SQL_OrderBy}";
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent);
     if ($this->CountSQL) {
         $this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
     } else {
         $this->RecordsCount = "CCS not counted";
     }
     $this->query($this->OptimizeSQL(CCBuildSQL($this->SQL, $this->Where, $this->Order)));
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect", $this->Parent);
 }
开发者ID:rayminami,项目名称:mpd-online,代码行数:14,代码来源:t_vat_reg_dtl_ro_kasi.php

示例11: Open

 function Open()
 {
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
     $this->CountSQL = "SELECT COUNT(*) FROM (SELECT x.receipt_no,\n" . "x.p_finance_period_id,\n" . "x.description,\n" . "f_per.*\n" . "FROM p_finance_period f_per,\n" . "(select sett.p_finance_period_id,\n" . "receipt_no,sett_type.description\n" . "\t\t\t\t\t\tfrom\n" . "\t\t\t\t\t\t\tt_vat_setllement sett,\n" . "\t\t\t\t\t\t\tp_settlement_type sett_type,\n" . "t_payment_receipt rec\n" . "\t\t\t\t\t\t\tWHERE sett.t_cust_account_id = " . $this->SQLValue($this->wp->GetDBValue("2"), ccsText) . "\n" . "\t\t\t\t\t\t\tand sett.p_settlement_type_id = sett_type.p_settlement_type_id\n" . "\t\t\t\t\t\t\tand sett.t_vat_setllement_id = rec.t_vat_setllement_id (+)\n" . "\t\t\t\t\t\t\tand sett.p_settlement_type_id <> 7) as x\n" . "\t\t\t\t\twhere f_per.p_finance_period_id = x.p_finance_period_id(+)\n" . "\t\t\t\t\tand f_per.end_date < (select start_date from p_finance_period where p_finance_period_id = " . $this->SQLValue($this->wp->GetDBValue("1"), ccsText) . ")\n" . "\t\t\t\t\tand f_per.start_date >= '01-01-2013'\n" . "\t\t\t\t\tand (receipt_no is null or receipt_no ='')\n" . "\t\t\t\t\tand f_per.start_date >= '" . $this->SQLValue($this->wp->GetDBValue("3"), ccsText) . "') cnt";
     $this->SQL = "SELECT x.receipt_no,\n" . "x.p_finance_period_id,\n" . "x.description,\n" . "f_per.*\n" . "FROM p_finance_period f_per,\n" . "(select sett.p_finance_period_id,\n" . "receipt_no,sett_type.description\n" . "\t\t\t\t\t\tfrom\n" . "\t\t\t\t\t\t\tt_vat_setllement sett,\n" . "\t\t\t\t\t\t\tp_settlement_type sett_type,\n" . "t_payment_receipt rec\n" . "\t\t\t\t\t\t\tWHERE sett.t_cust_account_id = " . $this->SQLValue($this->wp->GetDBValue("2"), ccsText) . "\n" . "\t\t\t\t\t\t\tand sett.p_settlement_type_id = sett_type.p_settlement_type_id\n" . "\t\t\t\t\t\t\tand sett.t_vat_setllement_id = rec.t_vat_setllement_id (+)\n" . "\t\t\t\t\t\t\tand sett.p_settlement_type_id <> 7) as x\n" . "\t\t\t\t\twhere f_per.p_finance_period_id = x.p_finance_period_id(+)\n" . "\t\t\t\t\tand f_per.end_date < (select start_date from p_finance_period where p_finance_period_id = " . $this->SQLValue($this->wp->GetDBValue("1"), ccsText) . ")\n" . "\t\t\t\t\tand f_per.start_date >= '01-01-2013'\n" . "\t\t\t\t\tand (receipt_no is null or receipt_no ='')\n" . "\t\t\t\t\tand f_per.start_date >= '" . $this->SQLValue($this->wp->GetDBValue("3"), ccsText) . "'\n" . "\t\t\t\t\t {SQL_OrderBy}";
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent);
     if ($this->CountSQL) {
         $this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
     } else {
         $this->RecordsCount = "CCS not counted";
     }
     $this->query($this->OptimizeSQL(CCBuildSQL($this->SQL, $this->Where, $this->Order)));
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect", $this->Parent);
 }
开发者ID:rayminami,项目名称:mpd-online,代码行数:14,代码来源:getPembayaranBolong.php

示例12: Open

 function Open()
 {
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
     $this->CountSQL = "SELECT COUNT(*) FROM (select left(no_spt,length(no_spt)-3) as no_spt_2,\n" . "left(no_kohir,length(no_kohir)-3) as no_kohir_2,\n" . "left(no_bukti_set,length(no_bukti_set)-3) as no_bukti_set_2,\n" . "* from tuuset98 where npwpd_set = '" . $this->SQLValue($this->wp->GetDBValue("2"), ccsText) . "') cnt";
     $this->SQL = "select left(no_spt,length(no_spt)-3) as no_spt_2,\n" . "left(no_kohir,length(no_kohir)-3) as no_kohir_2,\n" . "left(no_bukti_set,length(no_bukti_set)-3) as no_bukti_set_2,\n" . "* from tuuset98 where npwpd_set = '" . $this->SQLValue($this->wp->GetDBValue("2"), ccsText) . "' {SQL_OrderBy}";
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent);
     if ($this->CountSQL) {
         $this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
     } else {
         $this->RecordsCount = "CCS not counted";
     }
     $this->query($this->OptimizeSQL(CCBuildSQL($this->SQL, $this->Where, $this->Order)));
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect", $this->Parent);
 }
开发者ID:rayminami,项目名称:mpd-online,代码行数:14,代码来源:t_data_master_bdusaha_pembayaran_v2.php

示例13: Show

 function Show()
 {
     global $Tpl, $PathToCurrentMasterPage;
     $this->EventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if (!$this->Visible) {
         return;
     }
     $this->Attributes->Show();
     $QueryString = CCGetQueryString("QueryString", array($this->TargetName . "Page", "ccsForm"));
     $SorterBlock = "Sorter " . $this->SorterName;
     $AscOnPath = $SorterBlock . "/Asc_On";
     $AscOffPath = $SorterBlock . "/Asc_Off";
     $DescOnPath = $SorterBlock . "/Desc_On";
     $DescOffPath = $SorterBlock . "/Desc_Off";
     $QueryString = CCAddParam($QueryString, $this->TargetName . "Order", $this->SorterName);
     $AscOnExist = $Tpl->BlockExists($AscOnPath);
     $AscOffExist = $Tpl->BlockExists($AscOffPath);
     $DescOnExist = $Tpl->BlockExists($DescOnPath);
     $DescOffExist = $Tpl->BlockExists($DescOffPath);
     if ($this->IsOn) {
         if ($this->IsAsc) {
             $this->OrderDirection = "DESC";
             $Tpl->SetVar("CCS_PathToMasterPage", RelativePath . $PathToCurrentMasterPage);
             if ($AscOnExist) {
                 $Tpl->Parse($AscOnPath, false);
             }
             if ($AscOffExist) {
                 $Tpl->SetVar($AscOffPath, "");
             }
             if ($DescOnExist) {
                 $Tpl->SetVar($DescOnPath, "");
             }
             if ($DescOffExist) {
                 $Tpl->SetVar("Desc_URL", $this->GetLink($this->FileName . "?" . CCAddParam($QueryString, $this->TargetName . "Dir", "DESC")));
                 $Tpl->SetVar("CCS_PathToMasterPage", RelativePath . $PathToCurrentMasterPage);
                 $Tpl->Parse($DescOffPath, false);
             }
         } else {
             $this->OrderDirection = "ASC";
             if ($AscOnExist) {
                 $Tpl->SetVar($AscOnPath, "");
             }
             if ($AscOffExist) {
                 $Tpl->SetVar("Asc_URL", $this->GetLink($this->FileName . "?" . CCAddParam($QueryString, $this->TargetName . "Dir", "ASC")));
                 $Tpl->SetVar("CCS_PathToMasterPage", RelativePath . $PathToCurrentMasterPage);
                 $Tpl->Parse($AscOffPath, false);
             }
             if ($DescOnExist) {
                 $Tpl->SetVar("CCS_PathToMasterPage", RelativePath . $PathToCurrentMasterPage);
                 $Tpl->Parse($DescOnPath, false);
             }
             if ($DescOffExist) {
                 $Tpl->SetVar($DescOffPath, "");
             }
         }
     } else {
         $this->OrderDirection = "ASC";
         if ($AscOnExist) {
             $Tpl->SetVar($AscOnPath, "");
         }
         if ($AscOffExist) {
             $Tpl->SetVar("Asc_URL", $this->GetLink($this->FileName . "?" . CCAddParam($QueryString, $this->TargetName . "Dir", "ASC")));
             $Tpl->SetVar("CCS_PathToMasterPage", RelativePath . $PathToCurrentMasterPage);
             $Tpl->Parse($AscOffPath, false);
         }
         if ($DescOnExist) {
             $Tpl->SetVar($DescOnPath, "");
         }
         if ($DescOffExist) {
             $Tpl->SetVar("Desc_URL", $this->GetLink($this->FileName . "?" . CCAddParam($QueryString, $this->TargetName . "Dir", "DESC")));
             $Tpl->SetVar("CCS_PathToMasterPage", RelativePath . $PathToCurrentMasterPage);
             $Tpl->Parse($DescOffPath, false);
         }
     }
     $QueryString = CCAddParam($QueryString, $this->TargetName . "Dir", $this->OrderDirection);
     $Tpl->SetVar("Sort_URL", $this->GetLink($this->FileName . "?" . $QueryString));
     $Tpl->Parse($SorterBlock, false);
 }
开发者ID:rayminami,项目名称:chumanis,代码行数:78,代码来源:Sorter.php

示例14: Delete

 function Delete()
 {
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->CmdExecution = true;
     $this->cp["t_vat_setllement_id"] = new clsSQLParameter("ctrlt_vat_setllement_id", ccsFloat, "", "", $this->t_vat_setllement_id->GetValue(true), 0, false, $this->ErrorBlock);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildDelete", $this->Parent);
     if (!is_null($this->cp["t_vat_setllement_id"]->GetValue()) and !strlen($this->cp["t_vat_setllement_id"]->GetText()) and !is_bool($this->cp["t_vat_setllement_id"]->GetValue())) {
         $this->cp["t_vat_setllement_id"]->SetValue($this->t_vat_setllement_id->GetValue(true));
     }
     if (!strlen($this->cp["t_vat_setllement_id"]->GetText()) and !is_bool($this->cp["t_vat_setllement_id"]->GetValue(true))) {
         $this->cp["t_vat_setllement_id"]->SetText(0);
     }
     $this->SQL = "select * from f_del_vat_setllement(" . $this->SQLValue($this->cp["t_vat_setllement_id"]->GetDBValue(), ccsFloat) . ",null,null)";
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteDelete", $this->Parent);
     if ($this->Errors->Count() == 0 && $this->CmdExecution) {
         $this->query($this->SQL);
         $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteDelete", $this->Parent);
     }
 }
开发者ID:rayminami,项目名称:mpd-online,代码行数:20,代码来源:t_message_inbox_bphtb.php

示例15: Update

 function Update()
 {
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildUpdate");
     $SQL = "UPDATE `settings_general` SET " . "`sitename`=" . $this->ToSQL($this->sitename->GetDBValue(), $this->sitename->DataType) . ", " . "`siteemail`=" . $this->ToSQL($this->siteemail->GetDBValue(), $this->siteemail->DataType) . ", " . "`homeurl`=" . $this->ToSQL($this->homeurl->GetDBValue(), $this->homeurl->DataType) . ", " . "`secureurl`=" . $this->ToSQL($this->secureurl->GetDBValue(), $this->secureurl->DataType) . ", " . "`uploadurl`=" . $this->ToSQL($this->uploadurl->GetDBValue(), $this->uploadurl->DataType) . ", " . "`pagentrys`=" . $this->ToSQL($this->pagentrys->GetDBValue(), $this->pagentrys->DataType) . ", " . "`frontentrys`=" . $this->ToSQL($this->frontentrys->GetDBValue(), $this->frontentrys->DataType) . ", " . "`notify`=" . $this->ToSQL($this->notify->GetDBValue(), $this->notify->DataType) . ", " . "`has_gd`=" . $this->ToSQL($this->has_gd->GetDBValue(), $this->has_gd->DataType) . ", " . "`approv_priority`=" . $this->ToSQL($this->approv_priority->GetDBValue(), $this->approv_priority->DataType) . ", " . "`notifyads`=" . $this->ToSQL($this->notifyads->GetDBValue(), $this->notifyads->DataType) . ", " . "`notifyemail`=" . $this->ToSQL($this->notifyemail->GetDBValue(), $this->notifyemail->DataType) . ", " . "`bounceout`=" . $this->ToSQL($this->bounceout->GetDBValue(), $this->bounceout->DataType) . ", " . "`bounceout_id`=" . $this->ToSQL($this->bounce_id->GetDBValue(), $this->bounce_id->DataType) . ", " . "`language_id`=" . $this->ToSQL($this->langg_id->GetDBValue(), $this->langg_id->DataType) . ", " . "`timeout`=" . $this->ToSQL($this->timeout->GetDBValue(), $this->timeout->DataType) . ", " . "`set_id`=" . $this->ToSQL($this->set_id->GetDBValue(), $this->set_id->DataType);
     $SQL = CCBuildSQL($SQL, $this->Where, "");
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteUpdate");
     $this->query($SQL);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteUpdate");
     if ($this->Errors->Count() > 0) {
         $this->Errors->AddError($this->Errors->ToString());
     }
 }
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:12,代码来源:Settings.php


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