<? global $vis_language;?>
<section id="breadcrumb" class="row m-b m-l-none m-r-none">
	<div class="col-sm-4" id="url_header">
	  <h3 class="m-b-xs text-black"><? echo $vis_language['TXTTEAMVIEWER']; ?></h3>
	  <div>
		 <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><a href="#/remoteaccess/teamviewer_session_list/<? echo $vis_language['TXTTEAMVIEWER'].' '.$vis_language['TXTSEESION']; ?>" class="link" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTSEESION']; ?>',{'vis_module':'remoteaccess','vis_operation':'teamviewer_session_list'});"><?= $vis_language['TXTSEESION']; ?></a></li>
			<li class="active"><? echo $vis_language['TXTCREATESESSION'];?></li>
		 </ul>
	  </div>
	</div>
    <div class="col-sm-8 text-right text-left-xs m-t-lg">
    <div class="btn-group pull-right">
			<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="vh vh-action text-muted"></i> <b class="caret"></b></button>
     <ul class="dropdown-menu dropdown-menu-right text-left">
         <li><a href="#/remoteaccess/teamviewer_session_list/<? echo $vis_language['TXTSEESION']; ?>" class="link" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTSEESION']; ?>',{'vis_module':'remoteaccess','vis_operation':'teamviewer_session_list'});"><?= $vis_language['TXTSEESION']; ?></a></li>
         </ul>
   </div>


	</div>
</section>
<section class="padder">
    <section class="panel panel-default">
        <header class="panel-heading sub_header"><? echo $vis_language['TXTCREATESESSION']; ?></header>
        <div class="panel-body">
               <form class="form-horizontal" role="form" id="vis_create_session_form" name="vis_create_session_form" method="post">
				<div class="form-group">
					<label for="vis_domain" class="col-sm-2 control-label"><? echo $vis_language['TXTDOMAIN']; ?></label>
					<div class="col-sm-10">
						<select class="form-control selectpicker" name="vis_domain" id="vis_domain"<? if(count($teamviewer_details)>0) echo ' data-live-search="true"';?>>
						<?
							if($teamviewer_details[0]['domain_id']!=0){
							for($i=0;$i<count($teamviewer_details);$i++){
								for($j=0;$j<count($department);$j++){
									if($department[$j]['domain_id']==$teamviewer_details[$i]['domain_id']){
										echo '<option value="'.$department[$j]['domain_id'].'">'.$department[$j]['domain_name'].'</option>';
									}
								}
							} }
							else
							for($j=0;$j<count($department);$j++){
									echo '<option value="'.$department[$j]['domain_id'].'">'.$department[$j]['domain_name'].'</option>';
								} ?>
						</select>
					</div>
				</div>
				<div class="form-group">
				<label for="vis_domain" class="col-sm-2 control-label"><? echo $vis_language['TXTTEAM']; ?></label>
					<div class="col-sm-10">
						<select class="form-control selectpicker" name="vis_groupid" id="vis_groupid"<? if(count($group_list['groups'])>0) echo ' data-live-search="true"';?>>
						<?
							for($i=0;$i<count($group_list['groups']);$i++){
								echo '<option value="'.$group_list['groups'][$i]['id'].'">'.$group_list['groups'][$i]['name'].'</option>';
							} ?>
						</select>
					</div>
				</div>
            </form>

           <div class="b-2x b-t m-b-md"></div>
				<div class="col-sm col-sm-offset-2">
					  <button type="button" class="btn btn-primary" onclick="$(this).visExecution('submit_form',{'vis_module':'remoteaccess', 'vis_operation':'create_session', 'vis_form':'vis_create_session_form','vis_parent_client_id':'<? echo $client_details[0]['client_id']; ?>'})"><? echo $vis_language['TXTCREATESESSION']; ?></button>
				</div> <br/>  </div>
    </section>
</section>
<script>
$(".selectpicker").selectpicker();
 $('.start').datetimepicker();
function onchange_con_call(val){
	if(val=='text'){
	 	$("#enter_text_id").show();
	}else{
		$("#enter_text_id").hide();
	}
}
</script>
</section>
