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


PHP ew_CheckEuroDate函数代码示例

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


在下文中一共展示了ew_CheckEuroDate函数的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_nacimiento->FormValue)) {
         ew_AddMessage($gsFormError, $this->fecha_nacimiento->FldErrMsg());
     }
     if (!ew_CheckEmail($this->_email->FormValue)) {
         ew_AddMessage($gsFormError, $this->_email->FldErrMsg());
     }
     if (!ew_CheckEuroDate($this->fecha_inicio->FormValue)) {
         ew_AddMessage($gsFormError, $this->fecha_inicio->FldErrMsg());
     }
     if (!ew_CheckInteger($this->cetegoria->FormValue)) {
         ew_AddMessage($gsFormError, $this->cetegoria->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;
 }
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:choferesadd.php

示例2: 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;
 }
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:46,代码来源:upload_fileadd.php

示例3: ValidateSearch

 function ValidateSearch()
 {
     global $gsSearchError;
     // Initialize
     $gsSearchError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return TRUE;
     }
     if (!ew_CheckInteger($this->id->AdvancedSearch->SearchValue)) {
         ew_AddMessage($gsSearchError, $this->id->FldErrMsg());
     }
     if (!ew_CheckNumber($this->importe->AdvancedSearch->SearchValue)) {
         ew_AddMessage($gsSearchError, $this->importe->FldErrMsg());
     }
     if (!ew_CheckEuroDate($this->fecha_creacion->AdvancedSearch->SearchValue)) {
         ew_AddMessage($gsSearchError, $this->fecha_creacion->FldErrMsg());
     }
     // Return validate result
     $ValidateSearch = $gsSearchError == "";
     // Call Form_CustomValidate event
     $sFormCustomError = "";
     $ValidateSearch = $ValidateSearch && $this->Form_CustomValidate($sFormCustomError);
     if ($sFormCustomError != "") {
         ew_AddMessage($gsSearchError, $sFormCustomError);
     }
     return $ValidateSearch;
 }
开发者ID:scintes,项目名称:sistemas,代码行数:28,代码来源:cciag_montossrch.php

示例4: 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->FormValue)) {
         ew_AddMessage($gsFormError, $this->fecha->FldErrMsg());
     }
     if (!$this->idhabitacion->FldIsDetailKey && !is_null($this->idhabitacion->FormValue) && $this->idhabitacion->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->idhabitacion->FldCaption(), $this->idhabitacion->ReqErrMsg));
     }
     if (!$this->idpaciente->FldIsDetailKey && !is_null($this->idpaciente->FormValue) && $this->idpaciente->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->idpaciente->FldCaption(), $this->idpaciente->ReqErrMsg));
     }
     if ($this->es_operacion->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->es_operacion->FldCaption(), $this->es_operacion->ReqErrMsg));
     }
     // Validate detail grid
     $DetailTblVar = explode(",", $this->getCurrentDetailTable());
     if (in_array("internado_diario", $DetailTblVar) && $GLOBALS["internado_diario"]->DetailAdd) {
         if (!isset($GLOBALS["internado_diario_grid"])) {
             $GLOBALS["internado_diario_grid"] = new cinternado_diario_grid();
         }
         // get detail page object
         $GLOBALS["internado_diario_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;
 }
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:40,代码来源:internadoadd.php

示例5: ew_UnFormatDateTime

function ew_UnFormatDateTime($dt, $namedformat)
{
    if (preg_match('/^([0-9]{4})-([0][1-9]|[1][0-2])-([0][1-9]|[1|2][0-9]|[3][0|1])( (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]))?$/', $dt)) {
        return $dt;
    }
    $dt = trim($dt);
    while (strpos($dt, "  ") !== FALSE) {
        $dt = str_replace("  ", " ", $dt);
    }
    $arDateTime = explode(" ", $dt);
    if (count($arDateTime) == 0) {
        return $dt;
    }
    if ($namedformat == 0 || $namedformat == 1 || $namedformat == 2 || $namedformat == 8) {
        $arDefFmt = explode(EW_DATE_SEPARATOR, EW_DEFAULT_DATE_FORMAT);
        if ($arDefFmt[0] == "yyyy") {
            $namedformat = 9;
        } elseif ($arDefFmt[0] == "mm") {
            $namedformat = 10;
        } elseif ($arDefFmt[0] == "dd") {
            $namedformat = 11;
        }
    }
    $arDatePt = explode(EW_DATE_SEPARATOR, $arDateTime[0]);
    if (count($arDatePt) == 3) {
        switch ($namedformat) {
            case 5:
            case 9:
                //yyyymmdd
                if (ew_CheckDate($arDateTime[0])) {
                    list($year, $month, $day) = $arDatePt;
                    break;
                } else {
                    return $dt;
                }
            case 6:
            case 10:
                //mmddyyyy
                if (ew_CheckUSDate($arDateTime[0])) {
                    list($month, $day, $year) = $arDatePt;
                    break;
                } else {
                    return $dt;
                }
            case 7:
            case 11:
                //ddmmyyyy
                if (ew_CheckEuroDate($arDateTime[0])) {
                    list($day, $month, $year) = $arDatePt;
                    break;
                } else {
                    return $dt;
                }
            case 12:
            case 15:
                //yymmdd
                if (ew_CheckShortDate($arDateTime[0])) {
                    list($year, $month, $day) = $arDatePt;
                    $year = ew_UnformatYear($year);
                    break;
                } else {
                    return $dt;
                }
            case 13:
            case 16:
                //mmddyy
                if (ew_CheckShortUSDate($arDateTime[0])) {
                    list($month, $day, $year) = $arDatePt;
                    $year = ew_UnformatYear($year);
                    break;
                } else {
                    return $dt;
                }
            case 14:
            case 17:
                //ddmmyy
                if (ew_CheckShortEuroDate($arDateTime[0])) {
                    list($day, $month, $year) = $arDatePt;
                    $year = ew_UnformatYear($year);
                    break;
                } else {
                    return $dt;
                }
            default:
                return $dt;
        }
        return $year . "-" . str_pad($month, 2, "0", STR_PAD_LEFT) . "-" . str_pad($day, 2, "0", STR_PAD_LEFT) . (count($arDateTime) > 1 ? " " . $arDateTime[1] : "");
    } else {
        return $dt;
    }
}
开发者ID:Razinsky,项目名称:echaude-com,代码行数:91,代码来源:phpfn8.php

示例6: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError;
     // Initialize form error message
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if (!ew_CheckNumber($this->importe->FormValue)) {
         ew_AddMessage($gsFormError, $this->importe->FldErrMsg());
     }
     if (!ew_CheckEuroDate($this->fecha_creacion->FormValue)) {
         ew_AddMessage($gsFormError, $this->fecha_creacion->FldErrMsg());
     }
     // Validate detail grid
     $DetailTblVar = explode(",", $this->getCurrentDetailTable());
     if (in_array("socios_cuotas", $DetailTblVar) && $GLOBALS["socios_cuotas"]->DetailAdd) {
         if (!isset($GLOBALS["socios_cuotas_grid"])) {
             $GLOBALS["socios_cuotas_grid"] = new csocios_cuotas_grid();
         }
         // get detail page object
         $GLOBALS["socios_cuotas_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;
 }
开发者ID:scintes,项目名称:sistemas,代码行数:34,代码来源:cciag_montosadd.php

示例7: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError;
     // Initialize form error message
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if (!$this->idempleado->FldIsDetailKey && !is_null($this->idempleado->FormValue) && $this->idempleado->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->idempleado->FldCaption(), $this->idempleado->ReqErrMsg));
     }
     if (!$this->idmedicina->FldIsDetailKey && !is_null($this->idmedicina->FormValue) && $this->idmedicina->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->idmedicina->FldCaption(), $this->idmedicina->ReqErrMsg));
     }
     if (!ew_CheckEuroDate($this->fecha->FormValue)) {
         ew_AddMessage($gsFormError, $this->fecha->FldErrMsg());
     }
     if (!$this->cantidad->FldIsDetailKey && !is_null($this->cantidad->FormValue) && $this->cantidad->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->cantidad->FldCaption(), $this->cantidad->ReqErrMsg));
     }
     if (!ew_CheckInteger($this->cantidad->FormValue)) {
         ew_AddMessage($gsFormError, $this->cantidad->FldErrMsg());
     }
     if (!$this->precio_unitario->FldIsDetailKey && !is_null($this->precio_unitario->FormValue) && $this->precio_unitario->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->precio_unitario->FldCaption(), $this->precio_unitario->ReqErrMsg));
     }
     if (!ew_CheckNumber($this->precio_unitario->FormValue)) {
         ew_AddMessage($gsFormError, $this->precio_unitario->FldErrMsg());
     }
     if (!$this->idturno->FldIsDetailKey && !is_null($this->idturno->FormValue) && $this->idturno->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->idturno->FldCaption(), $this->idturno->ReqErrMsg));
     }
     if (!$this->idcuenta->FldIsDetailKey && !is_null($this->idcuenta->FormValue) && $this->idcuenta->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->idcuenta->FldCaption(), $this->idcuenta->ReqErrMsg));
     }
     if (!ew_CheckInteger($this->idcuenta->FormValue)) {
         ew_AddMessage($gsFormError, $this->idcuenta->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;
 }
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:49,代码来源:recetaadd.php

示例8: 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 (!ew_CheckNumber($this->CODE->FormValue)) {
         ew_AddMessage($gsFormError, $this->CODE->FldErrMsg());
     }
     if (!$this->DESCRIPTION->FldIsDetailKey && !is_null($this->DESCRIPTION->FormValue) && $this->DESCRIPTION->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->DESCRIPTION->FldCaption(), $this->DESCRIPTION->ReqErrMsg));
     }
     if (!$this->DATE->FldIsDetailKey && !is_null($this->DATE->FormValue) && $this->DATE->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->DATE->FldCaption(), $this->DATE->ReqErrMsg));
     }
     if (!ew_CheckEuroDate($this->DATE->FormValue)) {
         ew_AddMessage($gsFormError, $this->DATE->FldErrMsg());
     }
     if (!$this->AMOUNT->FldIsDetailKey && !is_null($this->AMOUNT->FormValue) && $this->AMOUNT->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->AMOUNT->FldCaption(), $this->AMOUNT->ReqErrMsg));
     }
     if (!ew_CheckNumber($this->AMOUNT->FormValue)) {
         ew_AddMessage($gsFormError, $this->AMOUNT->FldErrMsg());
     }
     if (!$this->UPLOAD_FILE_ID->FldIsDetailKey && !is_null($this->UPLOAD_FILE_ID->FormValue) && $this->UPLOAD_FILE_ID->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->UPLOAD_FILE_ID->FldCaption(), $this->UPLOAD_FILE_ID->ReqErrMsg));
     }
     if (!ew_CheckInteger($this->UPLOAD_FILE_ID->FormValue)) {
         ew_AddMessage($gsFormError, $this->UPLOAD_FILE_ID->FldErrMsg());
     }
     if (!$this->UPLOAD_FILE_DETAIL_STATUS_ID->FldIsDetailKey && !is_null($this->UPLOAD_FILE_DETAIL_STATUS_ID->FormValue) && $this->UPLOAD_FILE_DETAIL_STATUS_ID->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->UPLOAD_FILE_DETAIL_STATUS_ID->FldCaption(), $this->UPLOAD_FILE_DETAIL_STATUS_ID->ReqErrMsg));
     }
     if (!ew_CheckInteger($this->UPLOAD_FILE_DETAIL_STATUS_ID->FormValue)) {
         ew_AddMessage($gsFormError, $this->UPLOAD_FILE_DETAIL_STATUS_ID->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;
 }
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:52,代码来源:upload_file_detailadd.php

示例9: ew_UnFormatDateTime

function ew_UnFormatDateTime($dt, $namedformat)
{
    $dt = trim($dt);
    while (strpos($dt, "  ") !== FALSE) {
        $dt = str_replace("  ", " ", $dt);
    }
    $arDateTime = explode(" ", $dt);
    if (count($arDateTime) == 0) {
        return $dt;
    }
    if ($namedformat == 0 || $namedformat == 1 || $namedformat == 2 || $namedformat == 8) {
        $arDefFmt = explode(EW_DATE_SEPARATOR, EW_DEFAULT_DATE_FORMAT);
        if ($arDefFmt[0] == "yyyy") {
            $namedformat = 9;
        } elseif ($arDefFmt[0] == "mm") {
            $namedformat = 10;
        } elseif ($arDefFmt[0] == "dd") {
            $namedformat = 11;
        }
    }
    $arDatePt = explode(EW_DATE_SEPARATOR, $arDateTime[0]);
    if (count($arDatePt) == 3) {
        switch ($namedformat) {
            case 5:
            case 9:
                //yyyymmdd
                if (ew_CheckDate($arDateTime[0])) {
                    list($year, $month, $day) = $arDatePt;
                    break;
                } else {
                    return $dt;
                }
            case 6:
            case 10:
                //mmddyyyy
                if (ew_CheckUSDate($arDateTime[0])) {
                    list($month, $day, $year) = $arDatePt;
                    break;
                } else {
                    return $dt;
                }
            case 7:
            case 11:
                //ddmmyyyy
                if (ew_CheckEuroDate($arDateTime[0])) {
                    list($day, $month, $year) = $arDatePt;
                    break;
                } else {
                    return $dt;
                }
            default:
                return $dt;
        }
        return $year . "-" . str_pad($month, 2, "0", STR_PAD_LEFT) . "-" . str_pad($day, 2, "0", STR_PAD_LEFT) . (count($arDateTime) > 1 ? " " . $arDateTime[1] : "");
    } else {
        return $dt;
    }
}
开发者ID:priscillatellezcl,项目名称:inet-computing,代码行数:58,代码来源:phpfn7.php

示例10: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError;
     // Initialize form error message
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if (!$this->id->FldIsDetailKey && !is_null($this->id->FormValue) && $this->id->FormValue == "") {
         ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->id->FldCaption());
     }
     if (!ew_CheckInteger($this->id->FormValue)) {
         ew_AddMessage($gsFormError, $this->id->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;
 }
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:deudasadd.php

示例11: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError;
     // Initialize form error message
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if (!$this->PASSANGER_ID->FldIsDetailKey && !is_null($this->PASSANGER_ID->FormValue) && $this->PASSANGER_ID->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->PASSANGER_ID->FldCaption(), $this->PASSANGER_ID->ReqErrMsg));
     }
     if (!ew_CheckInteger($this->PASSANGER_ID->FormValue)) {
         ew_AddMessage($gsFormError, $this->PASSANGER_ID->FldErrMsg());
     }
     if (!$this->FLIGHT_ID->FldIsDetailKey && !is_null($this->FLIGHT_ID->FormValue) && $this->FLIGHT_ID->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->FLIGHT_ID->FldCaption(), $this->FLIGHT_ID->ReqErrMsg));
     }
     if (!ew_CheckInteger($this->FLIGHT_ID->FormValue)) {
         ew_AddMessage($gsFormError, $this->FLIGHT_ID->FldErrMsg());
     }
     if (!$this->GATE->FldIsDetailKey && !is_null($this->GATE->FormValue) && $this->GATE->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->GATE->FldCaption(), $this->GATE->ReqErrMsg));
     }
     if (!ew_CheckNumber($this->GATE->FormValue)) {
         ew_AddMessage($gsFormError, $this->GATE->FldErrMsg());
     }
     if (!$this->SEAT->FldIsDetailKey && !is_null($this->SEAT->FormValue) && $this->SEAT->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->SEAT->FldCaption(), $this->SEAT->ReqErrMsg));
     }
     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());
     }
     if (!$this->RESERVATION_ID->FldIsDetailKey && !is_null($this->RESERVATION_ID->FormValue) && $this->RESERVATION_ID->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->RESERVATION_ID->FldCaption(), $this->RESERVATION_ID->ReqErrMsg));
     }
     if (!ew_CheckInteger($this->RESERVATION_ID->FormValue)) {
         ew_AddMessage($gsFormError, $this->RESERVATION_ID->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;
 }
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:52,代码来源:boardingadd.php

示例12: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError;
     // Initialize form error message
     $gsFormError = "";
     $lUpdateCnt = 0;
     if ($this->detalle->MultiUpdate == "1") {
         $lUpdateCnt++;
     }
     if ($this->fecha->MultiUpdate == "1") {
         $lUpdateCnt++;
     }
     if ($this->id_tipo_gasto->MultiUpdate == "1") {
         $lUpdateCnt++;
     }
     if ($this->id_hoja_mantenimeinto->MultiUpdate == "1") {
         $lUpdateCnt++;
     }
     if ($lUpdateCnt == 0) {
         $gsFormError = $Language->Phrase("NoFieldSelected");
         return FALSE;
     }
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($this->fecha->MultiUpdate != "") {
         if (!ew_CheckEuroDate($this->fecha->FormValue)) {
             ew_AddMessage($gsFormError, $this->fecha->FldErrMsg());
         }
     }
     if ($this->id_hoja_mantenimeinto->MultiUpdate != "") {
         if (!ew_CheckInteger($this->id_hoja_mantenimeinto->FormValue)) {
             ew_AddMessage($gsFormError, $this->id_hoja_mantenimeinto->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;
 }
开发者ID:scintes,项目名称:sistemas,代码行数:46,代码来源:gastos_mantenimientosupdate.php

示例13: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $Customers;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if (!ew_CheckEmail($Customers->zEmail->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect email - Email";
     }
     if ($Customers->Password->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Password";
     }
     if ($Customers->FirstName->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - First Name";
     }
     if ($Customers->LastName->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Last Name";
     }
     if (!ew_CheckPhone($Customers->ContactPhone->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect phone number - Contact Phone";
     }
     if (!ew_CheckZip($Customers->DeliveryZip->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect ZIP code - Delivery Zip";
     }
     if (!ew_CheckZip($Customers->BillingZip->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect ZIP code - Billing Zip";
     }
     if (!ew_CheckPhone($Customers->BillingPhone->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect phone number - Billing Phone";
     }
     if (!ew_CheckInteger($Customers->BillingCardNumber->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Billing Card Number";
     }
     if (!ew_CheckInteger($Customers->CIMCustID->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Authorize.net Customer Profile ID";
     }
     if (!ew_CheckInteger($Customers->CIMPymtProfID->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Authorize.net Payment Profile ID";
     }
     if (!ew_CheckUSDate($Customers->First_Order_Date->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - First Order Date";
     }
     if (!ew_CheckEuroDate($Customers->Last_Order_Date->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = dd/mm/yyyy - Last Order Date";
     }
     if ($Customers->Total_Orders->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Total Orders";
     }
     if (!ew_CheckInteger($Customers->Total_Orders->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Total Orders";
     }
     if ($Customers->WeeklyMeals->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Subscription Weekly Meals";
     }
     if (!ew_CheckRange($Customers->WeeklyMeals->FormValue, 0, 255)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Number must be between 0 and 255 - Subscription Weekly Meals";
//.........这里部分代码省略.........
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:101,代码来源:Customersedit.php

示例14: ValidateSearch

 function ValidateSearch()
 {
     global $gsSearchError;
     // Initialize
     $gsSearchError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return TRUE;
     }
     if (!ew_CheckRange($this->mes->AdvancedSearch->SearchValue, 1, 12)) {
         ew_AddMessage($gsSearchError, $this->mes->FldErrMsg());
     }
     if (!ew_CheckRange($this->anio->AdvancedSearch->SearchValue, 2012, 2100)) {
         ew_AddMessage($gsSearchError, $this->anio->FldErrMsg());
     }
     if (!ew_CheckEuroDate($this->fecha->AdvancedSearch->SearchValue)) {
         ew_AddMessage($gsSearchError, $this->fecha->FldErrMsg());
     }
     if (!ew_CheckNumber($this->monto->AdvancedSearch->SearchValue)) {
         ew_AddMessage($gsSearchError, $this->monto->FldErrMsg());
     }
     // Return validate result
     $ValidateSearch = $gsSearchError == "";
     // Call Form_CustomValidate event
     $sFormCustomError = "";
     $ValidateSearch = $ValidateSearch && $this->Form_CustomValidate($sFormCustomError);
     if ($sFormCustomError != "") {
         ew_AddMessage($gsSearchError, $sFormCustomError);
     }
     return $ValidateSearch;
 }
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:cciag_deudassrch.php

示例15: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError;
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if (!ew_CheckEuroDate($this->fecha->FormValue)) {
         ew_AddMessage($gsFormError, $this->fecha->FldErrMsg());
     }
     if (!ew_CheckNumber($this->iva->FormValue)) {
         ew_AddMessage($gsFormError, $this->iva->FldErrMsg());
     }
     if (!ew_CheckNumber($this->Importe->FormValue)) {
         ew_AddMessage($gsFormError, $this->Importe->FldErrMsg());
     }
     if (!ew_CheckInteger($this->id_hoja_mantenimiento->FormValue)) {
         ew_AddMessage($gsFormError, $this->id_hoja_mantenimiento->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;
 }
开发者ID:scintes,项目名称:sistemas,代码行数:29,代码来源:v_gastos_mgridcls.php


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