Example #1
0
echo _("Weight");
?>
</th>
                            <th><?php 
echo _("Cost");
?>
</th>
                            <th><?php 
echo _("Total");
?>
</th>
                        </tr>                        
                    </thead>
                    <tbody>
                        <?php 
foreach ($personagem->listarItem() as $item) {
    ?>
                        <tr>
                            <td><?php 
    echo $item->getNome();
    ?>
</td>
                            <td class="text-right"><?php 
    echo number_format($item->getPeso(), 2, ',', '.');
    ?>
</td>
                            <td class="text-right"><?php 
    echo number_format($item->getPreco(), 2, ',', '.');
    ?>
</td>
                            <td class="text-center"><?php 
                <?php 
Arma::dropDownList(is_null($arma) ? '' : $arma->getSlug(), 'arma[direita]', '--Equipar Mão Direita--');
?>
                <?php 
$arma = $personagem->getMaoEsquerda();
?>
                <?php 
Arma::dropDownList(is_null($arma) ? '' : $arma->getSlug(), 'arma[esquerda]', '--Equipar Mão Esquerda--');
?>
                <h6><?php 
echo _("Possetions");
?>
</h6>
                <div class="row">
                    <?php 
$itens = $personagem->listarItem();
?>
                    <?php 
for ($i = 0; $i < 8; $i++) {
    ?>
                    <div class="nine columns">
                        <?php 
    list($slug, $item) = each($itens);
    ?>
                        <?php 
    Item::dropDownList(is_null($item) ? '' : $item->getSlug(), 'itens[]', '--Selecione--');
    ?>
                    </div>
                    <div class="three columns">
                        <input type="number" name="quantidade[]" value="<?php 
    echo !is_null($item) ? $item->getQuantidade() : '0';