changetag.html 1.2 KB

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html>
  3. <head>{include="includes"}
  4. {if="empty($GLOBALS['disablejquery'])"}<script src="inc/jquery.min.js#"></script><script src="inc/jquery-ui.min.js#"></script>{/if}
  5. </head>
  6. <body onload="document.changetag.fromtag.focus();">
  7. <div id="pageheader">
  8. {include="page.header"}
  9. <form method="POST" action="" name="changetag" id="changetag">
  10. <input type="hidden" name="token" value="{$token}">
  11. Tag: <input type="text" name="fromtag" id="fromtag">
  12. <input type="text" name="totag" id="totag">
  13. <input type="submit" name="renametag" value="Rename tag" class="bigbutton">
  14. &nbsp;&nbsp;or&nbsp; <input type="submit" name="deletetag" value="Delete tag" class="bigbutton" onClick="return confirmDeleteTag();"><br>(Case sensitive)</form>
  15. <script language="JavaScript">function confirmDeleteTag() { var agree=confirm("Are you sure you want to delete this tag from all links ?"); if (agree) return true ; else return false ; }</script>
  16. </div>
  17. {include="page.footer"}
  18. {if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"}
  19. <script language="JavaScript">
  20. $(document).ready(function()
  21. {
  22. $('#fromtag').autocomplete({source:'{$source}?ws=singletag',minLength:1});
  23. });
  24. </script>
  25. {/if}
  26. </body>
  27. </html>