<table width="100%" cellpadding="0" cellspacing="0" border="0">
	<tr><td class="nav"><a href="index.php?section=home">Home</a>&nbsp;&gt;&nbsp;<a href="index.php?section=getpaid&theme=<?php echo $data["theme"]; ?>">Site Fees</a>&nbsp;&gt;&nbsp;Create/Update Package</td></tr>
	<tr>
		<td>
			<table cellpadding="0" cellspacing="0" border="0" align="center">
			<form name="package" action="index.php" method="post">
			<input type="hidden" name="section" value="getpaid">
			<input type="hidden" name="action" value="getpaid_save_package">
			<input type="hidden" name="package_id" value="<?php echo $data["package_id"]; ?>">
			<input type="hidden" name="forbidden_pages" value="">
			<input type="hidden" name="forbidden_modules" value="">
			<input type="hidden" name="theme" value="<?php echo $data["theme"]; ?>">
				<tr><td colspan="3" align="center">
					<table cellpadding="0" cellspacing="3" border="0" align="center">
						<tr><td class="body">Name:</td>
						<td class="highlight"><?php
						admin_form_element( array ("type" => "input", "name" => "name", "size" => 30, "value" => $data["values"][name]) );
						?></td></tr>
						<tr><td class="body">Price:</td>
						<td class="highlight"><table cellpadding="0" cellspacing="2" border="0"><tr><td><?php
						admin_form_element( array ("type" => "input", "name" => "price", "size" => 5, "value" => $data["values"][price]) );
						?></td><td><?php
						include_once(DOC_ROOT."/themes/".$data["theme"]."/options/currencies.inc.php");
						admin_form_element( array ("type" => "select", "name" => "currency", "value" => $data["values"][currency], "options" => $options) );
						?></td></tr></table></td></tr>
						<tr><td class="body" valign="top">Payment Cycle:</td>
						<td class="highlight"><table cellpadding="0" cellspacing="2" border="0"><tr><td class="highlight"><?php
						admin_form_element( array ("type" => "radio", "name" => "period", "ovalue" => "0", "value" => $data["values"][period]) );
						?></td><td class="highlight" colspan="3">One time</td></tr><tr><td class="highlight"><?php
						admin_form_element( array ("type" => "radio", "name" => "period", "ovalue" => "Week", "value" => $data["values"][period]) );
						?></td><td class="highlight"> every </td><td><?php
						if($data["values"][period] == "Week")
							$interval = $data["values"][interval];
						else
							$interval = "";
						admin_form_element( array ("type" => "input", "name" => "interval[week]", "size" => 1, "value" => $interval) );
						?></td><td class="highlight"> week(s) </td></tr><tr><td class="highlight"><?php
						admin_form_element( array ("type" => "radio", "name" => "period", "ovalue" => "Month", "value" => $data["values"][period]) );
						?></td><td class="highlight"> every </td><td><?php
						if($data["values"][period] == "Month")
							$interval = $data["values"][interval];
						else
							$interval = "";
						admin_form_element( array ("type" => "input", "name" => "interval[month]", "size" => 1, "value" => $interval) );
						?></td><td class="highlight"> month(s) </td></tr><tr><td class="highlight"><?php
						admin_form_element( array ("type" => "radio", "name" => "period", "ovalue" => "Year", "value" => $data["values"][period]) );
						?></td><td class="highlight"> every </td><td><?php
						if($data["values"][period] == "Year")
							$interval = $data["values"][interval];
						else
							$interval = "";
						admin_form_element( array ("type" => "input", "name" => "interval[year]", "size" => 1, "value" => $interval) );
						?></td><td class="highlight"> year(s) </td></tr>
						</table></td></tr>
					</table>
				</td></tr>
				<tr><td colspan="3">&nbsp;</td></tr>
				<tr><td class="body" colspan="3" align="center">Pages Access</td></tr>
				<tr>
					<td class="highlight" align="center">Allow</td>
					<td>&nbsp;</td>
					<td class="highlight" align="center">Forbid</td>
				</tr>
				<tr>
					<td><?php
					admin_form_element( array ("type" => "select", "name" => "allow_pages", "size" => 10, "options" => array(), "width" => 230, "multiple" => 1) );
					?></td>
					<td align="center" class="padded">
						<table cellpadding="0" cellspacing="0" border="0">
						<tr><td><?php
						admin_form_element( array ("type" => "button", "value" => "&gt;&gt;", "onclick" => "HS_MoveOptions(document.package.allow_pages,document.package.forbid_pages)") );
						?></td></tr>
						<tr><td><?php
						admin_form_element( array ("type" => "button", "value" => "&lt;&lt;", "onclick" => "HS_MoveOptions(document.package.forbid_pages,document.package.allow_pages)") );
						?></td></tr>
						</table>
					<td><?php
					admin_form_element( array ("type" => "select", "name" => "forbid_pages", "size" => 10, "options" => array(), "width" => 230, "multiple" => 1) );
					?></td>
				</tr>
				<tr><td colspan="3">&nbsp;</td></tr>
				<tr><td class="body" colspan="3" align="center">Modules Access</td></tr>
				<tr>
					<td class="highlight" align="center">Allow</td>
					<td>&nbsp;</td>
					<td class="highlight" align="center">Forbid</td>
				</tr>
				<tr>
					<td><?php
					admin_form_element( array ("type" => "select", "name" => "allow_modules", "size" => 10, "options" => array(), "width" => 230, "multiple" => 1) );
					?></td>
					<td align="center" class="padded">
						<table cellpadding="0" cellspacing="0" border="0">
						<tr><td><?php
						admin_form_element( array ("type" => "button", "value" => "&gt;&gt;", "onclick" => "HS_MoveOptions(document.package.allow_modules,document.package.forbid_modules)") );
						?></td></tr>
						<tr><td><?php
						admin_form_element( array ("type" => "button", "value" => "&lt;&lt;", "onclick" => "HS_MoveOptions(document.package.forbid_modules,document.package.allow_modules)") );
						?></td></tr>
						</table>
					<td><?php
					admin_form_element( array ("type" => "select", "name" => "forbid_modules", "size" => 10, "options" => array(), "width" => 230, "multiple" => 1) );
					?></td>
				</tr>
				<tr><td colspan="3">&nbsp;</td></tr>
				<tr><td class="body" colspan="3" align="center">Additional Settings:</td></tr>
				<tr>
				<td colspan="3">
					<table cellpadding="0" cellspacing="3" border="0" align="center">
						<tr>
							<td class="highlight"><?php
							admin_form_element ( array ("type" => "checkbox", "name" => "additional[limit_photos]", "ovalue" => 1, "value" => $data["values"][additional][limit_photos]) );
							?></td>
							<td class="highlight">Limit the allowed number of photos to:</td>
							<td class="highlight"><?php
							admin_form_element( array ("type" => "input", "name" => "additional[limit_photos_to]", "size" => 1, "value" => $data["values"][additional][limit_photos_to]) );
							?></td>
						</tr>
						<tr>

							<td class="highlight"><?php
							admin_form_element ( array ("type" => "checkbox", "name" => "additional[limit_audio]", "ovalue" => 1, "value" => $data["values"][additional][limit_audio]) );
							?></td>
							<td class="highlight">Limit Audio Recordings to:</td>
							<td class="highlight"><?php
							admin_form_element( array ("type" => "input", "name" => "additional[limit_audio_to]", "size" => 1, "value" => $data["values"][additional][limit_audio_to]) );
							?> MB</td>
						</tr>
						<tr>

							<td class="highlight"><?php
							admin_form_element ( array ("type" => "checkbox", "name" => "additional[limit_video]", "ovalue" => 1, "value" => $data["values"][additional][limit_video]) );
							?></td>
							<td class="highlight">Limit Video Recording to:</td>
							<td class="highlight"><?php
							admin_form_element( array ("type" => "input", "name" => "additional[limit_video_to]", "size" => 1, "value" => $data["values"][additional][limit_video_to]) );
							?> MB</td>
						</tr>

						<tr>

							<td class="highlight"><?php
							admin_form_element ( array ("type" => "checkbox", "name" => "additional[limit_vchat]", "ovalue" => 1, "value" => $data["values"][additional][limit_vchat]) );
							?></td>
							<td class="highlight">Limit Video Chat Usage to:</td>
							<td class="highlight"><?php
							admin_form_element( array ("type" => "input", "name" => "additional[limit_vchat_to]", "size" => 1, "value" => $data["values"][additional][limit_vchat_to]) );
							?> minutes per day</td>
						</tr>

						<tr>
							<td class="highlight"><?php
							admin_form_element ( array ("type" => "checkbox", "name" => "additional[notifications]", "ovalue" => 1, "value" => $data["values"][additional][notifications]) );
							?></td>
							<td class="highlight">Disable Instant Notifications</td>
						</tr>

					</table>
				</td>
				</tr>

				<tr><td colspan="3">&nbsp;</td></tr>
				<tr>
					<td colspan="3" align="center"><?php
					admin_form_element( array ("type" => "button", "value" => "Cancel", "link" => $data["link"]) );
					echo "&nbsp;";
					admin_form_element( array ("type" => "button", "value" => "Create/Update", "onclick" => "HS_PrepareData(document.package.forbid_pages,document.package.forbidden_pages);HS_PrepareData(document.package.forbid_modules,document.package.forbidden_modules);document.package.submit();") );
					?></td>
				</tr>
				<tr><td colspan="3">&nbsp;</td></tr>
			</form>
			</table>
		</td>
	</tr>
</table>