本文整理汇总了PHP中getUserslist函数的典型用法代码示例。如果您正苦于以下问题:PHP getUserslist函数的具体用法?PHP getUserslist怎么用?PHP getUserslist使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getUserslist函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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");
示例2: vtigerCRM_Smarty
$order_by = $focus->getOrderBy();
$_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')) {
示例3: return_module_language
require_once 'modules/Users/Users.php';
require_once 'include/logging.php';
require_once 'include/utils/utils.php';
global $app_strings;
global $mod_strings;
global $app_list_strings;
global $current_language, $current_user, $adb;
$current_module_strings = return_module_language($current_language, 'Settings');
global $list_max_entries_per_page;
global $urlPrefix;
$log = LoggerManager::getLogger('login_list');
global $currentModule;
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$focus = new LoginHistory();
$smarty = new vtigerCRM_Smarty();
$category = getParenttab();
$oUser = new Users($id);
$user_list = getUserslist(false);
$smarty->assign("CMOD", $mod_strings);
$smarty->assign("MOD", $current_module_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("USERLIST", $user_list);
$smarty->assign("CATEGORY", $category);
$smarty->display("ListLoginHistory.tpl");
?>
示例4: 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)"> ' . $app_strings['LBL_USER'];
} else {
$htmlStr .= '<input type="radio" name="assigntype" ' . $select_user . ' value="U" onclick="toggleAssignType(this.value)"> ' . $app_strings['LBL_USER'];
}
if ($grouplist != '') {
if ($toggletype == 'task') {
$htmlStr .= '<input type="radio" name="task_assigntype" ' . $select_group . ' value="T" onclick="toggleTaskAssignType(this.value)"> ' . $app_strings['LBL_GROUP'];
} else {
$htmlStr .= '<input type="radio" name="assigntype" ' . $select_group . ' value="T" onclick="toggleAssignType(this.value)"> ' . $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;
}
示例5: getTranslatedString
<td class='gvtestlabeltext'><?php
echo getTranslatedString('SINGLE_GlobalVariable', 'GlobalVariable');
?>
</td>
<td><select name="vlist" id="vlist" style='width: 250px;'><?php
echo gv_getGVVarNames();
?>
</select></td>
</tr>
<tr>
<td class='gvtestlabeltext'><?php
echo getTranslatedString('User', 'GlobalVariable');
?>
</td>
<td><select name="ulist" id="ulist" style='width: 250px;'><?php
echo getUserslist();
?>
</select></td>
</tr>
<tr>
<td class='gvtestlabeltext'><?php
echo getTranslatedString('Module', 'GlobalVariable');
?>
</td>
<td><select name="mlist" id="mlist" style='width: 250px;'><?php
$mlist = vtws_getModuleNameList();
$modlist = array();
foreach ($mlist as $mod) {
$modlist[$mod] = getTranslatedString($mod, $mod);
}
asort($modlist);
示例6: vtigerCRM_Smarty
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
*
********************************************************************************/
require_once 'include/utils/utils.php';
require_once 'user_privileges/audit_trail.php';
require_once 'Smarty_setup.php';
global $app_strings;
global $mod_strings;
global $currentModule;
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
global $current_language;
$smarty = new vtigerCRM_Smarty();
$smarty->assign("MOD", return_module_language($current_language, 'Settings'));
$smarty->assign("CMOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("USERLIST", getUserslist());
if ($audit_trail == 'true') {
$server = 'enabled';
} else {
$server = 'disabled';
}
$smarty->assign("AuditStatus", $server);
$smarty->display('AuditTrailList.tpl');