예제 #1
0
//$xtpl->assign('color_side_b', $focus->colors_side_b);
$xtpl->assign('colors_a', $focus->colors_a);
$xtpl->assign('colors_b', $focus->colors_b);
$xtpl->assign('color_side_a_options', get_select_options_with_id($app_list_strings['color_side_a'], $focus->color_side_a));
$xtpl->assign('color_side_b_options', get_select_options_with_id($app_list_strings['color_side_b'], $focus->color_side_b));
$xtpl->assign('description', $focus->description);
$xtpl->assign('run_style_options', get_select_options_with_id($app_list_strings['layout_type_options'], ''));
$xtpl->assign("client_paper_options", get_select_options_with_id($app_list_strings['client_paper_options'], $focus->client_paper));
if (empty($focus->status) || is_null($focus->status)) {
    $xtpl->assign('status', get_select_options_with_id($app_list_strings['estimate_component_status_draft'], $focus->status));
} else {
    $xtpl->assign('status', get_select_options_with_id($app_list_strings['estimate_component_status_' . $focus->status], $focus->status));
}
$app_list_strings['products_format_options'] = $format->Get_Dropdown_Data();
$xtpl->assign("FORMAT_OPTIONS", get_select_options_with_id($app_list_strings['products_format_options'], $focus->base_format));
$app_list_strings['products_format_options'] = $pressformat->Get_Dropdown_Data();
$xtpl->assign("PRESS_FORMAT_OPTIONS", get_select_options_with_id($app_list_strings['products_format_options'], $focus->pressformat));
$xtpl->assign("base_x", $focus->base_x);
$xtpl->assign("base_y", $focus->base_y);
if (!empty($focus->child_x) && !empty($focus->child_y)) {
    $app_list_strings['products_format_options'] = $childformat->Get_Dropdown_Data($format->get_parent_id($focus->base_format));
    $xtpl->assign("CHILD_FORMAT_OPTIONS", get_select_options_with_id($app_list_strings['products_format_options'], $focus->child_format));
    $xtpl->assign("child_x", $focus->child_x);
    $xtpl->assign("child_y", $focus->child_y);
    $select_child = '';
    if (!is_null($focus->child_format) && !empty($focus->child_format)) {
        $select_child = "<script type='text/javascript'> getBaseFormat('{$focus->child_format}','child_format','get_estimate_base_format') </script>";
    }
    $xtpl->parse("main.child_format");
}
$xtpl->assign("fsize_h", $focus->fsize_h);
예제 #2
0
global $app_list_strings;
global $current_language;
global $current_user;
global $sugar_version, $sugar_config;
$focus = new Pressformat();
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true);
echo "\n</p>\n";
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
$xtpl = new XTemplate('modules/Pressformat/Formats.html');
///
/// Assign the template variables
///
$xtpl->assign('MOD', $mod_strings);
$xtpl->assign('APP', $app_strings);
//$xtpl->assign("JAVASCRIPT", get_set_focus_js().get_validate_record_js() . $quicksearch_js);
$xtpl->assign("THEME", $theme);
$app_list_strings['format_options'] = $focus->Get_Dropdown_Data();
$xtpl->assign("FORMAT_OPTIONS", get_select_options_with_id($app_list_strings['format_options'], ''));
$xtpl->parse("main");
$xtpl->out("main");
/*require_once('include/javascript/javascript.php');
$javascript = new javascript();
$javascript->setFormName('EditView');
$javascript->setSugarBean($focus);
$javascript->addAllFields('');*/
//$javascript->addToValidateBinaryDependency('assigned_user_name', 'alpha', $app_strings['ERR_SQS_NO_MATCH_FIELD'] . $app_strings['LBL_ASSIGNED_TO'], 'false', '', 'assigned_user_id');
//echo $javascript->getScript();