コード例 #1
0
echo '<input type="submit" class="button" value="' . __("Apply", "templatemerge") . '" onclick="if( jQuery(\'#bulk_action\').val() == \'delete\' && !confirm(\'' . __("Delete selected feeds? ", "templatemerge") . __("\\'Cancel\\' to stop, \\'OK\\' to delete.", "templatemerge") . '\')) { return false; } return true;"/>';
?>
                        <a class="button" href="admin.php?page=parsefield"><?php 
_e("Back", "templatemerge");
?>
</a>
                    </div>
                </div>
                <br/>
                <?php 
$page_index = empty($_GET["paged"]) ? 0 : intval($_GET["paged"]) - 1;
$page_size = 10000;
$first_item_index = $page_index * $page_size;
$paging = array('offset' => $first_item_index, 'page_size' => $page_size);
$total_count = 0;
$total_count = TemplateData::count_available_tags($formid);
$display_total = ceil($total_count / $page_size);
$page_links = paginate_links(array('base' => admin_url("admin.php") . "?page=parsefield&view=field_map_list&formid=" . $formid . "&%_%", 'format' => 'paged=%#%', 'prev_text' => __('&laquo;', 'gravityforms'), 'next_text' => __('&raquo;', 'gravityforms'), 'total' => $display_total, 'current' => $page_index + 1, 'show_all' => false));
echo self::display_paging_links("header", $page_links, $first_item_index, $page_size, $total_count);
?>
                <br/><br/><br/>
                <table class="widefat fixed" cellspacing="0">
                    <thead>
                        <tr>
                            <th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input type="checkbox" /></th>
                            <th scope="col" id="active" class="manage-column check-column"></th>
                            <th scope="col" class="manage-column"><?php 
_e("Tag", "templatemerge");
?>
</th>
                            <th scope="col" class="manage-column"><?php