Esempio n. 1
0
    public static function createPageTable()
    {
        wp_redirect('http://www.google.de');
        exit;
        $myListTable = new CPT_Item_Table();
        $action = $myListTable->process_bulk_action();
        if ($action == "viewitems") {
            return PAG_Basket::createPageView();
        }
        // echo '<div class="wrap"><h2>My List Table Test</h2>';
        $myListTable->prepare_items();
        ?>
		
			<div class="wrap">
			
				<h1>Item Basket</h1>
		
		<form method="post">
		<input type="hidden" name="page" value="<?php 
        echo $_REQUEST['page'];
        ?>
" />
		<?php 
        $myListTable->search_box('search', 'search_id');
        $myListTable->display();
        ?>
		</form>
			</div>
		<?php 
    }
Esempio n. 2
0
    public static function page_itembasket()
    {
        ?>
		<div class="wrap">
		
			<h1>Item Basket</h1>
	<?php 
        $myListTable = new CPT_Item_Table();
        // echo '<div class="wrap"><h2>My List Table Test</h2>';
        $myListTable->prepare_items();
        ?>
	<form method="post">
	<input type="hidden" name="page" value="<?php 
        echo $_REQUEST['page'];
        ?>
" />
	<?php 
        $myListTable->search_box('search', 'search_id');
        $myListTable->display();
        ?>
	</form>
		</div>
	<?php 
    }