• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ew_CheckNumber函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: ew_CheckRange

function ew_CheckRange($value, $min, $max)
{
    if (strval($value) == "") {
        return TRUE;
    }
    if (is_int($min) || is_float($min) || is_int($max) || is_float($max)) {
        // Number
        if (ew_CheckNumber($value)) {
            $value = floatval(ew_StrToFloat($value));
        }
    }
    if (!is_null($min) && $value < $min || !is_null($max) && $value > $max) {
        return FALSE;
    }
    return TRUE;
}
开发者ID:NaurozAhmad,项目名称:Senho,代码行数:16,代码来源:phpfn12.php


示例2: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError;
     // Initialize form error message
     $gsFormError = "";
     if (!ew_CheckFileType($this->teacher_avatar->Upload->FileName)) {
         ew_AddMessage($gsFormError, $Language->Phrase("WrongFileType"));
     }
     if ($this->teacher_avatar->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0 && $this->teacher_avatar->Upload->FileSize > EW_MAX_FILE_SIZE) {
         ew_AddMessage($gsFormError, str_replace("%s", EW_MAX_FILE_SIZE, $Language->Phrase("MaxFileSize")));
     }
     if (in_array($this->teacher_avatar->Upload->Error, array(1, 2, 3, 6, 7, 8))) {
         ew_AddMessage($gsFormError, $Language->Phrase("PhpUploadErr" . $this->teacher_avatar->Upload->Error));
     }
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if (!ew_CheckInteger($this->teacher_active->FormValue)) {
         ew_AddMessage($gsFormError, $this->teacher_active->FldErrMsg());
     }
     if (!ew_CheckInteger($this->teacher_sex->FormValue)) {
         ew_AddMessage($gsFormError, $this->teacher_sex->FldErrMsg());
     }
     if (!ew_CheckNumber($this->teacher_rate->FormValue)) {
         ew_AddMessage($gsFormError, $this->teacher_rate->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:huynt57,项目名称:bluebee-uet.com,代码行数:37,代码来源:tbl_teacheredit.php


示例3: 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;
 }
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:cciag_deudaslist.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_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


示例5: 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;
 }
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:37,代码来源:servicio_medico_prestadoadd.php


示例6: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $Orders;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($Orders->CustomerID->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Customer";
     }
     if (!ew_CheckInteger($Orders->TransactionNumber->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Transaction Number";
     }
     if ($Orders->DateOrdered->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Date Ordered";
     }
     if (!ew_CheckUSDate($Orders->DateOrdered->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - Date Ordered";
     }
     if ($Orders->Total->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Total";
     }
     if (!ew_CheckNumber($Orders->Total->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect floating point number - Total";
     }
     if ($Orders->DeliveryDate->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Delivery Date";
     }
     if (!ew_CheckUSDate($Orders->DeliveryDate->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - Delivery Date";
     }
     if ($Orders->Timestamp->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Timestamp";
     }
     if (!ew_CheckUSDate($Orders->Timestamp->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - Timestamp";
     }
     if (!ew_CheckInteger($Orders->Sequence->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Sequence";
     }
     // Return validate result
     $ValidateForm = $gsFormError == "";
     // Call Form_CustomValidate event
     $sFormCustomError = "";
     $ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
     if ($sFormCustomError != "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= $sFormCustomError;
     }
     return $ValidateForm;
 }
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:76,代码来源:Ordersadd.php


示例7: 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


示例8: 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


示例9: 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->porcentaje_comision->FormValue)) {
         ew_AddMessage($gsFormError, $this->porcentaje_comision->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,代码行数:22,代码来源:tipo_cargasedit.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->idinternado->FldIsDetailKey && !is_null($this->idinternado->FormValue) && $this->idinternado->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->idinternado->FldCaption(), $this->idinternado->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_CheckEuroDate($this->fecha->FormValue)) {
         ew_AddMessage($gsFormError, $this->fecha->FldErrMsg());
     }
     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());
     }
     // 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,代码行数:34,代码来源:internado_diarioedit.php


示例11: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError, $t_produits_stockage;
     // Initialize form error message
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if (!is_null($t_produits_stockage->produit->FormValue) && $t_produits_stockage->produit->FormValue == "") {
         ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $t_produits_stockage->produit->FldCaption());
     }
     if (!ew_CheckInteger($t_produits_stockage->produit->FormValue)) {
         ew_AddMessage($gsFormError, $t_produits_stockage->produit->FldErrMsg());
     }
     if (!is_null($t_produits_stockage->stockage->FormValue) && $t_produits_stockage->stockage->FormValue == "") {
         ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $t_produits_stockage->stockage->FldCaption());
     }
     if (!is_null($t_produits_stockage->quantite->FormValue) && $t_produits_stockage->quantite->FormValue == "") {
         ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $t_produits_stockage->quantite->FldCaption());
     }
     if (!ew_CheckNumber($t_produits_stockage->quantite->FormValue)) {
         ew_AddMessage($gsFormError, $t_produits_stockage->quantite->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:Razinsky,项目名称:echaude-com,代码行数:34,代码来源:t_produits_stockageadd.php


示例12: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $Items;
     // Initialize
     $gsFormError = "";
     if (!ew_CheckFileType($Items->Image->Upload->FileName)) {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "File type is not allowed.";
     }
     if ($Items->Image->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0) {
         if ($Items->Image->Upload->FileSize > EW_MAX_FILE_SIZE) {
             $gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, "Max. file size (%s bytes) exceeded.");
         }
     }
     if (!ew_CheckFileType($Items->PDF->Upload->FileName)) {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "File type is not allowed.";
     }
     if ($Items->PDF->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0) {
         if ($Items->PDF->Upload->FileSize > EW_MAX_FILE_SIZE) {
             $gsFormError .= str_replace("%s", EW_MAX_FILE_SIZE, "Max. file size (%s bytes) exceeded.");
         }
     }
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($Items->MenuID->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Menu";
     }
     if ($Items->ItemName->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Item Name";
     }
     if ($Items->Description->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Description";
     }
     if (!ew_CheckNumber($Items->Price->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect floating point number - Price";
     }
     if ($Items->Vegetarian->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Vegetarian";
     }
     if (!ew_CheckNumber($Items->Vegetarian_Price->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect floating point number - Vegetarian Price";
     }
     if ($Items->Sequence->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Sequence";
     }
     if (!ew_CheckRange($Items->Sequence->FormValue, 0, 65535)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Number must be between 0 and 65535 - Sequence";
     }
     if ($Items->Active->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Active";
     }
     // Return validate result
     $ValidateForm = $gsFormError == "";
     // Call Form_CustomValidate event
     $sFormCustomError = "";
     $ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
     if ($sFormCustomError != "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= $sFormCustomError;
     }
     return $ValidateForm;
 }
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:80,代码来源:Itemsedit.php


示例13: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $OrderDetails;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if (!ew_CheckInteger($OrderDetails->OrderID->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Order ID";
     }
     if ($OrderDetails->CustomerID->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Customer";
     }
     if ($OrderDetails->ItemID->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Item Name";
     }
     if ($OrderDetails->Count->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Regular Servings";
     }
     if (!ew_CheckRange($OrderDetails->Count->FormValue, 0, 65535)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Number must be between 0 and 65535 - Regular Servings";
     }
     if ($OrderDetails->VegCount->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Vegetarian Servings";
     }
     if (!ew_CheckInteger($OrderDetails->VegCount->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Vegetarian Servings";
     }
     if ($OrderDetails->Amount->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Amount";
     }
     if (!ew_CheckNumber($OrderDetails->Amount->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect floating point number - Amount";
     }
     if ($OrderDetails->Chefs_Tasting->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Chefs Tasting";
     }
     // Return validate result
     $ValidateForm = $gsFormError == "";
     // Call Form_CustomValidate event
     $sFormCustomError = "";
     $ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
     if ($sFormCustomError != "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= $sFormCustomError;
     }
     return $ValidateForm;
 }
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:68,代码来源:OrderDetailsadd.php


示例14: ValidateSearch

 function ValidateSearch()
 {
     global $gsSearchError, $t_produits_vins;
     // Initialize
     $gsSearchError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return TRUE;
     }
     if (!ew_CheckInteger($t_produits_vins->id->AdvancedSearch->SearchValue)) {
         ew_AddMessage($gsSearchError, $t_produits_vins->id->FldErrMsg());
     }
     if (!ew_CheckInteger($t_produits_vins->vin->AdvancedSearch->SearchValue)) {
         ew_AddMessage($gsSearchError, $t_produits_vins->vin->FldErrMsg());
     }
     if (!ew_CheckInteger($t_produits_vins->millesime->AdvancedSearch->SearchValue)) {
         ew_AddMessage($gsSearchError, $t_produits_vins->millesime->FldErrMsg());
     }
     if (!ew_CheckInteger($t_produits_vins->code->AdvancedSearch->SearchValue)) {
         ew_AddMessage($gsSearchError, $t_produits_vins->code->FldErrMsg());
     }
     if (!ew_CheckNumber($t_produits_vins->prix_vente->AdvancedSearch->SearchValue)) {
         ew_AddMessage($gsSearchError, $t_produits_vins->prix_vente->FldErrMsg());
     }
     if (!ew_CheckNumber($t_produits_vins->prix_achat->AdvancedSearch->SearchValue)) {
         ew_AddMessage($gsSearchError, $t_produits_vins->prix_achat->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:Razinsky,项目名称:echaude-com,代码行数:37,代码来源:t_produits_vinssrch.php


示例15: ew_CheckRange

function ew_CheckRange($value, $min, $max)
{
    if (strval($value) == "") {
        return TRUE;
    }
    if (!ew_CheckNumber($value)) {
        return FALSE;
    }
    return ew_NumberRange($value, $min, $max);
}
开发者ID:Razinsky,项目名称:echaude-com,代码行数:10,代码来源:phpfn8.php


示例16: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError;
     // Initialize form error message
     $gsFormError = "";
     $lUpdateCnt = 0;
     if ($this->fecha->MultiUpdate == "1") {
         $lUpdateCnt++;
     }
     if ($this->detalles->MultiUpdate == "1") {
         $lUpdateCnt++;
     }
     if ($this->Importe->MultiUpdate == "1") {
         $lUpdateCnt++;
     }
     if ($this->id_tipo_gasto->MultiUpdate == "1") {
         $lUpdateCnt++;
     }
     if ($this->id_hoja_ruta->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->Importe->MultiUpdate != "") {
         if (!ew_CheckNumber($this->Importe->FormValue)) {
             ew_AddMessage($gsFormError, $this->Importe->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,代码行数:49,代码来源:gastosupdate.php


示例17: 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


示例18: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $ItemIngredients;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($ItemIngredients->ItemID->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Item";
     }
     if ($ItemIngredients->IngredientID->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Ingredient";
     }
     if ($ItemIngredients->Amount->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Amount";
     }
     if (!ew_CheckNumber($ItemIngredients->Amount->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect floating point number - Amount";
     }
     if ($ItemIngredients->Type->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Type";
     }
     if ($ItemIngredients->Letter_Code->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Letter Code";
     }
     if ($ItemIngredients->Vegetarian->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Vegetarian";
     }
     // Return validate result
     $ValidateForm = $gsFormError == "";
     // Call Form_CustomValidate event
     $sFormCustomError = "";
     $ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
     if ($sFormCustomError != "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= $sFormCustomError;
     }
     return $ValidateForm;
 }
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:50,代码来源:ItemIngredientsedit.php


示例19: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $PromoCodes;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($PromoCodes->PromoCodeName->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Promo Code Name";
     }
     if ($PromoCodes->PromoCodeType->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Promo Code Type";
     }
     if ($PromoCodes->Amount->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Amount";
     }
     if (!ew_CheckNumber($PromoCodes->Amount->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect floating point number - Amount";
     }
     if ($PromoCodes->ValidFrom->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Valid From";
     }
     if (!ew_CheckUSDate($PromoCodes->ValidFrom->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - Valid From";
     }
     if (!ew_CheckUSDate($PromoCodes->ValidTo->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - Valid To";
     }
     if ($PromoCodes->One_Time_Only->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - One Time Only";
     }
     if ($PromoCodes->New_Customer_Only->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - New Customer Only";
     }
     if ($PromoCodes->multiple_use->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - multiple use";
     }
     // Return validate result
     $ValidateForm = $gsFormError == "";
     // Call Form_CustomValidate event
     $sFormCustomError = "";
     $ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
     if ($sFormCustomError != "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= $sFormCustomError;
     }
     return $ValidateForm;
 }
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:66,代码来源:PromoCodesedit.php


示例20: 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 = "";
     

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ew_CheckRange函数代码示例发布时间:2022-05-15
下一篇:
PHP ew_CheckInteger函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap