本文整理汇总了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();