本文整理汇总了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;
}
}
示例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;
}
}
示例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;
}
}
示例4: clientImageUploadVerifyBDateValid
function clientImageUploadVerifyBDateValid($strDate)
{
return bValidVerifyDate($strDate);
}
示例5: clientRecVerifyEffDateValid
function clientRecVerifyEffDateValid($strEDate)
{
return bValidVerifyDate($strEDate);
}
示例6: peopleRecVerifyBDateValid
function peopleRecVerifyBDateValid($strBDate)
{
if ($strBDate == '') {
return true;
}
return bValidVerifyDate($strBDate);
}
示例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;
}
示例8: sponPaymentAddEditDateValid
function sponPaymentAddEditDateValid($strDate)
{
return bValidVerifyDate($strDate);
}
示例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;
}
示例10: giftVerifyDDateValid
function giftVerifyDDateValid($strDate)
{
return bValidVerifyDate($strDate);
}
示例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;
}
}
示例12: obtainedDateValid
function obtainedDateValid($strDate)
{
return bValidVerifyDate($strDate);
}
示例13: ufFieldVerifyDateValid
function ufFieldVerifyDateValid($strDate)
{
if ($strDate == '') {
return true;
} else {
return bValidVerifyDate($strDate);
}
}
示例14: edateVerifyDateValid
function edateVerifyDateValid($strEDate)
{
return bValidVerifyDate($strEDate);
}
示例15: clientStatVerifyDateValid
function clientStatVerifyDateValid($strDate)
{
return bValidVerifyDate($strDate);
}