You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

157 lines
4.0 KiB

14 years ago
<?php
/*
*
* @copyright (c) 2010 animegame.eu
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
include_once(ROOT_PATH.'/include/config.inc.php');
14 years ago
if($item_id) {
$item_info = mysqli_fetch_array(db_query("SELECT * FROM item WHERE id='$item_id' LIMIT 1"));
14 years ago
?>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="25">
<tr>
<td width="504" height="25" colspan="2">
<p align="center"><b><?php echo $item_info['name']; ?></b></td>
14 years ago
</tr>
<tr>
<td width="158" height="25">
<p align="center"><b>Name</b></td>
<td width="340" height="25">&nbsp;<?php echo $item_info['name']; ?></td>
14 years ago
</tr>
<tr>
<td width="158" height="25">
<p align="center"><b>St&auml;rke</b></td>
<td width="340" height="25">&nbsp;<?php echo $item_info['starke']; ?></td>
14 years ago
</tr>
<tr>
<td width="158" height="25">
<p align="center"><b>Verteidigung</b></td>
<td width="340" height="25">&nbsp;<?php echo $item_info['verteidigung']; ?></td>
14 years ago
</tr>
<tr>
<td width="158" height="25">
<p align="center"><b>Geschwindigkeit</b></td>
<td width="340" height="25">&nbsp;<?php echo $item_info['speed']; ?></td>
14 years ago
</tr>
<tr>
<td width="158" height="25">
<p align="center"><b>HP</b></td>
<td width="340" height="25">&nbsp;<?php echo $item_info['hp']; ?></td>
14 years ago
</tr>
<tr>
<td width="158" height="25">
<p align="center"><b>MP</b></td>
<td width="340" height="25">&nbsp;<?php echo $item_info['mp']; ?></td>
14 years ago
</tr>
<tr>
<td width="158" height="25">
<p align="center"><b>Level</b></td>
<td width="340" height="25">&nbsp;<?php echo $item_info['level']; ?></td>
14 years ago
</tr>
<tr>
<td width="158" height="25">
<p align="center"><b>Geld</b></td>
<td width="340" height="25">&nbsp;<?php echo $item_info['geld']; ?></td>
14 years ago
</tr>
<tr>
<td width="158" height="25">
<p align="center"><b>Type</b></td>
<td width="340" height="25">&nbsp;<?php echo $item_info['type']; ?></td>
14 years ago
</tr>
<tr>
<td width="158" height="25">
<p align="center"><b>Info</b></td>
<td width="340" height="25">&nbsp;<?php echo $item_info['info']; ?></td>
14 years ago
</tr>
<?php
$rassen_1 = explode(",", $item_info['rassen']);
14 years ago
$runde = 0;
include(ROOT_PATH.'/include/array.php');
14 years ago
while($runde < count($rassen_1)){
$runden = $runde+1;
$rassen_na = $rassen_1[$runde];
$rassen_name = $rassen_werte[$rassen_na];
?>
<tr>
<td width="158" height="25">
<p align="center"><b>Rassen <?php echo $runden; ?></b></td>
<td width="340" height="25">&nbsp;<?php echo $rassen_name; ?></td>
</tr>
<?php
$runde++;
}
?>
</table>
</center>
</div>
<?php
exit;
}
?>
<html>
<body>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="4">
<tr>
<td width="504" height="25" colspan="2">
<p align="center"><b>Alle Attacken</b></td>
</tr>
<?php
if($pagenum == "" or $pagenum == 1) { $pagenum = 0; }
if($pagenum != "" and $pagenum != 1) { $pagenum = ($pagenum - 1) * 10; }
$item = db_query("SELECT name, id FROM item LIMIT $pagenum, 10");
while($row = mysqli_fetch_array($item)) {
14 years ago
?>
<tr>
<td width="158" height="25">
<p align="center"><b>Name</b></td>
<td width="340" height="25">&nbsp;<?php echo "<a href=index.php?as=info/items&at_id=$row[id]>$row[name]</a>"; ?></td>
</tr>
<?php
}
$Total = mysqli_num_rows(db_query("SELECT id FROM item"));
14 years ago
$pages = ceil($Total/10);
$z = 1;
$i = 0;
while($pages > $i){
$seiten .= "&nbsp;<a href='index.php?as=info/items&pagenum=$z'>$z</a>&nbsp;";
$z++;
$i++;
}
?>
<tr>
<td width="158" height="25">
<p align="center"><b>Seiten</b></td>
<td width="340" height="25">&nbsp;<?php echo $seiten; ?></td>
</tr>
</table>
</center>
</div>
</body>
</html>