当前位置: 首页>>代码示例>>PHP>>正文


PHP Club::display_contact方法代码示例

本文整理汇总了PHP中Club::display_contact方法的典型用法代码示例。如果您正苦于以下问题:PHP Club::display_contact方法的具体用法?PHP Club::display_contact怎么用?PHP Club::display_contact使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Club的用法示例。


在下文中一共展示了Club::display_contact方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: switch

include 'php/opendatabase.php';
try {
    $via = $_POST["via"];
    switch ($via) {
        default:
            $player = new Player();
            $player->frompost();
            $player->fetchdets();
            $name = $player->display_name(false);
            $dest = $player->Email;
            break;
        case "club":
            $club = new Club();
            $club->frompost();
            $club->fetchdets();
            $name = $club->display_contact();
            $dest = $club->Contactemail;
            break;
    }
} catch (PlayerException $e) {
    $mess = $e->getMessage();
    include 'php/wrongentry.php';
    exit(0);
} catch (ClubException $e) {
    $mess = $e->getMessage();
    include 'php/wrongentry.php';
    exit(0);
}
if (strlen($dest) == 0) {
    $mess = "No email dest";
    include 'php/dataerror.php';
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:sendmail2.php

示例2: strlen

<th>Night</th>
<th>Schools</th>
</tr>
<?php 
$pemail = strlen($username) != 0;
$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();
        $sch = $p->Schools ? 'Yes' : '-';
        print <<<EOT
<tr>
<td>{$p->display_code()}</td>
<td>{$p->display_name()}</td>
<td>{$p->display_contact()}</td>
<td>{$p->display_contphone()}</td>
<td>{$p->display_contemail($pemail)}</td>
<td>{$p->display_website()}</td>
<td>{$p->display_night()}</td>
<td>{$sch}</td>
</tr>
EOT;
    }
}
?>
</table>
</div>
</div>
</body>
</html>
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:clubs.php

示例3: formvalid

?>
<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:
<input type="text" name="clubname" value="{$club->display_name()}">
</p>
<p>
Contact:<input type="text" name="contname" value="{$club->display_contact()}">
Phone:<input type="text" name="contphone" value="{$club->display_contphone()}">
Email:<input type="text" name="contemail" value="{$club->display_contemail_nolink()}">
</p>
<p>
Club website:
<input type="text" name="website" value="{$club->display_website_raw()}">
Meeting night:
EOT;
$club->nightopt();
$schchk = $club->Schools ? " checked" : "";
print <<<EOT
</p>
<p>Set this <input type="checkbox" name="schools"{$schchk}> if the club is in BGA schools.</p>
<p>
<input type="submit" name="subm" value="Add Club">
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:updindclub.php


注:本文中的Club::display_contact方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。