'.PHP_EOL; echo '
'. '
    '; $t = __('CSV Export','amr-users'); $n = $amain['names'][$l]; if (current_user_can('list_users') or current_user_can('edit_users')) { echo '
  • ' .au_csv_link($t, $l, $n.__(' - Standard CSV.','amr-users')).'
  • '; echo '
  • |'.au_csv_link(__('Txt Export','amr-users'), $l.'&csvfiltered', $n.__('- a .txt file, with CR/LF filtered out, html stripped, tab delimiters, no quotes ','amr-users')).'
  • '; } if (current_user_can('manage_options')) { echo '
  • | ' .au_configure_link(__('Configure this list','amr-users'), $l,$n).'
  • '; echo '
  • | '.au_headings_link( $l) .'
  • '; } echo '
'; echo '
    '; echo '
  • | ' .au_buildcache_view_link(__('Rebuild cache now','amr-users'),$l,$n) .'
  • '; echo '
  • | '.au_view_link(__('View','amr-users'), $l,$amain['names'][$l]).'
  • '; echo '
'.PHP_EOL. ''.PHP_EOL; } function alist_searchform ($i) { global $amain; // if (!is_rtl()) $style= ' style="float:right;" '; // else $style= ''; if (isset($_REQUEST['su'])) $searchtext = stripcslashes(esc_textarea($_REQUEST['su'])); else $searchtext = ''; $text = ''; $text .= PHP_EOL.'' .PHP_EOL.'

'; // $text .= ''; return ($text); } function alist_per_pageform ($i) { global $amain; if (empty($amain['list_rows_per_page'][$i])) $amain['list_rows_per_page'][$i] = $amain['rows_per_page']; $rowsperpage = amr_rows_per_page($amain['list_rows_per_page'][$i]); // will check for request $text = PHP_EOL; $text .= '
' .''; $text .= ''; $text .= ''; $text .= ''; $text .= '
'.PHP_EOL; return ($text); } function amr_list_headings ($cols,$icols,$ulist, $sortable,$ahtm) { global $aopt; if (amr_is_plugin_active('amr-users-plus-groupings/amr-users-plus-groupings.php')) { //20170201 ouch plugin name changed stopped this working for a bit $icols = amr_remove_grouping_field ($icols); } $html = ''; $cols = amr_users_get_column_headings ($ulist, $cols, $icols ); // should be added to cache rather $cols = apply_filters('amr-users-headings', $cols,$icols,$ulist); //**** test this foreach ($icols as $ic => $cv) { /* use the icols as our controlling array, so that we have the internal field names */ if (($cv == 'checkbox')) { $html .= $ahtm['th'].' class="manage-column column-cb check-column" >'.htmlspecialchars_decode($cols[$ic]).$ahtm['thc']; } else { if ( isset ($cols[$ic]) ) { if ($sortable and (!($cv == 'checkbox')) ) { // might not be a display field $v = amr_make_sortable($cv,htmlspecialchars_decode($cols[$ic])); } else $v = htmlspecialchars_decode($cols[$ic]); if ($cv === 'comment_count') $v .= '**'; //$v .= amr_indicate_sort_priority ($cv,$l['sortby'][$cv],$l['sortdir'][$cv]); $html .= $ahtm['th'].' class="th th'.$ic.'">'.$v.$ahtm['thc']; } } } $hhtml = $ahtm['tr'].'>'.$html.$ahtm['trc']; /* setup the html for the table headings */ return ($hhtml); } function amr_indicate_sort_priority ($colname, $orig_sort, $sortdir) { if ((!empty($_REQUEST['sort'])) and ($_REQUEST['sort'] === $colname)) { return (' ↑↓' ) ; } if (!empty($orig_sort)) { return(' ↑↓' ) ; } return ''; } function amr_make_sortable($colname, $colhead) { /* adds a link to the column headings so that one can resort against the cache */ $dir = 'SORT_ASC'; // change from $_REQUEST to $_GET as is only used via url at moment // if ever want to also use via posted form, then need to check $_POST too // some sites php server settings aren't correct, or they may have cookies that overwrite in $_REQUEST if ((!empty($_GET['sort'])) and ($_GET['sort'] === $colname)) { if (!empty($_GET['dir'])) { if ($_GET['dir'] === 'SORT_ASC' ) $dir = 'SORT_DESC'; else $dir = 'SORT_ASC'; } } $link = amr_adjust_query_args(); //keep filtering when re sorting etc and rwos per page $link = add_query_arg('sort', $colname, $link); $link = add_query_arg('dir',$dir,$link); $link = esc_url($link); return(''.$colhead.''); } ?>