Exemplo n.º 1
0
	'field_to_name_array' => array(
		'id' => 'assigned_user_id',
		'name' => 'assigned_user_name',
		),
	); 
$xtpl->assign('encoded_users_popup_request_data', $json->encode($popup_request_data));
*/
$popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'EditView', 'field_to_name_array' => array('id' => 'pref_supplier_id', 'name' => 'pref_supplier_name'));
$xtpl->assign('encoded_supplier_popup_request_data', $json->encode($popup_request_data));
$xtpl->assign("USER_DATEFORMAT", '(' . $timedate->get_user_date_format() . ')');
$xtpl->assign("CALENDAR_DATEFORMAT", $timedate->get_cal_date_format());
$xtpl->assign("THEME", $theme);
require_once 'include/QuickSearchDefaults.php';
//Goodwill
$qsd = new QuickSearchDefaults();
$sqs_objects = array('man' => $qsd->getQSMan(), 'assigned_user_name' => $qsd->getQSUser());
$quicksearch_js = $qsd->getQSScripts();
//End Goodwill
$quicksearch_js .= '<script type="text/javascript" language="javascript">sqs_objects = ' . $json->encode($sqs_objects) . '</script>';
$xtpl->assign("JAVASCRIPT", get_set_focus_js() . get_sizeformat_js() . $quicksearch_js);
$xtpl_data = $focus->get_xtemplate_data();
$xtpl->assign('Paper', $xtpl_data);
$xtpl->assign('SIZE_H', $xtpl_data['SIZE_H']);
$xtpl->assign('SIZE_W', $xtpl_data['SIZE_W']);
$xtpl->assign('format_id', $xtpl_data['FORMAT_ID']);
//BEGIN Paper Dropdowns
//$xtpl->assign("SIZE_UNIT", get_select_options_with_id($app_list_strings['paper_size_unit_dom'], $focus->size_unit));
//$xtpl->assign("WEIGHT_UNIT", get_select_options_with_id($app_list_strings['paper_weight_unit_dom'], $focus->weight_unit));
//$xtpl->assign("CHROME_OPTIONS", get_select_options_with_id($app_list_strings['paper_chrome_dom'], $focus->chrome));
//$xtpl->assign("TEXTURE_OPTIONS", get_select_options_with_id($app_list_strings['paper_texture_dom'], $focus->texture));
//$xtpl->assign("ABSORBTION_OPTIONS", get_select_options_with_id($app_list_strings['paper_absorption_dom'], $focus->absorbtion));