<?php if (!defined('sugarEntry') || !sugarEntry) { die('Not A Valid Entry Point'); } require_once 'modules/ProductComponents/ProductComponents.php'; if (isset($_REQUEST['paper_id']) && !empty($_REQUEST['paper_id'])) { $paperid = $_REQUEST['paper_id']; } $focus = new ProductComponents(); $paper_data = $focus->get_paper_info($paperid); echo '<input name="x" id="x" value=' . $paper_data['size_h'] . '>'; echo '<input name="y" id="y" value=' . $paper_data['size_w'] . '>'; echo '<input name="weight" id="weight" value=' . $paper_data['weight'] . '>'; echo '<input name="type" id="type" value=' . $paper_data['chrome'] . '>'; echo '<input name="texture" id="texture" value=' . $paper_data['texture'] . '>'; echo '<input name="color" id="color" value=' . $paper_data['color'] . '>'; echo '<input name="absorbtion" id="absorbtion" value=' . $paper_data['absorbtion'] . '>'; echo '<input name="side" id="side" value=' . $paper_data['side'] . '>';
// /////////////////////////////////////// if (isset($_REQUEST['stat_action']) && !empty($_REQUEST['stat_action']) && !is_null($_REQUEST['stat_action'])) { $xtpl->assign('stat_action', $_REQUEST['stat_action']); } else { $xtpl->assign('stat_action', ''); } //$options = get_select_options_with_id($app_list_strings['products_components_status_options'], $the_status); //$xtpl->assign('status_options', $options); $xtpl->assign('id', $focus->id); $xtpl->assign('parent_id', $focus->parent_id); $xtpl->assign('parent_name', $focus->parent_name); $xtpl->assign('number', $focus->number); $xtpl->assign('paper', $focus->paper); $xtpl->assign('paperid', $focus->paperid); $paper = $focus->get_paper_info($focus->paperid); $xtpl->assign('papersize_x', $paper['size_h']); $xtpl->assign('papersize_y', $paper['size_w']); $xtpl->assign('paper_type', $paper['chrome']); $xtpl->assign('paper_texture', $paper['texture']); $xtpl->assign('paper_weight', $paper['weight']); $xtpl->assign('paper_color', $paper['color']); $xtpl->assign('paper_absorbtion', $paper['absorbtion']); $xtpl->assign('paper_print_type', $paper['side']); $xtpl->assign('volume', $focus->volume); if (!is_null($focus->quantity) && !empty($focus->quantity)) { $xtpl->assign('quantity', $focus->quantity); } else { $xtpl->assign('quantity', $focus->get_quantity($focus->parent_id)); } $xtpl->assign('machine', $focus->machine);