Esempio n. 1
0
?>
        </tbody>
    </table>
</div>
<div>
    <table class="acl_section">
        <thead>
            <tr>
                <th style="width: 50px"></th>
                <th>Serviço</th>
                <th>Preço</th>
            </tr>
        </thead>
        <tbody id="tipo_item_2_adicionados">
            <?php 
echo OrdemServicoHelper::renderItensOS(OrdemServicoItem::SERVICO, $oServicos, $model->ordemServicoItens);
?>
            <?php 
for ($i = 14000; $i < 14003; $i++) {
    $return = '<tr>';
    $return .= '<td style="width: 50px">';
    $return .= '<input preco_variavel="1" class="selecionaItem" tipo_item="' . OrdemServicoItem::SERVICO . '" item_id="0" identificador="' . $i . '" type="checkbox" value="0" name="LogItemNaoCadastrado[Item][' . OrdemServicoItem::SERVICO . '][' . $i . '][id]">';
    $return .= '</td>';
    $return .= '<td>';
    $return .= '<input placeholder="Outros" disabled="disabled" class="titulo item_' . OrdemServicoItem::SERVICO . '_' . $i . '" tipo_item="' . OrdemServicoItem::SERVICO . '" item_id="0" type="text" value="" name="LogItemNaoCadastrado[Item][' . OrdemServicoItem::SERVICO . '][' . $i . '][titulo]">';
    $return .= '</td>';
    $return .= '<td>';
    $return .= '<input class="preco item_' . OrdemServicoItem::SERVICO . '_' . $i . '" disabled="disabled" type="text" value="0" name="LogItemNaoCadastrado[Item][' . OrdemServicoItem::SERVICO . '][' . $i . '][preco]">';
    $return .= '</td>';
    $return .= '</tr>';
    echo $return;
Esempio n. 2
0
echo OrdemServicoHelper::renderItens(1, $model->ordemServicoItens, false);
?>
                    </tbody>
                </table>
            </div>
            <div>
                <table class="acl_section">
                    <thead>
                        <tr>
                            <th>Serviços</th>
                            <th>Preço</th>
                        </tr>
                    </thead>
                    <tbody id="tipo_item_1_adicionados">
                        <?php 
echo OrdemServicoHelper::renderItens(2, $model->ordemServicoItens, false);
?>
                    </tbody>
                </table>
            </div>
            <p><strong id="valorTotal">Total: R$ <?php 
echo FormatHelper::valorMonetario($valor_total);
?>
</strong></p>
        </div>
    </div>

    <div class="row os-escolher-formas-pagamento">
        <?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'ordem-servico-form', 'enableAjaxValidation' => false));
?>