本文整理匯總了PHP中Reservation::is_repeat方法的典型用法代碼示例。如果您正苦於以下問題:PHP Reservation::is_repeat方法的具體用法?PHP Reservation::is_repeat怎麽用?PHP Reservation::is_repeat使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Reservation
的用法示例。
在下文中一共展示了Reservation::is_repeat方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: translate
$msg = Link::getLink('index.php', translate('Login to manage all of your invitiations'));
}
CmnFns::do_message_box($msg);
} else {
$resid = $_GET['id'];
$action = $_GET['action'];
$res = new Reservation($resid);
$resource = new Resource();
$max_participants = $resource->get_property('max_participants', $res->get_machid());
// If the total number of users (minus the owner) already participating is less than the max, let this user participate
if ($action == INVITE_DECLINE || ($max_participants == '' || count($res->participating_users) < $max_participants)) {
$msg = '<h5>' . translate('Confirm reservation participation') . '</h5><br/>';
$word = $_GET['action'] == INVITE_ACCEPT ? 'Accept' : 'Decline';
$msg .= '<input type="submit" class="button" name="y" value="' . translate($word) . '"/>';
$msg .= ' ';
$msg .= '<input type="submit" class="button" name="n" value="' . translate('Cancel') . '"/>';
if ($res->is_repeat()) {
$msg .= '<br/><input type="checkbox" name="update_all" value="yes"/> ' . translate('Do for all reservations in the group?');
}
echo '<form name="inv_mgmt" action="' . $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'] . '" method="post">';
CmnFns::do_message_box($msg);
echo '</form>';
} else {
CmnFns::do_error_box(translate('That reservation is at full capacity.'), '', false);
}
}
}
// End main table
$t->endMain();
// Print HTML footer
$t->printHTMLFooter();