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

PHP getGroupslist函数代码示例

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

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



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

示例1: vtigerCRM_Smarty

$_SESSION[$currentModule . "_Order_by"] = $order_by;
$_SESSION[$currentModule . "_Sort_Order"] = $sorder;
$smarty = new vtigerCRM_Smarty();
// Identify this module as custom module.
$smarty->assign('CUSTOM_MODULE', true);
$smarty->assign('MOD', $mod_strings);
$smarty->assign('APP', $app_strings);
$smarty->assign('MODULE', $currentModule);
$smarty->assign('SINGLE_MOD', getTranslatedString('SINGLE_' . $currentModule));
$smarty->assign('CATEGORY', $category);
$smarty->assign('BUTTONS', $list_buttons);
$smarty->assign('CHECK', $tool_buttons);
$smarty->assign('THEME', $theme);
$smarty->assign('IMAGE_PATH', "themes/{$theme}/images/");
$smarty->assign('CHANGE_OWNER', getUserslist());
$smarty->assign('CHANGE_GROUP_OWNER', getGroupslist());
// Enabling Module Search
$url_string = '';
if ($_REQUEST['query'] == 'true') {
    list($where, $ustring) = split('#@@#', getWhereCondition($currentModule));
    $url_string .= "&query=true{$ustring}";
    $smarty->assign('SEARCH_URL', $url_string);
}
// Custom View
$customView = new CustomView($currentModule);
$viewid = $customView->getViewId($currentModule);
$customview_html = $customView->getCustomViewCombo($viewid);
$viewinfo = $customView->getCustomViewByCvid($viewid);
// Feature available from 5.1
if (method_exists($customView, 'isPermittedChangeStatus')) {
    // Approving or Denying status-public by the admin in CustomView
开发者ID:jmangarret,项目名称:vtigercrm,代码行数:31,代码来源:ListView.php


示例2: CustomView

//<<<<cutomview>>>>>>>
$oCustomView = new CustomView("SalesOrder");
$viewid = $oCustomView->getViewId($currentModule);
$customviewcombo_html = $oCustomView->getCustomViewCombo($viewid);
$viewnamedesc = $oCustomView->getCustomViewByCvid($viewid);
//Added to handle approving or denying status-public by the admin in CustomView
$statusdetails = $oCustomView->isPermittedChangeStatus($viewnamedesc['status']);
$smarty->assign("CUSTOMVIEW_PERMISSION", $statusdetails);
//To check if a user is able to edit/delete a customview
$edit_permit = $oCustomView->isPermittedCustomView($viewid, 'EditView', $currentModule);
$delete_permit = $oCustomView->isPermittedCustomView($viewid, 'Delete', $currentModule);
$smarty->assign("CV_EDIT_PERMIT", $edit_permit);
$smarty->assign("CV_DELETE_PERMIT", $delete_permit);
//<<<<<customview>>>>>
$smarty->assign("CHANGE_OWNER", getUserslist());
$smarty->assign("CHANGE_GROUP_OWNER", getGroupslist());
// Buttons and View options
if (isPermitted('SalesOrder', 'Delete', '') == 'yes') {
    $other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
if (isPermitted('SalesOrder', 'EditView', '') == 'yes') {
    $other_text['mass_edit'] = $app_strings[LBL_MASS_EDIT];
    $other_text['c_owner'] = $app_strings[LBL_CHANGE_OWNER];
}
if ($viewnamedesc['viewname'] == 'All') {
    $smarty->assign("ALL", 'All');
}
//<<<<<<<<<customview>>>>>>>>>
if ($viewid != "0") {
    $listquery = getListQuery("SalesOrder");
    $list_query = $oCustomView->getModifiedCvListQuery($viewid, $listquery, "SalesOrder");
开发者ID:vtiger-jp,项目名称:vtigercrm-5.1.x-ja,代码行数:31,代码来源:ListView.php


示例3: getAssignedToHTML

/** Function to construct HTML code for Assigned To field
 *  @param $assignedto  -- Assigned To values :: Type array
 *  @param $toggletype  -- String to different event and task  :: Type string
 *  return $htmlStr     -- HTML code in string forat  :: Type string
 */
function getAssignedToHTML($assignedto, $toggletype)
{
    global $app_strings;
    $userlist = $assignedto[0];
    if (isset($assignedto[1]) && $assignedto[1] != null) {
        $grouplist = $assignedto[1];
    }
    $htmlStr = '';
    $check = 1;
    foreach ($userlist as $key_one => $arr) {
        foreach ($arr as $sel_value => $value) {
            if ($value != '') {
                $check = $check * 0;
            } else {
                $check = $check * 1;
            }
        }
    }
    if ($check == 0) {
        $select_user = 'checked';
        $style_user = 'display:block';
        $style_group = 'display:none';
    } else {
        $select_group = 'checked';
        $style_user = 'display:none';
        $style_group = 'display:block';
    }
    if ($toggletype == 'task') {
        $htmlStr .= '<input type="radio" name="task_assigntype" ' . $select_user . ' value="U" onclick="toggleTaskAssignType(this.value)">&nbsp;' . $app_strings['LBL_USER'];
    } else {
        $htmlStr .= '<input type="radio" name="assigntype" ' . $select_user . ' value="U" onclick="toggleAssignType(this.value)">&nbsp;' . $app_strings['LBL_USER'];
    }
    if ($grouplist != '') {
        if ($toggletype == 'task') {
            $htmlStr .= '<input type="radio" name="task_assigntype" ' . $select_group . ' value="T" onclick="toggleTaskAssignType(this.value)">&nbsp;' . $app_strings['LBL_GROUP'];
        } else {
            $htmlStr .= '<input type="radio" name="assigntype" ' . $select_group . ' value="T" onclick="toggleAssignType(this.value)">&nbsp;' . $app_strings['LBL_GROUP'];
        }
    }
    if ($toggletype == 'task') {
        $htmlStr .= '<span id="task_assign_user" style="' . $style_user . '">
				<select name="task_assigned_user_id" class=small>';
    } else {
        $htmlStr .= '<span id="assign_user" style="' . $style_user . '">
				<select name="assigned_user_id" class=small>';
    }
    $htmlStr .= getUserslist();
    $htmlStr .= '</select>
			</span>';
    if ($grouplist != '') {
        if ($toggletype == 'task') {
            $htmlStr .= '<span id="task_assign_team" style="' . $style_group . '">
					<select name="task_assigned_group_id" class=small>';
        } else {
            $htmlStr .= '<span id="assign_team" style="' . $style_group . '">
					<select name="assigned_group_id" class=small>';
        }
        $htmlStr .= getGroupslist();
        $htmlStr .= '</select>
				</span>';
    }
    return $htmlStr;
}
开发者ID:jgjermeni,项目名称:corebos,代码行数:68,代码来源:addEventUI.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP getGuestDetails函数代码示例发布时间:2022-05-15
下一篇:
PHP getGroups函数代码示例发布时间: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