本文整理汇总了PHP中item::basiclayout方法的典型用法代码示例。如果您正苦于以下问题:PHP item::basiclayout方法的具体用法?PHP item::basiclayout怎么用?PHP item::basiclayout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类item
的用法示例。
在下文中一共展示了item::basiclayout方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rand
$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'];
?>
</b></TD>
<?php
if ($itemtrcount == $itemtrcount1) {
$itemtrcount1 += 5;
?>
</tr><tr><?php
} else {
}
$itemtrcount += 1;
}
示例2:
$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
$itemlay->basiclayout(0);
?>
></a><br>
<input type="checkbox" name="dropitem[]" value="<?php
$vault1['itemid'];
?>
">Drop Item
</td>
<?php
if ($itemtrcount == $itemtrcount1) {
$itemtrcount1 += 4;
?>
</tr><tr><?php
} else {
}
示例3:
$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
$itemlay->basiclayout(0);
?>
><?php
if ($logged_in and $id['id'] == $stat['id']) {
?>
</a><?php
}
}
?>
<div></td>
<td align="left" valign="bottom"><div style="width:45px;height:45px;border:2px inset;vertical-align:bottom;">
<?php
$neck = mysql_query("select * from " . PLAYERS_ITEMS_TABLE . " where owner={$id['id']} and slot='n' and status='e'");
示例4: while
<TR><br>
<?php
$itemtrcount = 1;
$itemtrcount1 = 5;
$item = mysql_query("select * from pshopitems where owner={$fetchnow['shopid']}");
while ($item1 = mysql_fetch_assoc($item)) {
$itemlay->getitemdata($item1['itemid'], 1);
$itemlay->postitemdata();
?>
<TD align="center" valign="center" width=20%>
<img src="images/items/<?php
$item1['pic'];
?>
" <?php
$itemlay->basiclayout(1);
?>
border="1"></a><br>Cost: <?php
$item1['amount'];
?>
points<br>
<input type="checkbox" name="with[]" value="<?php
$item1['itemid'];
?>
"> Withdraw<br></TD>
<?php
if ($itemtrcount == $itemtrcount1) {
$itemtrcount1 += 5;
?>
</tr><tr><?php
} else {
示例5: commas
$itemlay->getitemdata($shop1['itemid'], 2);
$itemlay->postitemdata();
?>
<TD align="center" valign="center" width="20%">
<a href="itembuy.php?itemid=<?php
$shop1['itemid'];
?>
&owner=<?php
$own;
?>
"><img src="images/items/<?php
$shop1['pic'];
?>
" <?php
$itemlay->basiclayout(2);
?>
border="1"></a>
<br><b><?php
$shop1['name'];
?>
</b>
<br>Cost: <?php
echo commas($shop1['cost']);
?>
gold
<br>In stock: <?php
echo commas($shop1['stock']);
?>
</TD>