Exemplo n.º 1
0
    GDSRDatabase::get_combo_users($filter_user);
    ?>
        <input class="button-secondary delete" type="submit" name="gdsr_filter" value="Filter" />
    </div>
    <div class="tablenav-pages">
        <?php 
    echo $pager;
    ?>
    </div>
</div>
<br class="clear"/>
<?php 
    if ($vt == "post") {
        $sql = GDSRDatabase::get_moderation_joined($id, ($page_id - 1) * $posts_per_page, $posts_per_page, $filter_user);
    } else {
        $sql = GDSRDatabase::get_moderation($id, $vt, ($page_id - 1) * $posts_per_page, $posts_per_page, $filter_user);
    }
    $rows = $wpdb->get_results($sql, OBJECT);
    ?>
<table class="widefat">
    <thead>
        <tr>
            <th class="check-column" scope="col"><input type="checkbox" onclick="checkAll(document.getElementById('gdsr-moderation'));"/></th>
            <th scope="col"><?php 
    _e("Date And Time", "gd-star-rating");
    ?>
</th>
            <th scope="col"><?php 
    _e("User", "gd-star-rating");
    ?>
</th>