<!-- @todo NEEDS TO BE TRANSLATED -->
<?php echo Form::open(); ?>
<table width="100%">
	<tr>
		<td style="width: 50%; vertical-align: top;">
			<table width="100%">
				<tr>
					<td style="width: 40%;">Product Active</td>
					<td style="width: 5%;">&nbsp;</td>
					<td style="width: 60%;" class="data"><?php echo StaticList_YesNo::form('active',$po->active); ?></td>
				</tr>
				<tr>
					<td colspan="2">Base Price</td>
					<td class="data"><?php echo Form::input('price_base',$po->price_base); ?></td>
				</tr>
				<tr>
					<td colspan="2">Price</td>
					<td class="data">
						<table>
							<tr>
								<td colspan="2">&nbsp;</td>
								<?php foreach (StaticList_RecurSchedule::keys() as $k) { ?>
								<td class="head"><?php echo StaticList_RecurSchedule::display($k); ?></td>
								<td><?php echo Form::checkbox("price_group[$k][show]",1,$po->isPriceShown($k)); ?>
								<?php } ?>
							</tr>
							<?php foreach ($po->availPriceGroups() as $g) { ?>
							<?php foreach ($po->availPriceOptions() as $o) { ?>
							<tr>
								<td><?php echo ORM::factory('group',$g)->name; ?></td>
								<td><?php echo $o; ?></td>
								<?php foreach (StaticList_RecurSchedule::keys() as $k) { ?>
								<td colspan="2"><?php echo Form::input("price_group[$k][$g][$o]",$po->price($g,$k,$o),array('size'=>5)); ?></td>
								<?php } ?>
							</tr>
							<?php } ?>
							<?php } ?>
						</table>
					</td>
				</tr>
				<tr>
					<td colspan="2">Default Period</td>
					<td class="data"><?php echo StaticList_RecurSchedule::form('price_recurr_default',$po,$po->price_recurr_default); ?></td>
				</tr>
				<tr>
					<td colspan="2">Order</td>
					<td class="data"><?php echo Form::input('position',$po->position); ?></td>
				</tr>
				<tr>
					<td>Product Descriptions</td>
					<td><?php echo Form::select('language_id',array('','EN'=>'EN')); ?></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td class="data" colspan="2"><div id="translate"></div></td>
				</tr>
			</table>
			<?php if ($plugin_form) { echo '<br/>'.$plugin_form; } ?>
		</td>
	</tr>
</table>
<?php echo Form::submit('submit',_('Update'),array('class'=>'form_button')); ?>
<?php echo Form::close(); ?>
