<? 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 $vis_language['TXTLINKTICKET']; ?></h4>
		</div>
		<div class="modal-body">
			<div class="row">				
				<div class="col-sm-12">
					<form class="form-horizontal" role="form" name="vis_ticket_link_form" id="vis_ticket_link_form" method="post">
						<div class="form-group">
						   <label class="col-sm-3 control-label"><? echo $vis_language['TXTLINK']; ?></label>
						   <div class="col-sm-9">
								<select id="vis_link_type" name="vis_link_type" class="form-control input-sm selectpicker">
									<option value="1" selected="selected"><?= $vis_language['TXTRELATESTO'];?></option>
									<option value="2"><?= $vis_language['TXTISRELATEDTO'];?></option>
									<option value="3"><?= $vis_language['TXTISAPARENTOF'];?></option>
									<option value="4"><?= $vis_language['TXTISACHILDOF'];?></option>
									<option value="5"><?= $vis_language['TXTDEPENDSON'];?></option>
									<option value="6"><?= $vis_language['TXTISDEPENDEDON'];?></option>
									<option value="7"><?= $vis_language['TXTDUPLICATES'];?></option>
									<option value="8"><?= $vis_language['TXTISADUPLICATEDBY'];?></option>
								</select>
						   </div>
						</div>
						<div class="form-group">
						   <label class="col-sm-3 control-label"><? echo $vis_language['TXTTICKETHASH']; ?></label>
						   <div class="col-sm-9">
							  <input class="form-control input-sm" type="text" name="vis_ticket_hash" id="vis_ticket_hash" value="">
						   </div>
						</div>
						<input type="hidden" name="vis_ticket_id" value="<? echo $operation['vis_ticket_id']; ?>" />
					</form>
				</div>
			</div>
		</div>
		<div class="modal-footer m-n">
			<a class="btn btn-default" data-dismiss="modal"><? echo $vis_language['TXTCANCEL']; ?></a>	
			<a class="btn btn-primary" onclick="$(this).visExecution('submit_form',{'vis_module':'ticket', 'vis_operation':'link_ticket_hash', 'vis_form':'vis_ticket_link_form'});"><?= $vis_language['TXTUPDATE']; ?></a>
		</div>
	</div>
</div>
<script>$(".selectpicker").selectpicker();</script>