discourse-legacysite-perl/site/slowtwitch.com/www/adio/add.php
2024-06-17 22:30:36 +10:00

497 lines
33 KiB
PHP

<?PHP
/*NEED TO UPDATE:
- Only admins can view the drop down box
- Only users who have a registered advertiser account can request IOs
*/
include("config.php");
if(!is_admin($user)){
header('Location:'.$site_url.'/');
}
if(!is_logged_in($user)){
header('Location: '.$site_url);
exit();
}
$useruid = base64_decode($_SESSION['user_id']);
// set the page title
$pagetitle = "Add an Insertion Order";
// set meta tags
$meta_keywords = "add insertion order";
$meta_description = "create advertising insertion order request";
?>
<? include("include_common_head.php"); ?>
<?
if($_POST[add_campaign] == true){
include("add_X.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">
<?
if( $insert_success == true || $_GET[confirmed] == "yes" ) { ?>
<h1 class="content-title"><strong>Thank you</strong></h1>
<p class="cont">Thank you. Your insertion orer request should be added within 24 hours. You will now be redirected back to the add page.</p>
<META HTTP-EQUIV=Refresh CONTENT="4; URL=add.php">
<?
unset($insert_success);
unset($confirm_campaign);
?>
<? } else if( $confirm_campaign == true ) { ?>
<h1 class="content-title"><strong>Insertion Order Request: Step 2 of 2</strong></h1>
<? }else if( ($confirm_campaign != true) || ($_POST[add_campaign] != true) ){ ?>
<h1 class="content-title"><strong>Insertion Order Request: Step 1 of 2</strong></h1>
<? if (!$errmsg) { ?>
<p class="cont">This form allows for easy advertisement insertion order requests. Advertising collateral CANNOT be submitted via this form. This form is for insertion order request details only. Simply fill out the form below. Be sure to fill out every field. After filling out each field, click submit. <span style="color: red;">You will then be prompted to confirm your information before the information is sent to us.</span></p>
<?
} else { ?>
<p class="cont"><span style="color: red;"><? echo $errmsg; ?></span></p>
<? } ?>
<? }
// begin insert form
if( (($_POST[add_campaign] != true) || ($errmsg) || (($confirm_campaign != true) && ($_POST[insert_campaign] != true))) && $_GET[confirmed] != "yes") {
?>
<form enctype="multipart/form-data" action="add.php" method="post">
<? //var_dump($_POST); ?>
<div class="dtable form">
<div class="drow">
<div class="dcell name">Advertiser</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if(isset($_GET[account_id])) {
$account_id = $_GET[account_id];
$sql = "SELECT * FROM io_account WHERE account_id = \"".$account_id."\" LIMIT 1";
$fetch = mysql_fetch_array(mysql_query($sql) OR die(mysql_error()));
$account_name = $fetch[account_advertiser];
echo "This insertion order is being connected to advertiser: ".$advertiser;
echo ("<input type=\"hidden\" name=\"account_name\" value=\"".$account_name."\">");
echo ("<input type=\"hidden\" name=\"account_id\" value=\"".$account_id."\">");
} elseif (isset($_POST[account_id])) {
$account_id = $_POST[account_id];
$sql = "SELECT * FROM io_account WHERE account_id = \"".$account_id."\" LIMIT 1";
$fetch = mysql_fetch_array(mysql_query($sql)) OR die(mysql_error());
$account_name = $fetch[account_advertiser];
echo "This insertion order is being connected to advertiser: ".$account_name;
echo ("<input type=\"hidden\" name=\"account_name\" value=\"".$account_name."\">");
echo ("<input type=\"hidden\" name=\"account_id\" value=\"".$account_id."\">");
} else {
//echo ("please select the advertiser from the following drop down: ");
$ad_sql = "SELECT * FROM io_account WHERE 1=1";
$ad_results = mysql_query($ad_sql) OR die(mysql_error());
echo ("<select name=\"account_id\">");
while ($ad_row = mysql_fetch_array($ad_results)) {
echo ("<option value=\"$ad_row[account_id]\">$ad_row[account_advertiser]");
}
echo ("</select>");
} ?>
</div>
</div>
<div class="drow">
<div class="dcell name">Campaign Name</div>
<div class="dcell divider"></div>
<div class="dcell value">
<input value="<? echo stripslashes($_POST[name]); ?>" type="text" name="name" class="txt lngtext" maxlength="80">
</div>
</div>
<div class="drow">
<div class="dcell name">300x250</div>
<div class="dcell divider"></div>
<div class="dcell value">
<input type="hidden" name="300x250" value="0"><input value="1" type="checkbox" name="300x250" <? if($_POST['300x250'] == 1) {echo "checked";} ?>>
<? /* need to insert checking in case of edit here on the value side */ ?> Number of Impressions: <input value="<? echo stripslashes($_POST['300x250_impression']); ?>" type="text" name="300x250_impression" class="txt shotext">
</div>
</div>
<div class="drow">
<div class="dcell name">728x90</div>
<div class="dcell divider"></div>
<div class="dcell value">
<input type="hidden" name="728x90" value="0"><input value="1" type="checkbox" name="728x90" <? if($_POST['728x90'] == 1) {echo "checked";} ?>>
<? /* need to insert checking in case of edit here on the value side */ ?> Number of Impressions: <input value="<? echo stripslashes($_POST['728x90_impression']); ?>" type="text" name="728x90_impression" class="txt shotext">
</div>
</div>
<div class="drow">
<div class="dcell name">300x600</div>
<div class="dcell divider"></div>
<div class="dcell value">
<input type="hidden" name="300x600" value="0"><input value="1" type="checkbox" name="300x600" <? if($_POST['300x600'] == 1) {echo "checked";} ?>>
<? /* need to insert checking in case of edit here on the value side */ ?> Number of Impressions: <input value="<? echo stripslashes($_POST['300x600_impression']); ?>" type="text" name="300x600_impression" class="txt shotext">
</div>
</div>
<div class="drow">
<div class="dcell name">970x250</div>
<div class="dcell divider"></div>
<div class="dcell value">
<input type="hidden" name="970x250" value="0"><input value="1" type="checkbox" name="970x250" <? if($_POST['970x250'] == 1) {echo "checked";} ?>>
<? /* need to insert checking in case of edit here on the value side */ ?> Number of Impressions: <input value="<? echo stripslashes($_POST['970x250_impression']); ?>" type="text" name="970x250_impression" class="txt shotext">
</div>
</div>
<div class="drow">
<div class="dcell name">Wallpaper</div>
<div class="dcell divider"></div>
<div class="dcell value">
<input type="hidden" name="wallpaper" value="0"><input value="1" type="checkbox" name="wallpaper" <? if($_POST['wallpaper'] == 1) {echo "checked";} ?>>
<? /* need to insert checking in case of edit here on the value side */ ?> Number of Impressions: <input value="<? echo stripslashes($_POST['wallpaper_impression']); ?>" type="text" name="wallpaper_impression" class="txt shotext">
</div>
</div>
<div class="drow">
<div class="dcell name">Start Date</div>
<div class="dcell divider"></div>
<div class="dcell value">
<select name="month">
<option value="0">Month</option>
<option value="01" <? if(strcmp($_POST[month], "01") == 0){ echo ("selected"); } ?>>January</option>
<option value="02" <? if(strcmp($_POST[month], "02") == 0){ echo ("selected"); } ?>>February</option>
<option value="03" <? if(strcmp($_POST[month], "03") == 0){ echo ("selected"); } ?>>March</option>
<option value="04" <? if(strcmp($_POST[month], "04") == 0){ echo ("selected"); } ?>>April</option>
<option value="05" <? if(strcmp($_POST[month], "05") == 0){ echo ("selected"); } ?>>May</option>
<option value="06" <? if(strcmp($_POST[month], "06") == 0){ echo ("selected"); } ?>>June</option>
<option value="07" <? if(strcmp($_POST[month], "07") == 0){ echo ("selected"); } ?>>July</option>
<option value="08" <? if(strcmp($_POST[month], "08") == 0){ echo ("selected"); } ?>>August</option>
<option value="09" <? if(strcmp($_POST[month], "09") == 0){ echo ("selected"); } ?>>September</option>
<option value="10" <? if(strcmp($_POST[month], "10") == 0){ echo ("selected"); } ?>>October</option>
<option value="11" <? if(strcmp($_POST[month], "11") == 0){ echo ("selected"); } ?>>November</option>
<option value="12" <? if(strcmp($_POST[month], "12") == 0){ echo ("selected"); } ?>>December</option>
</select>
<select name="day">
<option value="0">Day</option>
<option value="01" <? if(strcmp($_POST[day], "01") == 0){ echo ("selected"); } ?>>1</option>
<option value="02" <? if(strcmp($_POST[day], "02") == 0){ echo ("selected"); } ?>>2</option>
<option value="03" <? if(strcmp($_POST[day], "03") == 0){ echo ("selected"); } ?>>3</option>
<option value="04" <? if(strcmp($_POST[day], "04") == 0){ echo ("selected"); } ?>>4</option>
<option value="05" <? if(strcmp($_POST[day], "05") == 0){ echo ("selected"); } ?>>5</option>
<option value="06" <? if(strcmp($_POST[day], "06") == 0){ echo ("selected"); } ?>>6</option>
<option value="07" <? if(strcmp($_POST[day], "07") == 0){ echo ("selected"); } ?>>7</option>
<option value="08" <? if(strcmp($_POST[day], "08") == 0){ echo ("selected"); } ?>>8</option>
<option value="09" <? if(strcmp($_POST[day], "09") == 0){ echo ("selected"); } ?>>9</option>
<option value="10" <? if(strcmp($_POST[day], "10") == 0){ echo ("selected"); } ?>>10</option>
<option value="11" <? if(strcmp($_POST[day], "11") == 0){ echo ("selected"); } ?>>11</option>
<option value="12" <? if(strcmp($_POST[day], "12") == 0){ echo ("selected"); } ?>>12</option>
<option value="13" <? if(strcmp($_POST[day], "13") == 0){ echo ("selected"); } ?>>13</option>
<option value="14" <? if(strcmp($_POST[day], "14") == 0){ echo ("selected"); } ?>>14</option>
<option value="15" <? if(strcmp($_POST[day], "15") == 0){ echo ("selected"); } ?>>15</option>
<option value="16" <? if(strcmp($_POST[day], "16") == 0){ echo ("selected"); } ?>>16</option>
<option value="17" <? if(strcmp($_POST[day], "17") == 0){ echo ("selected"); } ?>>17</option>
<option value="18" <? if(strcmp($_POST[day], "18") == 0){ echo ("selected"); } ?>>18</option>
<option value="19" <? if(strcmp($_POST[day], "19") == 0){ echo ("selected"); } ?>>19</option>
<option value="20" <? if(strcmp($_POST[day], "20") == 0){ echo ("selected"); } ?>>20</option>
<option value="21" <? if(strcmp($_POST[day], "21") == 0){ echo ("selected"); } ?>>21</option>
<option value="22" <? if(strcmp($_POST[day], "22") == 0){ echo ("selected"); } ?>>22</option>
<option value="23" <? if(strcmp($_POST[day], "23") == 0){ echo ("selected"); } ?>>23</option>
<option value="24" <? if(strcmp($_POST[day], "24") == 0){ echo ("selected"); } ?>>24</option>
<option value="25" <? if(strcmp($_POST[day], "25") == 0){ echo ("selected"); } ?>>25</option>
<option value="26" <? if(strcmp($_POST[day], "26") == 0){ echo ("selected"); } ?>>26</option>
<option value="27" <? if(strcmp($_POST[day], "27") == 0){ echo ("selected"); } ?>>27</option>
<option value="28" <? if(strcmp($_POST[day], "28") == 0){ echo ("selected"); } ?>>28</option>
<option value="29" <? if(strcmp($_POST[day], "29") == 0){ echo ("selected"); } ?>>29</option>
<option value="30" <? if(strcmp($_POST[day], "30") == 0){ echo ("selected"); } ?>>30</option>
<option value="31" <? if(strcmp($_POST[day], "31") == 0){ echo ("selected"); } ?>>31</option>
</select>
<select name="year">
<option value="2017" select="selected">2017</option>
</select>
</div>
</div>
<div class="drow">
<div class="dcell name">Repeat Date</div>
<div class="dcell divider"></div>
<div class="dcell value">
<select name="month_repeat">
<option value="0">Month</option>
<option value="01" <? if(strcmp($_POST[month_repeat], "01") == 0){ echo ("selected"); } ?>>January</option>
<option value="02" <? if(strcmp($_POST[month_repeat], "02") == 0){ echo ("selected"); } ?>>February</option>
<option value="03" <? if(strcmp($_POST[month_repeat], "03") == 0){ echo ("selected"); } ?>>March</option>
<option value="04" <? if(strcmp($_POST[month_repeat], "04") == 0){ echo ("selected"); } ?>>April</option>
<option value="05" <? if(strcmp($_POST[month_repeat], "05") == 0){ echo ("selected"); } ?>>May</option>
<option value="06" <? if(strcmp($_POST[month_repeat], "06") == 0){ echo ("selected"); } ?>>June</option>
<option value="07" <? if(strcmp($_POST[month_repeat], "07") == 0){ echo ("selected"); } ?>>July</option>
<option value="08" <? if(strcmp($_POST[month_repeat], "08") == 0){ echo ("selected"); } ?>>August</option>
<option value="09" <? if(strcmp($_POST[month_repeat], "09") == 0){ echo ("selected"); } ?>>September</option>
<option value="10" <? if(strcmp($_POST[month_repeat], "10") == 0){ echo ("selected"); } ?>>October</option>
<option value="11" <? if(strcmp($_POST[month_repeat], "11") == 0){ echo ("selected"); } ?>>November</option>
<option value="12" <? if(strcmp($_POST[month_repeat], "12") == 0){ echo ("selected"); } ?>>December</option>
</select>
<select name="day_repeat">
<option value="0">Day</option>
<option value="01" <? if(strcmp($_POST[day_repeat], "01") == 0){ echo ("selected"); } ?>>1</option>
<option value="02" <? if(strcmp($_POST[day_repeat], "02") == 0){ echo ("selected"); } ?>>2</option>
<option value="03" <? if(strcmp($_POST[day_repeat], "03") == 0){ echo ("selected"); } ?>>3</option>
<option value="04" <? if(strcmp($_POST[day_repeat], "04") == 0){ echo ("selected"); } ?>>4</option>
<option value="05" <? if(strcmp($_POST[day_repeat], "05") == 0){ echo ("selected"); } ?>>5</option>
<option value="06" <? if(strcmp($_POST[day_repeat], "06") == 0){ echo ("selected"); } ?>>6</option>
<option value="07" <? if(strcmp($_POST[day_repeat], "07") == 0){ echo ("selected"); } ?>>7</option>
<option value="08" <? if(strcmp($_POST[day_repeat], "08") == 0){ echo ("selected"); } ?>>8</option>
<option value="09" <? if(strcmp($_POST[day_repeat], "09") == 0){ echo ("selected"); } ?>>9</option>
<option value="10" <? if(strcmp($_POST[day_repeat], "10") == 0){ echo ("selected"); } ?>>10</option>
<option value="11" <? if(strcmp($_POST[day_repeat], "11") == 0){ echo ("selected"); } ?>>11</option>
<option value="12" <? if(strcmp($_POST[day_repeat], "12") == 0){ echo ("selected"); } ?>>12</option>
<option value="13" <? if(strcmp($_POST[day_repeat], "13") == 0){ echo ("selected"); } ?>>13</option>
<option value="14" <? if(strcmp($_POST[day_repeat], "14") == 0){ echo ("selected"); } ?>>14</option>
<option value="15" <? if(strcmp($_POST[day_repeat], "15") == 0){ echo ("selected"); } ?>>15</option>
<option value="16" <? if(strcmp($_POST[day_repeat], "16") == 0){ echo ("selected"); } ?>>16</option>
<option value="17" <? if(strcmp($_POST[day_repeat], "17") == 0){ echo ("selected"); } ?>>17</option>
<option value="18" <? if(strcmp($_POST[day_repeat], "18") == 0){ echo ("selected"); } ?>>18</option>
<option value="19" <? if(strcmp($_POST[day_repeat], "19") == 0){ echo ("selected"); } ?>>19</option>
<option value="20" <? if(strcmp($_POST[day_repeat], "20") == 0){ echo ("selected"); } ?>>20</option>
<option value="21" <? if(strcmp($_POST[day_repeat], "21") == 0){ echo ("selected"); } ?>>21</option>
<option value="22" <? if(strcmp($_POST[day_repeat], "22") == 0){ echo ("selected"); } ?>>22</option>
<option value="23" <? if(strcmp($_POST[day_repeat], "23") == 0){ echo ("selected"); } ?>>23</option>
<option value="24" <? if(strcmp($_POST[day_repeat], "24") == 0){ echo ("selected"); } ?>>24</option>
<option value="25" <? if(strcmp($_POST[day_repeat], "25") == 0){ echo ("selected"); } ?>>25</option>
<option value="26" <? if(strcmp($_POST[day_repeat], "26") == 0){ echo ("selected"); } ?>>26</option>
<option value="27" <? if(strcmp($_POST[day_repeat], "27") == 0){ echo ("selected"); } ?>>27</option>
<option value="28" <? if(strcmp($_POST[day_repeat], "28") == 0){ echo ("selected"); } ?>>28</option>
<option value="29" <? if(strcmp($_POST[day_repeat], "29") == 0){ echo ("selected"); } ?>>29</option>
<option value="30" <? if(strcmp($_POST[day_repeat], "30") == 0){ echo ("selected"); } ?>>30</option>
<option value="31" <? if(strcmp($_POST[day_repeat], "31") == 0){ echo ("selected"); } ?>>31</option>
</select>
<select name="year_repeat">
<option value="2017" select="selected">2017</option>
</select>Specify additional dates in NOTES
</div>
</div>
<div class="drow">
<div class="dcell name">Notes</div>
<div class="dcell divider"></div>
<div class="dcell value">
<textarea name="notes" rows="7" class="txt lngtext" placeholder="Please add any additional notes here. Additional repeat dates may be added here as well."><? if($_POST[notes]){ echo strip_tags(stripslashes($_POST[notes])); } ?></textarea>
</div>
</div>
<? if ($_SESSION[user_id] == $fetch[account_user_id_fk]) { ?>
<div class="drow">
<div class="dcell name">Signature</div>
<div class="dcell divider"></div>
<div class="dcell value">
By signing your name here, you are agreeing to the terms of the Slowtwitch Advertising Contract for this insertion order.<br />
<input value="" type="text" name="signature" class="txt midtext">
</div>
</div>
<? } ?>
<div class="drow actions">
<div class="dcell name"></div>
<div class="dcell divider"></div>
<div class="dcell value">
<input type="submit" value="Submit" class="btn">
<input type="hidden" name="add_campaign" value="true">
</div>
</div>
</div>
</form>
<? }
// end insert form
// begin confirmation form
if($confirm_campaign == true){
?>
Please confirm your information. If everything is correct, click the submit button. Otherwise, you may click the edit button to change your information before submitting.</div>
<br />
<? //var_dump($_POST); ?>
<div class="dtable form">
<div class="drow">
<div class="dcell name">Advertiser</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if (isset($_POST[account_name])) { echo stripslashes($_POST[account_name]); } else { $account_id = $_POST[account_id];
$sql = "SELECT * FROM io_account WHERE account_id = \"".$account_id."\" LIMIT 1";
$fetch = mysql_fetch_array(mysql_query($sql)) OR die(mysql_error());
$_POST[account_name] = $fetch[account_advertiser];
echo $_POST[account_name]; } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">Name</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? echo stripslashes($_POST[name]); ?>
</div>
</div>
<div class="drow">
<div class="dcell name">300x250</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST['300x250'] == 1) { echo "Yes, for ".$_POST['300x250_impression']; } else { echo "No."; } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">728x90</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST['728x90'] == 1) { echo "Yes, for ".$_POST['728x90_impression']; } else { echo "No."; } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">300x600</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST['300x600'] == 1) { echo "Yes, for ".$_POST['300x600_impression']; } else { echo "No."; } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">970x250</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST['970x250'] == 1) { echo "Yes, for ".$_POST['970x250_impression']; } else { echo "No."; } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">Wallpaper</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST['wallpaper'] == 1) { echo "Yes, for ".$_POST['wallpaper_impression']; } else { echo "No."; } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">Start Date</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? echo "$month/$day/$year"; ?>
</div>
</div>
<div class="drow">
<div class="dcell name">Repeat Date</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($month_repeat != "0") { echo "$month_repeat/$day_repeat/$year_repeat"; } else { echo "No repeat set."; } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">Notes</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? echo strip_tags(stripslashes($_POST[notes])) ?>
</div>
</div>
<div class="drow actions">
<div class="dcell name"></div>
<div class="dcell divider"></div>
<div class="dcell value">
<form action="add.php" method="post">
<input type="hidden" name="name" value="<? echo stripslashes(htmlspecialchars($_POST[name])); ?>">
<input type="hidden" name="account_id" value="<? echo stripslashes(htmlspecialchars($_POST[account_id])); ?>">
<input type="hidden" name="account_name" value="<? echo stripslashes(htmlspecialchars($_POST[account_name])); ?>">
<input type="hidden" name="300x250" value="<? echo stripslashes(htmlspecialchars($_POST['300x250'])); ?>">
<input type="hidden" name="300x250_impression" value="<? echo stripslashes(htmlspecialchars($_POST['300x250_impression'])); ?>">
<input type="hidden" name="728x90" value="<? echo stripslashes(htmlspecialchars($_POST['728x90'])); ?>">
<input type="hidden" name="728x90_impression" value="<? echo stripslashes(htmlspecialchars($_POST['728x90_impression'])); ?>">
<input type="hidden" name="300x600" value="<? echo stripslashes(htmlspecialchars($_POST['300x600'])); ?>">
<input type="hidden" name="300x600_impression" value="<? echo stripslashes(htmlspecialchars($_POST['300x600_impression'])); ?>">
<input type="hidden" name="970x250" value="<? echo stripslashes(htmlspecialchars($_POST['970x250'])); ?>">
<input type="hidden" name="970x250_impression" value="<? echo stripslashes(htmlspecialchars($_POST['970x250_impression'])); ?>">
<input type="hidden" name="wallpaper" value="<? echo stripslashes(htmlspecialchars($_POST['wallpaper'])); ?>">
<input type="hidden" name="wallpaper_impression" value="<? echo stripslashes(htmlspecialchars($_POST['wallpaper_impression'])); ?>">
<input type="hidden" name="month" value="<? echo $_POST[month]; ?>">
<input type="hidden" name="day" value="<? echo $_POST[day]; ?>">
<input type="hidden" name="year" value="<? echo $_POST[year]; ?>">
<input type="hidden" name="month_repeat" value="<? echo $_POST[month_repeat]; ?>">
<input type="hidden" name="day_repeat" value="<? echo $_POST[day_repeat]; ?>">
<input type="hidden" name="year_repeat" value="<? echo $_POST[year_repeat]; ?>">
<input type="hidden" name="notes" value="<? echo stripslashes(htmlspecialchars($_POST[notes])); ?>">
<input type="hidden" name="add_campaign" value="true">
<input type="hidden" name="insert_campaign" value="true">
<input type="hidden" name="submitted_by" value="<? echo $useruid; ?>" >
<input type="submit" name="submit" value="Submit Info" class="btn float-left" style="margin-right: 5px;"/>
</form>
<form action="add.php" method="post">
<input type="hidden" name="name" value="<? echo stripslashes(htmlspecialchars($_POST[name])); ?>">
<input type="hidden" name="account_id" value="<? echo stripslashes(htmlspecialchars($_POST[account_id])); ?>">
<input type="hidden" name="account_name" value="<? echo stripslashes(htmlspecialchars($_POST[account_name])); ?>">
<input type="hidden" name="300x250" value="<? echo stripslashes(htmlspecialchars($_POST['300x250'])); ?>">
<input type="hidden" name="300x250_impression" value="<? echo stripslashes(htmlspecialchars($_POST['300x250_impression'])); ?>">
<input type="hidden" name="728x90" value="<? echo stripslashes(htmlspecialchars($_POST['728x90'])); ?>">
<input type="hidden" name="728x90_impression" value="<? echo stripslashes(htmlspecialchars($_POST['728x90_impression'])); ?>">
<input type="hidden" name="300x600" value="<? echo stripslashes(htmlspecialchars($_POST['300x600'])); ?>">
<input type="hidden" name="300x600_impression" value="<? echo stripslashes(htmlspecialchars($_POST['300x600_impression'])); ?>">
<input type="hidden" name="970x250" value="<? echo stripslashes(htmlspecialchars($_POST['970x250'])); ?>">
<input type="hidden" name="970x250_impression" value="<? echo stripslashes(htmlspecialchars($_POST['970x250_impression'])); ?>">
<input type="hidden" name="wallpaper" value="<? echo stripslashes(htmlspecialchars($_POST['wallpaper'])); ?>">
<input type="hidden" name="wallpaper_impression" value="<? echo stripslashes(htmlspecialchars($_POST['wallpaper_impression'])); ?>">
<input type="hidden" name="month" value="<? echo $_POST[month]; ?>">
<input type="hidden" name="day" value="<? echo $_POST[day]; ?>">
<input type="hidden" name="year" value="<? echo $_POST[year]; ?>">
<input type="hidden" name="month_repeat" value="<? echo $_POST[month_repeat]; ?>">
<input type="hidden" name="day_repeat" value="<? echo $_POST[day_repeat]; ?>">
<input type="hidden" name="year_repeat" value="<? echo $_POST[year_repeat]; ?>">
<input type="hidden" name="notes" value="<? echo stripslashes(htmlspecialchars($_POST[notes])); ?>">
<input type="hidden" name="confirm_campaign" value="0">
<input type="submit" name="submit" value="Edit Information" class="btn float-left" />
</form>
</div>
</div>
</div>
<?
}
//end confirmation form
?>
</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>