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


PHP ew_CheckUSDate函数代码示例

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


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

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

示例2: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $GiftCertificates;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($GiftCertificates->CustomerID->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Customer";
     }
     if (!ew_CheckInteger($GiftCertificates->CustomerID->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Customer";
     }
     if (!ew_CheckEmail($GiftCertificates->GiftEmail->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect email - Recipient Email";
     }
     if ($GiftCertificates->GiftFirstName->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Recipient First Name";
     }
     if ($GiftCertificates->GiftLastName->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Recipient Last Name";
     }
     if ($GiftCertificates->GiftAmount->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Gift Amount";
     }
     if (!ew_CheckNumber($GiftCertificates->GiftAmount->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect floating point number - Gift Amount";
     }
     if (!ew_CheckInteger($GiftCertificates->PromoCodeID->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Promo Code ID";
     }
     if (!ew_CheckUSDate($GiftCertificates->DateMailed->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - Date Mailed";
     }
     // 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,代码来源:GiftCertificatesedit.php

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

示例4: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $Notifications;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($Notifications->ZipCode->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Zip Code";
     }
     if (!ew_CheckZip($Notifications->ZipCode->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect ZIP code - Zip Code";
     }
     if ($Notifications->zEmail->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Email";
     }
     if (!ew_CheckEmail($Notifications->zEmail->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect email - Email";
     }
     if ($Notifications->Timestamp->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Timestamp";
     }
     if (!ew_CheckUSDate($Notifications->Timestamp->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - Timestamp";
     }
     // 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,代码来源:Notificationsedit.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: 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

示例7: ValidateSearch

 function ValidateSearch()
 {
     global $gsSearchError, $Orders;
     // Initialize
     $gsSearchError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return TRUE;
     }
     if (!ew_CheckUSDate($Orders->DeliveryDate->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= "Incorrect date, format = mm/dd/yyyy - Delivery Date";
     }
     // Return validate result
     $ValidateSearch = $gsSearchError == "";
     // Call Form_CustomValidate event
     $sFormCustomError = "";
     $ValidateSearch = $ValidateSearch && $this->Form_CustomValidate($sFormCustomError);
     if ($sFormCustomError != "") {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $sFormCustomError;
     }
     return $ValidateSearch;
 }
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:28,代码来源:Orderslist.php

示例8: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $Subscriptions;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($Subscriptions->DeliveryDate->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Delivery Date";
     }
     if (!ew_CheckUSDate($Subscriptions->DeliveryDate->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - Delivery Date";
     }
     if ($Subscriptions->CustomerID->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Customer";
     }
     if (!ew_CheckInteger($Subscriptions->TransactionNumber->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Transaction Number";
     }
     if ($Subscriptions->WeeklyMeals->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Weekly Meals";
     }
     if (!ew_CheckInteger($Subscriptions->WeeklyMeals->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Weekly Meals";
     }
     if ($Subscriptions->WeeklyReg->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Weekly Reg";
     }
     if (!ew_CheckInteger($Subscriptions->WeeklyReg->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Weekly Reg";
     }
     if ($Subscriptions->WeeklyVeg->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Weekly Veg";
     }
     if (!ew_CheckInteger($Subscriptions->WeeklyVeg->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Weekly Veg";
     }
     // 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,代码行数:70,代码来源:Subscriptionsadd.php

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

示例10: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $Contact;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($Contact->zEmail->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Email";
     }
     if (!ew_CheckEmail($Contact->zEmail->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect email - Email";
     }
     if ($Contact->Received->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Received";
     }
     if (!ew_CheckUSDate($Contact->Received->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - Received";
     }
     if ($Contact->Message->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Message";
     }
     // 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,代码行数:44,代码来源:Contactedit.php

示例11: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $password_reset_requests;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($password_reset_requests->CustomerID->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Customer ID";
     }
     if (!ew_CheckInteger($password_reset_requests->CustomerID->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Customer ID";
     }
     if ($password_reset_requests->token_id->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - token id";
     }
     if ($password_reset_requests->expires->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - expires";
     }
     if (!ew_CheckUSDate($password_reset_requests->expires->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - expires";
     }
     // 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,代码行数:44,代码来源:password_reset_requestsedit.php

示例12: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $HolidayDate;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($HolidayDate->HolidayOrderBy->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Holiday Order By";
     }
     if (!ew_CheckUSDate($HolidayDate->HolidayOrderBy->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - Holiday Order By";
     }
     if ($HolidayDate->HolidayDeliverOn->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Holiday Deliver On";
     }
     if (!ew_CheckUSDate($HolidayDate->HolidayDeliverOn->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = mm/dd/yyyy - Holiday Deliver On";
     }
     // 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,代码行数:40,代码来源:HolidayDateedit.php


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