discourse-legacysite-perl/site/glist/templates/gossamer/pro_template.html
2024-06-17 22:24:05 +10:00

112 lines
5.0 KiB
HTML

<%set set_focus = 'myform.tpl_to'%>
<%set book_mark = 'template'%>
<script>
function confirm_delete() {
if (confirm("Are you sure you want to remove the '<%tpl_name%>' template?")) {
document.myform.txtdelete.value = 1
document.myform.submit();
}
}
</script>
<%include include_header.html%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="82%">
<tr>
<td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
<td colspan="3" height="3%" bgcolor="#E8EAD0" valign="top"><%include pro_include_menu.html%></td>
<td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="97%" colspan="3" valign="top">
<table width="99%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
<tr>
<td><img src="<%image_url%>/pics/1pixel.gif" width="1" height="3"></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#336600" style="border: 1px solid #C5E1A3">
<tr class="bold_white">
<td height="20"><img src="<%image_url%>/icons/glist.gif" hspace="2" vspace="0" align="texttop">Email Templates</td>
<td align="right"><a href="glist.cgi?do=pro_profile<%hidden_query%>"><img src="<%image_url%>/icons/close.gif" width="17" height="16" border=0></a></td>
</tr>
</table>
<br />
<%GList::Tools::email_editor%>
<form name=myform action="glist.cgi" method="post">
<table border="0" cellspacing="2" cellpadding="2" align=center>
<tr class="body">
<td class="body">Templates</td>
<td class="body">
<%if current_list%>
<%current_list%>
<input name="bload" value=" Load " type=submit class=button />
<%if tpl_name%>
<input name="bdelete" value="Delete" type=button class=button onclick="confirm_delete()" />
<input name="txtdelete" value="" type=hidden class=button />
<%endif%>
<%else%>
<input name="bdefault" value="Load Default Templates" type=submit class=button />
<%endif%>
</td>
</tr>
<tr class="body">
<td class="body">To</td>
<td>
<input type="text" class="object" name="tpl_to" size="<%if is_ie or is_mozilla%>70<%else%>50<%endif%>" value="<%if tpl_to%><%tpl_to%><%endif%>" />*
</td>
</tr>
<tr class="body">
<td class="body">Subject</td>
<td>
<input type="text" class="object" name="tpl_subject" size="<%if is_ie or is_mozilla%>70<%else%>50<%endif%>" value="<%if tpl_subject%><%tpl_subject%><%endif%>" />*
</td>
</tr>
<tr class="body">
<td class="body">From</td>
<td>
<input type="text" class="object" name="tpl_from" size="<%if is_ie or is_mozilla%>70<%else%>50<%endif%>" value="<%if tpl_from%><%tpl_from%><%endif%>" />*
</td>
</tr>
<tr class="body">
<td class="body">Extra Headers</td>
<td>
<textarea name="tpl_extra" cols=70 rows=2 class=object><%if tpl_extra%><%tpl_extra%><%endif%></textarea>
</td>
</tr>
<tr class="body">
<td class="body">E-mail body *</td>
<td align=right>
<%if msg%><%msg%><%endif%>
</td>
</tr>
<tr class="body">
<td colspan=2>
<textarea cols="<%if is_ie%>120<%elsif is_mozilla%>100<%else%>90<%endif%>" rows=17 name="tpl_body" class=object><%if tpl_body%><%tpl_body%><%endif%></textarea>
</td>
</tr>
<tr class="body">
<td class="body" colspan="2">
Save template as
<input name="save_as" type=text size=30 class="object" value="<%if bload%><%tpl_name%><%elsif save_as%><%ifnot bdelete%><%save_as%><%endif%><%endif%>" />
<input type="submit" name="bsave" value=" Save " class="button" />
</td>
</tr>
</table>
<table border="0" cellspacing="2" cellpadding="2" align=center width=100%>
<tr>
<td class="body" align=right>
<font color=green>*: required</font>
</td>
</tr>
</table>
<input type=hidden name="do" value="pro_template" />
<%hidden_objects%>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%include include_footer.html%>