<? global $vis_language; ?>
<section id="breadcrumb" class="row m-b m-l-none m-r-none">
	<div class="col-sm-6">
		<h3 class="m-b-xs text-black"><span><? echo $currentPage;?></h3>
		<ul class="breadcrumb bg-empty no-border m-b-xxs no-padder">
			<li><a class="link" href="#/home/quick_view/<? echo $vis_language['TXTHOME']; ?>"><? echo $vis_language['TXTHOME'];?></a></li>
			<li class="active"><a class="link" href="#/setting/setting_menu/<? echo $vis_language['TXTSETTINGS']; ?>"><? echo $vis_language['TXTSETTINGS']; ?></a></li>
			<!--<li class="active"><a class="link" href="javascript:void(0);" onclick="$('#vis_workpanel_div').visExecution('load_module','<?echo $vis_language['TXTSINGLELOGIN'];?>',{'vis_module':'setting','vis_operation':'view_single_login'});"><? echo $vis_language['TXTSINGLELOGIN'];?></a></li>-->
			<li><? echo $currentPage; ?></li>
		</ul>
	</div>
</section>
<section class="padder">
	<section class='panel panel-default'>
		<header class="panel-heading sub_header"><? echo $currentPage; ?></header>
		<div class="panel-body">
			<form method="post" name="vis_single_form" id="vis_single_form" class="form-horizontal">
				<input type="hidden" value="<? echo $vis_login_type; ?>" name="vis_login_type" />
				<div class="form-group">
					<label class="col-sm-2 control-label"><?= $vis_language['TXTDOMAIN']; ?></label>
					<div class='col-sm-10'>
						<select class='form-control input-sm selectpicker' name="vis_department" id="vis_department" onchange="vis_change_singlelogin(this)" <? if(count($department) > 10) echo 'data-live-search="true"' ?>>
							<option value="0">-- <? echo $vis_language['TXTSELECTDOMAIN']; ?> --</option>
							<? for($i=0;$i<count($department);$i++) echo '<option value="'.$department[$i]['domain_id'].'">'.$department[$i]['domain_name'].'</option>'; ?>
						</select>
					</div>
				</div>
				<div id="vis_smtp_area"></div>
			</form>
		</div>
	</section>
</section>
<script>
	$('.selectpicker').selectpicker();
    function vis_change_singlelogin(e){
        if(e.value==0) $("#vis_smtp_area").hide();
        else $('#vis_smtp_area').visExecution('load_area', {'vis_module':'setting', 'vis_login_type': <? echo $vis_login_type; ?> , 'vis_operation':'single_login_domain_details', 'vis_department':e.value, 'vis_login_name':'<?=$currentPage?>'});
    }
</script>
