
30-11-2004, 09:36 AM
|
 |
Novice Webmaster
|
|
Join Date: Nov 2004
Location: selangor
Posts: 11
Rep Power: 0
|
|
html code
<form name="add" method="post" action="{$action_file}" onsubmit="return ValidateForm()" ENCTYPE="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="2000000">
<table cellspacing="0" cellpadding="6" width="100%" border="1" bordercolor="#FFFFFF" align="center" bgcolor="#E4EAF2">
{PrintMFileField label=$smarty.const._ATTACHMENT name="attachment" size="30"}
{PrintTxtField label=$smarty.const._DESC name="desc" size="30" maxlength="50"}
{PrintTextAreaField label=$smarty.const._KEYWORDS name="keywords" cols="60" rows="6"}
<tr class="formheader">
<td colspan="2" align="center">
<br>
<button class="button" onClick="javascript:window.opener.location.href = window.opener.location.href;window.close();">Cance l</button>
<input class="button" type="submit" name="upload" value="Upload" onClick="this.form.action.value='attach';">
{if $smarty.request.ispopup == "1"}
<button class="button" onClick="javascript:window.opener.location.href = window.opener.location.href;window.close();">Done</button>
{else}
<input class="button" type="submit" name="upload" value="Done" onClick="this.form.action.value='done';">
{/if}
<br><br>
<font class="bodytext">Note: Maximum filesize is 2Mb</font>
</td></tr>
</table>
__________________
-ariana zellina-
|