<?=getHead($data)?>
<?=getHeader($data)?>

<!-- Page container -->
<div class="page-container">
	<!-- Page content -->
	<div class="page-content">
		<?=getSideBar($data)?>
		<!-- Main content -->
		<div class="content-wrapper">
			<?=getPageHeader($data)?>
			<!-- Content area -->
			<div class="content">

<?=getAlerts()?>
<?php if($data['basic']){ ?>
				<!-- Tabs with solid background -->
				<div class="row">
					<div class="col-md-12">
						<div class="panel panel-flat">
							<div class="panel-heading">
								<h6 class="panel-title text-semibold">
									<?=$data['basic']['name']['val']?>
									<?=$data['basic']['surname']['val']?>
								</h6>
								<div class="heading-elements">

								</div>
							</div>
							<div class="panel-body">
								<div class="tabbable">
									<ul class="nav nav-tabs nav-tabs-solid">
										<li class="active"><a href="#solid-tab1" data-toggle="tab">Kullanıcı Bilgileri</a>
										</li>
										<li><a href="#solid-tab2" data-toggle="tab">Kullanıcı Detayı</a>
										</li>
									</ul>

									<div class="tab-content">
										<div class="tab-pane active" id="solid-tab1">
											<form class="form-horizontal form-validate-jquery ajaxform" f="saveBasic" c="callBack" action="#" role="form" method="post" enctype="multipart/form-data">
												<fieldset class="content-group">
													<?php
													foreach ( $data[ 'basic' ] as $element ) {
														getFormElement( $element, 'basic' );
													}
													?>
													<div class="text-right">
													<?=formToken('users')?>
														<button type="submit" class="btn btn-primary submit">Kaydet <i class="icon-arrow-right14 position-right"></i></button>
													</div>
												</fieldset>
											</form>

										</div>

										<div class="tab-pane" id="solid-tab2">
											<form class="form-horizontal form-validate-jquery ajaxform" f="saveMetas" c="callBack" action="" role="form" method="post" enctype="multipart/form-data">
												<?php
												
												if($data['basic']['id']['val']==0 || $data['basic']['id']['val']=='')
												{
													echo 'Öncelikle Kullanıcı Bilgilerini Kaydetmelisiniz!';
												} else {
													foreach ( $data[ 'metas' ] as $element )
													{
														getFormElement( $element, 'meta' );
													}													
													
												}

												?>
												<div class="text-right">
													<?=formToken('users')?>
													<?=basicId($data)?>
													<button type="submit" class="btn btn-primary submit">Kaydet <i class="icon-arrow-right14 position-right"></i></button>
												</div>

											</form>

										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!-- /tabs with solid background -->
<?php											
} else {
	echo t_('Kayıt Bulunamadı');
} ?>
			<?=getFooter($data)?>
			</div>
			<!-- /content area -->
		</div>
		<!-- /main content -->
	</div>
	<!-- /page content -->
</div>
<!-- /page container -->
</body> </html >