} 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", ""); $xtpl->assign("film_b", ""); $xtpl->assign("prepress_js", ""); } else { $xtpl->assign("prepress_js", prepress_js()); $x = -1; $prepressrows = array(); $index = array("ctp_a" => $q = 0, "ctp_b" => $p = 0, "flm_a" => $r = 0, "flm_b" => $t = 0); } for ($i = 0; $i < count($prepresslines); $i++) { $type = $prepresslines[$i]->type . "_" . $prepresslines[$i]->side;
$compsHtml .= $pdf->createTr(false, $comp_mod_strings["LBL_PARENT_ID"], $estComps->parent_name, $comp_mod_strings["LBL_NUMBER"], $estComps->number); $compsHtml .= $pdf->createTr(false, $comp_mod_strings["LBL_CLIENTREQUEST"], $focus->name, $comp_mod_strings["LBL_COLOR"], $color); $compsHtml .= $pdf->createTr(false, $comp_mod_strings["LBL_TYPE"], $type, $comp_mod_strings["LBL_QUANTITY"], $estComps->quantity); $compsHtml .= $pdf->createTr(false, $comp_mod_strings["LBL_PAPER"], $estComps->paper, $comp_mod_strings["LBL_VOLUME"], $estComps->volume); $compsHtml .= $pdf->createTr(false, $comp_mod_strings["LBL_FORMAT"], $fsize, $comp_mod_strings["LBL_STATUS"], $estComps->status); $compsHtml .= $pdf->createTr(true, $comp_mod_strings["LBL_DESCRIPTION"], $description); $compsHtml .= $pdf->createHeading($comp_mod_strings["LBL_COMPONENT_FORMATS"]); $compsHtml .= $pdf->createTr(false, $comp_mod_strings["LBL_FORMAT"], $fsize, $comp_mod_strings["LBL_BASE_FORMAT"], $base); $compsHtml .= $pdf->createTr(false, $comp_mod_strings["LBL_BLEED_FORMAT"], $bleed_size, $comp_mod_strings["LBL_CHILD_FORMAT"], $child); $compsHtml .= $pdf->createTr(true, $comp_mod_strings["LBL_RUN_FORMAT"], $run_size, $comp_mod_strings["LBL_PRESS_FORMAT"], $pressformat); $compsHtml .= $pdf->createHeading($comp_mod_strings["LBL_COMPONENT_COLORS"]); $compsHtml .= $pdf->createTr(true, $colorSideA, $estComps->inksDetailView($inks_side_a), $colorSideB, $estComps->inksDetailView($inks_side_b)); //Prepress $compsHtml .= $pdf->createHeading($comp_mod_strings["LBL_COMPONENT_PREPRESS"]); $compsHtml .= "\t<tr bgcolor=" . $pdfColors["label"] . " >\n\t\t\t\t\t\t<td ><font size=" . $pdfFontSize["default"] . ">" . $comp_mod_strings["LBL_PREPRESS_NAME"] . "</font></td>\n\t\t\t\t\t\t<td ><font size=" . $pdfFontSize["default"] . ">" . $comp_mod_strings["LBL_TYPE"] . "</font></td>\n\t\t\t\t\t <td ><font size=" . $pdfFontSize["default"] . ">" . $comp_mod_strings["LBL_PREPRESS_FORMAT"] . "</font></td>\n\t\t\t\t\t <td ><font size=" . $pdfFontSize["default"] . ">" . $comp_mod_strings["LBL_PREPRESS_GAUGE"] . "</font></td>\n\t\t\t\t\t <td ><font size=" . $pdfFontSize["default"] . ">" . $comp_mod_strings["LBL_SIDE"] . "</font></td>\n\t\t\t\t\t <td ><font size=" . $pdfFontSize["default"] . ">" . $comp_mod_strings["LBL_PREPRESS_COUNT"] . "</font></td>\n\t\t\t\t\t</tr><tr><td height=1px bgcolor=#fff colspan=3></td></tr>"; $prepress_rows = $estComps->getPrepressRows(); for ($j = 0; $j < count($prepress_rows); $j++) { $compsHtml .= $estComps->getPrepressRowPdf($prepress_rows[$j], $j); } $compsHtml .= "</table>"; //Press $compsHtml .= $pdf->createHeading($comp_mod_strings["LBL_LINEITEMS"]); $compsHtml .= "\t<tr bgcolor=" . $pdfColors["label"] . ">\n\t\t\t\t\t\t<td ><font size=" . $pdfFontSize["default"] . ">" . $comp_mod_strings["LBL_NUMBER_LOTS"] . "</font></td>\n\t\t\t\t\t\t<td ><font size=" . $pdfFontSize["default"] . ">" . $comp_mod_strings["LBL_NUMBER_UNITS"] . "</font></td>\n\t\t \t\t\t<td ><font size=" . $pdfFontSize["default"] . ">" . $comp_mod_strings["LBL_RUN_STYLE"] . "</font></td>\n\t\t\t\t\t</tr><tr><td height=1px bgcolor=#fff colspan=3></td></tr>"; $layoutrows = $estComps->getLayoutRows(); for ($j = 0; $j < count($layoutrows); $j++) { $compsHtml .= $estComps->getLayoutRowPdf($layoutrows[$j], $j); } $compsHtml .= "</table>"; //Post-Press $compsHtml .= $pdf->createHeading($comp_mod_strings["LBL_POSTPRESS"]); $compsHtml .= "\t<tr bgcolor=" . $pdfColors["label"] . ">\n\t\t\t\t\t\t<td ><font size=" . $pdfFontSize["default"] . ">" . $comp_mod_strings["LBL_OPERATION_NAME"] . "</font></td>\n\t\t\t\t\t\t<td ><font size=" . $pdfFontSize["default"] . ">" . $comp_mod_strings["LBL_TYPE"] . "</font></td>\n\t\t\t\t\t <td ><font size=" . $pdfFontSize["default"] . ">" . $comp_mod_strings["LBL_PREPRESS_COUNT"] . "</font></td>\n\t\t\t\t\t</tr><tr><td height=1px bgcolor=#fff colspan=3></td></tr>";