本文整理汇总了PHP中Vtiger_DependencyPicklist::getDependentPickListModules方法的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_DependencyPicklist::getDependentPickListModules方法的具体用法?PHP Vtiger_DependencyPicklist::getDependentPickListModules怎么用?PHP Vtiger_DependencyPicklist::getDependentPickListModules使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vtiger_DependencyPicklist
的用法示例。
在下文中一共展示了Vtiger_DependencyPicklist::getDependentPickListModules方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rgb
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
*********************************************************************************/
require_once 'Smarty_setup.php';
require_once 'include/database/PearDatabase.php';
require_once 'include/utils/utils.php';
require_once 'modules/PickList/PickListUtils.php';
require_once 'modules/PickList/DependentPickListUtils.php';
global $app_strings, $app_list_strings, $current_language, $currentModule, $theme, $current_user;
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;
}
$modules = Vtiger_DependencyPicklist::getDependentPickListModules();
if (!empty($_REQUEST['moduleName'])) {
$fld_module = vtlib_purify($_REQUEST['moduleName']);
}
$smarty = new vtigerCRM_Smarty();
if ($fld_module == 'Events') {
$temp_module_strings = return_module_language($current_language, 'Calendar');
} else {
$temp_module_strings = return_module_language($current_language, $fld_module);
}
$smarty->assign("MODULE_LISTS", $modules);
$smarty->assign("APP", $app_strings);
//the include language files
$smarty->assign("MOD", return_module_language($current_language, 'Settings'));
//the settings module language file
$smarty->assign("MOD_PICKLIST", return_module_language($current_language, 'PickList'));