通话时间$synchronizationList->display()
关于表创建、分页、排序和批量操作的每一件事,但当其创建批量操作时,其只需创建2个输入dropbox
它包含所有批量操作和应用按钮的提交按钮,因此不会创建from
标记和当提交按钮不在form
它什么都不做。所以我创建了一个form
一切都很好。
add_action(\'admin_menu\', array("Shareino", \'ShareinoAdminMenu\'));
/**
* This method adds shareino items to admin menu
*/
public static function ShareinoAdminMenu()
{
add_menu_page(__(\'Shareino\', \'access\'), __(\'Shareino\', \'access\'), \'manage_options\', __(\'shareino\', \'vibe\'),
array("Shareino", "shareinoSetting"), WP_PLUGIN_URL . "/shareino/assets/images/logo.gif", 80);
add_submenu_page(
\'shareino\',
__(\'Synchronize\', \'access\'),
__(\'Synchronize\'),
\'manage_options\',
__(\'Synchronize\'),
array("Shareino", "shareinoSynchronize"));
}
public function shareinoSynchronize()
{
$synchronizationList = new SynchronizationList();
$synchronizationList->prepare_items();
?>
<!-- Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions -->
<form id="movies-filter" method="get">
<!-- For plugins, we also need to ensure that the form posts back to our current page -->
<input type="hidden" name="page" value="<?php echo $_REQUEST[\'page\'] ?>"/>
<!-- Now we can render the completed list table -->
<?php $synchronizationList->display() ?>
</form>
<?php
}