<? 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 class="active"><a class="link" href="#/teamviewer/teamviewer_session_list"><? echo $vis_language['TXTTEAMVIEWER']; ?></a></li>
			<li class="active"><? echo $teamviewer_sessions['code']; ?></li>
		 </ul>
	  </div>
	</div>    
</section>
<section class="padder">
  <section class="panel panel-default">
    <div class="wrapper-sm">
   <a href="javascript:void(0);" class="link pull-right m-t-sm" data-toggle="ajaxModal" data-modal-arguments="vis_module=ticket&vis_operation=new_ticket_step_one&vis_static_area=vis_open_new_dialog&vis_chat_type=teamviewer&vis_email_id=<? echo $chat_object->Email; ?>&vis_domain_id=<? echo $action[3]; ?>&vis_chat_id=<? echo $teamviewer_sessions['code']; ?>" onclick="" type="button"><? echo $vis_language['TXTCONVERTTOTICKET']; ?></a>

      <div class="btn-group">
        <div class="form-group">
          <h5><? echo $teamviewer_sessions['code'];?></h5>
        </div>
      </div>
    <div class="line b-b line-lg pull-in"></div>
    </div>
    <div class="row m-t">
      <div class="col-md-6" >
		 <div  id="selectable">
			<div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTLANGUAGECODE'];?> :</span>
			  <div class=" col-xs-9 text-lt text-muted"><? echo $teamviewer_sessions['code']; ?></div>
			</div>

			<div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTSTATE'];?> :</span>
			  <div class=" col-xs-9 text-lt text-muted"><? echo $teamviewer_sessions['state']; ?></div>
			</div>

			<div class="row m-b-sm"> <span class="col-xs-3 text-right "><? echo $vis_language['TXTGROUPID'];?> :</span>
			  <div class=" col-xs-9 text-lt text-muted"><?  echo $teamviewer_sessions['groupid']; ?></div>
			</div>

			<div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTASSIGNEDUSERID'];?> :</span>
			  <div class=" col-xs-9 text-lt text-muted"><?  echo $teamviewer_sessions['assigned_userid'];  ?></div>
			</div>

			 <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTASSIGNEDAT'];?> :</span>
			  <div class=" col-xs-9 text-lt text-muted"><? echo $teamviewer_sessions['assigned_at']; ?></div>
			</div>

			<div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTENDCUSTOMERLINK'];?> :</span>
			  <div class=" col-xs-9 text-lt text-muted"><? echo $teamviewer_sessions['end_customer_link']; ?></div>
			</div>

			<div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTSUPPORTERLINK'];?> :</span>
			  <div class=" col-xs-9 text-lt text-muted"><? echo $teamviewer_sessions['supporter_link']; ?></div>
			</div>

			<div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTCREATEDAT'];?> :</span>
			  <div class=" col-xs-9 text-lt text-muted"><? echo $teamviewer_sessions['created_at']; ?></div>
			</div>

			<div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTVALIDUNTIL'];?> :</span>
			  <div class=" col-xs-9 text-lt text-muted"><? echo $teamviewer_sessions['valid_until']; ?></div>
			</div>

			<div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTONLINE'];?> :</span>
			  <div class=" col-xs-9 text-lt text-muted">
			 <?  if($teamviewer_sessions['sessions'][$i]['online']!=1)
					echo $teamviewer_sessions['online'] = 'false';
				else
					echo $teamviewer_sessions['online'];
			 ?>
			  </div>
        </div>
	</div>
	<div class="row m-b-sm"> <span class="col-xs-3 text-right"></span>
          <div class=" col-xs-9 text-lt text-muted"><button type="button" class="btn btn-primary" onclick="selectText('selectable')"><? echo $vis_language['TXTCOPYTOCLIPBOARD']; ?></button></div>
        </div>
  </div>
</div>
<script type="text/javascript">
    function selectText(containerid) {
        if (document.selection) {
            var range = document.body.createTextRange();
            range.moveToElementText(document.getElementById(containerid));
            range.select();
        } else if (window.getSelection) {
            var range = document.createRange();
            range.selectNode(document.getElementById(containerid));
            window.getSelection().addRange(range);
        }
    }
</script>
