Exemplo n.º 1
0
for ($i = 0; $i < count($layoutlines); $i++) {
    $fieldcount = count($layoutlines[$i]);
    $xtpl->assign("LAYOUTROWS", $focus->getLayoutRow($layoutlines[$i], $i, true));
    $xtpl->parse("main.row1");
}
//Assign Operations list
$operationlines = $focus->getOperationsRows();
if (count($operationlines) == 0) {
    $xtpl->assign("CUTTING_OPERATIONS", "");
    $xtpl->assign("OTHER_OPERATIONS", "");
}
for ($i = 0; $i < count($operationlines); $i++) {
    $operation_type = $focus->getOperationtype($operationlines[$i]->operation_id);
    if ($operation_type == "Книговезане") {
        $validation_script .= ' addToValidate("EditView", "CutngOperations_count_' . $i . '", "int",true, ""); ';
        $xtpl->assign("CUTTING_OPERATIONS", $focus->getOperationsRow($operationlines[$i], $i, true));
        $xtpl->parse("main.cuttingoperation_row1");
    } else {
        $validation_script .= ' addToValidate("EditView", "OtherOperations_count_' . $i . '", "int",true, ""); ';
        $xtpl->assign("OTHER_OPERATIONS", $focus->getOperationsRow($operationlines[$i], $i, true));
        $xtpl->parse("main.otheroperation_row1");
    }
    //
}
//Assign Prepress
$prepresslines = $focus->getPrepressRows();
$prepressrownum = array();
if (count($prepresslines) == 0) {
    $xtpl->assign("ctp_a", "");
    $xtpl->assign("ctp_b", "");
    $xtpl->assign("film_a", "");