<? 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['TXTGCALEVENTSDETAILS'];?></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="#/home/get_gcal_event_list/<?  echo $vis_language['TXTEVENTS'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module', '<?  echo $vis_language['TXTEVENTS'];?>', {'vis_module':'home', 'vis_operation':'get_gcal_event_list'})"><? echo $vis_language['TXTCALENDEREVENTS']; ?></a></li>
      <li><? echo $vis_language['TXTGCALEVENTSDETAILS'];?></li>
    </ul>
  </div>
</section>
<section class="padder">
  <section class="panel panel-default">
    <div class="wrapper-sm">
	<? $vis_email_gcalevent=$event_array['creator'];?>
   <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=googlecalender&vis_event=1&vis_email_id=<? echo $event_array['creator']; ?>&vis_domain_id=1&vis_cal_id=<? echo $operation['vis_cal_id']; ?>&vis_event_id=<? echo $operation['vis_event_id']; ?>" type="button"><? echo $vis_language['TXTCONVERTTOTICKET']; ?></a>

      <div class="btn-group">
        <div class="form-group">
          <h5><? echo $event_array['name'];?></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 $event_array['name']; ?></div>
        </div>
         <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTDESCRIPTION'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $event_array['description']; ?></div>
        </div>
         <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTLOCATION'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $event_array['location']; ?></div>
        </div>
        <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTCREATEDBY'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $event_array['creator']; ?></div>
        </div>
        <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTCREATIONDATE'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $event_array['created']; ?></div>
        </div>
         <div class="row m-b-sm"> <span class="col-xs-3 text-right"><? echo $vis_language['TXTGUESTEMAIL'];?> :</span>
          <div class=" col-xs-9 text-lt text-muted"><? echo $event_array['guest_email']; ?></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 $event_array['start']; ?></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 $event_array['end']; ?></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>
