本文整理汇总了PHP中Relationship::getname方法的典型用法代码示例。如果您正苦于以下问题:PHP Relationship::getname方法的具体用法?PHP Relationship::getname怎么用?PHP Relationship::getname使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Relationship
的用法示例。
在下文中一共展示了Relationship::getname方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</tr>
<tr>
<td bgcolor="#d9dfea">
</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">
示例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%>