diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-02-05 13:30:33 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-02-05 13:30:33 +0000 |
commit | 73e20c2ff50d197105f3efbc8940c498de4d2f47 (patch) | |
tree | 7ca227f920e21d19c02b34110c2240100ce87671 /templates/tag2tagdelete.tpl.php | |
parent | 67b4663c9a1ec6b173d50516e88bc78067a46369 (diff) | |
download | semanticscuttle-73e20c2ff50d197105f3efbc8940c498de4d2f47.tar.gz semanticscuttle-73e20c2ff50d197105f3efbc8940c498de4d2f47.tar.bz2 |
fix interface: make easier the management of tag links
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@33 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates/tag2tagdelete.tpl.php')
-rw-r--r-- | templates/tag2tagdelete.tpl.php | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/templates/tag2tagdelete.tpl.php b/templates/tag2tagdelete.tpl.php index 9a276d1..2f0715b 100644 --- a/templates/tag2tagdelete.tpl.php +++ b/templates/tag2tagdelete.tpl.php @@ -3,8 +3,13 @@ $this->includeTemplate($GLOBALS['top_include']); ?> <form action="<?= $formaction ?>" method="post"> -<input type="hidden" name="tag1" value="<?php echo $tag1 ?>" /> -<input type="hidden" name="tag2" value="<?php echo $tag2 ?>" /> +<!--input type="hidden" name="tag1" value="<?php echo $tag1 ?>" /> +<input type="hidden" name="tag2" value="<?php echo $tag2 ?>" /--> +<p> +<input type="text" name="tag1" value="<?php echo $tag1 ?>"/> +<input type="text" name="linkType" value=">" size="1" maxlength="1"/> +<input type="text" name="tag2" value="<?php echo $tag2 ?>"/> +</p> <p><?php echo T_('Are you sure?'); ?></p> <p> <input type="submit" name="confirm" value="<?php echo T_('Yes'); ?>" /> @@ -18,5 +23,27 @@ $this->includeTemplate($GLOBALS['top_include']); </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'); +} + $this->includeTemplate($GLOBALS['bottom_include']); ?> |