function amr_list_user_admin_headings($l)
{
    global $amain;
    global $ausersadminurl;
    if (!is_admin()) {
        return;
    }
    //echo '<div class="wrap"><div id="icon-users" class="icon32"><br /></div><h2>';
    echo PHP_EOL . '<div class="wrap"><!-- the nested wrap -->' . PHP_EOL . '<br /><h2>';
    echo $amain['names'][$l];
    echo '</h2>';
    echo '<table><tr><td>' . '<ul class="subsubsub" style="float:left; white-space:normal;">';
    $t = __('CSV Export', 'amr-users');
    $n = $amain['names'][$l];
    if (current_user_can('list_users') or current_user_can('edit_users')) {
        echo '<li style="display:block; float:left;">' . au_csv_link($t, $l, $n . __(' - Standard CSV.', 'amr-users')) . '</li>';
        echo '<li style="display:block; float:left;"> |' . au_csv_link(__('Txt Export', 'amr-users'), $l . '&amp;csvfiltered', $n . __('- a .txt file, with CR/LF filtered out, html stripped, tab delimiters, no quotes ', 'amr-users')) . '</li>';
    }
    if (current_user_can('manage_options')) {
        echo '<li style="display:block; float:left;"> | ' . au_configure_link(__('Configure this list', 'amr-users'), $l, $n) . '</li>';
    }
    echo '</ul>';
    //echo '<ul class="row-actions subsubsub" style="float:left; white-space:normal;">';
    echo '<ul class="subsubsub" style="float:left; white-space:normal;">';
    if (current_user_can('manage_options')) {
        echo '<li style="display:block; float:left;"> | ' . au_headings_link($l, $n) . '</li>';
        echo '<li style="display:block; float:left;"> | ' . au_filter_link($l, $n) . '</li>';
        echo '<li style="display:block; float:left;"> | ' . au_custom_nav_link($l, $n) . '</li>';
        echo '<li style="display:block; float:left;"> | ' . au_grouping_link($l, $n);
        /*			echo '<li style="display:block; float:left;"> | '
        			.'<a style="color:#D54E21;" href="'.$ausersadminurl.'">'.__('Main Settings','amr-users').'</a></li>';
        			echo '<li style="display:block; float:left;"> | '
        			.'<a '.a_currentclass('nicenames').' href="'
        			.wp_nonce_url(add_query_arg('am_page','nicenames',$ausersadminurl),'amr-meta')
        			.'" title="'.__('Find fields and update nice names','amr-users').'" >'
        			.__('Find Fields','amr-users').'</a></li>';
        
        */
    }
    echo '<li style="display:block; float:left;"> | ' . au_buildcache_view_link(__('Rebuild cache now', 'amr-users'), $l, $n) . '</li>';
    echo '</ul></td></tr></table>' . PHP_EOL . '</div><!-- end the nested wrap -->' . PHP_EOL;
}
function amr_meta_overview_onelist_settings($i)
{
    /* the main setting spage  - num of lists and names of lists */
    global $amain, $aopt;
    $status = '';
    //	if (function_exists('amr_offer_filtering')) {
    if (is_plugin_active('amr-users-plus/amr-users-plus.php')) {
        $greyedout = '';
        $plusstatus = '';
    } else {
        $greyedout = ' style="color: #AAAAAA;" ';
        $plusstatus = ' disabled="disabled"';
    }
    echo '<tr>';
    echo '<td>';
    echo $i;
    echo '</td>';
    echo '<td><input type="text" size="45" id="name' . $i . '" name="name[' . $i . ']"  value="' . $amain['names'][$i] . '" />';
    echo '<br />';
    if ($_REQUEST['page'] == 'ameta-admin-general.php') {
        echo au_configure_link(__('Configure', 'amr-users'), $i, $amain['names'][$i]);
        echo ' |' . au_copy_link('&nbsp;&nbsp;' . __('Copy', 'amr-users'), $i, $amain['names'][$i]);
    } else {
        echo au_buildcache_link('&nbsp;&nbsp;' . __('Rebuild', 'amr-users'), $i, $amain['names'][$i]);
    }
    echo ' |' . au_delete_link('&nbsp;&nbsp;' . __('Delete', 'amr-users'), $i, $amain['names'][$i]) . ' |' . au_view_link('&nbsp;&nbsp;' . __('View', 'amr-users'), $i, $amain['names'][$i]);
    if (!is_network_admin()) {
        echo ' |' . au_add_userlist_page('&nbsp;&nbsp;' . __('Add page', 'amr-users'), $i, $amain['names'][$i]);
        echo '</td>';
    }
    echo '<td align="center">';
    echo '<input type="checkbox" id="public' . $i . '" name="public[' . $i . ']" value="1" ';
    if (!empty($amain['public'][$i])) {
        echo 'checked="checked" />';
        $status = '';
    }
    echo '</td>';
    echo '<td align="left">';
    if (empty($amain['html_type'][$i])) {
        $amain['html_type'][$i] = 'table';
    }
    foreach (array('table', 'simple') as $type) {
        echo '<input type="radio" id="html_type' . $i . '" name="html_type[' . $i . ']" value="' . $type . '" ';
        if ($amain['html_type'][$i] == $type) {
            echo 'checked="Checked"';
        }
        echo '/>';
        _e($type);
        echo '<br />';
    }
    echo '</td>';
    //}
    if (empty($amain['list_rows_per_page'][$i])) {
        $amain['list_rows_per_page'][$i] = $amain['rows_per_page'];
    }
    echo '<td><input type="text" size="3" id="rows_per_page' . $i . '" name="list_rows_per_page[' . $i . ']"  value="' . $amain['list_rows_per_page'][$i] . '" /></td>';
    if (empty($amain['avatar_size'])) {
        $amain['avatar_size'] = 10;
    }
    if (empty($amain['list_avatar_size'][$i])) {
        $amain['list_avatar_size'][$i] = $amain['avatar_size'];
    }
    echo '<td><input type="text" size="3" id="avatar_size' . $i . '" name="list_avatar_size[' . $i . ']"  value="' . $amain['list_avatar_size'][$i] . '" /></td>';
    //
    echo '<td align="center"><input type="checkbox" id="show_search' . $i . '" name="show_search[' . $i . ']" value="1" ' . $status;
    if (!empty($amain['show_search'][$i])) {
        echo 'checked="Checked"';
    }
    echo '/></td>';
    //
    echo '<td align="center"><input type="checkbox" id="show_perpage' . $i . '" name="show_perpage[' . $i . ']" value="1" ' . $status;
    if (!empty($amain['show_perpage'][$i])) {
        echo 'checked="Checked"';
    }
    echo '/></td>';
    //
    echo '<td align="center"><input type="checkbox" id="show_pagination' . $i . '" name="show_pagination[' . $i . ']" value="1" ' . $status;
    if (!empty($amain['show_pagination'][$i])) {
        echo 'checked="Checked"';
    }
    echo '/></td>';
    //
    echo '<td align="center"><input type="checkbox" id="show_headings' . $i . '" name="show_headings[' . $i . ']" value="1" ' . $status;
    if (!empty($amain['show_headings'][$i])) {
        echo 'checked="Checked"';
    }
    echo '/></td>';
    //
    echo '<td align="center"><input type="checkbox" id="show_csv' . $i . '" name="show_csv[' . $i . ']" value="1" ' . $status;
    if (!empty($amain['show_csv'][$i])) {
        echo 'checked="Checked"';
    }
    echo '/></td>';
    //
    echo '<td align="center"><input type="checkbox" id="show_refresh' . $i . '" name="show_refresh[' . $i . ']" value="1" ' . $status;
    if (!empty($amain['show_refresh'][$i])) {
        echo 'checked="Checked"';
    }
    echo '/></td>';
    //
    echo '<td align="center">
		<input type="checkbox" id="sortable' . $i . '" name="sortable[' . $i . ']"  ';
    echo '	value="1" ';
    if (!empty($amain['sortable'][$i])) {
        echo 'checked="Checked"';
    }
    echo '/></td>';
    //
    echo '<td align="center">
		<input type="checkbox" id="customnav' . $i . '" name="customnav[' . $i . ']"  ' . $plusstatus;
    echo '	value="1" ';
    if (!empty($amain['customnav'][$i])) {
        echo 'checked="Checked"';
    }
    echo '/></td>';
    echo '<td align="left">';
    if (empty($amain['filter_html_type'][$i])) {
        $amain['filter_html_type'][$i] = 'none';
    }
    foreach (array('intableheader' => __('in table', 'amr-users'), 'above' => __('above', 'amr-users'), 'none' => __('none', 'amr-users')) as $val => $type) {
        echo '<input type="radio" id="filter_html_type' . $i . '" name="filter_html_type[' . $i . ']" value="' . $val . '" ' . $plusstatus;
        if ($amain['filter_html_type'][$i] == $val) {
            echo 'checked="Checked"';
        }
        echo '/>';
        echo $type;
        echo '<br />';
    }
    echo '</td>';
}