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


PHP Institution::isPartner方法代码示例

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


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

示例1: Institution

<?php

/*
 * Created on Mar 15, 2006 by Aaron Zeckoski (aaronz@vt.edu)
 */
// get institution information
$Inst = new Institution($User->institution_pk);
$isPartner = $Inst->isPartner();
// this means the user is in a partner inst
$INST = $Inst->toArray();
// get the current info out if it exists for this user
$conf_sql = "select * from conferences where users_pk='{$User->pk}' and confID='{$CONF_ID}'";
$result = mysql_query($conf_sql) or die('Conf fetch query failed: ' . mysql_error());
$CONF = mysql_fetch_assoc($result);
// first result is all we care about
$isRegistered = false;
// this means the user is already registered for the current conference
if ($CONF) {
    $isRegistered = true;
    $transID = $CONF['transID'];
    $fee = $CONF['fee'];
    $Message = "<span style='color:red;'>You have already filled out a registration form for this conference.</span>";
    if (!$isPartner) {
        if ($transID) {
            //non-member payment transaction received from Verisign
            $Message .= "<span style='color:red;'><br />Your payment confirmation number is: {$transID} </span><br/>" . "<span style='color:red;'><br />Registration fee paid: &#36;{$fee} </span><br/><br/>";
        } else {
            $Message .= "<span style='color:red;'><br />However, <strong>you have not completed the payment process.</strong>" . " <br/><br/></span><strong>Please go to" . " the <a href='payment.php'>Payment page</a> to complete the registration process.</strong>" . "<div class=padding50>&nbsp;</div><div class=padding50>&nbsp;</div> ";
        }
    }
}
开发者ID:azeckoski,项目名称:az-php-sandbox,代码行数:31,代码来源:getInstConf.php


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