本文整理汇总了PHP中ew_AddMessage函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_AddMessage函数的具体用法?PHP ew_AddMessage怎么用?PHP ew_AddMessage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ew_AddMessage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!ew_CheckEuroDate($this->fecha_ini->FormValue)) {
ew_AddMessage($gsFormError, $this->fecha_ini->FldErrMsg());
}
if (!$this->id_cliente->FldIsDetailKey && !is_null($this->id_cliente->FormValue) && $this->id_cliente->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->id_cliente->FldCaption(), $this->id_cliente->ReqErrMsg));
}
if (!$this->id_localidad_origen->FldIsDetailKey && !is_null($this->id_localidad_origen->FormValue) && $this->id_localidad_origen->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->id_localidad_origen->FldCaption(), $this->id_localidad_origen->ReqErrMsg));
}
if (!$this->Origen->FldIsDetailKey && !is_null($this->Origen->FormValue) && $this->Origen->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->Origen->FldCaption(), $this->Origen->ReqErrMsg));
}
if (!$this->id_localidad_destino->FldIsDetailKey && !is_null($this->id_localidad_destino->FormValue) && $this->id_localidad_destino->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->id_localidad_destino->FldCaption(), $this->id_localidad_destino->ReqErrMsg));
}
if (!$this->Destino->FldIsDetailKey && !is_null($this->Destino->FormValue) && $this->Destino->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->Destino->FldCaption(), $this->Destino->ReqErrMsg));
}
if (!ew_CheckInteger($this->Km_ini->FormValue)) {
ew_AddMessage($gsFormError, $this->Km_ini->FldErrMsg());
}
if (!$this->id_vehiculo->FldIsDetailKey && !is_null($this->id_vehiculo->FormValue) && $this->id_vehiculo->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->id_vehiculo->FldCaption(), $this->id_vehiculo->ReqErrMsg));
}
if (!$this->id_tipo_carga->FldIsDetailKey && !is_null($this->id_tipo_carga->FormValue) && $this->id_tipo_carga->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->id_tipo_carga->FldCaption(), $this->id_tipo_carga->ReqErrMsg));
}
if (!ew_CheckInteger($this->km_fin->FormValue)) {
ew_AddMessage($gsFormError, $this->km_fin->FldErrMsg());
}
if (!ew_CheckEuroDate($this->fecha_fin->FormValue)) {
ew_AddMessage($gsFormError, $this->fecha_fin->FldErrMsg());
}
if (!ew_CheckNumber($this->adelanto->FormValue)) {
ew_AddMessage($gsFormError, $this->adelanto->FldErrMsg());
}
if (!ew_CheckInteger($this->kg_carga->FormValue)) {
ew_AddMessage($gsFormError, $this->kg_carga->FldErrMsg());
}
if (!$this->tarifa->FldIsDetailKey && !is_null($this->tarifa->FormValue) && $this->tarifa->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->tarifa->FldCaption(), $this->tarifa->ReqErrMsg));
}
if (!ew_CheckNumber($this->tarifa->FormValue)) {
ew_AddMessage($gsFormError, $this->tarifa->FldErrMsg());
}
if (!$this->porcentaje->FldIsDetailKey && !is_null($this->porcentaje->FormValue) && $this->porcentaje->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->porcentaje->FldCaption(), $this->porcentaje->ReqErrMsg));
}
if (!ew_CheckNumber($this->porcentaje->FormValue)) {
ew_AddMessage($gsFormError, $this->porcentaje->FldErrMsg());
}
// Validate detail grid
$DetailTblVar = explode(",", $this->getCurrentDetailTable());
if (in_array("gastos", $DetailTblVar) && $GLOBALS["gastos"]->DetailEdit) {
if (!isset($GLOBALS["gastos_grid"])) {
$GLOBALS["gastos_grid"] = new cgastos_grid();
}
// get detail page object
$GLOBALS["gastos_grid"]->ValidateGridForm();
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
示例2: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->idservicio_medico->FldIsDetailKey && !is_null($this->idservicio_medico->FormValue) && $this->idservicio_medico->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->idservicio_medico->FldCaption(), $this->idservicio_medico->ReqErrMsg));
}
if (!$this->costo->FldIsDetailKey && !is_null($this->costo->FormValue) && $this->costo->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->costo->FldCaption(), $this->costo->ReqErrMsg));
}
if (!ew_CheckNumber($this->costo->FormValue)) {
ew_AddMessage($gsFormError, $this->costo->FldErrMsg());
}
// Validate detail grid
$DetailTblVar = explode(",", $this->getCurrentDetailTable());
if (in_array("doctor_servicio_medico_prestado", $DetailTblVar) && $GLOBALS["doctor_servicio_medico_prestado"]->DetailAdd) {
if (!isset($GLOBALS["doctor_servicio_medico_prestado_grid"])) {
$GLOBALS["doctor_servicio_medico_prestado_grid"] = new cdoctor_servicio_medico_prestado_grid();
}
// get detail page object
$GLOBALS["doctor_servicio_medico_prestado_grid"]->ValidateGridForm();
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
示例3: setWarningMessage
function setWarningMessage($v)
{
ew_AddMessage($_SESSION[EW_SESSION_WARNING_MESSAGE], $v);
}
示例4: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!ew_CheckInteger($this->active->FormValue)) {
ew_AddMessage($gsFormError, $this->active->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
示例5: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
$lUpdateCnt = 0;
if ($this->M_url->MultiUpdate == "1") {
$lUpdateCnt++;
}
if ($lUpdateCnt == 0) {
$gsFormError = $Language->Phrase("NoFieldSelected");
return FALSE;
}
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if ($this->M_url->MultiUpdate != "" && $this->M_url->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->M_url->FldCaption(), $this->M_url->ReqErrMsg));
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
示例6: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->id_tramite->FldIsDetailKey && !is_null($this->id_tramite->FormValue) && $this->id_tramite->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->id_tramite->FldCaption(), $this->id_tramite->ReqErrMsg));
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
示例7: ValidateForm
function ValidateForm($opwd, $npwd, $cpwd)
{
global $Language, $gsFormError;
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return TRUE;
}
// Initialize form error message
$gsFormError = "";
if ($opwd == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterOldPassword"));
}
if ($npwd == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterNewPassword"));
}
if ($npwd != $cpwd) {
ew_AddMessage($gsFormError, $Language->Phrase("MismatchPassword"));
}
// Return validate result
$valid = $gsFormError == "";
// Call Form CustomValidate event
$sFormCustomError = "";
$valid = $valid && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $valid;
}
示例8: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if ($this->PATH->Upload->FileName == "" && !$this->PATH->Upload->KeepFile) {
ew_AddMessage($gsFormError, str_replace("%s", $this->PATH->FldCaption(), $this->PATH->ReqErrMsg));
}
if (!$this->PROCESS->FldIsDetailKey && !is_null($this->PROCESS->FormValue) && $this->PROCESS->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->PROCESS->FldCaption(), $this->PROCESS->ReqErrMsg));
}
if (!ew_CheckInteger($this->PROCESS->FormValue)) {
ew_AddMessage($gsFormError, $this->PROCESS->FldErrMsg());
}
if (!$this->BANK_ACCOUNT_ID->FldIsDetailKey && !is_null($this->BANK_ACCOUNT_ID->FormValue) && $this->BANK_ACCOUNT_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->BANK_ACCOUNT_ID->FldCaption(), $this->BANK_ACCOUNT_ID->ReqErrMsg));
}
if (!ew_CheckInteger($this->BANK_ACCOUNT_ID->FormValue)) {
ew_AddMessage($gsFormError, $this->BANK_ACCOUNT_ID->FldErrMsg());
}
if (!$this->UPLOAD_FILE_STATUS_ID->FldIsDetailKey && !is_null($this->UPLOAD_FILE_STATUS_ID->FormValue) && $this->UPLOAD_FILE_STATUS_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->UPLOAD_FILE_STATUS_ID->FldCaption(), $this->UPLOAD_FILE_STATUS_ID->ReqErrMsg));
}
if (!ew_CheckInteger($this->UPLOAD_FILE_STATUS_ID->FormValue)) {
ew_AddMessage($gsFormError, $this->UPLOAD_FILE_STATUS_ID->FldErrMsg());
}
if (!$this->DATETIME->FldIsDetailKey && !is_null($this->DATETIME->FormValue) && $this->DATETIME->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->DATETIME->FldCaption(), $this->DATETIME->ReqErrMsg));
}
if (!ew_CheckEuroDate($this->DATETIME->FormValue)) {
ew_AddMessage($gsFormError, $this->DATETIME->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
示例9: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError, $t_promotions_admin;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!is_null($t_promotions_admin->titre->FormValue) && $t_promotions_admin->titre->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $t_promotions_admin->titre->FldCaption());
}
if (!ew_CheckInteger($t_promotions_admin->id_cat_vin->FormValue)) {
ew_AddMessage($gsFormError, $t_promotions_admin->id_cat_vin->FldErrMsg());
}
if (!ew_CheckInteger($t_promotions_admin->id_region_du_monde->FormValue)) {
ew_AddMessage($gsFormError, $t_promotions_admin->id_region_du_monde->FldErrMsg());
}
if (!ew_CheckInteger($t_promotions_admin->id_pays->FormValue)) {
ew_AddMessage($gsFormError, $t_promotions_admin->id_pays->FldErrMsg());
}
if (!ew_CheckInteger($t_promotions_admin->id_region->FormValue)) {
ew_AddMessage($gsFormError, $t_promotions_admin->id_region->FldErrMsg());
}
if (!ew_CheckInteger($t_promotions_admin->id_sous_region->FormValue)) {
ew_AddMessage($gsFormError, $t_promotions_admin->id_sous_region->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
示例10: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->Code->FldIsDetailKey && !is_null($this->Code->FormValue) && $this->Code->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->Code->FldCaption());
}
if (!$this->Name->FldIsDetailKey && !is_null($this->Name->FormValue) && $this->Name->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->Name->FldCaption());
}
if (!$this->FullName->FldIsDetailKey && !is_null($this->FullName->FormValue) && $this->FullName->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->FullName->FldCaption());
}
if (!$this->ISO3->FldIsDetailKey && !is_null($this->ISO3->FormValue) && $this->ISO3->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->ISO3->FldCaption());
}
if (!$this->Number->FldIsDetailKey && !is_null($this->Number->FormValue) && $this->Number->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->Number->FldCaption());
}
if (!ew_CheckInteger($this->Number->FormValue)) {
ew_AddMessage($gsFormError, $this->Number->FldErrMsg());
}
if (!$this->ContinentCode->FldIsDetailKey && !is_null($this->ContinentCode->FormValue) && $this->ContinentCode->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->ContinentCode->FldCaption());
}
if (!$this->DisplayOrder->FldIsDetailKey && !is_null($this->DisplayOrder->FormValue) && $this->DisplayOrder->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->DisplayOrder->FldCaption());
}
if (!ew_CheckInteger($this->DisplayOrder->FormValue)) {
ew_AddMessage($gsFormError, $this->DisplayOrder->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
示例11: ew_ErrorFn
function ew_ErrorFn($DbType, $ErrorType, $ErrorNo, $ErrorMsg, $Param1, $Param2, $Object)
{
if ($ErrorType == 'CONNECT') {
$msg = "Failed to connect to {$Param2} at {$Param1}. Error: " . $ErrorMsg;
} elseif ($ErrorType == 'EXECUTE') {
if (EW_DEBUG_ENABLED) {
$msg = "Failed to execute SQL: {$Param1}. Error: " . $ErrorMsg;
} else {
$msg = "Failed to execute SQL. Error: " . $ErrorMsg;
}
}
ew_AddMessage($_SESSION[EW_SESSION_FAILURE_MESSAGE], $msg);
}
示例12: ValidateForm
function ValidateForm($usr, $pwd)
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return TRUE;
}
if (trim($usr) == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterUid"));
}
if (trim($pwd) == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterPwd"));
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form Custom Validate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
示例13: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!ew_CheckRange($this->mes->FormValue, 1, 12)) {
ew_AddMessage($gsFormError, $this->mes->FldErrMsg());
}
if (!ew_CheckRange($this->anio->FormValue, 2012, 2100)) {
ew_AddMessage($gsFormError, $this->anio->FldErrMsg());
}
if (!ew_CheckEuroDate($this->fecha->FormValue)) {
ew_AddMessage($gsFormError, $this->fecha->FldErrMsg());
}
if (!ew_CheckNumber($this->monto->FormValue)) {
ew_AddMessage($gsFormError, $this->monto->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
示例14: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->category_id->FldIsDetailKey && !is_null($this->category_id->FormValue) && $this->category_id->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->category_id->FldCaption(), $this->category_id->ReqErrMsg));
}
if (!$this->scat_name->FldIsDetailKey && !is_null($this->scat_name->FormValue) && $this->scat_name->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->scat_name->FldCaption(), $this->scat_name->ReqErrMsg));
}
if (!$this->scat_description->FldIsDetailKey && !is_null($this->scat_description->FormValue) && $this->scat_description->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->scat_description->FldCaption(), $this->scat_description->ReqErrMsg));
}
if ($this->scat_picture->Upload->FileName == "" && !$this->scat_picture->Upload->KeepFile) {
ew_AddMessage($gsFormError, str_replace("%s", $this->scat_picture->FldCaption(), $this->scat_picture->ReqErrMsg));
}
// Validate detail grid
$DetailTblVar = explode(",", $this->getCurrentDetailTable());
if (in_array("products", $DetailTblVar) && $GLOBALS["products"]->DetailAdd) {
if (!isset($GLOBALS["products_grid"])) {
$GLOBALS["products_grid"] = new cproducts_grid();
}
// get detail page object
$GLOBALS["products_grid"]->ValidateGridForm();
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
示例15: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->CODE->FldIsDetailKey && !is_null($this->CODE->FormValue) && $this->CODE->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->CODE->FldCaption(), $this->CODE->ReqErrMsg));
}
if (!$this->AIRPLANE_ID->FldIsDetailKey && !is_null($this->AIRPLANE_ID->FormValue) && $this->AIRPLANE_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->AIRPLANE_ID->FldCaption(), $this->AIRPLANE_ID->ReqErrMsg));
}
if (!ew_CheckInteger($this->AIRPLANE_ID->FormValue)) {
ew_AddMessage($gsFormError, $this->AIRPLANE_ID->FldErrMsg());
}
if (!$this->AIR_PORT_ID_DEPARTURE->FldIsDetailKey && !is_null($this->AIR_PORT_ID_DEPARTURE->FormValue) && $this->AIR_PORT_ID_DEPARTURE->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->AIR_PORT_ID_DEPARTURE->FldCaption(), $this->AIR_PORT_ID_DEPARTURE->ReqErrMsg));
}
if (!ew_CheckInteger($this->AIR_PORT_ID_DEPARTURE->FormValue)) {
ew_AddMessage($gsFormError, $this->AIR_PORT_ID_DEPARTURE->FldErrMsg());
}
if (!$this->AIR_PORT_ID_ARRIVAL->FldIsDetailKey && !is_null($this->AIR_PORT_ID_ARRIVAL->FormValue) && $this->AIR_PORT_ID_ARRIVAL->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->AIR_PORT_ID_ARRIVAL->FldCaption(), $this->AIR_PORT_ID_ARRIVAL->ReqErrMsg));
}
if (!ew_CheckInteger($this->AIR_PORT_ID_ARRIVAL->FormValue)) {
ew_AddMessage($gsFormError, $this->AIR_PORT_ID_ARRIVAL->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}