<?php
$query = $db->get_all ( 'payment' );

$a = unserialize ( $query ['files'] );
?>
<div class="page-content">
	<div class="page-header position-relative"></div>
	<!--/.page-header-->

	<div class="row-fluid">
		<div class="span12">
			<!--PAGE CONTENT BEGINS-->

			<div class="row-fluid">
				<div class="span12">
					<div class="widget-box">
						<div class="widget-header widget-header-blue widget-header-flat">
							<h4 class="lighter">New Payment Account</h4>


						</div>

						<div class="widget-body">
							<div class="widget-main">
								<div class="row-fluid">


									<div class="step-content row-fluid position-relative"
										id="step-container">
										<div class="step-pane active">

											<form class="form-horizontal" method="post" action=""
												enctype="multipart/form-data">
												<div class="row-fluid">
													<div class="span7">

														<div class="control-group">
															<label class="control-label" for="amount">Amount</label>
															<div class="controls">
																<input type="text" name="payment[amount]" class="span6"
																	required="required">
															</div>
															<!-- /controls -->
														</div>
														<!-- /control-group -->

														<div class="control-group">
															<label class="control-label" for="form-field-11">Description</label>

															<div class="controls">
																<textarea id="form-field-11"
																	class="autosize-transition span6"
																	name="payment[description]"></textarea>
															</div>
														</div>

														<div class="control-group">
															<div class="controls">
																<div class="span3">
																	<label> <input name="payment[radio]" value="expense"
																		type="radio"> <span class="lbl">Expense</span>
																	</label> <label></label>
																</div>
																<div class="span2">
																	<input name="payment[radio]" value="income"
																		type="radio"> <span class="lbl">Income</span>

																</div>
															</div>
														</div>
													</div>

													<div class="span4">
														<div class="control-group">
															<div class="controls">
																<p>
																	<input type="file" size="32" name="my_field[]" value="" />
																</p>
																<p>
																	<input type="file" size="32" name="my_field[]" value="" />
																</p>
																<p>
																	<input type="file" size="32" name="my_field[]" value="" />
																</p>
															</div>
														</div>
													</div>
												</div>
												<!-- row fluid -->
												<div class="control-group">
													<label class="control-label">Date:</label>

													<div class="controls">
														<div class="span12">
															<input class="span3 date-picker" id="id-date-picker-1"
																type="text" data-date-format="dd-mm-yyyy"
																name="payment[date]" required="required" /> <span
																class="add-on"> <i class="icon-calendar"></i>
															</span>
														</div>
													</div>
												</div>

												<div class="control-group">

													<div class="controls">
														<span class="span12"> <input type="hidden" name="action"
															value="multiple" /> <input type="hidden" name="check"
															value="payment">
															<button type="submit" name="submit"
																class="btn btn-small btn-primary">Save</button>
														</span>
													</div>
												</div>

											</form>
										</div>

									</div>
								</div>
							</div>
							<!--/widget-main-->
						</div>
						<!--/widget-body-->
					</div>
				</div>
			</div>

			<!--PAGE CONTENT ENDS-->
		</div>
		<!--/.span-->
	</div>
	<!--/.row-fluid-->
</div>
<!--/.page-content-->


</div>
<!--/.main-content-->