        {ERROR}
        {MESSAGE}
        {if:!MESSAGE}
        <table width="400" cellspacing="0" cellpadding="4" border="0">
        <form method="post" enctype="multipart/form-data">
        <tr>
        <td>{rs:NAME}<font color="#990000">*</font>:</td>
        <td><input type="text" name="r[name]" value="{name}" class="big"></td>
        </tr>

        <tr>
        <td>{rs:MAIL}<font color="#990000">*</font>:</td>
        <td><input type="text" name="r[mail]" value="{mail}" class="big"></td>
        </tr>

	{unless:!is_format}
        <tr>
        <td>{rs:FORMAT}:</td>
        <td>
                <select name="r[receive_format]">
                {row:RECEIVE_FORMAT_SELECT}<option value="{id}" {selected}>{title}</option>{/row}
                </select>
        </td>
        </tr>
	{/unless}

	{unless:!is_encoding}
        <tr>
        <td>{rs:ENCODING}:</td>
        <td>
		<select name="r[encoding]">
		{row:ENCODING_SELECT}<option value="{id}" {selected}>{title}</option>{/row}
		</select>
        </td>
        </tr>
	{/unless}

        <tr>
        <td valign="top">{rs:MAILING_GROUPS}:</td>
        <td>
		<table cellspacing="0" cellpadding="0" border="0">
		{row:GROUPS_SELECT}
		<tr>
		<td><input type="checkbox" name="r[group_id][]" value="{id}"{if:selected} checked{/if}></td>
		<td>{title}</td>
		</tr>
		{/row}
                </table>
        </td>
        </tr>

	{row:CUSTOM_FIELDS}
        <tr>
        <td valign="top">{title}{if:not_null}<font color="#990000">*</font>{/if}:</td>
        <td>{line}</td>
        </tr>
	{/row}

        <tr>
        <td><img src="{global:PATH}img/empty.gif" width="100" height="1" border="0" alt=""></td>
        <td align="left" width="100%">
                <input type="hidden" name="r[is_format]" value="{is_format}">
                <input type="hidden" name="r[is_encoding]" value="{is_encoding}">
                <input type="hidden" name="r[group_list]" value="{group_list}">
                <input type="hidden" name="r[cf_list]" value="{cf_list}">
                <input type="hidden" name="r[owner_id]" value="{owner_id}">
                <input type="hidden" name="save" value="1">
                <input type="submit" value="{rs:ACTION_SUBSCRIBE}" class="submit">
        </td>
        </tr>
        </form>
        </table>
        {/if}
