<?php
$active = ' ui-tabs-active ui-state-active'; 
?>
<div class="ui-tabs ui-widget ui-widget-content ui-corner-all b10">
	<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
		<li class="ui-state-default ui-corner-top"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminUsers&amp;action=pjActionUpdate&amp;id=<?php echo $tpl['user']['id']; ?>"><?php __('menuProfile'); ?></a></li>
		<li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminUsers&amp;action=pjActionBooking&amp;id=<?php echo $tpl['user']['id']; ?>"><?php __('tabBookings'); ?></a></li>
	</ul>
</div>
<form id="frmCopyOptions" action="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminUsers&amp;action=pjActionCopy" method="post" class="form pj-form">
	<input type="hidden" name="options_copy" value="1" />
	<input type="hidden" name="next_action" value="<?php echo $_GET['action'];?>" />
	<input type="hidden" name="user_id" value="<?php echo $tpl['user']['id'];?>" />
	
	<p>
		<label class="title"><?php __('lblCopyOptionsFrom'); ?>:</label>
		<span class="inline_block">
			<select name="owner_id" id="owner_id" class="pj-form-field required w200 r10">
				<option value="">-- <?php __('lblChoose'); ?>--</option>
				<option value="0"><?php __('lblDefault'); ?></option>
				<?php
				foreach ($tpl['owner_arr'] as $v)
				{
					?><option value="<?php echo $v['id']; ?>"><?php echo stripslashes($v['name']); ?></option><?php
				}
				?>
			</select>
			<input type="button" value="<?php __('btnCopy', false, true); ?>" class="pj-button btnCopyOptions" />
		</span>
	</p>
</form>
<div id="dialogCopyOptions" title="<?php __('lblCopyTitle'); ?>" style="display:none;">
	<?php __('lblCopyConfirmation'); ?>
</div>
<div class="ui-tabs ui-widget ui-widget-content ui-corner-all b10">
	<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
		<li class="ui-state-default ui-corner-top<?php echo $_GET['action'] == 'pjActionBooking' ? $active : null;?>"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminUsers&amp;action=pjActionBooking&amp;id=<?php echo $tpl['user']['id']; ?>"><?php __('tabPayments'); ?></a></li>
		<li class="ui-state-default ui-corner-top<?php echo $_GET['action'] == 'pjActionNotification' ? $active : null;?>"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminUsers&amp;action=pjActionNotification&amp;id=<?php echo $tpl['user']['id']; ?>"><?php __('tabNotifications'); ?></a></li>
	</ul>
</div>