68 lines
2.3 KiB
PHP
68 lines
2.3 KiB
PHP
<?PHP include("config.php");
|
|
|
|
// need to update code so that users are automatically taken to the page for their individual account here.
|
|
|
|
if(!is_admin($user)){
|
|
header('Location:'.$site_url.'/');
|
|
}
|
|
|
|
// set the page title
|
|
$pagetitle = "Advertiser Accounts";
|
|
|
|
// set meta tags
|
|
?>
|
|
|
|
<? include("include_common_head.php"); ?>
|
|
<body class="listings">
|
|
<? include($common_path . "/ads/ad_wallpaper.html"); ?>
|
|
|
|
<div class="container">
|
|
<? include($common_path . "/templates/include_header.php"); ?>
|
|
<div class="main">
|
|
<div class="contentwrapper clearfix">
|
|
<? include("include_breadcrumb.php"); ?>
|
|
|
|
<section class="section listings section-has-widgets section-static remove-sidebar">
|
|
<div class="sidebar-b">
|
|
<? include("include_sidebar.php"); ?>
|
|
</div>
|
|
|
|
<div class="content content-has-widgets">
|
|
<div class="grid">
|
|
|
|
<div class="clearfix">
|
|
<h1 class="float-left">Admin: Archived Ad Campaigns</h1>
|
|
<? /**if (is_logged_in($user)) { ?>
|
|
<a href="<? echo $site_url . '/add.php' ?>" class="btn btn-white float-right">Request IO</a>
|
|
<? }**/ ?>
|
|
<hr class="line" />
|
|
<h2>Archived Campaigns</h2>
|
|
<hr />
|
|
<?
|
|
|
|
$ad_sql = "SELECT io_campaign.campaign_id AS campaign_id, io_campaign.campaign_name AS campaign_name, io_campaign.campaign_date AS campaign_date, io_campaign.campaign_date_repeat AS campaign_date_repeat, io_campaign.campaign_account_id_fk AS campaign_account_id_fk, io_account.account_advertiser AS campaign_advertiser
|
|
FROM io_campaign
|
|
INNER JOIN io_account
|
|
ON io_campaign.campaign_account_id_fk=io_account.account_id WHERE io_campaign.campaign_archive = 1";
|
|
|
|
$ad_results = mysql_query($ad_sql) OR die(mysql_error());
|
|
while ($ad_row = mysql_fetch_array($ad_results)) {
|
|
include("include_campaign.php");
|
|
}
|
|
?>
|
|
|
|
</div><!-- end col-2/3 -->
|
|
|
|
</div><!-- end grid -->
|
|
</div><!-- end content -->
|
|
</section>
|
|
|
|
</div><!-- end contentwrapper -->
|
|
</div> <!-- end main -->
|
|
|
|
<? include($common_path . "/templates/include_footer.php") ?>
|
|
</div> <!-- container -->
|
|
</body>
|
|
<? include($common_path . "/templates/include_global_js.php") ?>
|
|
</html>
|