<? 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"><? echo $vis_language['TXTGOTOMEETINGDETAILS'];?></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><a class="link" href="#/remoteaccess/gotomeeting/<? echo $vis_language['TXTGOTOMEETINGS'];?>"><? echo $vis_language['TXTGOTOMEETINGS'];?></a></li>
      <li><? echo $goto_meetings[0]->subject;?></li>
    </ul>
  </div>
</section>
<section class="padder">
  <section class="panel panel-default">
    <div class="wrapper-sm">
	<?if($chat_object->Email=="''"){$vis_email_gotomeeting='';}else $vis_email_gotomeeting=$chat_object->Email;?>
   <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=gotomeeting&vis_email_id=<? echo $vis_email_gotomeeting; ?>&vis_domain_id=<? echo $action[3]; ?>&vis_chat_id=<? echo $goto_meetings[0]->meetingId; ?>" onclick="" type="button"><? echo $vis_language['TXTCONVERTTOTICKET']; ?></a>

      <div class="btn-group">
        <div class="form-group">
          <h5><? echo $goto_meetings[0]->subject;?></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="created_session_link">
        <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTSUBJECT'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $goto_meetings[0]->subject; ?></div>
        </div>
        <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTJOINURL'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><a class="link" href="https://www.gotomeeting.com/join/<? echo $goto_meetings[0]->meetingId; ?>" target="_blank"> https://www.gotomeeting.com/join/<? echo $goto_meetings[0]->meetingId; ?></a></div>
        </div>
        <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTSTARTDATE'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo date("d M, Y H:i",strtotime($goto_meetings[0]->startTime)); ?></div>
        </div>
        <div class="row m-b-sm"> <span class="col-xs-3 text-right "><? echo $vis_language['TXTENDDATE'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo date("d M Y H:i",strtotime($goto_meetings[0]->endTime)); ?></div>
        </div>
        <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTCONFERENCECALLINFO'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $goto_meetings[0]->conferenceCallInfo; ?></div>
        </div>
         <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTDURATION'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $goto_meetings[0]->duration; ?> <?php echo $vis_language['TXTMINUTES'];?></div>
        </div>
         <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTMAXPARTICIPANTS'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $goto_meetings[0]->maxParticipants; ?></div>
        </div>
         <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTMEETINGID'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $goto_meetings[0]->meetingId; ?></div>
        </div>
        <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTMEETINGKEY'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $goto_meetings[0]->meetingKey; ?></div>
        </div>
        <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTMEETINGTYPE'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $goto_meetings[0]->meetingType; ?></div>
        </div>
        <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTMEETINGUNIQUEID'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $goto_meetings[0]->uniqueMeetingId; ?></div>
        </div>
       <!-- <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTSTATUS'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted">
			<? if($goto_meetings[0]->status == 'INACTIVE') echo '<span class="label vh-danger-bg">'.$goto_meetings[0]->status.'</span>';
			   else echo '<span class="label vh-green-bg">'.$goto_meetings[0]->status.'</span>';?>
          </div>
        </div>-->
        </div>
        <div class="row m-b-sm"> </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('created_session_link')"><? echo $vis_language['TXTCOPYTOCLIPBOARD']; ?></button></div>
        </div>

      </div>

      <div class="col-md-6"></div>
    </div>
  </section>
</section>
<script>
function SelectText(element) {
    var doc = document
        , text = doc.getElementById(element)
        , range, selection
    ;
    if (doc.body.createTextRange) {
        range = document.body.createTextRange();
        range.moveToElementText(text);
        range.select();
    } else if (window.getSelection) {
        selection = window.getSelection();
        range = document.createRange();
        range.selectNodeContents(text);
        selection.removeAllRanges();
        selection.addRange(range);
    }
}

</script>
