// user has groups echo $cache_user_contacts_groups[$user_ID]; } } $Results->cols[] = array('th' => T_('Groups'), 'th_class' => 'shrinkwrap', 'td_class' => 'left nowrap', 'td' => '%contacts_groups( #mct_to_user_ID# )%'); $Results->display($display_params); if (count($Results->rows) > 0) { // Display actions buttons global $module_contacts_list_params; modules_call_method('get_contacts_list_params'); $Form = new Form(get_dispctrl_url('contacts'), 'add_group_contacts'); echo '<div class="form_send_contacts">'; $multi_action_icon = get_icon('multi_action', 'imgtag', array('style' => 'margin:0 2px 0 14px;position:relative;top:-5px;')); $Form->button_input(array('type' => 'button', 'value' => $module_contacts_list_params['title_selected'], 'onclick' => 'location.href=\'' . $module_contacts_list_params['recipients_link'] . '\'', 'id' => 'send_selected_recipients', 'input_prefix' => $multi_action_icon)); echo '</div>'; $Form->switch_layout('none'); $Form->switch_template_parts(array('formstart' => '<div class="form_add_contacts">', 'labelstart' => '<span class="label">', 'labelend' => '</span> <span class="controls">', 'formend' => '</div>')); $Form->begin_form(); $Form->add_crumb('messaging_contacts'); $Form->hidden('users', ''); if (isset($module_contacts_list_params['form_hiddens']) && !empty($module_contacts_list_params['form_hiddens'])) { // Append the hidden input elements from module foreach ($module_contacts_list_params['form_hiddens'] as $hidden_input) { $Form->hidden($hidden_input['name'], $hidden_input['value']); } } $Form->combo_box('group', param('group_combo', 'string', ''), get_contacts_groups_options(param('group', 'string', '-1'), false), $multi_action_icon . T_('Add all selected contacts to this group'), array('new_field_size' => '8')); $Form->buttons(array(array('submit', 'actionArray[add_group]', T_('Add'), 'SaveButton btn-primary btn-sm'))); echo '</span>'; if (isset($group_filtered)) { // Contacts list is filtered by group
// ------------------------- END OF PREV/NEXT USER LINKS ------------------------- // ---- START OF PROFILE CONTENT ---- // echo '<div class="profile_content">'; $user_ID = param('user_ID', 'integer', ''); if (empty($user_ID)) { // Grab the current User $user_ID = $current_User->ID; } $UserCache =& get_UserCache(); /** * @var User */ $User =& $UserCache->get_by_ID($user_ID); $profileForm = new Form(NULL, '', 'post', NULL, '', 'div'); $profileForm->switch_template_parts($params['skin_form_params']); $profileForm->switch_layout('fixed', false); $profileForm->begin_form('evo_form evo_form_user'); // ---- START OF LEFT COLUMN ---- // echo '<div class="profile_column_left">'; // Main profile picture: $avatar_overlay_text = ''; if ($is_logged_in) { // Avatar size for logged in user $avatar_image_size = $params['avatar_image_size']; } else { // Avatar settings for anonymous user $avatar_image_size = $params['avatar_image_size_if_anonymous']; if ($params['avatar_overlay_text_if_anonymous'] != '#default#') { // Get overlay text from params $avatar_overlay_text = $params['avatar_overlay_text_if_anonymous']; } else {
// get the loginform crumb, the password encryption salt, and the Session ID $pwd_salt = $Session->get('core.pwd_salt'); if (empty($pwd_salt)) { // Session salt is not generated yet, needs to generate $pwd_salt = generate_random_key(64); $Session->set('core.pwd_salt', $pwd_salt, 86400); $Session->dbsave(); // save now, in case there's an error later, and not saving it would prevent the user from logging in. } // display result to return echo get_crumb('loginform') . ' ' . $pwd_salt . ' ' . $Session->ID; break; case 'get_userfields_criteria': // Get fieldset for users filter by Specific criteria $Form = new Form(); $Form->switch_layout('blockspan'); echo '<br />'; $Form->output = false; $criteria_input = $Form->text('criteria_value[]', '', 17, '', '', 50); $criteria_input .= get_icon('add', 'imgtag', array('rel' => 'add_criteria')); $Form->output = true; global $user_fields_empty_name; $user_fields_empty_name = T_('Select...'); $Form->select('criteria_type[]', '', 'callback_options_user_new_fields', T_('Specific criteria'), $criteria_input); break; case 'get_regions_option_list': // Get option list with regions by selected country $country_ID = param('ctry_id', 'integer', 0); $region_ID = param('rgn_id', 'integer', 0); $page = param('page', 'string', ''); $mode = param('mode', 'string', '');
/** * Get form to quick users search * * @param array Params * @return string Form */ function get_user_quick_search_form($params = array()) { $params = array_merge(array('before' => '<div class="quick_search_form">', 'after' => '</div>', 'title' => T_('Quick search'), 'button' => T_('Find User')), $params); $r = $params['before']; $Form = new Form(); $Form->output = false; $Form->switch_layout('none'); $r .= $Form->begin_form(); $Form->hidden('ctrl', 'users'); $Form->add_crumb('user'); $r .= $Form->text_input('user_search', '', 15, $params['title'], '', array('maxlength' => 100)); $r .= $Form->submit_input(array('name' => 'actionArray[search]', 'value' => $params['button'])); $r .= $Form->end_form(); $r .= $params['after']; return $r; }
if ($cat > 0) { // Store a cat_ID $Form->hidden('post_category', $cat); $Form->hidden('cat', $cat); $disp_edit_categories = false; } } ?> <?php // ############################ POST CONTENTS ############################# // Title input: $use_title = $edited_Item->get_type_setting('use_title'); if ($use_title != 'never') { $Form->switch_layout('none'); echo '<table width="100%" class="compose_layout"><tr>'; $Form->labelstart = '<th width="1%" class="label">'; $Form->labelend = '</th>'; $Form->inputstart = '<td>'; $Form->inputend = '</td>'; $Form->text_input('post_title', $item_title, 20, T_('Title'), '', array('maxlength' => 255, 'style' => 'width: 100%;', 'required' => $use_title == 'required')); echo '</tr></table>'; $Form->switch_layout(NULL); } if ($edited_Item->get_type_setting('use_text') != 'never') { // Display text // --------------------------- TOOLBARS ------------------------------------ echo '<div class="edit_toolbars">'; // CALL PLUGINS NOW: $Plugins->trigger_event('AdminDisplayToolbar', array('target_type' => 'Item', 'edit_layout' => 'expert', 'Item' => $edited_Item));