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


PHP bValidVerifyDate函数代码示例

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


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

示例1: patientRecVerifyBDateValid

 function patientRecVerifyBDateValid($strBDate)
 {
     if (!bValidVerifyDate($strBDate)) {
         $this->form_validation->set_message('patientRecVerifyBDateValid', 'The <b>date of birth</b> is not valid.');
         return false;
     } else {
         return true;
     }
 }
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:9,代码来源:patient_rec.php

示例2: verifyRecurring

 function verifyRecurring($strStart)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     if (!bValidVerifyDate($strStart)) {
         $this->form_validation->set_message('verifyRecurring', 'Please enter a valid event start date.');
         return false;
     }
     $lNumRecur = (int) $_POST['ddlRecur'];
     if ($lNumRecur == 1) {
         return true;
     }
     $strRecur = trim($_POST['rdoRecur']);
     $bFailed = false;
     $strErr = '';
     switch ($strRecur) {
         case 'daily':
             break;
         case 'weekly':
             if (!(@$_POST['chkWkSun'] == 'TRUE' || @$_POST['chkWkMon'] == 'TRUE' || @$_POST['chkWkTue'] == 'TRUE' || @$_POST['chkWkWed'] == 'TRUE' || @$_POST['chkWkThu'] == 'TRUE' || @$_POST['chkWkFri'] == 'TRUE' || @$_POST['chkWkSat'] == 'TRUE')) {
                 $bFailed = true;
                 $strErr = 'For weekly recurrence, please select the recurring day(s) of the week.';
             }
             break;
         case 'monthly':
             $strFL = trim(@$_POST['rdoFixedLoose']);
             switch ($strFL) {
                 case 'FL':
                     $bFound = false;
                     $idx = 1;
                     while (!$bFound && $idx <= 31) {
                         $bFound = @$_POST['chkFixed' . $idx] == 'on';
                         ++$idx;
                     }
                     if (!$bFound) {
                         $bFailed = true;
                         $strErr = 'For fixed monthly recurrence, please select one or more dates.';
                     }
                     break;
                 case 'RM':
                     $bFound1 = @$_POST['chkRel_1st'] == 'TRUE' || @$_POST['chkRel_2nd'] == 'TRUE' || @$_POST['chkRel_3rd'] == 'TRUE' || @$_POST['chkRel_4th'] == 'TRUE' || @$_POST['chkRel_5th'] == 'TRUE' || @$_POST['chkRel_last'] == 'TRUE';
                     $bFound2 = @$_POST['chkRelSun'] == 'on' || @$_POST['chkRelMon'] == 'on' || @$_POST['chkRelTue'] == 'on' || @$_POST['chkRelWed'] == 'on' || @$_POST['chkRelThu'] == 'on' || @$_POST['chkRelFri'] == 'on' || @$_POST['chkRelSat'] == 'on';
                     if (!($bFound1 && $bFound2)) {
                         $bFailed = true;
                         $strErr = 'For relative monthly recurrence, please select one or more entries from each row.';
                     }
                     break;
                 default:
                     $bFailed = true;
                     $strErr = 'For monthly recurrence, please select either "Fixed monthly dates" or "Relative monthly dates".';
                     break;
             }
             break;
     }
     if ($bFailed) {
         $this->form_validation->set_message('verifyRecurring', $strErr);
         return false;
     } else {
         return true;
     }
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:62,代码来源:events_add_edit.php

示例3: measRecVerifyDateValid

 function measRecVerifyDateValid($strDate)
 {
     if ($strDate == '') {
         $this->form_validation->set_message('measRecVerifyDateValid', 'A measurement date is required.');
         return false;
     }
     if (!bValidVerifyDate($strDate)) {
         $this->form_validation->set_message('measRecVerifyDateValid', 'This date is not valid.');
         return false;
     } elseif (!bValidVerifyUnixRange($strDate)) {
         $this->form_validation->set_message('measRecVerifyDateValid', 'This date is out of range.');
         return false;
     } else {
         return true;
     }
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:16,代码来源:measurements.php

示例4: clientImageUploadVerifyBDateValid

 function clientImageUploadVerifyBDateValid($strDate)
 {
     return bValidVerifyDate($strDate);
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:4,代码来源:upload_image_doc.php

示例5: clientRecVerifyEffDateValid

 function clientRecVerifyEffDateValid($strEDate)
 {
     return bValidVerifyDate($strEDate);
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:4,代码来源:client_record.php

示例6: peopleRecVerifyBDateValid

 function peopleRecVerifyBDateValid($strBDate)
 {
     if ($strBDate == '') {
         return true;
     }
     return bValidVerifyDate($strBDate);
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:7,代码来源:people_add_edit.php

示例7: verifyVisitDate

 function verifyVisitDate($strVisitDate)
 {
     if (!bValidVerifyDate($strVisitDate)) {
         $this->form_validation->set_message('verifyVisitDate', 'The <b>Visit Date</b> is not valid.');
         return false;
     }
     if (!bValidVerifyNotFuture($strVisitDate)) {
         $this->form_validation->set_message('verifyVisitDate', 'The <b>Visit Date</b> is in the future!.');
         return false;
     }
     return true;
 }
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:12,代码来源:patient_visit.php

示例8: sponPaymentAddEditDateValid

 function sponPaymentAddEditDateValid($strDate)
 {
     return bValidVerifyDate($strDate);
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:4,代码来源:payments.php

示例9: verifyBatchInput

 function verifyBatchInput($dummy)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     $bFormOkay = true;
     if (!isset($_REQUEST['txtAmount'])) {
         return true;
     }
     foreach ($_REQUEST['txtAmount'] as $lSponID => $txtAmount) {
         $this->validation->paymentType[$lSponID] = $this->validation->paymentDate[$lSponID] = $this->validation->amount[$lSponID] = '';
         $txtAmount = $this->stripCommas(trim($txtAmount));
         if ($txtAmount == '') {
             $this->validation->requiresVerification[$lSponID] = false;
         } elseif (is_numeric($txtAmount) && abs((double) $txtAmount) < 0.01) {
             $this->validation->requiresVerification[$lSponID] = false;
         } else {
             $this->validation->requiresVerification[$lSponID] = true;
         }
     }
     foreach ($_REQUEST['txtAmount'] as $lSponID => $txtAmount) {
         if ($this->validation->requiresVerification[$lSponID]) {
             $txtAmount = $this->stripCommas(trim($txtAmount));
             $txtPayDate = trim($_POST['txtPayDate' . $lSponID]);
             $lPayTypeID = (int) $_REQUEST['ddlPayType'][$lSponID];
             if (!is_numeric($txtAmount)) {
                 $this->validation->amount[$lSponID] = '<br><div class="formError" style="width: 170px;">The <b>Payment Amount</b> field must contain only numbers.</div>';
                 $bFormOkay = false;
             }
             $sngAmount = (double) $txtAmount;
             if ($sngAmount < 0.0) {
                 $this->validation->amount[$lSponID] = '<br><div class="formError" style="width: 170px;">The <b>Payment Amount</b> can not be a negative number.</div>';
                 $bFormOkay = false;
             }
             if ($lPayTypeID <= 0) {
                 $this->validation->paymentType[$lSponID] = '<br><div class="formError" style="width: 170px;">Please select a <b>Payment Type</b>.</div>';
                 $bFormOkay = false;
             }
             if ($txtPayDate == '') {
                 $this->validation->paymentDate[$lSponID] = '<br><div class="formError" style="width: 170px;">Please enter a <b>Payment Date</b>.</div>';
                 $bFormOkay = false;
             } elseif (!bValidVerifyDate($txtPayDate)) {
                 $this->validation->paymentDate[$lSponID] = '<br><div class="formError" style="width: 170px;">The <b>Payment Date</b> is not valid.</div>';
                 $bFormOkay = false;
             }
         }
     }
     return $bFormOkay;
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:49,代码来源:batch_payments.php

示例10: giftVerifyDDateValid

 function giftVerifyDDateValid($strDate)
 {
     return bValidVerifyDate($strDate);
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:4,代码来源:add_edit.php

示例11: itemVerifyDateAcquiredValid

 function itemVerifyDateAcquiredValid($strAcquiredDate)
 {
     if (bValidVerifyDate($strAcquiredDate)) {
         return true;
     } else {
         $this->form_validation->set_message('itemVerifyDateAcquiredValid', 'Please enter a valid acquisistion date.');
         return false;
     }
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:9,代码来源:inventory_items.php

示例12: obtainedDateValid

 function obtainedDateValid($strDate)
 {
     return bValidVerifyDate($strDate);
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:4,代码来源:items.php

示例13: ufFieldVerifyDateValid

 function ufFieldVerifyDateValid($strDate)
 {
     if ($strDate == '') {
         return true;
     } else {
         return bValidVerifyDate($strDate);
     }
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:8,代码来源:uf_user_edit.php

示例14: edateVerifyDateValid

 function edateVerifyDateValid($strEDate)
 {
     return bValidVerifyDate($strEDate);
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:4,代码来源:event_dates_add_edit.php

示例15: clientStatVerifyDateValid

 function clientStatVerifyDateValid($strDate)
 {
     return bValidVerifyDate($strDate);
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:4,代码来源:client_rec_stat.php


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