$x = $x + 1; $prepressrownum[$x] = $type; $validation_script .= ' addToValidate("EditView", "' . $prepresslines[$i]->type . '_count_' . $prepresslines[$i]->side . '_' . $index[$type] . '", "int",true, ""); '; } if ($index['ctp_a'] > 0 || $index['ctp_b'] > 0) { $validation_script .= 'toggleDisplay("ctp");'; } if ($index['flm_a'] > 0 || $index['flm_b'] > 0) { $validation_script .= 'toggleDisplay("film");'; } for ($i = 0; $i < count($prepressrownum); $i++) { $type = $prepressrownum[$i]; $xtpl->assign($prepressrownum[$i], $prepressrows[$type]); } //Assign Ink $inklines = $focus->getInkRows(); $index_inktypes = array(); if (count($prepresslines) == 0) { $xtpl->assign("inks_names_side_a", ""); $xtpl->assign("inks_names_side_b", ""); $xtpl->assign("inkId_side_a", ""); $xtpl->assign("inkId_side_b", ""); $x = -1; } else { $x = -1; $inktypes = array(); } for ($i = 0; $i < count($inklines); $i++) { $type = "side_" . $inklines[$i]->side; if (empty($inktypes[$type]) || is_null($inktypes[$type])) { $inktypes[$type] = "";
$estComps = new EstimateComponents(); $estComps->retrieve($list[$i]); //get the $mod_strings from EstimateComponents module $comp_mod_strings = return_module_language($current_language, "EstimateComponents"); $description = nl2br(url2html($estComps->description)); $type = $app_list_strings['type_options'][$estComps->type]; $color = $estComps->color_side_a . "x" . $estComps->color_side_b; $fsize = $estComps->fsize_h . "x" . $estComps->fsize_w; $base = $estComps->base_x . "x" . $estComps->base_y; $bleed_size = $estComps->bleed_size_x . "x" . $estComps->bleed_size_y; $child = $estComps->child_x . "x" . $estComps->child_y; $run_size = $estComps->run_size_x . "x" . $estComps->run_size_y; $pressformat = $estComps->pressformat_x . "x" . $estComps->pressformat_y; $colorSideA = $comp_mod_strings["LBL_COLOR_SIDE_A"] . "(" . $estComps->color_side_a . ")"; $colorSideB = $comp_mod_strings["LBL_COLOR_SIDE_B"] . "(" . $estComps->color_side_b . ")"; $ink_rows = $estComps->getInkRows(); $inks_side_a = array(); $inks_side_b = array(); for ($i = 0; $i < count($ink_rows); $i++) { if ($ink_rows[$i]->side == "a") { $side_a = array(); $side_a['name'] = $estComps->getInkNames($ink_rows[$i]->color_id); $side_a['id'] = $ink_rows[$i]->color_id; $inks_side_a[] = $side_a; } if ($ink_rows[$i]->side == "b") { $side_b = array(); $side_b['name'] = $estComps->getInkNames($ink_rows[$i]->color_id); $side_b['id'] = $ink_rows[$i]->color_id; $inks_side_b[] = $side_b; }