$inktypes = array(); } for ($i = 0; $i < count($inklines); $i++) { $type = "side_" . $inklines[$i]->side; if (empty($inktypes[$type]) || is_null($inktypes[$type])) { $inktypes[$type] = ""; } if (empty($inktypes[$type]['id']) || is_null($inktypes[$type]['id'])) { $inktypes[$type]['id'] = ""; } if (empty($inktypes[$type]['name']) || is_null($inktypes[$type]['name'])) { $inktypes[$type]['name'] = ""; } //$index[$type]++; $inktypes[$type]['id'] = $inktypes[$type]['id'] . $focus->getInkRow($inklines[$i], $i, true); $inktypes[$type]['name'] = $inktypes[$type]['name'] . $focus->getInkNames($inklines[$i]->color_id, $i, true) . ','; $x = $x + 1; $index_inktypes[$x] = $type; } for ($i = 0; $i < count($index_inktypes); $i++) { $type = $index_inktypes[$i]; $xtpl->assign("inks_names_" . $index_inktypes[$i], $inktypes[$type]['name']); $xtpl->assign("inkId_" . $index_inktypes[$i], $inktypes[$type]['id']); } if (isset($_REQUEST['return_module'])) { $xtpl->assign("RETURN_MODULE", $_REQUEST['return_module']); } if (isset($_REQUEST['return_action'])) { $xtpl->assign("RETURN_ACTION", $_REQUEST['return_action']); } if (isset($_REQUEST['return_id'])) {
$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; } } //begin the Body's html creation (the Header and Footer are called later) $compsHtml = ""; $compsHtml .= $pdf->sectionHeading($comp_mod_strings["LBL_MODULE_NAME"], $estComps->name, $estComps->number); $compsHtml .= $pdf->createHeading($comp_mod_strings["LBL_PRODUCT_INFORMATION"]); $compsHtml .= $pdf->createTr(false, $comp_mod_strings["LBL_CODE"], $product->pnum, $comp_mod_strings["LBL_ACCOUNT_NAME"], $product->account_name);