本文整理汇总了PHP中rex_accesskey函数的典型用法代码示例。如果您正苦于以下问题:PHP rex_accesskey函数的具体用法?PHP rex_accesskey怎么用?PHP rex_accesskey使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了rex_accesskey函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: key
$apage = key($REX['ADDON']['status']);
$perm = '';
if (isset($REX['ADDON']['perm'][$apage])) {
$perm = $REX['ADDON']['perm'][$apage];
}
$name = '';
if (isset($REX['ADDON']['name'][$apage])) {
$name = $REX['ADDON']['name'][$apage];
}
$popup = '';
if (isset($REX['ADDON']['popup'][$apage])) {
$popup = $REX['ADDON']['popup'][$apage];
}
$accesskey = '';
if (isset($REX['ACKEY']['ADDON'][$apage])) {
$accesskey = rex_accesskey($name, $REX['ACKEY']['ADDON'][$apage]);
}
// Leerzeichen durch ersetzen, damit Addonnamen immer in einer Zeile stehen
$name = str_replace(' ', ' ', $name);
$liClass = $page == $apage ? $activeClass : '';
if (current($REX['ADDON']['status']) == 1 && $name != '' && ($perm == '' || $REX_USER->hasPerm($perm) || $REX_USER->hasPerm("admin[]"))) {
$separator = ' | ';
if ($first) {
$separator = '';
$first = false;
}
if ($popup == 1) {
echo '<li' . $liClass . ' id="rex-mainnavi-' . $apage . '">' . $separator . '<a href="javascript:newPoolWindow(\'index.php?page=' . $apage . '\');"' . rex_tabindex() . $accesskey . '>' . $name . '</a></li>' . "\n";
} elseif ($popup == '' or $popup == 0) {
echo '<li' . $liClass . ' id="rex-mainnavi-' . $apage . '">' . $separator . '<a href="index.php?page=' . $apage . '"' . rex_tabindex() . $accesskey . '>' . $name . '</a></li>' . "\n";
} else {
示例2: rex_accesskey
<p class="rex-form-col-a rex-form-select">
<label for="rex-form-lang">$REX[\'LANG\']</label>
' . $sel_lang->get() . '
</p>
</div>
<div class="rex-form-row">
<p class="rex-form-col-a rex-form-select">
<label for="rex-form-mod-rewrite">$REX[\'MOD_REWRITE\']</label>
' . $sel_mod_rewrite->get() . '
</p>
</div>
<div class="rex-form-row">
<p class="rex-form-col-a rex-form-submit">
<input type="submit" class="rex-form-submit" name="sendit" value="' . $I18N->msg("specials_update") . '"' . rex_accesskey($I18N->msg('specials_update'), $REX['ACKEY']['SAVE']) . ' />
</p>
</div>
<!--
</div>
-->
</fieldset>
</div> <!-- Ende rex-area-content //-->
</div> <!-- Ende rex-area-col-b //-->
</div> <!-- Ende rex-area-col-2 //-->
</form>
</div>
';
示例3: htmlspecialchars
<div class="rex-form-row">
<p class="rex-form-col-a rex-form-text">
<label for="rex-form-meta-article-name">' . $I18N->msg("name_description") . '</label>
<input class="rex-form-text" type="text" id="rex-form-meta-article-name" name="meta_article_name" value="' . htmlspecialchars($article->getValue("name")) . '" size="30"' . rex_tabindex() . ' />
</p>
<div class="rex-clearer"></div>
</div>
<div class="rex-clearer"></div>';
// ----- EXTENSION POINT
echo rex_register_extension_point('ART_META_FORM', '', array('id' => $article_id, 'clang' => $clang, 'article' => $article));
echo '
<div class="rex-form-row">
<p class="rex-form-col-a rex-form-submit">
<input class="rex-form-submit" type="submit" name="savemeta" value="' . $I18N->msg("update_metadata") . '"' . rex_accesskey($I18N->msg('update_metadata'), $REX['ACKEY']['SAVE']) . rex_tabindex() . ' />
</p>
</div>
<div class="rex-clearer"></div>
</div>
</fieldset>';
// ----- EXTENSION POINT
echo rex_register_extension_point('ART_META_FORM_SECTION', '', array('id' => $article_id, 'clang' => $clang));
echo '</div>';
$isStartpage = $article->getValue('startpage') == 1;
// ------------------------------------------------------------- SONSTIGES START
$out = '';
// --------------------------------------------------- ZUM STARTARTICLE MACHEN START
if ($REX['USER']->isAdmin() || $REX['USER']->hasPerm('article2startpage[]')) {
$out .= '
<fieldset class="rex-form-col-1">
示例4: rex_accesskey
$("#cats_mcats_perms").hide();
$("#cats_mcats_box").hide();
$("#userperm-extra").find("option[value=\'editContentOnly\\[\\]\']").attr("disabled", "disabled");
};
});
//--></script>';
}
// ---------------------------------- Userliste
if (isset($SHOW) and $SHOW) {
$list = rex_list::factory('SELECT user_id, name, login, lasttrydate FROM ' . $REX['TABLE_PREFIX'] . 'user ORDER BY name');
$list->setCaption($I18N->msg('user_caption'));
$list->addTableAttribute('summary', $I18N->msg('user_summary'));
$list->addTableColumnGroup(array(40, '5%', '*', 153, 153, 70, 80));
$tdIcon = '<span class="rex-i-element rex-i-user"><span class="rex-i-element-text">###name###</span></span>';
$thIcon = '<a class="rex-i-element rex-i-user-add" href="' . $list->getUrl(array('FUNC_ADD' => '1')) . '"' . rex_accesskey($I18N->msg('create_user'), $REX['ACKEY']['ADD']) . '><span class="rex-i-element-text">' . $I18N->msg('create_user') . '</span></a>';
$list->addColumn($thIcon, $tdIcon, 0, array('<th class="rex-icon">###VALUE###</th>', '<td class="rex-icon">###VALUE###</td>'));
$list->setColumnParams($thIcon, array('user_id' => '###user_id###'));
$list->setColumnLabel('user_id', 'ID');
$list->setColumnLayout('user_id', array('<th class="rex-small">###VALUE###</th>', '<td class="rex-small">###VALUE###</td>'));
$list->setColumnLabel('login', $I18N->msg('login'));
$list->setColumnLabel('name', $I18N->msg('name'));
$list->setColumnParams('name', array('user_id' => '###user_id###'));
$list->setColumnFormat('name', 'custom', create_function('$params', '$list = $params["list"];
return $list->getColumnLink("name", htmlspecialchars($list->getValue("name") != "" ? $list->getValue("name") : $list->getValue("login")));'));
$list->setColumnLabel('lasttrydate', $I18N->msg('last_login'));
$list->setColumnFormat('lasttrydate', 'strftime', 'datetime');
$list->addColumn('funcs', $I18N->msg('user_delete'));
$list->setColumnLabel('funcs', $I18N->msg('user_functions'));
$list->setColumnParams('funcs', array('FUNC_DELETE' => '1', 'user_id' => '###user_id###'));
$list->setColumnLayout('funcs', array('<th colspan="2">###VALUE###</th>', '<td>###VALUE###</td>'));
示例5: confirm
$add_td = '';
$add_td = '<td class="rex-small">' . $lang_id . '</td>';
$delLink = $I18N->msg('clang_delete');
if ($lang_id == 0) {
$delLink = '<span class="rex-strike">' . $delLink . '</span>';
} else {
$delLink = '<a href="index.php?page=specials&subpage=lang&func=deleteclang&clang_id=' . $lang_id . '" onclick="return confirm(\'' . $I18N->msg('delete') . ' ?\')">' . $delLink . '</a>';
}
// Edit form
if ($func == 'editclang' && $clang_id == $lang_id) {
echo '
<tr class="rex-trow-actv">
<td class="rex-small"><span class="rex-i-element rex-i-clang"><span class="rex-i-element-text">' . htmlspecialchars($clang_name) . '</span></span></td>
' . $add_td . '
<td><input class="rex-form-text" type="text" id="rex-form-clang-name" name="clang_name" value="' . htmlspecialchars($lang) . '" /></td>
<td><input class="rex-form-submit" type="submit" name="edit_clang_save" value="' . $I18N->msg('clang_update') . '"' . rex_accesskey($I18N->msg('clang_update'), $REX['ACKEY']['SAVE']) . ' /></td>
</tr>';
} else {
$editLink = 'index.php?page=specials&subpage=lang&func=editclang&clang_id=' . $lang_id . '#clang';
echo '
<tr>
<td class="rex-small"><a class="rex-i-element rex-i-clang" href="' . $editLink . '"><span class="rex-i-element-text">' . htmlspecialchars($clang_name) . '</span></a></td>
' . $add_td . '
<td><a href="' . $editLink . '">' . htmlspecialchars($lang) . '</a></td>
<td>' . $delLink . '</td>
</tr>';
}
}
echo '
</tbody>
</table>';
示例6: editSlice
function editSlice($RE_CONTS, $RE_MODUL_IN, $RE_CTYPE, $RE_MODUL_ID)
{
global $REX, $I18N;
$slice_content = '
<a name="editslice"></a>
<form enctype="multipart/form-data" action="index.php#slice' . $RE_CONTS . '" method="post" id="REX_FORM">
<fieldset>
<legend class="rex-lgnd">' . $I18N->msg('edit_block') . '</legend>
<input type="hidden" name="article_id" value="' . $this->article_id . '" />
<input type="hidden" name="page" value="content" />
<input type="hidden" name="mode" value="' . $this->mode . '" />
<input type="hidden" name="slice_id" value="' . $RE_CONTS . '" />
<input type="hidden" name="ctype" value="' . $RE_CTYPE . '" />
<input type="hidden" name="module_id" value="' . $RE_MODUL_ID . '" />
<input type="hidden" name="function" value="edit" />
<input type="hidden" name="save" value="1" />
<input type="hidden" name="update" value="0" />
<input type="hidden" name="clang" value="' . $this->clang . '" />
<div class="rex-cnt-slc-ipt">
<div class="rex-cnt-slc-ipt2">
' . $RE_MODUL_IN . '
</div>
</div>
<p class="rex-sbmt">
<input type="submit" value="' . $I18N->msg('save_block') . '" name="btn_save" ' . rex_accesskey($I18N->msg('save_block'), $REX['ACKEY']['SAVE']) . ' />
<input type="submit" value="' . $I18N->msg('update_block') . '" name="btn_update" ' . rex_accesskey($I18N->msg('update_block'), $REX['ACKEY']['APPLY']) . ' />
</p>
</fieldset>
</form>';
$slice_content = $this->replaceVars($this->CONT, $slice_content);
return $slice_content;
}
示例7: rex_medienpool_Mediaform
function rex_medienpool_Mediaform($form_title, $button_title, $rex_file_category, $file_chooser, $close_form)
{
global $I18N, $REX, $REX_USER, $subpage, $ftitle;
$s = '';
$cats_sel = new rex_select();
$cats_sel->setStyle('class="inp100"');
$cats_sel->setSize(1);
$cats_sel->setName('rex_file_category');
$cats_sel->setId('rex_file_category');
$cats_sel->addOption($I18N->msg('pool_kats_no'), "0");
$mediacat_ids = array();
$rootCat = 0;
if ($rootCats = OOMediaCategory::getRootCategories()) {
foreach ($rootCats as $rootCat) {
rex_medienpool_addMediacatOptionsWPerm($cats_sel, $rootCat, $mediacat_ids);
}
}
$cats_sel->setSelected($rex_file_category);
if (isset($msg) and $msg != "") {
$s .= rex_warning($msg);
$msg = "";
}
if (!isset($ftitle)) {
$ftitle = '';
}
$add_file = '';
if ($file_chooser) {
$devInfos = '';
if ($REX_USER->hasPerm('advancedMode[]')) {
$devInfos = '<span class="rex-notice">
<span>' . $I18N->msg('pool_max_uploadsize') . ':</span> ' . OOMedia::_getFormattedSize(rex_ini_get('upload_max_filesize')) . '
<!-- Upload-Temp-Dir: ' . rex_ini_get('upload_tmp_dir') . '
Uploads: ' . (rex_ini_get('file_uploads') == 1 ? 'On' : 'Off') . '<br />
Max-Upload-Time: ' . rex_ini_get('max_input_time') . 's -->
</span>';
}
$add_file = '<p>
<label for="file_new">' . $I18N->msg('pool_file_file') . '</label>
<input type="file" id="file_new" name="file_new" size="30" />
' . $devInfos . '
</p>';
}
$add_submit = '';
if (rex_session('media[opener_input_field]') != '') {
$add_submit = '<input type="submit" class="rex-sbmt" name="saveandexit" value="' . $I18N->msg('pool_file_upload_get') . '"' . rex_accesskey($I18N->msg('pool_file_upload_get'), $REX['ACKEY']['SAVE']) . ' />';
}
$s .= '
<div class="rex-mpl-oth">
<form action="index.php" method="post" enctype="multipart/form-data">
<fieldset>
<legend class="rex-lgnd"><span >' . $form_title . '</span></legend>
<input type="hidden" name="page" value="medienpool" />
<input type="hidden" name="media_method" value="add_file" />
<input type="hidden" name="subpage" value="' . $subpage . '" />
<p>
<label for="ftitle">' . $I18N->msg('pool_file_title') . '</label>
<input type="text" size="20" id="ftitle" name="ftitle" value="' . htmlspecialchars(stripslashes($ftitle)) . '" />
</p>
<p>
<label for="rex_file_category">' . $I18N->msg('pool_file_category') . '</label>
' . $cats_sel->get() . '
</p>
' . $add_file . '
<p class="rex-sbmt">
<input type="submit" name="save" value="' . $button_title . '"' . rex_accesskey($button_title, $REX['ACKEY']['SAVE']) . ' />
' . $add_submit . '
</p>
</fieldset>
';
if ($close_form) {
$s .= '</form></div>' . "\n";
}
return $s;
}
示例8: foreach
foreach ($pageArr['NAVI'] as $k => $v) {
$item[$k] = $v;
}
}
$navi_system[$pageArr[0]] = $item;
} else {
// ***** AddOn
if (isset($REX['ADDON']['link'][$pageKey]) && $REX['ADDON']['link'][$pageKey] != "") {
$item['href'] = $REX['ADDON']['link'][$pageKey];
} else {
$item['href'] = 'index.php?page=' . $pageKey;
}
if (isset($REX['ACKEY']['ADDON'][$pageKey])) {
$item['extra'] = rex_accesskey($name, $REX['ACKEY']['ADDON'][$pageKey]);
} else {
$item['extra'] = rex_accesskey($pageArr[0], $accesskey++);
}
$item['subpages'] = array();
if (isset($REX['ADDON'][$pageKey]['SUBPAGES'])) {
$item['subpages'] = $REX['ADDON'][$pageKey]['SUBPAGES'];
}
$item['tabindex'] = rex_tabindex(false);
if (isset($pageArr['NAVI']) && is_array($pageArr['NAVI'])) {
foreach ($pageArr['NAVI'] as $k => $v) {
$item[$k] = $v;
}
}
$navi_addons[$pageArr[0]] = $item;
}
}
}
示例9: htmlspecialchars
<p class="rex-header-top"><a href="../index.php" onclick="window.open(this.href);"><?php
echo htmlspecialchars($REX['SERVERNAME']);
?>
</a></p>
</div>
<div id="rex-navi-logout"><?php
if ($REX['USER'] && !$REX['PAGE_NO_NAVI']) {
$accesskey = 1;
$user_name = $REX['USER']->getValue('name') != '' ? $REX['USER']->getValue('name') : $REX['USER']->getValue('login');
$meta_item = array();
$meta_item['user'] = '<li class="rex-navi-first"><span>' . $I18N->msg('logged_in_as') . ' ' . htmlspecialchars($user_name) . '</span></li>';
$meta_item['profile'] = '<li><a href="index.php?page=profile">' . $I18N->msg('profile_title') . '</a></li>';
$meta_item['logout'] = '<li><a href="index.php?rex_logout=1"' . rex_accesskey($I18N->msg('logout'), $REX['ACKEY']['LOGOUT']) . '>' . $I18N->msg('logout') . '</a></li>';
$meta_item = rex_register_extension_point('META_NAVI', $meta_item);
if (count($meta_item) > 0) {
echo '<ul class="rex-logout">' . implode('', $meta_item) . '</ul>' . "\n";
}
} elseif (!$REX['PAGE_NO_NAVI']) {
echo '<p class="rex-logout">' . $I18N->msg('logged_out') . '</p>';
} else {
echo '<p class="rex-logout"> </p>';
}
?>
</div>
<div id="rex-navi-main">
<?php
if ($REX['USER'] && !$REX['PAGE_NO_NAVI']) {
示例10: htmlspecialchars
<p class="rex-cnt-col2">
<label for="userlogin">' . htmlspecialchars($I18N->msg('login_name')) . '</label>
<span id="userlogin">' . htmlspecialchars($sql->getValue($REX['TABLE_PREFIX'] . 'user.login')) . '</span>
</p>
<p class="rex-cnt-col2">
<label for="userpsw">' . $I18N->msg('password') . '</label>
<input type="text" id="userpsw" name="userpsw" value="' . htmlspecialchars($userpsw) . '" />
' . ($REX['PSWFUNC'] != '' ? '<span>' . $I18N->msg('psw_encrypted') . '</span>' : '') . '
</p>
</div>
<div>
<p class="rex-cnt-col2">
<label for="username">' . $I18N->msg('name') . '</label>
<input type="text" id="username" name="username" value="' . htmlspecialchars($username) . '" />
</p>
<p class="rex-cnt-col2">
<label for="userdesc">' . $I18N->msg('description') . '</label>
<input type="text" id="userdesc" name="userdesc" value="' . htmlspecialchars($userdesc) . '" />
</p>
</div>
<div>
<p class="rex-cnt-col2"><input type="submit" class="rex-sbmt" name="upd_profile_button" value="' . $I18N->msg('profile_save') . '" ' . rex_accesskey($I18N->msg('user_save'), $REX['ACKEY']['SAVE']) . ' /></p>
</div>
</div>
</fieldset>
</form>
</div>
';
}
示例11: rex_accesskey
</p>
</div>
<div class="rex-form-row">
<p class="rex-form-col-a rex-form-text">
<label for="userpsw">' . $I18N->msg('new_password') . '</label>
<input class="rex-form-text" type="password" id="userpsw_new_1" name="userpsw_new_1" />
</p>
<p class="rex-form-col-b rex-form-text">
<label for="userpsw">' . $I18N->msg('new_password_repeat') . '</label>
<input class="rex-form-text" type="password" id="userpsw_new_2" name="userpsw_new_2" />
</p>
</div>
</div>
</fieldset>
<fieldset class="rex-form-col-1">
<div class="rex-form-wrapper">
<div class="rex-form-row">
<p class="rex-form-col-a rex-form-submit">
<input class="rex-form-submit" type="submit" name="upd_psw_button" value="' . $I18N->msg('profile_save_psw') . '" ' . rex_accesskey($I18N->msg('profile_save_psw'), $REX['ACKEY']['SAVE']) . ' />
</p>
</div>
</div>
</fieldset>
</form>
</div>
';
}
示例12: rex_warning
echo rex_warning($message);
}
// ausgabe templateliste !
echo '
<table class="rex-table" summary="' . $I18N->msg("header_template_summary") . '">
<caption class="rex-hide">' . $I18N->msg("header_template_caption") . '</caption>
<colgroup>
<col width="40" />
<col width="40" />
<col width="*" />
<col width="153" />
<col width="153" />
</colgroup>
<thead>
<tr>
<th class="rex-icon"><a href="index.php?page=template&function=add"' . rex_accesskey($I18N->msg('create_template'), $REX['ACKEY']['ADD']) . '><img src="media/template_plus.gif" alt="' . $I18N->msg("create_template") . '" /></a></th>
<th class="rex-icon">ID</th>
<th>' . $I18N->msg("header_template_description") . '</th>
<th>' . $I18N->msg("header_template_active") . '</th>
<th >' . $I18N->msg("header_template_functions") . '</th>
</tr>
</thead>
<tbody>';
$sql = new rex_sql();
$sql->setQuery('SELECT * FROM ' . $REX['TABLE_PREFIX'] . 'template ORDER BY name');
for ($i = 0; $i < $sql->getRows(); $i++) {
$active = $sql->getValue('active') == 1 ? $I18N->msg('yes') : $I18N->msg('no');
echo '
<tr>
<td class="rex-icon"><a href="index.php?page=template&template_id=' . $sql->getValue('id') . '&function=edit"><img src="media/template.gif" alt="' . htmlspecialchars($sql->getValue('name')) . '" title="' . htmlspecialchars($sql->getValue('name')) . '" /></a></td>
<td class="rex-icon">' . $sql->getValue('id') . '</td>
示例13: rex_accesskey
$add_th = '<th class="rex-icon">ID</th>';
}
echo '
<table class="rex-table" summary="' . $I18N->msg('user_summary') . '">
<caption class="rex-hide">' . $I18N->msg('user_caption') . '</caption>
<colgroup>
<col width="40" />
' . $add_col . '
<col width="*" />
<col width="153" />
<col width="153" />
<col width="153" />
</colgroup>
<thead>
<tr>
<th class="rex-icon"><a href="index.php?page=user&FUNC_ADD=1"' . rex_accesskey($I18N->msg('create_user'), $REX['ACKEY']['ADD']) . '><img src="media/user_plus.gif" alt="' . $I18N->msg('create_user') . '" /></a></th>
' . $add_th . '
<th>' . $I18N->msg('name') . '</th>
<th>' . $I18N->msg('login') . '</th>
<th>' . $I18N->msg('last_login') . '</th>
<th>' . $I18N->msg('user_functions') . '</th>
</tr>
</thead>
<tbody>';
$sql = new rex_sql();
$sql->setQuery('SELECT * FROM ' . $REX['TABLE_PREFIX'] . 'user ORDER BY name');
for ($i = 0; $i < $sql->getRows(); $i++) {
$lasttrydate = $sql->getValue('lasttrydate');
$last_login = '-';
if ($lasttrydate != 0) {
$last_login = strftime($I18N->msg('datetimeformat'), $sql->getValue('lasttrydate'));
示例14: rex_warning
}
}
if ($OUT) {
if (isset($message) and $message != '') {
echo rex_warning($message);
echo $module_in_use_message;
}
$list = rex_list::factory('SELECT id, name FROM ' . $REX['TABLE_PREFIX'] . 'module ORDER BY name');
$list->setCaption($I18N->msg('module_caption'));
$list->addTableAttribute('summary', $I18N->msg('module_summary'));
if (!$REX_USER->hasPerm('advancedMode[]')) {
$list->removeColumn('id');
$list->addTableColumnGroup(array(40, '*', 153));
} else {
$list->addTableColumnGroup(array(40, 40, '*', 153));
}
$img = '<img src="media/modul.gif" alt="###name###" title="###name###" />';
$imgAdd = '<img src="media/modul_plus.gif" alt="' . $I18N->msg('create_module') . '" title="' . $I18N->msg('create_module') . '" />';
$imgHeader = '<a href="' . $list->getUrl(array('function' => 'add')) . '"' . rex_accesskey($I18N->msg('create_module'), $REX['ACKEY']['ADD']) . '>' . $imgAdd . '</a>';
$list->addColumn($imgHeader, $img, 0, array('<th class="rex-icon">###VALUE###</th>', '<td class="rex-icon">###VALUE###</td>'));
$list->setColumnParams($imgHeader, array('function' => 'edit', 'modul_id' => '###id###'));
$list->setColumnLabel('id', 'ID');
$list->setColumnLayout('id', array('<th class="rex-icon">###VALUE###</th>', '<td class="rex-icon">###VALUE###</td>'));
$list->setColumnLabel('name', $I18N->msg('module_description'));
$list->setColumnParams('name', array('function' => 'edit', 'modul_id' => '###id###'));
$list->addColumn($I18N->msg('module_functions'), $I18N->msg('delete_module'));
$list->setColumnParams($I18N->msg('module_functions'), array('function' => 'delete', 'modul_id' => '###id###'));
$list->addLinkAttribute($I18N->msg('module_functions'), 'onclick', 'return confirm(\'' . $I18N->msg('delete') . ' ?\')');
$list->setNoRowsMessage($I18N->msg('modules_not_found'));
$list->show();
}
示例15: rex_accesskey
';
}
// ---------------------------------- Userliste
if (isset($SHOW) and $SHOW) {
$list = rex_list::factory('SELECT user_id, name, login, lasttrydate FROM ' . $REX['TABLE_PREFIX'] . 'user ORDER BY name');
$list->setCaption($I18N->msg('user_caption'));
$list->addTableAttribute('summary', $I18N->msg('user_summary'));
if (!$REX_USER->hasPerm('advancedMode[]')) {
$list->removeColumn('user_id');
$list->addTableColumnGroup(array(40, '*', 153, 153, 153));
} else {
$list->addTableColumnGroup(array(40, '5%', '*', 153, 153, 153));
}
$img = '<img src="media/user.gif" alt="###name###" title="###name###" />';
$imgAdd = '<img src="media/user_plus.gif" alt="' . $I18N->msg('create_user') . '" title="' . $I18N->msg('create_user') . '" />';
$imgHeader = '<a href="' . $list->getUrl(array('FUNC_ADD' => '1')) . '"' . rex_accesskey($I18N->msg('create_user'), $REX['ACKEY']['ADD']) . '>' . $imgAdd . '</a>';
$list->addColumn($imgHeader, $img, 0, array('<th class="rex-icon">###VALUE###</th>', '<td class="rex-icon">###VALUE###</td>'));
$list->setColumnParams($imgHeader, array('user_id' => '###user_id###'));
$list->setColumnLabel('user_id', 'ID');
$list->setColumnLayout('user_id', array('<th class="rex-icon">###VALUE###</th>', '<td class="rex-icon">###VALUE###</td>'));
$list->setColumnLabel('name', $I18N->msg('name'));
$list->setColumnParams('name', array('user_id' => '###user_id###'));
$list->setColumnFormat('name', 'custom', create_function('$params', '$list = $params["list"];
return $list->getColumnLink("name", htmlspecialchars($list->getValue("name") != "" ? $list->getValue("name") : $list->getValue("login")));'));
$list->setColumnLabel('login', $I18N->msg('login'));
$list->setColumnLabel('lasttrydate', $I18N->msg('last_login'));
$list->setColumnFormat('lasttrydate', 'strftime', 'datetime');
$list->addColumn('funcs', $I18N->msg('user_delete'));
$list->setColumnLabel('funcs', $I18N->msg('user_functions'));
$list->setColumnParams('funcs', array('FUNC_DELETE' => '1', 'user_id' => '###user_id###'));
$list->setColumnFormat('funcs', 'custom', create_function('$params', 'global $REX_USER;