include _TRACK_SHOW_COMMON_PATH . "/templates/main.inc.php"; exit; break; case 'rules': $arr_offers = get_rules_offers(); list($js_last_offer_id, $js_offers_data) = get_offers_data_js($arr_offers); $js_sources_data = get_sources_data_js(); $js_countries_data = get_countries_data_js(); $js_langs_data = get_langs_data_js(); $page_content = 'rules_page.inc.php'; include _TRACK_SHOW_COMMON_PATH . "/templates/main.inc.php"; exit; break; case 'costs': $arr_sources = get_sources(); $arr_campaigns = get_campaigns(); $arr_ads = get_ads(); $page_content = 'costs_page.inc.php'; include _TRACK_SHOW_COMMON_PATH . "/templates/main.inc.php"; exit; break; case 'import': $page_content = 'import_page.inc.php'; include _TRACK_SHOW_COMMON_PATH . "/templates/main.inc.php"; exit; break; case 'adnets': $page_content = 'adnets_page.inc.php'; include _TRACK_SHOW_COMMON_PATH . "/templates/main.inc.php"; exit; break;
<thead> <tr> <th>Name</th> <th>Type</th> <th>Priority</th> <th>Status</th> <th>Ad Units</th> <th>Requests</th> <th>Impressions</th> <th>Clicks</th> <th>Action</th> </tr> </thead> <tbody> <?php get_campaigns(); ?> </tbody> </table> </FORM> </div> <!-- .widget-content --> </div> <!-- .widget --> <div class="actions"> <button type="button" onclick="window.location='create_campaign.php';" class="btn btn-quaternary"><span class="icon-plus"></span>Create New Campaign</button> </div> <!-- .actions -->
<?php $campaigns = get_campaigns($campaign_options); echo '<table class="table table-bordered"><thead><tr><th>ID</th><th>Name</th><th>Campaign</th><th>Slug</th></tr> </thead><tbody>'; foreach ($campaigns as $i) { echo '<tr><td>' . $i['campaign_KEY'] . '</td><td><a href="campaign.php?campaign_KEY=' . $i['campaign_KEY'] . '"><i class="icon-edit icon"></i></a><a href="campaign_items.php?campaign_KEY=' . $i['campaign_KEY'] . '">' . $i['Reference_Name'] . '</a></td><td>' . $i['campaign'] . '</td><td>' . $i['campaign_slug'] . '</td></tr>'; } echo '</tbody></table>';