2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
41 require_once('include/ListView/ListViewData.php');
42 require_once('include/MassUpdate.php');
44 class ListViewDisplay {
46 var $show_mass_update_form = false;
47 var $show_action_dropdown = true;
51 var $multi_select_popup;
55 var $multiSelect = true;
56 var $mailMerge = true;
57 var $should_process = true;
58 var $show_plus = false;
60 * Used in view.popup.php. Sometimes there are fields on the search form that are not referenced in the listviewdefs. If this
61 * is the case, then the filterFields will be set and the related fields will not be referenced when calling create_new_list_query.
63 var $mergeDisplayColumns = false;
64 public $actionsMenuExtraItems = array();
70 function ListViewDisplay() {
71 $this->lvd = new ListViewData();
72 $this->searchColumns = array () ;
74 function shouldProcess($moduleDir){
75 if(!empty($GLOBALS['sugar_config']['save_query']) && $GLOBALS['sugar_config']['save_query'] == 'populate_only'){
76 if(empty($GLOBALS['displayListView'])
77 && (!empty($_REQUEST['clear_query'])
78 || $_REQUEST['module'] == $moduleDir
79 && ((empty($_REQUEST['query']) || $_REQUEST['query'] == 'MSI' )
80 && (empty($_SESSION['last_search_mod']) || $_SESSION['last_search_mod'] != $moduleDir ) ))){
81 $_SESSION['last_search_mod'] = $_REQUEST['module'] ;
82 $this->should_process = false;
86 $this->should_process = true;
92 * @param seed SugarBean Seed SugarBean to use
93 * @param file File Template file to use
94 * @param string $where
95 * @param offset:0 int offset to start at
96 * @param int:-1 $limit
97 * @param string[]:array() $filter_fields
98 * @param array:array() $params
99 * Potential $params are
100 $params['distinct'] = use distinct key word
101 $params['include_custom_fields'] = (on by default)
102 $params['massupdate'] = true by default;
103 $params['handleMassupdate'] = true by default, have massupdate.php handle massupdates?
104 * @param string:'id' $id_field
106 function setup($seed, $file, $where, $params = array(), $offset = 0, $limit = -1, $filter_fields = array(), $id_field = 'id') {
107 $this->should_process = true;
108 if(isset($seed->module_dir) && !$this->shouldProcess($seed->module_dir)){
111 if(isset($params['export'])) {
112 $this->export = $params['export'];
114 if(!empty($params['multiSelectPopup'])) {
115 $this->multi_select_popup = $params['multiSelectPopup'];
117 if(!empty($params['massupdate']) && $params['massupdate'] != false) {
118 $this->show_mass_update_form = true;
119 $this->mass = new MassUpdate();
120 $this->mass->setSugarBean($seed);
121 if(!empty($params['handleMassupdate']) || !isset($params['handleMassupdate'])) {
122 $this->mass->handleMassUpdate();
127 $filter_fields = $this->setupFilterFields($filter_fields);
129 $data = $this->lvd->getListViewData($seed, $where, $offset, $limit, $filter_fields, $params, $id_field);
131 foreach($this->displayColumns as $columnName => $def)
133 $seedName = strtolower($columnName);
134 if(!empty($this->lvd->seed->field_defs[$seedName])){
135 $seedDef = $this->lvd->seed->field_defs[$seedName];
138 if(empty($this->displayColumns[$columnName]['type'])){
139 if(!empty($seedDef['type'])){
140 $this->displayColumns[$columnName]['type'] = (!empty($seedDef['custom_type']))?$seedDef['custom_type']:$seedDef['type'];
142 $this->displayColumns[$columnName]['type'] = '';
146 if(!empty($seedDef['options'])){
147 $this->displayColumns[$columnName]['options'] = $seedDef['options'];
151 if($this->displayColumns[$columnName]['type'] == 'html') {
152 $cField = $this->seed->custom_fields;
153 if(isset($cField) && isset($cField->bean->$seedName)) {
154 $seedName2 = strtoupper($columnName);
155 $htmlDisplay = html_entity_decode($cField->bean->$seedName);
157 while($count < count($data['data'])) {
158 $data['data'][$count][$seedName2] = &$htmlDisplay;
164 //Bug 40511, make sure relate fields have the correct module defined
165 if ($this->displayColumns[$columnName]['type'] == "relate" && !empty($seedDef['link']) && empty( $this->displayColumns[$columnName]['module']))
167 $link = $seedDef['link'];
168 if (!empty($this->lvd->seed->field_defs[$link]) && !empty($this->lvd->seed->field_defs[$seedDef['link']]['module']))
170 $this->displayColumns[$columnName]['module'] = $this->lvd->seed->field_defs[$seedDef['link']]['module'];
174 if (!empty($seedDef['sort_on'])) {
175 $this->displayColumns[$columnName]['orderBy'] = $seedDef['sort_on'];
179 // Merge the two arrays together, making sure the seedDef doesn't override anything explicitly set in the displayColumns array.
180 $this->displayColumns[$columnName] = $this->displayColumns[$columnName] + $seedDef;
183 //C.L. Bug 38388 - ensure that ['id'] is set for related fields
184 if(!isset($this->displayColumns[$columnName]['id']) && isset($this->displayColumns[$columnName]['id_name'])) {
185 $this->displayColumns[$columnName]['id'] = strtoupper($this->displayColumns[$columnName]['id_name']);
189 $this->process($file, $data, $seed->object_name);
193 function setupFilterFields($filter_fields = array())
195 // create filter fields based off of display columns
196 if(empty($filter_fields) || $this->mergeDisplayColumns) {
197 foreach($this->displayColumns as $columnName => $def) {
199 $filter_fields[strtolower($columnName)] = true;
201 if(isset($this->seed->field_defs[strtolower($columnName)]['type']) &&
202 strtolower($this->seed->field_defs[strtolower($columnName)]['type']) == 'currency' &&
203 isset($this->seed->field_defs['currency_id'])) {
204 $filter_fields['currency_id'] = true;
207 if(!empty($def['related_fields'])) {
208 foreach($def['related_fields'] as $field) {
209 //id column is added by query construction function. This addition creates duplicates
210 //and causes issues in oracle. #10165
211 if ($field != 'id') {
212 $filter_fields[$field] = true;
216 if (!empty($this->seed->field_defs[strtolower($columnName)]['db_concat_fields'])) {
217 foreach($this->seed->field_defs[strtolower($columnName)]['db_concat_fields'] as $index=>$field){
218 if(!isset($filter_fields[strtolower($field)]) || !$filter_fields[strtolower($field)])
220 $filter_fields[strtolower($field)] = true;
225 foreach ($this->searchColumns as $columnName => $def )
227 $filter_fields[strtolower($columnName)] = true;
232 return $filter_fields;
237 * Any additional processing
238 * @param file File template file to use
239 * @param data array row data
240 * @param html_var string html string to be passed back and forth
242 function process($file, $data, $htmlVar) {
243 $this->rowCount = count($data['data']);
244 $this->moduleString = $data['pageData']['bean']['moduleDir'] . '2_' . strtoupper($htmlVar) . '_offset';
248 * Display the listview
249 * @return string ListView contents
251 public function display()
253 if (!$this->should_process) {
258 if ($this->multiSelect == true && $this->show_mass_update_form) {
259 $str = $this->mass->getDisplayMassUpdateForm(true, $this->multi_select_popup).$this->mass->getMassUpdateFormHeader($this->multi_select_popup);
265 * Display the select link
266 * @return string select link html
267 * @param echo Bool set true if you want it echo'd, set false to have contents returned
269 function buildSelectLink($id = 'select_link', $total=0, $pageTotal=0) {
274 if (!empty($GLOBALS['sugar_config']['disable_count_query']) && $total > $pageTotal) {
276 $this->show_plus = true;
279 function select_overlib() {
280 return overlib('<a style=\'width: 150px\' name=\"thispage\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'if (document.MassUpdate.select_entire_list.value==1){document.MassUpdate.select_entire_list.value=0;sListView.check_all(document.MassUpdate, \"mass[]\", true, $pageTotal)}else {sListView.check_all(document.MassUpdate, \"mass[]\", true)};\' href=\'#\'>{$app_strings['LBL_LISTVIEW_OPTION_CURRENT']} ({$pageTotal})‎</a>"
281 . "<a style=\'width: 150px\' name=\"selectall\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'sListView.check_entire_list(document.MassUpdate, \"mass[]\",true,{$total});\' href=\'#\'>{$app_strings['LBL_LISTVIEW_OPTION_ENTIRE']} ({$total})‎</a>"
282 . "<a style=\'width: 150px\' name=\"deselect\" class=\'menuItem\' onmouseover=\'hiliteItem(this,\"yes\");\' onmouseout=\'unhiliteItem(this);\' onclick=\'sListView.clear_all(document.MassUpdate, \"mass[]\", false);\' href=\'#\'>{$app_strings['LBL_LISTVIEW_NONE']}</a>"
284 . "', STICKY, MOUSEOFF, 3000, CLOSETEXT, '<img border=0 src=" . SugarThemeRegistry::current()->getImageURL('close_inline.gif')
285 . ">', WIDTH, 150, CLOSETITLE, '" . $app_strings['LBL_ADDITIONAL_DETAILS_CLOSE_TITLE'] . "', CLOSECLICK, FGCLASS, 'olOptionsFgClass', "
286 . "CGCLASS, 'olOptionsCgClass', BGCLASS, 'olBgClass', TEXTFONTCLASS, 'olFontClass', CAPTIONFONTCLASS, 'olOptionsCapFontClass', CLOSEFONTCLASS, 'olOptionsCloseFontClass',TIMEOUT,1000);
289 $script .= "<a id='$id' onclick='return select_overlib();' href=\"#\"><img src='".SugarThemeRegistry::current()->getImageURL('MoreDetail.png')."' border='0''>"."</a>";
295 * Display the actions link
297 * @param string $id link id attribute, defaults to 'actions_link'
298 * @return string HTML source
300 protected function buildActionsLink(
305 $closeText = "<img border=0 src=" . SugarThemeRegistry::current()->getImageURL('close_inline.gif') . " />";
306 $moreDetailImage = SugarThemeRegistry::current()->getImageURL('MoreDetail.png');
310 if ( ACLController::checkAccess($this->seed->module_dir,'delete',true) && $this->delete )
311 $menuItems .= $this->buildDeleteLink();
314 $menuItems .= $this->buildComposeEmailLink($this->data['pageData']['offsets']['total']);
316 $mass = new MassUpdate();
317 $mass->setSugarBean($this->seed);
318 if ( ACLController::checkAccess($this->seed->module_dir,'edit',true) && $this->showMassupdateFields && $mass->doMassUpdateFieldsExistForFocus() )
319 $menuItems .= $this->buildMassUpdateLink();
321 if ( $this->mailMerge )
322 $menuItems .= $this->buildMergeLink();
323 if ( $this->mergeduplicates )
324 $menuItems .= $this->buildMergeDuplicatesLink();
325 // add to target list
326 if ( $this->targetList && ACLController::checkAccess('ProspectLists','edit',true) )
327 $menuItems .= $this->buildTargetList();
329 if ( ACLController::checkAccess($this->seed->module_dir,'export',true) && $this->export )
330 $menuItems .= $this->buildExportLink();
332 foreach ( $this->actionsMenuExtraItems as $item )
335 $menuItems = str_replace('"','\"',$menuItems);
336 $menuItems = str_replace(array("\r","\n"),'',$menuItems);
338 if ( empty($menuItems) )
342 <script type="text/javascript">
344 function actions_overlib()
346 return overlib("{$menuItems}", CENTER, '', STICKY, MOUSEOFF, 3000, CLOSETEXT, "{$closeText}", WIDTH, 150,
347 CLOSETITLE, "{$app_strings['LBL_ADDITIONAL_DETAILS_CLOSE_TITLE']}", CLOSECLICK,
348 FGCLASS, 'olOptionsFgClass', CGCLASS, 'olOptionsCgClass', BGCLASS, 'olBgClass',
349 TEXTFONTCLASS, 'olFontClass', CAPTIONFONTCLASS, 'olOptionsCapFontClass',
350 CLOSEFONTCLASS, 'olOptionsCloseFontClass');
354 <a id='$id' onclick='return actions_overlib();' href="#">
355 {$app_strings['LBL_LINK_ACTIONS']} <img src='{$moreDetailImage}' border='0' />
361 * Builds the export link
363 * @return string HTML
365 protected function buildExportLink()
368 return "<a href='#' style='width: 150px' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' onclick=\"return sListView.send_form(true, '{$this->seed->module_dir}', 'index.php?entryPoint=export','{$app_strings['LBL_LISTVIEW_NO_SELECTED']}')\">{$app_strings['LBL_EXPORT']}</a>";
372 * Builds the massupdate link
374 * @return string HTML
376 protected function buildMassUpdateLink()
380 return "<a href='#massupdate_form' style='width: 150px' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' onclick=\"document.getElementById('massupdate_form').style.display = '';\">{$app_strings['LBL_MASS_UPDATE']}</a>";
384 * Builds the compose email link
386 * @return string HTML
388 protected function buildComposeEmailLink(
392 global $app_strings,$dictionary;
394 if (!is_array($this->seed->field_defs)) {
397 $foundEmailField = false;
398 // Search for fields that look like an email address
399 foreach ($this->seed->field_defs as $field) {
400 if(isset($field['type'])&&$field['type']=='link'
401 &&isset($field['relationship'])&&isset($dictionary[$this->seed->object_name]['relationships'][$field['relationship']])
402 &&$dictionary[$this->seed->object_name]['relationships'][$field['relationship']]['rhs_module']=='EmailAddresses') {
403 $foundEmailField = true;
407 if (!$foundEmailField) {
412 $userPref = $GLOBALS['current_user']->getPreference('email_link_type');
413 $defaultPref = $GLOBALS['sugar_config']['email_default_client'];
417 $client = $defaultPref;
419 if($client == 'sugar')
420 $script = "<a href='#' style='width: 150px' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' " .
421 'onclick="return sListView.send_form_for_emails(true, \''."Emails".'\', \'index.php?module=Emails&action=Compose&ListView=true\',\''.$app_strings['LBL_LISTVIEW_NO_SELECTED'].'\', \''.$this->seed->module_dir.'\', \''.$totalCount.'\', \''.$app_strings['LBL_LISTVIEW_LESS_THAN_TEN_SELECT'].'\')">' .
422 $app_strings['LBL_EMAIL_COMPOSE'] . '</a>';
424 $script = "<a href='#' style='width: 150px' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' " .
425 "onclick=\"return sListView.use_external_mail_client('{$app_strings['LBL_LISTVIEW_NO_SELECTED']}', '{$_REQUEST['module']}');\">" .
426 $app_strings['LBL_EMAIL_COMPOSE'] . '</a>';
431 * Builds the delete link
433 * @return string HTML
435 protected function buildDeleteLink()
439 return "<a href='#' style='width: 150px' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' onclick=\"return sListView.send_mass_update('selected', '{$app_strings['LBL_LISTVIEW_NO_SELECTED']}', 1)\">{$app_strings['LBL_DELETE_BUTTON_LABEL']}</a>";
442 * Display the selected object span object
444 * @return string select object span
446 function buildSelectedObjectsSpan($echo = true, $total=0) {
449 $selectedObjectSpan = "<span style='display: inline-block;'>{$app_strings['LBL_LISTVIEW_SELECTED_OBJECTS']}<input style='border: 0px; background: transparent; font-size: inherit; color: inherit' type='text' id='selectCountTop' readonly name='selectCount[]' value='{$total}' /></span>";
451 return $selectedObjectSpan;
454 * Builds the mail merge link
455 * The link can be disabled by setting module level duplicate_merge property to false
456 * in the moudle's vardef file.
458 * @return string HTML
460 protected function buildMergeDuplicatesLink()
462 global $app_strings, $dictionary;
465 $return_string.= isset($_REQUEST['module']) ? "&return_module={$_REQUEST['module']}" : "";
466 $return_string.= isset($_REQUEST['action']) ? "&return_action={$_REQUEST['action']}" : "";
467 $return_string.= isset($_REQUEST['record']) ? "&return_id={$_REQUEST['record']}" : "";
468 //need delete and edit access.
469 if (!(ACLController::checkAccess($this->seed->module_dir, 'edit', true)) or !(ACLController::checkAccess($this->seed->module_dir, 'delete', true))) {
473 if (isset($dictionary[$this->seed->object_name]['duplicate_merge']) && $dictionary[$this->seed->object_name]['duplicate_merge']==true ) {
474 return "<a href='#' style='width: 150px' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' ".
475 "onclick='if (sugarListView.get_checks_count()> 1) {sListView.send_form(true, \"MergeRecords\", \"index.php\", \"{$app_strings['LBL_LISTVIEW_NO_SELECTED']}\", \"{$this->seed->module_dir}\",\"$return_string\");} else {alert(\"{$app_strings['LBL_LISTVIEW_TWO_REQUIRED']}\");return false;}'>".
476 $app_strings['LBL_MERGE_DUPLICATES'].'</a>';
482 * Builds the mail merge link
484 * @return string HTML
486 protected function buildMergeLink(array $modules_array = null)
488 if ( empty($modules_array) ) {
489 require('modules/MailMerge/modules_array.php');
491 global $current_user, $app_strings;
493 $admin = new Administration();
494 $admin->retrieveSettings('system');
495 $user_merge = $current_user->getPreference('mailmerge_on');
496 $module_dir = (!empty($this->seed->module_dir) ? $this->seed->module_dir : '');
499 if ($user_merge == 'on' && isset($admin->settings['system_mailmerge_on']) && $admin->settings['system_mailmerge_on'] && !empty($modules_array[$module_dir])) {
500 $str = "<a href='#' style='width: 150px' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' " .
501 'onclick="if (document.MassUpdate.select_entire_list.value==1){document.location.href=\'index.php?action=index&module=MailMerge&entire=true\'} else {return sListView.send_form(true, \'MailMerge\',\'index.php\',\''.$app_strings['LBL_LISTVIEW_NO_SELECTED'].'\');}">' .
502 $app_strings['LBL_MAILMERGE'].'</a>';
508 * Builds the add to target list link
510 * @return string HTML
512 protected function buildTargetList()
515 unset($_REQUEST[session_name()]);
516 unset($_REQUEST['PHPSESSID']);
517 $current_query_by_page = base64_encode(serialize($_REQUEST));
520 if(sugarListView.get_checks_count() < 1) {
521 alert('{$app_strings['LBL_LISTVIEW_NO_SELECTED']}');
524 if ( document.forms['targetlist_form'] ) {
525 var form = document.forms['targetlist_form'];
528 var form = document.createElement ( 'form' ) ;
529 form.setAttribute ( 'name' , 'targetlist_form' );
530 form.setAttribute ( 'method' , 'post' ) ;
531 form.setAttribute ( 'action' , 'index.php' );
532 document.body.appendChild ( form ) ;
533 if ( !form.module ) {
534 var input = document.createElement('input');
535 input.setAttribute ( 'name' , 'module' );
536 input.setAttribute ( 'value' , '{$this->seed->module_dir}' );
537 input.setAttribute ( 'type' , 'hidden' );
538 form.appendChild ( input ) ;
539 var input = document.createElement('input');
540 input.setAttribute ( 'name' , 'action' );
541 input.setAttribute ( 'value' , 'TargetListUpdate' );
542 input.setAttribute ( 'type' , 'hidden' );
543 form.appendChild ( input ) ;
546 var input = document.createElement('input');
547 input.setAttribute ( 'name' , 'uids' );
548 input.setAttribute ( 'type' , 'hidden' );
549 form.appendChild ( input ) ;
551 if ( !form.prospect_list ) {
552 var input = document.createElement('input');
553 input.setAttribute ( 'name' , 'prospect_list' );
554 input.setAttribute ( 'type' , 'hidden' );
555 form.appendChild ( input ) ;
557 if ( !form.return_module ) {
558 var input = document.createElement('input');
559 input.setAttribute ( 'name' , 'return_module' );
560 input.setAttribute ( 'type' , 'hidden' );
561 form.appendChild ( input ) ;
563 if ( !form.return_action ) {
564 var input = document.createElement('input');
565 input.setAttribute ( 'name' , 'return_action' );
566 input.setAttribute ( 'type' , 'hidden' );
567 form.appendChild ( input ) ;
569 if ( !form.select_entire_list ) {
570 var input = document.createElement('input');
571 input.setAttribute ( 'name' , 'select_entire_list' );
572 input.setAttribute ( 'value', document.MassUpdate.select_entire_list.value);
573 input.setAttribute ( 'type' , 'hidden' );
574 form.appendChild ( input ) ;
576 if ( !form.current_query_by_page ) {
577 var input = document.createElement('input');
578 input.setAttribute ( 'name' , 'current_query_by_page' );
579 input.setAttribute ( 'value', '{$current_query_by_page}' );
580 input.setAttribute ( 'type' , 'hidden' );
581 form.appendChild ( input ) ;
583 open_popup('ProspectLists','600','400','',true,false,{ 'call_back_function':'set_return_and_save_targetlist','form_name':'targetlist_form','field_to_name_array':{'id':'prospect_list'} } );
585 $js = str_replace(array("\r","\n"),'',$js);
586 return "<a href='#' style='width: 150px' class='menuItem' onmouseover='hiliteItem(this,\"yes\");' onmouseout='unhiliteItem(this);' onclick=\"$js\">{$app_strings['LBL_ADD_TO_PROSPECT_LIST_BUTTON_LABEL']}</a>";
589 * Display the bottom of the ListView (ie MassUpdate
590 * @return string contents
592 public function displayEnd()
595 if($this->show_mass_update_form) {
596 $str .= $this->mass->getMassUpdateForm(true);
597 $str .= $this->mass->endMassUpdateForm();
604 * Display the multi select data box etc.
605 * @return string contents
607 public function getMultiSelectData()
609 $str = "<script>YAHOO.util.Event.addListener(window, \"load\", sListView.check_boxes);</script>\n";
611 $massUpdateRun = isset($_REQUEST['massupdate']) && $_REQUEST['massupdate'] == 'true';
612 $uids = empty($_REQUEST['uid']) || $massUpdateRun ? '' : $_REQUEST['uid'];
613 $select_entire_list = isset($_REQUEST['select_entire_list']) && !$massUpdateRun ? $_REQUEST['select_entire_list'] : 0;
615 $str .= "<textarea style='display: none' name='uid'>{$uids}</textarea>\n" .
616 "<input type='hidden' name='select_entire_list' value='{$select_entire_list}'>\n".
617 "<input type='hidden' name='{$this->moduleString}' value='0'>\n".
618 "<input type='hidden' name='show_plus' value='{$this->show_plus}'>\n";