本文整理匯總了PHP中COMMONFUNC::GetSubscriptionTimeLeft方法的典型用法代碼示例。如果您正苦於以下問題:PHP COMMONFUNC::GetSubscriptionTimeLeft方法的具體用法?PHP COMMONFUNC::GetSubscriptionTimeLeft怎麽用?PHP COMMONFUNC::GetSubscriptionTimeLeft使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類COMMONFUNC
的用法示例。
在下文中一共展示了COMMONFUNC::GetSubscriptionTimeLeft方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
?>
</p>
<p>
<b>Valid Until:</b>
<?php
if ($fldSubscribe == '2') {
//Trial Time Left
$time_left = $func->GetAprilTrialTimeLeft($fldAddDate);
} else {
if ($fldSubscribe == '1') {
//Subscription Time Left
$time_left = $func->GetSubscriptionTimeLeft($fldLastPaymentDate);
} else {
if ($fldSubscribe == '0') {
//Inactive Time Left
$time_left = "0 Days";
}
}
}
echo $time_left;
?>
</p>
<br />
<br />
示例2:
}
?>
<p>
<b>Type:</b><?php
echo $SubscriptionType;
?>
</p>
<p>
<b>Status:</b><?php
echo $SubscriptionStatus;
?>
</p>
<p>
<b>Valid Until:</b>
<?php
if ($fldSubscribe == '2') {
//Trial Time Left
$time_left = $func->GetTrialTimeLeft($fldAddDate);
} else {
if ($fldSubscribe == '1') {
//Subscription Time Left
$time_left = $func->GetSubscriptionTimeLeft();
} else {
if ($fldSubscribe == '0') {
//Inactive Time Left
$time_left = "0 Days";
}
}