Beispiel #1
0
$cfimagecombo = array($image_path . "text.gif", $image_path . "number.gif", $image_path . "percent.gif", $image_path . "currency.gif", $image_path . "date.gif", $image_path . "email.gif", $image_path . "phone.gif", $image_path . "picklist.gif", $image_path . "url.gif", $image_path . "checkbox.gif", $image_path . "text.gif", $image_path . "picklist.gif", $image_path . "time.PNG");
$cftextcombo = array($mod_strings['Text'], $mod_strings['Number'], $mod_strings['Percent'], $mod_strings['Currency'], $mod_strings['Date'], $mod_strings['Email'], $mod_strings['Phone'], $mod_strings['PickList'], $mod_strings['LBL_URL'], $mod_strings['LBL_CHECK_BOX'], $mod_strings['LBL_TEXT_AREA'], $mod_strings['LBL_MULTISELECT_COMBO'], $mod_strings['Time']);
$smarty->assign("MODULES", $module_array);
$smarty->assign("CFTEXTCOMBO", $cftextcombo);
$smarty->assign("CFIMAGECOMBO", $cfimagecombo);
if ($_REQUEST['formodule'] != '') {
    $fld_module = vtlib_purify($_REQUEST['formodule']);
} elseif ($_REQUEST['fld_module'] != '') {
    $fld_module = vtlib_purify($_REQUEST['fld_module']);
} else {
    $fld_module = 'Accounts';
}
$block_array = getModuleBlocks($fld_module);
$smarty->assign("BLOCKS", $block_array);
$smarty->assign("MODULE", $fld_module);
$smarty->assign("CFENTRIES", getFieldListEntries($fld_module));
$smarty->assign("RELATEDLIST", getRelatedListInfo($fld_module));
if (isset($_REQUEST["duplicate"]) && $_REQUEST["duplicate"] == "yes" || $duplicate == 'yes') {
    echo "ERROR";
    exit;
}
if ($duplicate == 'LENGTH_ERROR') {
    echo "LENGTH_ERROR";
    exit;
}
if ($_REQUEST['mode'] != '') {
    $mode = vtlib_purify($_REQUEST['mode']);
}
$smarty->assign("MODE", $mode);
if ($_REQUEST['ajax'] != 'true') {
    $smarty->display('Settings/LayoutBlockList.tpl');
Beispiel #2
0
}
$module_array = getCustomFieldSupportedModules();
$cfimagecombo = array($image_path . "text.gif", $image_path . "number.gif", $image_path . "percent.gif", $image_path . "currency.gif", $image_path . "date.gif", $image_path . "email.gif", $image_path . "phone.gif", $image_path . "picklist.gif", $image_path . "url.gif", $image_path . "checkbox.gif", $image_path . "text.gif", $image_path . "picklist.gif", $image_path . "time.PNG");
$cftextcombo = array($mod_strings['Text'], $mod_strings['Number'], $mod_strings['Percent'], $mod_strings['Currency'], $mod_strings['Date'], $mod_strings['Email'], $mod_strings['Phone'], $mod_strings['PickList'], $mod_strings['LBL_URL'], $mod_strings['LBL_CHECK_BOX'], $mod_strings['LBL_TEXT_AREA'], $mod_strings['LBL_MULTISELECT_COMBO'], $mod_strings['Time']);
$smarty->assign("MODULES", $module_array);
$smarty->assign("CFTEXTCOMBO", $cftextcombo);
$smarty->assign("CFIMAGECOMBO", $cfimagecombo);
if ($_REQUEST['formodule'] != '') {
    $fld_module = vtlib_purify($_REQUEST['formodule']);
} elseif ($_REQUEST['fld_module'] != '') {
    $fld_module = vtlib_purify($_REQUEST['fld_module']);
} else {
    $fld_module = 'Accounts';
}
$block_array = getModuleBlocks($fld_module);
$cfentries = getFieldListEntries($fld_module);
$cfentries = insertDetailViewBlockWidgets($cfentries, $fld_module);
$smarty->assign("BLOCKS", $block_array);
$smarty->assign("MODULE", $fld_module);
$smarty->assign("CFENTRIES", $cfentries);
$rellistinfo = getRelatedListInfo($fld_module);
$smarty->assign('RELATEDLIST', $rellistinfo);
$pickListResult = getAllowedPicklistModules();
$nonRelatableModules = array('PBXManager', 'SMSNotifier', 'cbupdater', 'GlobalVariable', 'Calendar', 'Emails', 'ModComments');
$entityrelmods = array();
foreach ($pickListResult as $pValue) {
    if (!in_array($pValue, $nonRelatableModules)) {
        $entityrelmods[$pValue] = getTranslatedString($pValue, $pValue);
    }
}
uasort($entityrelmods, function ($a, $b) {