assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); 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'])) $xtpl->assign("RETURN_ID", $_REQUEST['return_id']); if (empty($_REQUEST['return_id'])) $xtpl->assign("RETURN_ACTION", 'index'); /* $json = getJSONobj(); $scriptOpt = ''; echo $scriptOpt; */ $cc = EcmGroupSale::loadSettings(); if(is_admin($current_user)) { $xtpl->assign("DEFAULT_PAYMENT_CONDITION_OPTIONS", get_select_options_with_id(EcmGroupSale::getPositionList('ecmpaymentconditions',true),$cc['default_payment_condition'])); $xtpl->assign("DEFAULT_DELIVERY_CONDITION_OPTIONS", get_select_options_with_id(EcmGroupSale::getPositionList('ecmdeliveryconditions',true),$cc['default_delivery_condition'])); $xtpl->assign("DEFAULT_DOCUMENT_TEMPLATE_OPTIONS", get_select_options_with_id(EcmGroupSale::getPositionList('ecmdocumenttemplates'),$cc['default_document_template'])); $roles = EcmGroupSale::getPositionList('acl_roles'); $xtpl->assign("DEFAULT_REPRESENTATIVE_ROLE_ID_OPTIONS", get_select_options_with_id($roles,$cc['default_representative_role_id'])); $xtpl->assign("DEFAULT_REPRESENTATIVE_EXTRA_ROLE_ID_OPTIONS", get_select_options_with_id($roles,$cc['default_representative_extra_role_id'])); $xtpl->assign("DEFAULT_MANAGER_ROLE_ID_OPTIONS", get_select_options_with_id($roles,$cc['default_manager_role_id'])); $xtpl->assign("CREATING_INVOICE_DIRECT_FROM_QUOTE", ($cc['creating_invoice_direct_from_quote']==1?'CHECKED':'')); $xtpl->assign("CHECKBOX_DEMO", ($cc['checkbox_demo']==1?'CHECKED':'')); $xtpl->assign("CHECKBOX_SHOW_IMAGES_ON_OFFERS", ($cc['show_images_on_offers']==1?'CHECKED':'')); //added 23.12.2009 michal $xtpl->assign("ROWS_ON_ITEM_LIST_GLOBAL", $cc['rows_on_item_list_global']); $xtpl->assign("ROW_ITEM_HEIGHT_GLOBAL", $cc['row_item_height_global']); $xtpl->assign("ROW_ITEM_HEIGHT_SELECTED_GLOBAL", $cc['row_item_height_selected_global']); $xtpl->assign("QUICK_PRODUCT_ITEM_ADDING_GLOBAL", ($cc['quick_product_item_adding_global']==1?'CHECKED':'')); $xtpl->assign("SHOW_PDF_IN_DIV_GLOBAL", ($cc['show_pdf_in_div_global']==1?'CHECKED':'')); $xtpl->parse("main.admin_settings"); } if($cc['settings_user_save'])$xtpl->assign("ROWS_ON_ITEM_LIST", $cc['rows_on_item_list']); else $xtpl->assign("ROWS_ON_ITEM_LIST", $cc['rows_on_item_list_global']); if($cc['settings_user_save'])$xtpl->assign("ROW_ITEM_HEIGHT", $cc['row_item_height']); else $xtpl->assign("ROW_ITEM_HEIGHT", $cc['row_item_height_global']); if($cc['settings_user_save'])$xtpl->assign("ROW_ITEM_HEIGHT_SELECTED", $cc['row_item_height_selected']); else $xtpl->assign("ROW_ITEM_HEIGHT_SELECTED", $cc['row_item_height_selected_global']); if($cc['settings_user_save'])$xtpl->assign("QUICK_PRODUCT_ITEM_ADDING", ($cc['quick_product_item_adding']==1?'CHECKED':'')); else $xtpl->assign("QUICK_PRODUCT_ITEM_ADDING", ($cc['quick_product_item_adding_global']==1?'CHECKED':'')); //added 23.12.2009 michal if($cc['settings_user_save'])$xtpl->assign("SHOW_PDF_IN_DIV", ($cc['show_pdf_in_div']==1?'CHECKED':'')); else $xtpl->assign("SHOW_PDF_IN_DIV", ($cc['show_pdf_in_div_global']==1?'CHECKED':'')); $xtpl->parse("main.my_own_settings"); echo "\n
\n"; echo get_module_title('EcmGroupSales', $GLOBALS['mod_strings']['LBL_SETTINGS_TITLE'], true); echo "\n
\n"; $tabs=""; $tabs.='