diff options
author | 2024-06-11 00:58:31 -0700 | |
---|---|---|
committer | 2024-06-11 14:59:42 -0700 | |
commit | 15a30340e8867dfac3f88460fbd93b581e56f10f (patch) | |
tree | 5f1ec84c8003a229769613d0bd6c7d399ec94be4 /data/templates/pico/tag2tagdelete.tpl.php | |
parent | b76f3afb27702c990275708c2ea0d432f35c6df1 (diff) | |
download | scuttle-15a30340e8867dfac3f88460fbd93b581e56f10f.tar.gz scuttle-15a30340e8867dfac3f88460fbd93b581e56f10f.zip |
Initial steps towards a pico.css-based theme
Diffstat (limited to 'data/templates/pico/tag2tagdelete.tpl.php')
-rw-r--r-- | data/templates/pico/tag2tagdelete.tpl.php | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/data/templates/pico/tag2tagdelete.tpl.php b/data/templates/pico/tag2tagdelete.tpl.php new file mode 100644 index 0000000..8018374 --- /dev/null +++ b/data/templates/pico/tag2tagdelete.tpl.php @@ -0,0 +1,49 @@ +<?php +$this->includeTemplate($GLOBALS['top_include']); +?> + +<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 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'); ?>" /> + <input 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'); +} + +$this->includeTemplate($GLOBALS['bottom_include']); +?> |