Example #1
0
        }
        ?>
		
<?php 
        // Render list options (header, right)
        $deudas_list->ListOptions->Render("header", "right");
        ?>
	</tr>
</thead>
<tbody>
<?php 
        if ($deudas->CurrentAction == "add" || $deudas->CurrentAction == "copy") {
            $deudas_list->RowIndex = 0;
            $deudas_list->KeyCount = $deudas_list->RowIndex;
            if ($deudas->CurrentAction == "add") {
                $deudas_list->LoadDefaultValues();
            }
            if ($deudas->EventCancelled) {
                // Insert failed
                $deudas_list->RestoreFormValues();
            }
            // Restore form values
            // Set row properties
            $deudas->ResetAttrs();
            $deudas->RowAttrs = array_merge($deudas->RowAttrs, array('data-rowindex' => 0, 'id' => 'r0_deudas', 'data-rowtype' => EW_ROWTYPE_ADD));
            $deudas->RowType = EW_ROWTYPE_ADD;
            // Render row
            $deudas_list->RenderRow();
            // Render list options
            $deudas_list->RenderListOptions();
            $deudas_list->StartRowCnt = 0;