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

PHP ew_CheckDate函数代码示例

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

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



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

示例1: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $patient_main;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($patient_main->PatientID->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Patient ID";
     }
     if ($patient_main->PatientName->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Patient Name";
     }
     if (!ew_CheckDate($patient_main->PatientBirthDate->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = yyyy/mm/dd - Patient Birth Date";
     }
     if ($patient_main->PatientSex->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Patient Sex";
     }
     // 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:airfox7412,项目名称:ps01,代码行数:38,代码来源:patient_main_edit.php


示例2: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $patient_detail;
     // Initialize
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if ($patient_detail->StudyID->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Study ID";
     }
     if ($patient_detail->PatientID->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Patient ID";
     }
     if (!ew_CheckDate($patient_detail->StudyDate->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = yyyy/mm/dd - Study Date";
     }
     if (!ew_CheckDate($patient_detail->ContentDate->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = yyyy/mm/dd - Content Date";
     }
     if (!ew_CheckTime($patient_detail->StudyTime->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect time (hh:mm:ss) - Study Time";
     }
     if (!ew_CheckTime($patient_detail->ContentTime->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect time (hh:mm:ss) - Content Time";
     }
     if (!ew_CheckInteger($patient_detail->InstanceNumber->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Instance Number";
     }
     if ($patient_detail->Status->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Status";
     }
     // 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:airfox7412,项目名称:ps01,代码行数:62,代码来源:patient_detail_add.php


示例3: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError;
     // Initialize form error message
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if (!$this->Password->FldIsDetailKey && !is_null($this->Password->FormValue) && $this->Password->FormValue == "") {
         ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->Password->FldCaption());
     }
     if (!$this->_Email->FldIsDetailKey && !is_null($this->_Email->FormValue) && $this->_Email->FormValue == "") {
         ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->_Email->FldCaption());
     }
     if (!$this->Created->FldIsDetailKey && !is_null($this->Created->FormValue) && $this->Created->FormValue == "") {
         ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->Created->FldCaption());
     }
     if (!ew_CheckDate($this->Created->FormValue)) {
         ew_AddMessage($gsFormError, $this->Created->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:evinw,项目名称:project_yess,代码行数:31,代码来源:Usersadd.php


示例4: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError;
     // Initialize form error message
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     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_CheckDate($this->date->FormValue)) {
         ew_AddMessage($gsFormError, $this->date->FldErrMsg());
     }
     if (!$this->month->FldIsDetailKey && !is_null($this->month->FormValue) && $this->month->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->month->FldCaption(), $this->month->ReqErrMsg));
     }
     if (!$this->category->FldIsDetailKey && !is_null($this->category->FormValue) && $this->category->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->category->FldCaption(), $this->category->ReqErrMsg));
     }
     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_CheckInteger($this->amount->FormValue)) {
         ew_AddMessage($gsFormError, $this->amount->FldErrMsg());
     }
     if (!$this->Details->FldIsDetailKey && !is_null($this->Details->FormValue) && $this->Details->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->Details->FldCaption(), $this->Details->ReqErrMsg));
     }
     // Return validate result
     $ValidateForm = $gsFormError == "";
     // Call Form_CustomValidate event
     $sFormCustomError = "";
     $ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
     if ($sFormCustomError != "") {
         ew_AddMessage($gsFormError, $sFormCustomError);
     }
     return $ValidateForm;
 }
开发者ID:ahmarmahmood,项目名称:tabedaar,代码行数:40,代码来源:deliveryadd.php


示例5: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError, $tbl_facebook_stat;
     // Initialize form error message
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if (!is_null($tbl_facebook_stat->id_profile->FormValue) && $tbl_facebook_stat->id_profile->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_facebook_stat->id_profile->FldCaption();
     }
     if (!is_null($tbl_facebook_stat->stat_date->FormValue) && $tbl_facebook_stat->stat_date->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_facebook_stat->stat_date->FldCaption();
     }
     if (!ew_CheckDate($tbl_facebook_stat->stat_date->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= $tbl_facebook_stat->stat_date->FldErrMsg();
     }
     if (!is_null($tbl_facebook_stat->year->FormValue) && $tbl_facebook_stat->year->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_facebook_stat->year->FldCaption();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->year->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= $tbl_facebook_stat->year->FldErrMsg();
     }
     if (!is_null($tbl_facebook_stat->month->FormValue) && $tbl_facebook_stat->month->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_facebook_stat->month->FldCaption();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->month->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= $tbl_facebook_stat->month->FldErrMsg();
     }
     if (!is_null($tbl_facebook_stat->week->FormValue) && $tbl_facebook_stat->week->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_facebook_stat->week->FldCaption();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->week->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= $tbl_facebook_stat->week->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->interactions->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= $tbl_facebook_stat->interactions->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->comments->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= $tbl_facebook_stat->comments->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->wallposts->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= $tbl_facebook_stat->wallposts->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->fans->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= $tbl_facebook_stat->fans->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->likes->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= $tbl_facebook_stat->likes->FldErrMsg();
     }
     if (!is_null($tbl_facebook_stat->unsubscribe->FormValue) && $tbl_facebook_stat->unsubscribe->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_facebook_stat->unsubscribe->FldCaption();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->unsubscribe->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= $tbl_facebook_stat->unsubscribe->FldErrMsg();
     }
     // Return validate result
     $ValidateForm = $gsFormError == "";
     // Call Form_CustomValidate event
     $sFormCustomError = "";
     $ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
     if ($sFormCustomError != "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
//.........这里部分代码省略.........
开发者ID:jliman,项目名称:SEOStat,代码行数:101,代码来源:tbl_facebook_statadd.php


示例6: ValidateSearch

 function ValidateSearch()
 {
     global $gsSearchError, $tbl_facebook_stat;
     // Initialize
     $gsSearchError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return TRUE;
     }
     if (!ew_CheckDate($tbl_facebook_stat->stat_date->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_facebook_stat->stat_date->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->year->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_facebook_stat->year->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->month->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_facebook_stat->month->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->week->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_facebook_stat->week->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->interactions->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_facebook_stat->interactions->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->comments->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_facebook_stat->comments->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->wallposts->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_facebook_stat->wallposts->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->fans->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_facebook_stat->fans->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->likes->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_facebook_stat->likes->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_facebook_stat->unsubscribe->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_facebook_stat->unsubscribe->FldErrMsg();
     }
     // 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:jliman,项目名称:SEOStat,代码行数:82,代码来源:tbl_facebook_statsrch.php


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


示例8: ValidateSearch

 function ValidateSearch()
 {
     global $gsSearchError, $CustomView1;
     // Initialize
     $gsSearchError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return TRUE;
     }
     if (!ew_CheckDate($CustomView1->StudyDate->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= "Incorrect date, format = yyyy/mm/dd - Study 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:airfox7412,项目名称:ps01,代码行数:28,代码来源:customview1_list.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 (!ew_CheckDate($this->Date->FormValue)) {
         ew_AddMessage($gsFormError, $this->Date->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:evinw,项目名称:project_yess,代码行数:22,代码来源:Showedit.php


示例11: ValidateSearch

 function ValidateSearch()
 {
     global $gsSearchError;
     // Initialize
     $gsSearchError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return TRUE;
     }
     if (!ew_CheckDate($this->expense_date->AdvancedSearch->SearchValue)) {
         ew_AddMessage($gsSearchError, $this->expense_date->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:ahmarmahmood,项目名称:tabedaar,代码行数:22,代码来源:expensesrch.php


示例12: ValidateForm

 function ValidateForm()
 {
     global $Language, $gsFormError;
     // Initialize form error message
     $gsFormError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return $gsFormError == "";
     }
     if (!$this->package_id->FldIsDetailKey && !is_null($this->package_id->FormValue) && $this->package_id->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->package_id->FldCaption(), $this->package_id->ReqErrMsg));
     }
     if (!$this->mcardnumber->FldIsDetailKey && !is_null($this->mcardnumber->FormValue) && $this->mcardnumber->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->mcardnumber->FldCaption(), $this->mcardnumber->ReqErrMsg));
     }
     if (!$this->missuedate->FldIsDetailKey && !is_null($this->missuedate->FormValue) && $this->missuedate->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->missuedate->FldCaption(), $this->missuedate->ReqErrMsg));
     }
     if (!ew_CheckDate($this->missuedate->FormValue)) {
         ew_AddMessage($gsFormError, $this->missuedate->FldErrMsg());
     }
     if (!$this->mexpirydate->FldIsDetailKey && !is_null($this->mexpirydate->FormValue) && $this->mexpirydate->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->mexpirydate->FldCaption(), $this->mexpirydate->ReqErrMsg));
     }
     if (!ew_CheckDate($this->mexpirydate->FormValue)) {
         ew_AddMessage($gsFormError, $this->mexpirydate->FldErrMsg());
     }
     if (!$this->mname->FldIsDetailKey && !is_null($this->mname->FormValue) && $this->mname->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->mname->FldCaption(), $this->mname->ReqErrMsg));
     }
     if (!$this->midcard->FldIsDetailKey && !is_null($this->midcard->FormValue) && $this->midcard->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->midcard->FldCaption(), $this->midcard->ReqErrMsg));
     }
     if (!$this->mcellno->FldIsDetailKey && !is_null($this->mcellno->FormValue) && $this->mcellno->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->mcellno->FldCaption(), $this->mcellno->ReqErrMsg));
     }
     if (!$this->maddress->FldIsDetailKey && !is_null($this->maddress->FormValue) && $this->maddress->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->maddress->FldCaption(), $this->maddress->ReqErrMsg));
     }
     if (!$this->marea->FldIsDetailKey && !is_null($this->marea->FormValue) && $this->marea->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->marea->FldCaption(), $this->marea->ReqErrMsg));
     }
     if (!$this->mnotes->FldIsDetailKey && !is_null($this->mnotes->FormValue) && $this->mnotes->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->mnotes->FldCaption(), $this->mnotes->ReqErrMsg));
     }
     if (!$this->mamount->FldIsDetailKey && !is_null($this->mamount->FormValue) && $this->mamount->FormValue == "") {
         ew_AddMessage($gsFormError, str_replace("%s", $this->mamount->FldCaption(), $this->mamount->ReqErrMsg));
     }
     if (!ew_CheckInteger($this->mamount->FormValue)) {
         ew_AddMessage($gsFormError, $this->mamount->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:ahmarmahmood,项目名称:tabedaar,代码行数:61,代码来源:membersedit.php


示例13: ValidateSearch

 function ValidateSearch()
 {
     global $gsSearchError, $tbl_ga_stat;
     // Initialize
     $gsSearchError = "";
     // Check if validation required
     if (!EW_SERVER_VALIDATE) {
         return TRUE;
     }
     if (!ew_CheckDate($tbl_ga_stat->stat_date->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_ga_stat->stat_date->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_ga_stat->year->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_ga_stat->year->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_ga_stat->month->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_ga_stat->month->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_ga_stat->week->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_ga_stat->week->FldErrMsg();
     }
     if (!ew_CheckTime($tbl_ga_stat->hour->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_ga_stat->hour->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_ga_stat->pageview->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_ga_stat->pageview->FldErrMsg();
     }
     if (!ew_CheckInteger($tbl_ga_stat->visit->AdvancedSearch->SearchValue)) {
         if ($gsSearchError != "") {
             $gsSearchError .= "<br>";
         }
         $gsSearchError .= $tbl_ga_stat->visit->FldErrMsg();
     }
     // 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:jliman,项目名称:SEOStat,代码行数:64,代码来源:tbl_ga_statsrch.php


示例14: ValidateForm

 function ValidateForm()
 {
     global $gsFormError, $exam_data;
     // Initialize
     $gsFormError = "";
     if (!ew_CheckFileType($exam_data->Soap->Upload->FileName)) {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "File type is not allowed.";
     }
     if ($exam_data->Soap->Upload->FileSize > 0 && EW_MAX_FILE_SIZE > 0) {
         if ($exam_data->Soap->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 ($exam_data->ExamDataNo->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Exam Data No";
     }
     if (!ew_CheckInteger($exam_data->ExamDataNo->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Exam Data No";
     }
     if ($exam_data->PatientMainNo->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Patient Main No";
     }
     if (!ew_CheckInteger($exam_data->PatientMainNo->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Patient Main No";
     }
     if ($exam_data->InstitutionNo->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Institution No";
     }
     if (!ew_CheckInteger($exam_data->InstitutionNo->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Institution No";
     }
     if (!ew_CheckInteger($exam_data->ImageDetailNo->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Image Detail No";
     }
     if (!ew_CheckInteger($exam_data->PatientKindNo->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Patient Kind No";
     }
     if ($exam_data->PatientSubKindNo->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Patient Sub Kind No";
     }
     if (!ew_CheckInteger($exam_data->PatientSubKindNo->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Patient Sub Kind No";
     }
     if (!ew_CheckInteger($exam_data->PatientTypeNo->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Patient Type No";
     }
     if (!ew_CheckInteger($exam_data->DepartmentNo->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect integer - Department No";
     }
     if (!ew_CheckDate($exam_data->SpecialExamDate->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = yyyy/mm/dd - Special Exam Date";
     }
     if ($exam_data->ExamDate->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
         $gsFormError .= "Please enter required field - Exam Date";
     }
     if (!ew_CheckDate($exam_data->ExamDate->FormValue)) {
         if ($gsFormError != "") {
             $gsFormError .= "<br>";
         }
         $gsFormError .= "Incorrect date, format = yyyy/mm/dd - Exam Date";
     }
     if ($exam_data->ExamTime->FormValue == "") {
         $gsFormError .= $gsFormError != "" ? "<br>" : "";
//.........这里部分代码省略.........
开发者ID:airfox7412,项目名称:ps01,代码行数:101,代码来源:exam_data_edit.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP ew_CheckEmail函数代码示例发布时间:2022-05-15
下一篇:
PHP ew_BuildSelectSql函数代码示例发布时间: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