pquery("select * from vtiger_settings_field where name = ? and active=0",array('LBL_FIELDFORMULAS')); if($adb->num_rows($sql_result) > 0) { $menu_array['FieldFormulas']['location'] = $adb->query_result($sql_result, 0, 'linkto').'&formodule='.$module; $menu_array['FieldFormulas']['image_src'] = $adb->query_result($sql_result, 0, 'iconpath'); $menu_array['FieldFormulas']['desc'] = getTranslatedString($adb->query_result($sql_result, 0, 'description'), 'FieldFormulas'); $menu_array['FieldFormulas']['label'] = getTranslatedString($adb->query_result($sql_result, 0, 'name'), 'FieldFormulas'); } } if(vtlib_isModuleActive('Tooltip')){ $sql_result = $adb->pquery("select * from vtiger_settings_field where name = ? and active=0",array('LBL_TOOLTIP_MANAGEMENT')); if($adb->num_rows($sql_result) > 0) { $menu_array['Tooltip']['location'] = $adb->query_result($sql_result, 0, 'linkto').'&formodule='.$module; $menu_array['Tooltip']['image_src'] = vtiger_imageurl($adb->query_result($sql_result, 0, 'iconpath'), $theme); $menu_array['Tooltip']['desc'] = getTranslatedString($adb->query_result($sql_result, 0, 'description'),'Tooltip'); $menu_array['Tooltip']['label'] = getTranslatedString($adb->query_result($sql_result, 0, 'name'),'Tooltip'); } } $menu_array['LeadsMapping']['location'] = 'index.php?module=Settings&action=CustomFieldList&parenttab=Settings&formodule='.$module; $menu_array['LeadsMapping']['image_src'] = vtiger_imageurl('custom.gif', $theme); $menu_array['LeadsMapping']['desc'] = getTranslatedString('LEADS_CUSTOM_FIELD_MAPPING_DESCRIPTION'); $menu_array['LeadsMapping']['label'] = getTranslatedString('LEADS_CUSTOM_FIELD_MAPPING'); $sql_result = $adb->pquery("SELECT * FROM vtiger_settings_field WHERE name = ? AND active=0",array('LBL_WORKFLOW_LIST')); if($adb->num_rows($sql_result) > 0) { $menu_array['Workflow']['location'] = $adb->query_result($sql_result, 0, 'linkto').'&list_module='.$module; $menu_array['Workflow']['image_src'] = vtiger_imageurl($adb->query_result($sql_result, 0, 'iconpath'), $theme); $menu_array['Workflow']['desc'] = getTranslatedString($adb->query_result($sql_result, 0, 'description'),'com_vtiger_workflow'); $menu_array['Workflow']['label'] = getTranslatedString($adb->query_result($sql_result, 0, 'name'),'com_vtiger_workflow'); } //add blanks for 3-column layout $count = count($menu_array)%3; if($count>0) { for($i=0;$i<3-$count;$i++) { $menu_array[] = array(); } } $smarty->assign("MOD",$mod_strings); $smarty->assign("APP",$app_strings); $smarty->assign("IMAGE_PATH", "themes/$theme/images/"); $smarty->assign('MODULE',$module); $smarty->assign('MODULE_LBL',getTranslatedString($module, $module)); $smarty->assign('MENU_ARRAY', $menu_array); $smarty->display(vtlib_getModuleTemplate('Vtiger','Settings.tpl')); ?>