summaryrefslogtreecommitdiffstatshomepage
path: root/data/templates/sscuttlizr/tag2tagdelete.tpl.php
blob: 085612d5b1759d8862413512caaa2d545bcb16e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
$this->includeTemplate($GLOBALS['top_include']);
?>
<div class="container-full">
	<div class="row">
		<div class="col-12 col-xs-12 col-sm-12 col-lg-12">
			<form action="<?php echo $formaction; ?>" method="post">
			<!--input type="hidden" name="tag1" value="<?php echo $tag1 ?>" />
			<input type="hidden" name="tag2" value="<?php echo $tag2 ?>" /-->
			<p>
			<input class="form-control" type="text" name="tag1" value="<?php echo $tag1 ?>"/>
			<input class="form-control" type="text" name="linkType" value=">" size="1" maxlength="1"/>
			<input class="form-control" type="text" name="tag2" value="<?php echo $tag2 ?>"/>
			</p>
			<p><?php echo T_('Are you sure?'); ?></p>
			<p>
					<input class="btn btn-default" type="submit" name="confirm" value="<?php echo T_('Yes'); ?>" />
					<input class="btn btn-default" type="submit" name="cancel" value="<?php echo T_('No'); ?>" />
			</p>

			<?php if (isset($referrer)): ?>
			<div><input type="hidden" name="referrer" value="<?php echo $referrer; ?>" /></div>
			<?php endif; ?>

			</form>

			<?php
			if(count($links)>0) {
			echo T_("Existing links:");
			foreach($links as $link) {
					echo '<span style="white-space:nowrap;margin-left:25px;">';
					if($link['tag1'] == $tag1 || $link['tag1'] == $tag2) {
				$textTag1 = '<b>'.$tag1.'</b>';
					} else {
				$textTag1 = $link['tag1'];
					}
					if($link['tag2'] == $tag1 || $link['tag2'] == $tag2) {
				$textTag2 = '<b>'.$tag2.'</b>';
					} else {
				$textTag2 = $link['tag2'];
					}

					echo $textTag1.' '.$link['relationType'].' '.$textTag2;
					echo "</span> ";
			}
			} else {
					echo T_('No links');
			}
			?>
		</div>
	</div>
</div>

<?php
$this->includeTemplate($GLOBALS['bottom_include']); 
?>