本文整理匯總了PHP中printCrewName函數的典型用法代碼示例。如果您正苦於以下問題:PHP printCrewName函數的具體用法?PHP printCrewName怎麽用?PHP printCrewName使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了printCrewName函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: printText
<h4>
<img src="<?php
echo $image;
?>
" alt="<?php
echo $fetch['awardName'];
?>
" border="0" style="float:left; padding-right:10px;" />
<?php
printText($fetch['awardDesc']);
?>
</h4>
<div style="clear:both;"></div>
<h3>Recipient: <?php
printCrewName($crew, 'rank', 'noLink');
?>
</h3>
<div class="overflow"><?php
printText($awards_raw[$award][2]);
?>
</div>
<p></p>
<div>
<input type="hidden" name="action_award" value="<?php
echo $award;
?>
" />
<input type="hidden" name="action_crew" value="<?php
示例2: foreach
<th width="44%">Author</th>
<th width="2%"></th>
<th width="10%"></th>
<th width="10%"></th>
</tr>
<?php
foreach ($posts_array['pending'] as $value_p) {
?>
<tr class="fontNormal">
<td><?php
printText($value_p['title']);
?>
</td>
<td><?php
printCrewName($value_p['author'], 'rank', 'link');
?>
</td>
<td></td>
<td align="center"><a href="<?php
echo $webLocation;
?>
index.php?page=news&id=<?php
echo $value_p['id'];
?>
"><strong>View News</strong></a></td>
<td align="center"><a href="<?php
echo $webLocation;
?>
admin.php?page=manage&sub=news&id=<?php
echo $value_p['id'];
示例3: printCrewName
$menu->main();
if (isset($sessionCrewid)) {
$menu->user($sessionCrewid);
}
?>
</div><br />
</div>
<div id="content" class="wrapper">
<div class="nav">
<div class="login">
<?php
if (isset($sessionCrewid)) {
?>
<i>Hello, <?php
printCrewName($sessionCrewid, "noRank", "noLink");
?>
</i><br />
{ <a href="<?php
echo $webLocation;
?>
login.php?action=logout">Log Out</a> }
<?php
} else {
?>
<form method="post" action="<?php
echo $webLocation;
?>
login.php?action=checkLogin" class="login">
<b>Username</b><br />
<input type="text" name="username" size="12" class="text" /><br /><br />
示例4: printText
?>
</td>
</tr>
<tr>
<td class="tableCellLabel">Category</td>
<td> </td>
<td><?php
printText($catName);
?>
</td>
</tr>
<tr>
<td class="tableCellLabel">Author</td>
<td> </td>
<td><?php
printCrewName($newsAuthor, "rank", "link");
?>
</td>
</tr>
<tr>
<td class="tableCellLabel">Posted</td>
<td> </td>
<td><?php
echo dateFormat("medium", $newsPosted);
?>
</td>
</tr>
</table>
<br />
<div align="center">
<b><a href="<?php
示例5: mysql_query
$get = "SELECT * FROM sms_news WHERE newsid = {$id} LIMIT 1";
$getR = mysql_query($get);
$pendingArray = mysql_fetch_assoc($getR);
?>
<h2>Activate Pending News Item?</h2>
<p>Are you sure you want to activate this news item? Once activated this news item will be emailed to the crew.</p>
<hr size="1" width="100%" />
<form method="post" action="">
<h3><?php
printText($pendingArray['newsTitle']);
?>
</h3>
<h4>By <?php
printCrewName($pendingArray['newsAuthor'], 'rank', 'noLink');
?>
</h4>
<div class="overflow"><?php
printText($pendingArray['newsContent']);
?>
</div>
<p></p>
<div>
<input type="hidden" name="action_id" value="<?php
echo $pendingArray['newsid'];
?>
" />
示例6: printCrewName
return false;
});
$('a#toggleAwards').click(function() {
$('#awards').toggle(75);
return false;
});
});
</script>
<div class="body">
<span class="fontTitle">
<?php
if (!empty($fetchCrew['rankid'])) {
printCrewName($fetchCrew['crewid'], "rank", "noLink");
} else {
printCrewName($fetchCrew['crewid'], "noRank", "noLink");
}
?>
</span>
<?php
if ($fetchCrew['crewType'] == "pending") {
?>
<b class="yellow">[ Activation Pending ]</b><?php
}
?>
<?php
if ($loa == 1) {
?>
<br /><b class="red">[ On Leave of Absence ]</b><?php
示例7: printCrewName
<h2>Deactivate Character?</h2>
<p>Are you sure you want to deactivate <strong class="orange"><?php
printCrewName($pendingArray['crewid'], 'rank', 'noLink');
?>
</strong>? Once deactivated, the player will not be able to login to SMS or participate in the game in any way until they are reactivated.</p>
<hr size="1" width="100%" />
<form method="post" action="">
<table class="hud_guts">
<tr>
<td class="hudLabel">Character</td>
<td></td>
<td><?php
printCrewName($pendingArray['crewid'], 'rank', 'noLink');
?>
</td>
</tr>
<tr>
<td colspan="3" height="10"></td>
</tr>
<tr>
<td class="hudLabel">Position</td>
<td></td>
<td><?php
printText($pendingArray['positionName']);
?>
</td>
</tr>
<tr>
示例8: extract
extract($pendingAwards, EXTR_OVERWRITE);
$getA = "SELECT * FROM sms_awards WHERE awardid = {$pendingAwards['award']} LIMIT 1";
$getAResult = mysql_query($getA);
$award = mysql_fetch_assoc($getAResult);
?>
<tr class="fontNormal">
<td><?php
printText($award['awardName']);
?>
</td>
<td><?php
printCrewName($pendingAwards['nominated'], "rank", "noLink");
?>
</td>
<td><?php
printCrewName($pendingAwards['crew'], "rank", "noLink");
?>
</td>
<td align="center"><a href="#" class="delete" rel="facebox" myID="<?php
echo $pendingAwards['id'];
?>
" myType="award" myAction="deny"><b>Deny</b></a></td>
<td align="center">
<?php
if (!empty($award)) {
?>
<a href="#" class="add" rel="facebox" myID="<?php
echo $pendingAwards['id'];
?>
" myType="award" myAction="approve"><b>Approve</b></a>
<?php
示例9: foreach
Moderated posts will require approval before being sent out to the crew. If a player is moderated and they attempted to post a joint post, the joint post will require approval before it is sent out to the crew, even if the other members are not moderated. Unmoderated posts will be sent out without any need for activation. These values can also be changed from each user’s account page.<br /><br />
<table class="zebra" cellpadding="3" cellspacing="0">
<tr class="fontMedium">
<th>Crew Member</td>
<th>Mission Posts</td>
<th>Personal Logs</td>
<th>News Items</td>
</tr>
<?php
foreach ($crew as $key => $value) {
?>
<tr height="30">
<td><?php
printCrewName($key, "rank", "noLink");
?>
</td>
<td align="center" valign="middle">
<?php
if ($value['posts'] == "y") {
echo "<img src='images/message-unread-icon.png' border='0' alt='Moderated' />";
} else {
echo " ";
}
?>
</td>
<td align="center" valign="middle">
<?php
if ($value['logs'] == "y") {
echo "<img src='images/message-unread-icon.png' border='0' alt='Moderated' />";
示例10: print_active_crew_select_menu
<div id="three" class="ui-tabs-container ui-tabs-hide">
<br />
<form method="post" action="<?php
echo $webLocation;
?>
admin.php?page=user&sub=inbox&tab=3">
<table>
<tr>
<td class="narrowLabel tableCellLabel">To</td>
<td> </td>
<td>
<?php
if (!isset($id)) {
print_active_crew_select_menu("pm", "", "", "", "");
} else {
printCrewName($id, "rank", "noLink");
echo "<input type='hidden' name='pmRecipient' value='{$id}' />";
}
?>
</td>
</tr>
<tr height="5">
<td colspan="3"></td>
</tr>
<tr>
<td class="narrowLabel tableCellLabel">Subject</td>
<td> </td>
<td>
<?php
/* do some logic to figure out what should go in the value field */
if (isset($_GET['reply'])) {
示例11: while
echo "<b>There are no NPCs to moderate in this department! You can create one by using the link above.</b>";
echo "</td>";
echo "</tr>";
} else {
while ($npc = mysql_fetch_assoc($npcsResult)) {
extract($npc, EXTR_OVERWRITE);
$rowColor = $rowCount % 2 ? $color1 : $color2;
?>
<tr class="fontNormal <?php
echo $rowColor;
?>
" height="25">
<td width="40%">
<strong><?php
printCrewName($npc['crewid'], 'rank', 'noLink');
?>
</strong>
</td>
<td width="40%">
<?php
$key1 = array_key_exists($npc['positionid'], $pos_array);
if ($key1 !== FALSE) {
echo "<span style='color: #" . $pos_array[$npc['positionid']][1] . ";'>";
printText($pos_array[$npc['positionid']][0]);
echo "</span>";
} else {
echo "<strong class='red'>[ Invalid Position ]</strong>";
}
?>
</td>
示例12: printCrewName
" />
</td>
</tr>
<tr>
<td class="tableCellLabel">From</td>
<td> </td>
<td><?php
printCrewName($pmAuthor, "rank", "noLink");
?>
</td>
</tr>
<tr>
<td class="tableCellLabel">To</td>
<td> </td>
<td><?php
printCrewName($pmRecipient, "rank", "noLink");
?>
</td>
</tr>
<tr>
<td class="tableCellLabel">Sent</td>
<td> </td>
<td><?php
echo dateFormat("medium", $pmDate);
?>
</td>
</tr>
</table>
<br />
<div align="center">
示例13: printCrewName
?>
<form method="post" action="<?php
echo $webLocation;
?>
admin.php?page=user&sub=status">
<table>
<tr>
<td class="tableCellLabel">Crew Member</td>
<td> </td>
<td>
<?php
printCrewName($sessionCrewid, "rank", "noLink");
?>
<input type="hidden" name="crewMember" value="<?php
printCrewName($sessionCrewid, 'rank', 'noLink');
?>
" />
</td>
</tr>
<tr>
<td class="tableCellLabel">Status</td>
<td> </td>
<td>
<input type="radio" name="status" value="0" <?php
if ($info['loa'] == "0") {
echo "checked";
}
?>
/> Active<br />
<input type="radio" name="status" value="1" <?php
示例14: printText
</div> <!-- close the centering div -->
<table>
<tr>
<td class="tableCellLabel">Title</td>
<td> </td>
<td><?php
printText($logTitle);
?>
</td>
</tr>
<tr>
<td class="tableCellLabel">Author</td>
<td> </td>
<td><?php
printCrewName($logAuthor, "rank", "link");
?>
</td>
</tr>
<tr>
<td class="tableCellLabel">Posted</td>
<td> </td>
<td><?php
echo dateFormat("medium", $logPosted);
?>
</td>
</tr>
</table>
</span>
示例15: QueryCheck
});
});
</script>
<div class="body">
<?php
$check = new QueryCheck();
$check->checkQuery($result, $query);
if (!empty($check->query)) {
$check->message("player award", "add");
$check->display();
}
?>
<span class="fontTitle">Give Award To <?php
printCrewName($crew, "rank", "noLink");
?>
</span><br /><br />
<b class="fontMedium">
<a href="<?php
echo $webLocation;
?>
admin.php?page=manage&sub=addaward">« Back to Crew List</a>
</b><br /><br />
<table class="zebra" cellpadding="3" cellspacing="0">
<?php
$getCrew = "SELECT crewType FROM sms_crew WHERE crewid = {$crew} LIMIT 1";
$getCrewResult = mysql_query($getCrew);
$crewFetch = mysql_fetch_array($getCrewResult);
if ($crewFetch[0] == "npc") {