mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-03-01 15:21:02 +03:00
49 lines
1.3 KiB
Smarty
49 lines
1.3 KiB
Smarty
|
<h1>{L_EMAIL}</h1>
|
||
|
|
||
|
<p>{L_MASS_EMAIL_EXPLAIN}</p>
|
||
|
<br />
|
||
|
|
||
|
<form method="post" action="{S_USER_ACTION}" onSubmit="return checkForm(this);">
|
||
|
|
||
|
<table class="forumline">
|
||
|
<tr>
|
||
|
<th colspan="2">{L_COMPOSE}</th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="row1" align="right"><b>{L_RECIPIENTS}</b></td>
|
||
|
<td class="row2">{S_GROUP_SELECT}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="row1" align="right"><b>{L_SUBJECT}</b></td>
|
||
|
<td class="row2"><input class="post" type="text" name="subject" size="45" maxlength="100" style="width:98%" tabindex="2" class="post" value="{SUBJECT}" /></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="row1" align="right" valign="top"> <span class="gen"><b>{L_MESSAGE}</b></span></td>
|
||
|
<td class="row2"><textarea name="message" rows="15" cols="35" wrap="virtual" style="width:98%" tabindex="3" class="post">{MESSAGE}</textarea></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="catBottom" colspan="2"><input type="submit" value="{L_SEND_EMAIL}" name="submit" class="mainoption" /></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
</form>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
function checkForm(formObj)
|
||
|
{
|
||
|
formErrors = false;
|
||
|
|
||
|
if (formObj.message.value.length < 2) {
|
||
|
formErrors = "{L_EMPTY_MESSAGE_EMAIL}";
|
||
|
}
|
||
|
else if ( formObj.subject.value.length < 2)
|
||
|
{
|
||
|
formErrors = "{L_EMPTY_SUBJECT_EMAIL}";
|
||
|
}
|
||
|
|
||
|
if (formErrors) {
|
||
|
alert(formErrors);
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
</script>
|