Ejemplo n.º 1
0
<h4>Option 1: Stop Date and Until Further Notice</h4>

<p>This is the basic billing solution for advertising.  You can specify when this ad stops or allow it to continue to run.  You can bill based on daily, weekly, monthly or any other set period of time.
Setting the ad to Run Until Further Notice will force the ad to stay visible on the main site until an admin manually removes the ads or disables it.</p>

<table class="form">
	<tr>
		<td class="field-name">Stop Date:</td>
		<td class="field-value"><?php 
echo buildMonthSelect("stopmonth", substr($ads->rec["stop"], 4, 2));
?>
 <?php 
echo buildDaySelect("stopday", substr($ads->rec["stop"], 6, 2));
?>
 <?php 
echo buildYearSelect(date("Y"), date("Y") + 2, "stopyear", substr($ads->rec["stop"], 0, 4));
?>
 </td>
		</tr>
	<tr>
		<td class="field-name">Run Until Further Notice:</td>
		<td class="field-value"><input type="checkbox" name="ufn" value="1"<?php 
echo $rem_ufn;
?>
> <span class="extra-small green">(ignores stop date)</span> </td>
		</tr>
	</table>

<h4>Option 2: Impressions <span class="small green">(if set, will ignore the first option)</span></h4>

<p>This is an alternative billing solution for advertising.  You can limit how many impressions an ad will create by setting the maxium number of times that ad can be viewed.  For example,
	
<form action="<?php 
echo $_SERVER["PHP_SELF"];
?>
" method="post">
<table class="form">
	<tr>
		<td class="field-name">Select Date:</td>
		<td class="field-value"><?php 
echo buildMonthSelect("month", substr($lunch->date, 4, 2));
?>
 <?php 
echo buildDaySelect("day", substr($lunch->date, 6, 2));
?>
 <?php 
echo buildYearSelect(date("Y"), date("Y") + 5, "year", substr($lunch->date, 0, 4));
?>
</td>
		<td></td>
	</tr>
</table>

<table class="form">
	<?php 
echo $lunch->buildForm();
?>
</table>

<input type="submit" name="submit" value="Submit" style="margin: 20px 0 0 140px;">&nbsp;&nbsp;&nbsp;<a href="lunch_special_view.php?menuid=<?php 
echo $_REQUEST["menuid"];
?>