-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathitens.php
40 lines (40 loc) · 899 Bytes
/
itens.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* vCP
*
* @copyright 2010, Renato Freitas Vassão Neto (Skape)
* @version 1.2
* @modifiedby Skape
* @lastmodified 28-05-2010
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/br/
*/
require('_inc_/header.php');
echo '<h3>Itens</h3><br />';
$vcp->getItens();
$x = $vcp->index;
if(count($x) > 0) {
?>
<table id="itens">
<tr>
<th>#</th>
<th>Item</th>
<th>Qnt</th>
<th>Pontos</th>
</tr>
<?php
for($i = 0, $c = count($x); $i < $c; $i++) {
echo '
<tr>
<td><img src="', $CONFIG['itemUrl'], $x[$i]['item_id'], $CONFIG['itemExt'], '" alt="" /></td>
<td><a href="item.php?id=', $x[$i]['id'], '">', $x[$i]['nome'], '</a></td>
<td>x', $x[$i]['quantidade'], '</td>
<td>', $x[$i]['pontos'], '</td>
</tr>
';
}
} else {
$vcp->setFlash('Não há itens registrados', 'info');
}
?>
</table>
<?php require('_inc_/footer.php'); ?>