public static function refreshTimeOutDialog() { global $wpdb; return ' <div id="poststuff"> <div class="postbox"> <h3 class="hndle">Interval at which feed auto-refreshes</h3> <div class="inside export-target"> <table class="form-table"> <tbody> <tr> <th style="width:90px;"><label>Interval:</label></th> <td style="width:120px;"><div id="updateSettingMessage"></div>' . PFeedSettingsDialogs::fetchRefreshIntervalSelect() . ' </td> <td> <input class="button-primary" style="margin-left:30px; float:left;" type="submit" value="Update Interval" id="submit" name="submit" onclick="doUpdateSetting(\'selectDelay\', \'cp_feed_delay\')"> </td> </tr> </tbody> </table> </div> </form> </div> </div>'; }
<p>' . $message . '</p></div>'; } //"New Feed" button $url = site_url() . '/wp-admin/admin.php?page=cart-product-feed-admin'; //echo '<input style="margin-top:12px;" type="button" class="button-primary" onclick="document.location=\'' . $url . '\';" value="' . __( 'Generate New Feed', 'cart-product-strings' ) . '" />'; ?> <br /> <?php echo ' <script type="text/javascript"> jQuery( document ).ready( function( $ ) { ajaxhost = "' . plugins_url('/', __FILE__) . '"; } ); </script>'; echo PFeedSettingsDialogs::refreshTimeOutDialog(); // The table of existing feeds feeds_main_table(); ?> <br /> </div> <?php // The feeds table flat function feeds_main_table() { global $wpdb; $feed_table = $wpdb->prefix . 'cp_feeds'; $providerList = new PProviderList(); // Read the feeds $sql_feeds = "SELECT f.*,description FROM {$feed_table} as f LEFT JOIN {$wpdb->term_taxonomy} on ( f.category=term_id and taxonomy='product_cat' ) ORDER BY f.id"; $list_of_feeds = $wpdb->get_results($sql_feeds, ARRAY_A);