function gdm_dashboard_widget() { require_once GDM_CLIENTS_CLASS; $clients = new gdm_clients(); echo "<b>GDM has " . sizeof(get_option('gdm_blogger_clients')) . " clients!</b>"; echo "<p>" . sizeof($clients->get_clients_with_posts()) . " has posts ready to publish and<br>"; echo sizeof($clients->get_clients_without_posts()) . " have no posts assigned to them.</p>"; }
<?php require_once GDM_CLIENTS_CLASS; $clients = new gdm_clients(); print "<pre>"; print_r($_POST); print "</pre>"; $without = $clients->get_clients_without_posts(); $with = $clients->get_clients_with_posts(); ?> <h2>Post Publishing Schedule</h2> <p>Post Posting Schedule<br>For now, this system does not work. You can, however, publish posts manually</p> <form action="" method="post"> <?php if (!empty($without)) { ?> <hr> <p><b>Note:</b><br>The following clients do NOT have any posts assigned to them</p> <table style="width: 60%"> <tr> <th>ID:</th> <th>Client:</th> <th>URL:</th> <th>Categories:</th> </tr> <?php foreach ($without as $id => $clientdata) { $row = "<tr>"; $row .= "<td>" . $id . "</td>";