193
Unless you have a need for this to be a module...
You can do this in theme.html just like on a static html page. With this method the link will display on all pages and all themes in use will need to be modified.
1)Publish code1.js to your xoops/root directory. Publish your image to root/images directory.;
2)declare the script in theme.html head:
<head>
<script type="text/javascript">
<{$xoops_url}>/code1.js
</script>
</head>
3)Insert the form anywhere in your theme.html body
<body>
<p>Input date:</p>
<form name="tstest">
<input type="Text" name="timestamp" value="">
<a href="javascript:show_calendar('document.tstest.timestamp', document.tstest.timestamp.value);">
<img src="<{$xoops_url}>/images/img1.gif" width="16" height="16" border="0" alt= "Click here!"> </a>
</form>
</body>
I do not think you can use scripts or Smarty variables in a custom html block.
If you need the form code on a seperate page or want to make a simple module, take a look at this FAQ:
Can I include my own HTML pages in xoops?Good luck,
TCNet