<form method="post" action="{$_modules[member][url]}index.php?ac=friends" name="addfriendfrm" id="addfriendfrm" onsubmit="return post_addfriend();" target="ifaddfriend">
    <div>
        添加 <strong><a href="{$_modules[space][url]}index.php?suid=$friend[uid]" target="_blank">$friend[username]</a></strong> 为你的好友？
    </div>
    <div>好友留言(选填, 限300字符)：</div>
    <div><textarea name="message" rows="5" cols="30"></textarea></div>
    <div>
        <input type="hidden" name="friendid" value="$friend[uid]" />
        <input type="submit" value="添加" name="addfriendsubmit" class="btn-dlg" />&nbsp;
        <input type="button" value="取消" name="hide" onclick="myDialogClose();" class="btn-dlg" />
    </div>
</form>