本文整理汇总了PHP中Classes::anyspots方法的典型用法代码示例。如果您正苦于以下问题:PHP Classes::anyspots方法的具体用法?PHP Classes::anyspots怎么用?PHP Classes::anyspots使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Classes
的用法示例。
在下文中一共展示了Classes::anyspots方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div id="maincontent">
<div class="textcontentalone">
<h1>join the class of <?php
echo DateManager::frontdisplaytimefromtmstp($classtojoin->c_date);
?>
part of the <?php
echo $sessiontojoin->name;
?>
</h1>
<p>Please fill out the form below to register for a class in the upcoming Spring Session. Please be sure to look at DAY and TIME to be sure you are registering for the correct time slot. </p>
<?php
$stillspots = Classes::anyspots($classtojoin->id);
if ($stillspots) {
echo '<h2>CLASS FULL</h2>';
} else {
if (isset($captchaerror)) {
$p_firstname = $database->escape_value($_POST['p_firstname']);
$p_lastname = $database->escape_value($_POST['p_lastname']);
$k_firstname = $database->escape_value($_POST['k_firstname']);
$k_lastname = $database->escape_value($_POST['k_lastname']);
$phone = $database->escape_value($_POST['phone']);
$email = $database->escape_value($_POST['email']);
?>
<script>
$(document).ready(function(){
$("#commentForm").validate();
});
示例2:
echo $updateclient->phone;
?>
" class="input_text" /></label>
<label><span>Coupon: </span><input type="text" maxlength="40" name="u_coupon" value="<?php
echo $updateclient->coupon;
?>
" class="input_text" /></label>
<input type="submit" name="Update" value="Update" class="button" />
</form>
</div>
<?php
} else {
$stillspots = Classes::anyspots($_GET['clsid']);
if ($stillspots) {
echo '<h2>CLASS FULL</h2>';
} else {
?>
<div class="box">
<h2>Add a New Client</h2>
<form action="clients-view.php?clsid=<?php
echo $_GET['clsid'];
?>
" method="post">
<input type="hidden" value="<?php
echo $_GET['clsid'];
?>