require_once 'Smarty_setup.php'; require_once 'modules/ModTracker/ModTrackerUtils.php'; global $app_strings, $mod_strings, $current_language, $currentModule, $theme, $current_user; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; if (!is_admin($current_user)) { echo "<table border='0' cellpadding='5' cellspacing='0' width='100%' height='450px'><tr><td align='center'>"; echo "<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 55%; position: relative; z-index: 10000000;'>\n\t\t\t<table border='0' cellpadding='5' cellspacing='0' width='98%'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td rowspan='2' width='11%'><img src='" . vtiger_imageurl('denied.gif', $theme) . "' ></td>\n\t\t\t\t\t<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'><span class='genHeaderSmall'>{$app_strings['LBL_PERMISSION']}</span></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class='small' align='right' nowrap='nowrap'>\n\t\t\t\t\t\t<a href='javascript:window.history.back();'>{$app_strings['LBL_GO_BACK']}</a><br>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</div>"; echo "</td></tr></table>"; die; } $category = getParentTab(); $smarty = new vtigerCRM_Smarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); $smarty->assign('CATEGORY', $category); $tabid = vtlib_purify($_REQUEST['tabid']); $status = vtlib_purify($_REQUEST['status']); if ($status != '' && $tabid != '') { ModTrackerUtils::modTrac_changeModuleVisibility($tabid, $status); } $infomodules = ModTrackerUtils::modTrac_getModuleinfo(); $smarty->assign('INFOMODULES', $infomodules); $smarty->assign('MODULE', $module); if ($_REQUEST['ajax'] != true) { $smarty->display(vtlib_getModuleTemplate($currentModule, 'BasicSettings.tpl')); } else { $smarty->display(vtlib_getModuleTemplate($currentModule, 'BasicSettingsContents.tpl')); }
$customer->displaytype = '3'; $blockInstance = Vtiger_Block::getInstance('LBL_MODCOMMENTS_INFORMATION', $moduleInstance); $blockInstance->addField($customer); $customer->setRelatedModules(array('Contacts')); } $moduleInstance = Vtiger_Module::getInstance('Potentials'); $filter = Vtiger_Filter::getInstance('All', $moduleInstance); $fieldInstance = Vtiger_Field::getInstance('amount', $moduleInstance); $filter->addField($fieldInstance, 6); if (file_exists('modules/ModTracker/ModTrackerUtils.php')) { require_once 'modules/ModTracker/ModTrackerUtils.php'; $modules = $adb->pquery('SELECT * FROM vtiger_tab WHERE isentitytype = 1', array()); $rows = $adb->num_rows($modules); for ($i = 0; $i < $rows; $i++) { $tabid = $adb->query_result($modules, $i, 'tabid'); ModTrackerUtils::modTrac_changeModuleVisibility($tabid, 'module_enable'); } } $operationId = vtws_addWebserviceOperation('retrieve_inventory', 'include/Webservices/LineItem/RetrieveInventory.php', 'vtws_retrieve_inventory', 'GET'); vtws_addWebserviceOperationParam($operationId, 'id', 'String', 1); $moduleInstance = Vtiger_Module::getInstance('Events'); $tabId = getTabid('Events'); // Update/Increment the sequence for the succeeding blocks of Events module, with starting sequence 3 Migration_Index_View::ExecuteQuery('UPDATE vtiger_blocks SET sequence = sequence+1 WHERE tabid=? AND sequence >= 3', array($tabId)); // Create Recurrence Information block $recurrenceBlock = new Vtiger_Block(); $recurrenceBlock->label = 'LBL_RECURRENCE_INFORMATION'; $recurrenceBlock->sequence = 3; $moduleInstance->addBlock($recurrenceBlock); $blockId = getBlockId($tabId, 'LBL_RECURRENCE_INFORMATION'); Migration_Index_View::ExecuteQuery('UPDATE vtiger_field SET block=? WHERE fieldname=? and tabid=?', array($blockId, 'recurringtype', $tabId));