function _getTableheadAsHTML() { include_once 'functions/misc_functions.php'; $params = $this->_getGetParamsAsArray(); $params['from'] = 1; $html = ' <tr class="head">' . LF; $html .= ' <td class="head" style="width:40%;" colspan="2">'; if ($this->getSortKey() == 'name') { $params['sort'] = 'name_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'name_rev') { $params['sort'] = 'name'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'name'; $picture = ' '; } $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('USER_NAME'), '', '', $this->getFragment(), '', '', '', 'class="head"'); $html .= $picture; if ($this->getSortKey() == 'user_id') { $params['sort'] = 'user_id_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'user_id_rev') { $params['sort'] = 'user_id'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'user_id'; $picture = ''; } $html .= ' (' . ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('USER_USER_ID'), '', '', $this->getFragment(), '', '', '', 'class="head"'); $html .= $picture . ')'; $html .= '</td>' . LF; $html .= ' <td style="width:20%; font-size:8pt;" class="head">'; if ($this->getSortKey() == 'last_login') { $params['sort'] = 'last_login_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'last_login_rev') { $params['sort'] = 'last_login'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'last_login'; $picture = ' '; } $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('USER_LASTLOGIN'), '', '', $this->getFragment(), '', '', '', 'class="head"'); $html .= $picture; $html .= '</td>' . LF; $html .= ' <td style="width:30%; font-size:8pt;" class="head">'; if ($this->getSortKey() == 'email') { $params['sort'] = 'email_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'email_rev') { $params['sort'] = 'email'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'email'; $picture = ' '; } $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('USER_EMAIL'), '', '', $this->getFragment(), '', '', '', 'class="head"'); $html .= $picture; $html .= '</td>' . LF; $html .= ' </tr>' . LF; return $html; }
function _getTableheadAsHTML() { include_once 'functions/misc_functions.php'; $params = $this->_getGetParamsAsArray(); $params['from'] = 1; $html = ' <tr class="head">' . LF; $html .= ' <td class="head" style="width:55%;" colspan="2">'; if ($this->getSortKey() == 'title') { $params['sort'] = 'title_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'title_rev') { $params['sort'] = 'title'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'title'; $picture = ' '; } if (empty($params['download']) or $params['download'] != 'zip') { $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('COMMON_TITLE'), '', '', $this->getFragment(), '', '', '', 'class="head"'); } else { $html .= $this->_translator->getMessage('COMMON_TITLE'); } $html .= $picture; $html .= '</td>' . LF; $html .= ' <td style="width:20%; font-size:8pt;" class="head">'; if ($this->getSortKey() == 'time') { $params['sort'] = 'time_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'time_rev') { $params['sort'] = 'time'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'time'; $picture = ' '; } if (empty($params['download']) or $params['download'] != 'zip') { $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('DATES_TIME'), '', '', $this->getFragment(), '', '', '', 'class="head"'); } else { $html .= $this->_translator->getMessage('DATES_TIME'); } $html .= $picture; $html .= '</td>' . LF; $html .= ' <td colspan="2" style="width:25%; font-size:8pt;" class="head">'; if ($this->getSortKey() == 'place') { $params['sort'] = 'place_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'place_rev') { $params['sort'] = 'place'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'place'; $picture = ' '; } if (empty($params['download']) or $params['download'] != 'zip') { $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('DATES_PLACE'), '', '', $this->getFragment(), '', '', '', 'class="head"'); } else { $html .= $this->_translator->getMessage('DATES_PLACE'); } $html .= $picture; $html .= '</td>' . LF; $html .= ' </tr>' . LF; return $html; }
function _getTableheadAsHTML() { include_once 'functions/misc_functions.php'; $params = $this->_getGetParamsAsArray(); $params['from'] = 1; $html = ' <tr class="head">' . LF; $current_context = $this->_environment->getCurrentContextItem(); $with_assessment = false; if ($current_context->isAssessmentActive()) { $with_assessment = true; } if ($with_assessment) { $html .= ' <td class="head" style="width:45%;" colspan="2">'; } else { $html .= ' <td class="head" style="width:53%;" colspan="2">'; } if ($this->getSortKey() == 'title') { $params['sort'] = 'title_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'title_rev') { $params['sort'] = 'title'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'title'; $picture = ' '; } if (empty($params['download']) or $params['download'] != 'zip') { $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('COMMON_TITLE'), '', '', $this->getFragment(), '', '', '', 'class="head"'); } else { $html .= $this->_translator->getMessage('COMMON_TITLE'); } $html .= $picture; $html .= '</td>' . LF; $html .= ' <td style="width:15%; font-size:8pt;" class="head">'; if ($this->getSortKey() == 'numposts') { $params['sort'] = 'numposts_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'numposts_rev') { $params['sort'] = 'numposts'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'numposts'; $picture = ' '; } if (empty($params['download']) or $params['download'] != 'zip') { $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('DISCUSSION_ARTICLES'), '', '', $this->getFragment(), '', '', '', 'class="head"'); } else { $html .= $this->_translator->getMessage('DISCUSSION_ARTICLES'); } $html .= $picture; $html .= '</td>' . LF; $html .= ' <td style="width:13%; font-size:8pt;" class="head">'; if ($this->getSortKey() == 'latest') { $params['sort'] = 'latest_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'latest_rev') { $params['sort'] = 'latest'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'latest'; $picture = ' '; } if (empty($params['download']) or $params['download'] != 'zip') { $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('COMMON_EDIT_AT'), '', '', $this->getFragment(), '', '', '', 'class="head"'); } else { $html .= $this->_translator->getMessage('COMMON_EDIT_AT'); } $html .= $picture; $html .= '</td>' . LF; $html .= ' <td style="width:15%; font-size:8pt;" class="head">'; if ($this->getSortKey() == 'creator') { $params['sort'] = 'creator_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'creator_rev') { $params['sort'] = 'creator'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'creator'; $picture = ' '; } if (empty($params['download']) or $params['download'] != 'zip') { $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('COMMON_EDIT_BY'), '', '', $this->getFragment(), '', '', '', 'class="head"'); } else { $html .= $this->_translator->getMessage('COMMON_EDIT_BY'); } $html .= $picture; $html .= '</td>' . LF; // assessment if ($with_assessment) { $html .= '<td style="15%; font-size:8pt;" class="head">'; if ($this->getSortKey() == 'assessment') { $params['sort'] = 'assessment_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'assessment_rev') { $params['sort'] = 'assessment'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'assessment'; $picture = ' '; } if (empty($params['download']) or $params['download'] != 'zip') { $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('COMMON_ASSESSMENT_INDEX'), '', '', $this->getFragment(), '', '', '', 'class="head"'); } else { $html .= $this->_translator->getMessage('COMMON_ASSESSMENT_INDEX'); } $html .= $picture; $html .= '</td>' . LF; } $html .= ' </tr>' . LF; return $html; }
function _getTableheadAsHTML() { include_once 'functions/misc_functions.php'; $html = ''; $current_portal = $this->_environment->getCurrentPortalItem(); if ($this->_environment->inPortal()) { $params = $this->_environment->getCurrentParameterArray(); $html .= ' <tr class="list">' . LF; $html .= ' <td colspan="2" class="portal-head" style="width:50%">' . LF; if ($this->getSortKey() == 'title') { $params['sort'] = 'title_rev'; $text = $this->_translator->getMessage('COMMON_TITLE'); } elseif ($this->getSortKey() == 'title_rev') { $params['sort'] = 'title'; $text = $this->_translator->getMessage('COMMON_TITLE'); } else { $params['sort'] = 'title'; $text = $this->_translator->getMessage('COMMON_TITLE'); } if (empty($this->_activity_modus)) { $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $text, '', '', '', '', '', '', 'class="head"') . LF; } else { $html .= $text; } if ($this->getSortKey() == 'title') { $html .= ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'title_rev') { $html .= ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } $html .= ' </td>' . LF; if ($this->_environment->inPortal()) { $html .= ' <td class="portal-head" style="width:35%">' . LF; $html .= '<span class="portal_link">' . $this->_translator->getMessage('CONTEXT_MODERATOR') . '</span>' . LF; $html .= ' </td>' . LF; } $html .= ' <td class="portal-head" style="width:15%">' . LF; if ($this->getSortKey() == 'activity_rev') { $params['sort'] = 'activity'; $text = $this->_translator->getMessage('CONTEXT_ACTIVITY'); } elseif ($this->getSortKey() == 'activity') { $params['sort'] = 'activity_rev'; $text = $this->_translator->getMessage('CONTEXT_ACTIVITY'); } else { $params['sort'] = 'activity_rev'; $text = $this->_translator->getMessage('CONTEXT_ACTIVITY'); } if (empty($this->_activity_modus)) { $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $text, '', '', '', '', '', '', 'class="head"') . LF; } else { $html .= $text; } if ($this->getSortKey() == 'activity_rev') { $html .= ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'activity') { $html .= ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } $html .= ' </td>' . LF; $html .= ' </tr>' . LF; } return $html; }
function _getTableheadAsHTML() { include_once 'functions/misc_functions.php'; $params = $this->_getGetParamsAsArray(); $params['from'] = 1; $html = ' <tr class="head">' . LF; $html .= ' <td class="head" style="width:58%;" colspan="2">'; if ($this->getSortKey() == 'title') { $params['sort'] = 'title_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'title_rev') { $params['sort'] = 'title'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'title'; $picture = ' '; } $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('COMMON_TITLE'), '', '', $this->getFragment(), '', '', '', 'class="head"'); $html .= $picture; $html .= '</td>' . LF; $html .= ' <td style="width:30%; font-size:8pt;" class="head">'; $html .= $this->_translator->getMessage('ROOM_CONTACT'); $html .= '</td>' . LF; $html .= ' <td style="width:18%; font-size:8pt;" class="head" colspan="2">'; if ($this->getSortKey() == 'activity') { $params['sort'] = 'activity_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'activity_rev') { $params['sort'] = 'activity'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'activity'; $picture = ' '; } $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('CONTEXT_ACTIVITY'), '', '', $this->getFragment(), '', '', '', 'class="head"'); $html .= $picture; $html .= '</td>' . LF; $html .= ' </tr>' . LF; return $html; }
function _getPrintableTableHeadAsHTML() { include_once 'functions/misc_functions.php'; $params = $this->_getGetParamsAsArray(); $params['from'] = 1; $html = '<tr>'; if ($this->hasCheckboxes()) { $html .= '<td class="count" colspan="3">' . $this->_getDescriptionAsHTML() . '</td>' . LF; } else { $html .= '<td class="count" colspan="2">' . $this->_getDescriptionAsHTML() . '</td>' . LF; } $html .= '<td width="5%" class="head_nav" colspan="2"> </td>' . LF; $html .= '</tr>'; $html .= ' <tr class="head">' . LF; if ($this->hasCheckboxes()) { $html .= ' <td class="head" colspan="2">'; } else { $html .= ' <td class="head" width="40%">'; } if ($this->getSortKey() == 'title') { $params['sort'] = 'title_rev'; $text = $this->_translator->getMessage('COMMON_TITLE') . ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'title_rev') { $params['sort'] = 'title'; $text = $this->_translator->getMessage('COMMON_TITLE') . ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'title'; $text = $this->_translator->getMessage('COMMON_TITLE'); } $html .= $text; $html .= '</td>' . LF; $html .= ' <td width="20%" class="head" >'; if ($this->getSortKey() == 'date_rev') { $params['sort'] = 'date'; $text = $this->_translator->getMessage('TODO_DATE') . ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'date') { $params['sort'] = 'date_rev'; $text = $this->_translator->getMessage('TODO_DATE') . ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'date'; $text = $this->_translator->getMessage('TODO_DATE'); } $html .= $text; $html .= '</td>' . LF; $html .= ' <td width="15%" class="head" >'; if ($this->getSortKey() == 'status') { $params['sort'] = 'status_rev'; $text = $this->_translator->getMessage('TODO_STATUS') . ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'status_rev') { $params['sort'] = 'status'; $text = $this->_translator->getMessage('TODO_STATUS') . ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'status'; $text = $this->_translator->getMessage('TODO_STATUS'); } $html .= $text; $html .= '</td>' . LF; $html .= ' <td width="25%" class="head" colspan="2">'; $text = $this->_translator->getMessage('TODO_RESPONSIBILITY'); $html .= $text; $html .= '</td>' . LF; $html .= ' </tr>' . LF; return $html; }
function _getWorkflowTableColumnAsHTML($with_links) { $html = '<td style="width:6%; font-size:8pt;" class="head">'; if ($this->getSortKey() == 'workflow_status') { $params['sort'] = 'workflow_status_rev'; $picture = ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'workflow_status_rev') { $params['sort'] = 'workflow_status'; $picture = ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'workflow_status'; $picture = ' '; } if ($with_links) { if (empty($params['download']) or $params['download'] != 'zip') { $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $this->_translator->getMessage('COMMON_WORKFLOW_INDEX'), '', '', $this->getFragment(), '', '', '', 'class="head"'); } else { $html .= $this->_translator->getMessage('COMMON_WORKFLOW_INDEX'); } $html .= $picture; } else { $html .= '<span class="index_link">' . $this->_translator->getMessage('COMMON_WORKFLOW_INDEX') . '</span>'; $html .= $picture; } $html .= '</td>' . LF; return $html; }
function _getTableheadAsHTML() { include_once 'functions/misc_functions.php'; $html = ''; $params = $this->_environment->getCurrentParameterArray(); $html .= ' <tr class="head">' . LF; $html .= ' <td class="head">' . LF; if ($this->getSortKey() == 'room_title') { $params['sort'] = 'room_title_rev'; $text = $this->_translator->getMessage('COMMON_TITLE') . ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'room_title_rev') { $params['sort'] = 'room_title'; $text = $this->_translator->getMessage('COMMON_TITLE') . ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'room_title_rev'; $text = $this->_translator->getMessage('COMMON_TITLE'); } $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $text, '', '', '') . LF; $html .= ' </td>' . LF; $html .= ' <td class="head">' . LF; if ($this->getSortKey() == 'activity_rev') { $params['sort'] = 'activity'; $text = $this->_translator->getMessage('CONTEXT_ACTIVITY') . ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'activity') { $params['sort'] = 'activity_rev'; $text = $this->_translator->getMessage('CONTEXT_ACTIVITY') . ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'activity'; $text = $this->_translator->getMessage('CONTEXT_ACTIVITY'); } $html .= ahref_curl($this->_environment->getCurrentContextID(), $this->_module, $this->_function, $params, $text, '', '', '') . LF; $html .= ' </td>' . LF; $html .= ' </tr>' . LF; return $html; }
function _getPrintableTableHeadAsHTML() { include_once 'functions/misc_functions.php'; $params = $this->_getGetParamsAsArray(); $params['from'] = 1; $html = '<tr>'; if ($this->hasCheckboxes()) { $html .= ' <td class="count" colspan="2">' . $this->_getDescriptionAsHTML() . '</td>' . LF; } else { $html .= ' <td class="count">' . $this->_getDescriptionAsHTML() . '</td>' . LF; } $html .= '</tr>'; $html .= ' <tr class="head">' . LF; if ($this->hasCheckboxes()) { $html .= ' <td class="head" colspan="2">'; } else { $html .= ' <td class="head">'; } if ($this->getSortKey() == 'title') { $params['sort'] = 'title_rev'; $text = $this->_translator->getMessage('COMMON_TITLE') . ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'title_rev') { $params['sort'] = 'title'; $text = $this->_translator->getMessage('COMMON_TITLE') . ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'title'; $text = $this->_translator->getMessage('COMMON_TITLE'); } $html .= $text; $html .= '</td>' . LF; $html .= ' <td width="20%" class="head" colspan="2">'; if ($this->getSortKey() == 'modificator') { $params['sort'] = 'modificator_rev'; $text = $this->_translator->getMessage('COMMON_MODIFIED_BY') . ' <img src="' . getSortImage('up') . '" alt="<" border="0"/>'; } elseif ($this->getSortKey() == 'modificator_rev') { $params['sort'] = 'modificator'; $text = $this->_translator->getMessage('COMMON_MODIFIED_BY') . ' <img src="' . getSortImage('down') . '" alt="<" border="0"/>'; } else { $params['sort'] = 'modificator'; $text = $this->_translator->getMessage('COMMON_MODIFIED_BY'); } $html .= $text; $html .= '</td>' . LF; $html .= ' </tr>' . LF; return $html; }