<? global $vis_language; ?>
<div class="modal-dialog">
  <div class="modal-content">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal">&times;</button>
      <h4 class="modal-title"><? echo $title;?></h4>
    </div>
    <div class="modal-body">
        <div class="row">
            <div class="col-sm-12">
                <form role="form"  target="vis_hidden_frame" class="form-horizontal" name="vis_ticket_merge_form" id="vis_ticket_merge_form">
                    <div class="form-group">
                        <label class="col-sm-3 control-label txt_nowrap"><? echo $vis_language['TXTMERGEINTO']; ?></label>
                        <div class="col-sm-9">
                            <select name="vis_ticket_merge_id" id="vis_ticket_merge_id" class="form-control input-sm selectpicker" <? if(count($ticket_list)>10) echo 'data-live-search="true"';?>>
                         <? for($i=(count($ticket_list)-1);$i>=0;$i--) {
                                echo '<option value="'.$ticket_list[$i]['ticket_id'].'">'.$ticket_list[$i]['ticket_hash'].' - '.$ticket_list[$i]['subject'].'</option>';
                            } ?></select>
                        </div>
                    </div>
					<?php //13-02-2017 Added By Sheetal- Starts  ?> 
<div class="form-group">
	<label class="col-sm-3 control-label"></label>
	<div class="col-sm-6">
		<div class="checkbox i-checks m-r-lg pull-left p-d-sm">
		  <label>
			<input value="1" id="vis_error_log" name="vis_merge_post" type="checkbox" checked="checked">
			<i></i><? echo $vis_language['TXTMERGEPOST']; ?></label>
		</div>
	</div>
</div>
<div class="form-group">
	<label class="col-sm-3 control-label"></label>
	<div class="col-sm-6">
		<div class="checkbox i-checks m-r-lg pull-left p-d-sm">
		  <label>
			<input value="1" id="vis_error_log" name="vis_merge_invoice" type="checkbox">
			<i></i> <? echo $vis_language['TXTMERGEINVOICE']; ?></label>
		</div>
	</div>
</div>
<div class="form-group">
	<label class="col-sm-3 control-label"></label>
	<div class="col-sm-6">
		<div class="checkbox i-checks m-r-lg pull-left p-d-sm">
		  <label>
			<input value="1" id="vis_error_log" name="vis_merge_timetrack" type="checkbox">
			<i></i> <? echo $vis_language['TXTMERGETIMETRACK']; ?></label>
		</div>
	</div>
</div>
<div class="form-group">
	<label class="col-sm-3 control-label"></label>
	<div class="col-sm-6">
		<div class="checkbox i-checks m-r-lg pull-left p-d-sm">
		  <label>
			<input value="1" id="vis_error_log" name="vis_merge_notes" type="checkbox">
			<i></i> <? echo $vis_language['TXTMERGENOTES']; ?></label>
		</div>
	</div>
</div>
<div class="form-group">
	<label class="col-sm-3 control-label"></label>
	<div class="col-sm-6">
		<div class="checkbox i-checks m-r-lg pull-left p-d-sm">
		  <label>
			<input value="1" id="vis_error_log" name="vis_merge_comments" type="checkbox">
			<i></i> <? echo $vis_language['TXTMERGECOMMENTS']; ?></label>
		</div>
	</div>
</div>




<?php //13-02-2017 Added By Sheetal - ENDS ?> 
                    <? for($i=(count($ticket_list)-1);$i>=0;$i--) { ?>
                    <input type="hidden" name="vis_ticket_mass_chk_<?= $i; ?>" id="vis_ticket_mass_chk_<?= $i; ?>" value="<?= $ticket_list[$i]['ticket_id']; ?>"/>
                   <? } ?>
                </form>
            </div>
        </div>
     </div>
    <div class="modal-footer">
	  <a class="btn btn-primary" onclick="$(this).visExecution('submit_form',{'vis_module':'ticket', 'vis_operation':'merge_tickets', 'vis_form':'vis_ticket_merge_form'});"><? echo $vis_language['TXTUPDATE']; ?></a>
    </div>
  </div>
</div>
<script type="text/javascript">
   $(".selectpicker").selectpicker();
</script>