本文整理汇总了PHP中item::getitemdata方法的典型用法代码示例。如果您正苦于以下问题:PHP item::getitemdata方法的具体用法?PHP item::getitemdata怎么用?PHP item::getitemdata使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类item
的用法示例。
在下文中一共展示了item::getitemdata方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rand
<tr>
<td>
<center><font size=5>THE DONATION TREE</font><br><a href="#" class="hintanchor" onMouseover="showhint('Just click the item you want to grab.', this, event, '200px')">[Don't know what to do?]</a></center>
</td>
</tr>
<tr>
<td bgcolor="#000000">
<table width="100%">
<TR><br>
<?php
$itemtrcount = 1;
$itemtrcount1 = 5;
$item = mysql_query("select * from donation order by rand() limit 20");
while ($item1 = mysql_fetch_assoc($item)) {
$itemlay->getitemdata($item1['itemid'], 3);
$itemlay->postitemdata();
?>
<TD align="center" valign="center" width=20%>
<a href="donationgrab.php?itemid=<?php
$item1['itemid'];
?>
"><img src="images/items/<?php
$item1['pic'];
?>
" <?php
$itemlay->basiclayout(3);
?>
border="1"></a><br><b><?php
$item1['name'];
示例2: while
<p align="center">
<b><font size="4"><?php
$stat['username'];
?>
's Quest Vault</font></b></td>
</tr>
<td>
<table width=500>
<form method="post" action="qvault.php">
<tr>
<?php
$itemtrcount = 1;
$itemtrcount1 = 4;
$vault = mysql_query("select * from iteminv where owner='{$stat['id']}' and slot='Q'");
while ($vault1 = mysql_fetch_array($vault)) {
$itemlay->getitemdata($vault1['itemid'], 0);
$itemlay->postitemdata();
if ($vault1['slot'] == 3) {
$itemurl = "profile.php?open={$vault1['itemid']}";
} else {
$itemurl = "itemlookup.php?id={$vault1['itemid']}&owner={$stat['id']}";
}
?>
<td>
<a href=<?php
$itemurl;
?>
><img border="1" src="images/items/<?php
$vault1['pic'];
?>
" <?php
示例3: item
</center>
<p><?php
$pdesc['desc'];
?>
</p>
<hr noshade size=1 width=500>
<TR>
<br>
<?php
$itemlay = new item();
$itemtrcount = 1;
$itemtrcount1 = 5;
$shop = mysql_query("select * from pshopitems where owner={$shop} order by rand()");
while ($shop1 = mysql_fetch_assoc($shop)) {
if ($shop1['amount'] > 0) {
$itemlay->getitemdata($shop1['itemid'], 1);
$itemlay->postitemdata();
?>
<TD align="center" valign="center" width=20%>
<a href="itembuy.php?pitemid=<?php
$shop1['itemid'];
?>
"><img src="images/items/<?php
$shop1['pic'];
?>
" <?php
$itemlay->basiclayout(1);
?>
border="1"></a><br><b><?php
$shop1['name'];
示例4:
</td>
</tr>
<tr>
<td width="100%" align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table align="center"
<tr style="height:50px;text-align:center;">
<td></td>
<td align="center" valign="bottom"><div style="width:62px;height:50px;border:2px inset">
<?php
$head = mysql_query("select * from " . PLAYERS_ITEMS_TABLE . " where owner={$id['id']} and slot='h' and status='e'");
$itemh = mysql_fetch_assoc($head);
$itemlay->getitemdata($itemh['itemid'], 0);
$itemlay->postitemdata();
if (!$itemh) {
} else {
if ($logged_in and $id['id'] == $stat['id']) {
?>
<a href="?removeitem=<?php
$itemh['itemid'];
?>
"><?php
}
?>
<img style="border:0px;" src="images/items/<?php
$itemh['pic'];
?>
" <?php
示例5: confirm
<td width="100%" align="center" bgcolor="#000000">
<form method="post" onsubmit="javascript: return confirm('Are you sure you would like to perform this action');">
<table cellspacing="0" cellpadding="0" bgcolor="#000000" width=400>
<tr>
<?php
$itemtrcount = 1;
$itemtrcount1 = 5;
$unequip = mysql_query("select * from " . PLAYERS_ITEMS_TABLE . " where owner={$stat['id']} and status='U' and slot not like 'Q' ORDER BY itemid");
while ($unequipped = mysql_fetch_assoc($unequip)) {
$itemlay->getitemdata($unequipped['itemid'], 0);
$itemlay->postitemdata();
if ($unequipped['slot'] == 3) {
$itemurl = "profile.php?open={$unequipped['itemid']}";
} else {
$itemurl = "itemlookup.php?id={$unequipped['itemid']}&owner={$stat['id']}";
}
?>
<td align="left" valign="top">
<table border="0">
<tr>
<td align="left" valign="center" height="96" width="62">
<a href=<?php
$itemurl;
?>