本文整理汇总了PHP中Club::urlof方法的典型用法代码示例。如果您正苦于以下问题:PHP Club::urlof方法的具体用法?PHP Club::urlof怎么用?PHP Club::urlof使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Club
的用法示例。
在下文中一共展示了Club::urlof方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
?>
<h1>Update Clubs</h1>
<p>Please select the club to be updated from the following list.</p>
<p>To add a club click on one at random and just change the entries on the form or
select the "new club" menu option</p>
<table class="clubupd">
<tr>
<th>Abbrev</th>
<th>Name</th>
</tr>
<?php
$ret = mysql_query("select code from club order by name");
if ($ret && mysql_num_rows($ret)) {
while ($row = mysql_fetch_assoc($ret)) {
$p = new Club($row["code"]);
$p->fetchdets();
print <<<EOT
<tr>
<td><a href="updindclub.php?{$p->urlof()}" title="Update club details">{$p->display_code()}</a></td>
<td><a href="updindclub.php?{$p->urlof()}" title="Update club details">{$p->display_name()}</a></td>
</tr>
EOT;
}
}
?>
</table>
</div>
</div>
</body>
</html>
示例2: if
return false;
}
if (!nonblank(form.clubname.value)) {
alert("No club name given");
return false;
}
return true;
}
</script>
<?php
$showadmmenu = true;
include 'php/nav.php';
print <<<EOT
<h1>Update Club {$club->display_name()}</h1>
<p>Please update the details of the club as required using the form below.</p>
<p>Alternatively <a href="delclub.php?{$club->urlof()}">Click here</a> to remove
details of the club.</p>
EOT;
?>
<p>You can enter a new club by adjusting the
fields appropriately and pressing the "Add club" button.
</p>
<?php
print <<<EOT
<form name="clubform" action="updindclub2.php" method="post" enctype="application/x-www-form-urlencoded" onsubmit="javascript:return formvalid();">
{$club->save_hidden()}
<p>
Club Code:
<input type="text" name="clubcode" value="{$club->display_code()}" size="3" maxlength="3">
Name: