• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getRelatedLists函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getRelatedLists函数的典型用法代码示例。如果您正苦于以下问题:PHP getRelatedLists函数的具体用法?PHP getRelatedLists怎么用?PHP getRelatedLists使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getRelatedLists函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getModuleSequenceField

 $mod_seq_field = getModuleSequenceField($currentModule);
 if ($mod_seq_field != null) {
     $mod_seq_id = $focus->column_fields[$mod_seq_field['name']];
 } else {
     $mod_seq_id = $focus->id;
 }
 $smarty->assign('MOD_SEQ_ID', $mod_seq_id);
 // END
 $smarty->assign("TODO_PERMISSION", CheckFieldPermission('parent_id', 'Calendar'));
 $smarty->assign("EVENT_PERMISSION", CheckFieldPermission('parent_id', 'Events'));
 $smarty->assign("CATEGORY", $category);
 $smarty->assign("UPDATEINFO", updateInfo($focus->id));
 if (isset($focus->name)) {
     $smarty->assign("NAME", $focus->name);
 }
 $related_array = getRelatedLists("Accounts", $focus);
 require_once 'include/ListView/RelatedListViewSession.php';
 if (!empty($_REQUEST['selected_header']) && !empty($_REQUEST['relation_id'])) {
     $relationId = vtlib_purify($_REQUEST['relation_id']);
     RelatedListViewSession::addRelatedModuleToSession($relationId, vtlib_purify($_REQUEST['selected_header']));
 }
 $open_related_modules = RelatedListViewSession::getRelatedModulesFromSession();
 $smarty->assign("SELECTEDHEADERS", $open_related_modules);
 $smarty->assign("RELATEDLISTS", $related_array);
 $smarty->assign("ID", $focus->id);
 $smarty->assign("MODULE", $currentmodule);
 $smarty->assign("SINGLE_MOD", $app_strings['Account']);
 $smarty->assign("MOD", $mod_strings);
 $smarty->assign("APP", $app_strings);
 $smarty->assign("THEME", $theme);
 $smarty->assign("IMAGE_PATH", $image_path);
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:31,代码来源:CallRelatedList.php


示例2: getEmailParentsList

 $parent_email = getEmailParentsList('Leads', $focus->id, $focus);
 $smarty->assign("HIDDEN_PARENTS_LIST", $parent_email);
 // Module Sequence Numbering
 $mod_seq_field = getModuleSequenceField($currentModule);
 if ($mod_seq_field != null) {
     $mod_seq_id = $focus->column_fields[$mod_seq_field['name']];
 } else {
     $mod_seq_id = $focus->id;
 }
 $smarty->assign('MOD_SEQ_ID', $mod_seq_id);
 // END
 $smarty->assign("ID", $focus->id);
 $smarty->assign("NAME", $focus->lastname . ' ' . $focus->firstname);
 $smarty->assign("EMAIL", $focus->column_fields['email']);
 $smarty->assign("SECONDARY_EMAIL", $focus->column_fields['secondaryemail']);
 $related_array = getRelatedLists($currentModule, $focus);
 $smarty->assign("RELATEDLISTS", $related_array);
 require_once 'include/ListView/RelatedListViewSession.php';
 if (!empty($_REQUEST['selected_header']) && !empty($_REQUEST['relation_id'])) {
     $relationId = vtlib_purify($_REQUEST['relation_id']);
     RelatedListViewSession::addRelatedModuleToSession($relationId, vtlib_purify($_REQUEST['selected_header']));
 }
 $open_related_modules = RelatedListViewSession::getRelatedModulesFromSession();
 $smarty->assign("SELECTEDHEADERS", $open_related_modules);
 $smarty->assign("SINGLE_MOD", $app_strings['Lead']);
 $smarty->assign("MODULE", $currentmodule);
 $smarty->assign("UPDATEINFO", updateInfo($focus->id));
 $smarty->assign("MOD", $mod_strings);
 $smarty->assign("APP", $app_strings);
 $smarty->assign("THEME", $theme);
 $smarty->assign("IMAGE_PATH", $image_path);
开发者ID:sacredwebsite,项目名称:vtigercrm,代码行数:31,代码来源:CallRelatedList.php


示例3: CRMSmarty

    $image_path = $theme_path . "images/";
    require_once $theme_path . 'layout_utils.php';
    $smarty = new CRMSmarty();
    if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
        $focus->id = "";
    }
    if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') {
        $smarty->assign("OP_MODE", $_REQUEST['mode']);
    }
    if (!$_SESSION['rlvs'][$module]) {
        unset($_SESSION['rlvs']);
    }
    $category = getParentTab();
    $smarty->assign("CATEGORY", $category);
    $smarty->assign("UPDATEINFO", updateInfo($focus->id));
    if (isset($focus->name)) {
        $smarty->assign("NAME", $focus->name);
    }
    $related_array = getRelatedLists("Qunfatmps", $focus);
    $smarty->assign("RELATEDLISTS", $related_array);
    $smarty->assign("ID", $focus->id);
    $smarty->assign("MODULE", $currentmodule);
    $smarty->assign("SINGLE_MOD", 'Qunfatmp');
    $smarty->assign("MOD", $mod_strings);
    $smarty->assign("APP", $app_strings);
    $smarty->assign("THEME", $theme);
    $smarty->assign("IMAGE_PATH", $image_path);
    $check_button = Button_Check($module);
    $smarty->assign("CHECK", $check_button);
    $smarty->display("Qunfatmps/RelatedLists.tpl");
}
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:CallRelatedList.php


示例4: getDBValidationData

$validationData = getDBValidationData($focus->tab_name, $tabid);
$data2 = split_validationdataArray($validationData);
$smarty->assign("VALIDATION_DATA_FIELDNAME", $data2['fieldname']);
$smarty->assign("VALIDATION_DATA_FIELDDATATYPE", $data2['datatype']);
$smarty->assign("VALIDATION_DATA_FIELDLABEL", $data2['fieldlabel']);
$smarty->assign("MODULE", $currentModule);
if (PerformancePrefs::getBoolean('DETAILVIEW_RECORD_NAVIGATION', true) && isset($_SESSION[$currentModule . '_listquery'])) {
    $recordNavigationInfo = ListViewSession::getListViewNavigation($focus->id);
    VT_detailViewNavigation($smarty, $recordNavigationInfo, $focus->id);
}
// Gather the custom link information to display
include_once 'vtlib/Vtiger/Link.php';
$customlink_params = array('MODULE' => 'Calendar', 'RECORD' => $focus->id, 'ACTION' => vtlib_purify($_REQUEST['action']));
$smarty->assign('CUSTOM_LINKS', Vtiger_Link::getAllByType(getTabid("Calendar"), array('DETAILVIEWBASIC', 'DETAILVIEW', 'DETAILVIEWWIDGET'), $customlink_params));
// END
$custom_fields_data = getCalendarCustomFields($tabid, 'detail_view', $focus->column_fields);
$smarty->assign("CUSTOM_FIELDS_DATA", $custom_fields_data);
$smarty->assign("IS_REL_LIST", isPresentRelatedLists($rel_tab_type));
if ($singlepane_view == 'true') {
    $related_array = getRelatedLists($tab_type, $focus);
    $smarty->assign("RELATEDLISTS", $related_array);
    require_once 'include/ListView/RelatedListViewSession.php';
    if (!empty($_REQUEST['selected_header']) && !empty($_REQUEST['relation_id'])) {
        RelatedListViewSession::addRelatedModuleToSession(vtlib_purify($_REQUEST['relation_id']), vtlib_purify($_REQUEST['selected_header']));
    }
    $open_related_modules = RelatedListViewSession::getRelatedModulesFromSession();
    $smarty->assign("SELECTEDHEADERS", $open_related_modules);
}
$smarty->assign("SinglePane_View", $singlepane_view);
$smarty->assign("MODE", "DetailView");
$smarty->display("modules/Calendar4You/EventDetailView.tpl");
开发者ID:casati-dolibarr,项目名称:corebos,代码行数:31,代码来源:EventDetailView.php


示例5: CRMSmarty

    $image_path = $theme_path . "images/";
    require_once $theme_path . 'layout_utils.php';
    $smarty = new CRMSmarty();
    if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
        $focus->id = "";
    }
    if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') {
        $smarty->assign("OP_MODE", $_REQUEST['mode']);
    }
    if (isset($_SESSION['rlvs']) && !$_SESSION['rlvs'][$module]) {
        unset($_SESSION['rlvs']);
    }
    $category = getParentTab();
    $smarty->assign("CATEGORY", $category);
    $smarty->assign("UPDATEINFO", updateInfo($focus->id));
    if (isset($focus->name)) {
        $smarty->assign("NAME", $focus->name);
    }
    $related_array = getRelatedLists("Notes", $focus);
    $smarty->assign("RELATEDLISTS", $related_array);
    $smarty->assign("ID", $focus->id);
    $smarty->assign("MODULE", $currentmodule);
    $smarty->assign("SINGLE_MOD", 'Note');
    $smarty->assign("MOD", $mod_strings);
    $smarty->assign("APP", $app_strings);
    $smarty->assign("THEME", $theme);
    $smarty->assign("IMAGE_PATH", $image_path);
    $check_button = Button_Check($module);
    $smarty->assign("CHECK", $check_button);
    $smarty->display("RelatedLists.tpl");
}
开发者ID:ruckfull,项目名称:taobaocrm,代码行数:31,代码来源:CallRelatedList.php


示例6: array

 $focus->id = $_REQUEST['record'];
 $focus->mode = 'edit';
 $focus->retrieve_entity_info($_REQUEST['record'], $tab_type);
 $focus->name = $focus->column_fields['subject'];
 $sql = 'select vtiger_users.user_name,vtiger_invitees.* from vtiger_invitees left join vtiger_users on vtiger_invitees.inviteeid=vtiger_users.id where activityid=?';
 $result = $adb->pquery($sql, array($focus->id));
 $num_rows = $adb->num_rows($result);
 $invited_users = array();
 for ($i = 0; $i < $num_rows; $i++) {
     $userid = $adb->query_result($result, $i, 'inviteeid');
     $username = $adb->query_result($result, $i, 'user_name');
     $invited_users[$userid] = $username;
 }
 $smarty->assign("INVITEDUSERS", $invited_users);
 $smarty->assign("UPDATEINFO", updateInfo($focus->id));
 $related_array = getRelatedLists("Calendar", $focus);
 $cntlist = $related_array['Contacts']['entries'];
 $is_fname_permitted = getFieldVisibilityPermission("Contacts", $current_user->id, 'firstname');
 $cnt_idlist = '';
 $cnt_namelist = '';
 if ($cntlist != '') {
     $i = 0;
     foreach ($cntlist as $key => $cntvalue) {
         if ($i != 0) {
             $cnt_idlist .= ';';
             $cnt_namelist .= "\n";
         }
         $cnt_idlist .= $key;
         $contName = eregi_replace("(<a[^>]*>)(.*)(</a>)", "\\2", $cntvalue[0]);
         if ($is_fname_permitted == '0') {
             $contName .= ' ' . eregi_replace("(<a[^>]*>)(.*)(</a>)", "\\2", $cntvalue[1]);
开发者ID:vtiger-jp,项目名称:vtigercrm-5.1.x-ja,代码行数:31,代码来源:EditView.php


示例7: CRMSmarty

    $theme_path = "themes/" . $theme . "/";
    $image_path = $theme_path . "images/";
    $smarty = new CRMSmarty();
    if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
        $focus->id = "";
    }
    if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') {
        $smarty->assign("OP_MODE", $_REQUEST['mode']);
    }
    if (!$_SESSION['rlvs'][$module]) {
        unset($_SESSION['rlvs']);
    }
    $category = getParentTab();
    $smarty->assign("CATEGORY", $category);
    $smarty->assign("UPDATEINFO", updateInfo($focus->id));
    if (isset($focus->name)) {
        $smarty->assign("NAME", $focus->name);
    }
    $related_array = getRelatedLists("Contacts", $focus);
    $smarty->assign("RELATEDLISTS", $related_array);
    $smarty->assign("ID", $focus->id);
    $smarty->assign("MODULE", $currentmodule);
    $smarty->assign("SINGLE_MOD", 'Contact');
    $smarty->assign("MOD", $mod_strings);
    $smarty->assign("APP", $app_strings);
    $smarty->assign("THEME", $theme);
    $smarty->assign("IMAGE_PATH", $image_path);
    $check_button = Button_Check($module);
    $smarty->assign("CHECK", $check_button);
    $smarty->display("Contacts/RelatedLists.tpl");
}
开发者ID:Pengzw,项目名称:c3crm,代码行数:31,代码来源:CallRelatedList.php



注:本文中的getRelatedLists函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getRelatedModule函数代码示例发布时间:2022-05-15
下一篇:
PHP getRelPath函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap