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


PHP Relationship::getname方法代码示例

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


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

示例1:

							</tr>
							<tr>
								<td bgcolor="#d9dfea"> &nbsp;
								</td>
							</tr>
								
						

						<?php 
?>
									

									<table width=95%>
									<?php 
foreach ($requestsyourpending as $ids) {
    $name = $relationpend->getname('user', $ids);
    $searchn = $profile->get_searchnail($ids);
    if ($ids > 0) {
        ?>
										<tr>
											<td align=left>
												<table class="bottomborder" width="100%">
													<tr valign=stop>
														<td width="100px" align=left>
															<img border=0 src="<?php 
        echo $searchn;
        ?>
"> 
														</td>
														<td width="300px" align=left>
															<table width="200px">
开发者ID:jesobreira,项目名称:thefacebook.us,代码行数:31,代码来源:reqs.php

示例2: strtolower

        $error .= "<br>";
    } else {
        $error = "</b></font>A request has been sent to " . $profile->retrieve("name") . " to confirm your request.";
        if ($_REQUEST['confirm'] == "Confirm") {
            $error = "</b></font>Confirmed! <a href='profile.php?id=" . $fid . "'>View their profile</a> or <a href='reqs.php'>Go Back to Pending Requests</a>";
        }
        if ($_REQUEST['deny'] == "Deny") {
            $error = "</b></font>The request has been removed. <a href='reqs.php'>Go Back to Pending Requests</a>";
        }
        $success = true;
    }
}
$yourpending = $relation->pending_requests();
if (in_array($fid, $yourpending)) {
    $success = true;
    $relationshipwanted = strtolower($relation->getname('relationshiptype', $relation->getrelationshiptype($id, $fid)));
    $error = "</b></font><form method=post action=addfriend.php><input type=hidden name=id value='" . $fid . "'><a href='profile.php?id=" . $fid . "'>" . $profile->retrieve("name") . "</a> would like you to confirm that you are " . $relationshipwanted . ". <input class=inputsubmit type=submit name='confirm' value='Confirm'><input class=inputsubmit type=submit name='deny' value='Deny'></form>";
}
?>
<title>TheFacebook | Add Friend</title> 
<link rel="stylesheet" href="style.css"> 
<link rel="shortcut icon" href="favicon.ico"> 


<center>

<table class="bordertable" cellspacing=0 cellpadding=0 border=0 width=700>

  <tr><td>

      <table class="bottomborder" cellspacing=0 cellpadding=0 border=0 width=100%>
开发者ID:jesobreira,项目名称:thefacebook.us,代码行数:31,代码来源:addfriend.php


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