@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb009 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
plugins
/
MailForm
/
tmpl
/
Path :
Upload File :
New :
File
Dir
/homepage/plugins/MailForm/tmpl/setting.tmpl
<mt:setvarblock name="page_title"><__trans phrase="Setting of Mail Form"></mt:setvarblock> <mt:setvarblock name="content_header"> <mt:if name="saved"> <mtapp:statusmsg id="saved" class="success"> <__trans phrase="Your changes have been saved."> </mtapp:statusmsg> </mt:if> </mt:setvarblock> <mt:setvarblock name="related_content"> <mtapp:widget id="useful-links" label="<__trans phrase="Useful links">"> <ul> <li><a href="javascript:void(0);" title="<__trans phrase="View Mail Form">" onclick="return viewMailForm();"><__trans phrase="View Mail Form"></a></li> <li><a href="<mt:var name="script_url">?__mode=fjmf_manage_setting&blog_id=<mt:var name="blog_id">"><__trans phrase="Manage Mail Form"></a></li> <li><a href="<mt:var name="script_url">?__mode=fjmf_install_template_setup&blog_id=<mt:var name="blog_id">"><__trans phrase="Install Sample Mail Form Template"></a></li> </ul> </mtapp:widget> </mt:setvarblock> <mt:setvartemplate name="action_buttons"> <button type="submit" accesskey="s" title="<__trans phrase="Save Changes">" class="primary-button" ><__trans phrase="Save Changes"></button> </mt:setvartemplate> <mt:setvarblock name="html_head" append="1"> <script type="text/javascript"> <!-- var tmpl_module_map = <mt:var name="tmpl_module_map">; var mailform_info = <mt:var name="mailform_info">; function editTemplate(name) { var sel = document.getElementById(name + '_template_id'); var tmpl_id = Math.floor(sel.options[sel.selectedIndex].value); var url; if (tmpl_id) { location.href = '<mt:var name="script_url">?__mode=view&_type=template&id=' + tmpl_id + '&blog_id=' + tmpl_module_map[tmpl_id]; } else { alert('<__trans phrase="Template is not selected">'); } return false; } function viewMailForm() { var sel = document.getElementById('form_template_id'); var tmpl_id = Math.floor(sel.options[sel.selectedIndex].value); if (tmpl_id) { location.href = mailform_info[tmpl_id]; } else { alert('<__trans phrase="Template is not selected">'); } return false; } function insertMTSetVarTag() { var sel = document.getElementById('form_template_id'); var title = document.getElementById('title').value; var tmpl_id = Math.floor(sel.options[sel.selectedIndex].value); if (tmpl_id && title) { var param = 'blog_id=<mt:var name="blog_id">&id=' + tmpl_id + '&title=' + encodeURIComponent(title); openDialog(false,'fjmf_insert_tag', param); } else if (!title) { alert('<__trans phrase="Title is not specified">'); } else { alert('<__trans phrase="Template is not selected">'); } return false; } function rebuildMailForm() { var sel = document.getElementById('form_template_id'); var tmpl_id = Math.floor(sel.options[sel.selectedIndex].value); if (tmpl_id) { var param = 'blog_id=<mt:var name="blog_id">&id=' + tmpl_id; openDialog(false,'fjmf_rebuild', param); } else { alert('<__trans phrase="Template is not selected">'); } return false; } TC.attachLoadEvent(attachChecker); function attachChecker(e) { var i, j, eids;; eids = [ 'title', 'description', 'email_to', 'mail_subject', 'form_template_id', 'preview_template_id', 'error_template_id', 'post_template_id', 'common_template_id', 'body_template_id', 'auto_reply', 'rmail_from', 'reply_subject', 'reply_template_id', // 'error_specific_check', 'error_check_fields', 'must_check_fields', 'email_confirm', 'error_check_in_preview', // 'use_ajax', 'wait_msg', 'error_msg' ]; for (i = 0, j = eids.length; i < j; i++) { document.getElementById(eids[i]).onchange = function() { app.setDirty(); }; } } TC.attachBeforeUnloadEvent(checkChanged); function checkChanged(e) { if (app.changed) { if (e) { return e.returnValue = '<__trans phrase="Mail form setting will lost.">'; } else { return '<__trans phrase="Mail form setting will lost.">'; } } return undefined; } --> </script> </mt:setvarblock> <mt:include name="include/header.tmpl"> <form method="post" action="<mt:var name="script_url">" onsubmit="app.changed = false; this.submit();"> <mt:if name="id"> <input type="hidden" name="id" value="<mt:var name="id">" /> </mt:if> <input type="hidden" name="blog_id" value="<mt:var name="blog_id">" /> <input type="hidden" name="__mode" value="fjmf_save_setting" /> <fieldset> <h3><__trans phrase="Basic setting"></h3> <mtapp:setting id="title" label="<__trans phrase="Title of setting">" show_hint="0"> <input name="title" id="title" value="<mt:var name="title" escape="html">" class="width90" /> </mtapp:setting> <mtapp:setting id="description" label="<__trans phrase="Description of mail form">" show_hint="0"> <textarea name="description" id="description" class="full-width medium"><mt:var name="description" escape="html"></textarea> </mtapp:setting> <mtapp:setting id="email_to" label="<__trans phrase="Mail address to send">" show_hint="0"> <input name="email_to" id="email_to" value="<mt:var name="email_to" escape="html">" class="width90" /> </mtapp:setting> <mtapp:setting id="mail_subject" label="<__trans phrase="Mail subject">" show_hint="0"> <input name="mail_subject" id="mail_subject" value="<mt:var name="mail_subject" escape="html">" class="width90" /> </mtapp:setting> <mtapp:setting id="form_template_id" label="<__trans phrase="Mail form template">"> <select name="form_template_id" id="form_template_id" class="width90"> <mt:loop name="form_tmpl_data"> <option value="<$mt:var name="tmpl_id">"<mt:if name="tmpl_id" eq="$form_template_id"> selected="selected"</mt:if>><$mt:var name="tmpl_name"></option> </mt:loop> </select> <a href="javascript:void(0);" title="<__trans phrase="Edit template">" onclick="return editTemplate('form');"><img src="<mt:var name="static_uri">images/filter.gif" alt="<__trans phrase="Edit template">" width="8" height="8" /></a> <a href="javascript:void(0);" title="<__trans phrase="View mail form">" onclick="return viewMailForm();"><img src="<mt:var name="static_uri">images/status_icons/link.gif" alt="<__trans phrase="View mail form">" width="16" height="9" /></a><br /> <button onclick="return insertMTSetVarTag();"><__trans phrase="Insert required MTSetVar tag to mail form template"></button> <button onclick="return rebuildMailForm();"><__trans phrase="Rebuild mail form template"></button> </mtapp:setting> <mtapp:setting id="preview_template_id" label="<__trans phrase="Preview template">"> <select name="preview_template_id" id="preview_template_id" class="width90"> <mt:loop name="preview_tmpl_data"> <option value="<$mt:var name="tmpl_id">"<mt:if name="tmpl_id" eq="$preview_template_id"> selected="selected"</mt:if>><$mt:var name="tmpl_name"></option> </mt:loop> </select> <a href="javascript:void(0);" title="<__trans phrase="Edit template">" onclick="return editTemplate('preview');"><img src="<mt:var name="static_uri">images/filter.gif" alt="<__trans phrase="Edit template">" width="8" height="8" /></a> </mtapp:setting> <mtapp:setting id="error_template_id" label="<__trans phrase="Error template">"> <select name="error_template_id" id="error_template_id" class="width90"> <mt:loop name="error_tmpl_data"> <option value="<$mt:var name="tmpl_id">"<mt:if name="tmpl_id" eq="$error_template_id"> selected="selected"</mt:if>><$mt:var name="tmpl_name"></option> </mt:loop> </select> <a href="javascript:void(0);" title="<__trans phrase="Edit template">" onclick="return editTemplate('error');"><img src="<mt:var name="static_uri">images/filter.gif" alt="<__trans phrase="Edit template">" width="8" height="8" /></a> </mtapp:setting> <mtapp:setting id="post_template_id" label="<__trans phrase="Post template">"> <select name="post_template_id" id="post_template_id" class="width90"> <mt:loop name="post_tmpl_data"> <option value="<$mt:var name="tmpl_id">"<mt:if name="tmpl_id" eq="$post_template_id"> selected="selected"</mt:if>><$mt:var name="tmpl_name"></option> </mt:loop> </select> <a href="javascript:void(0);" title="<__trans phrase="Edit template">" onclick="return editTemplate('post');"><img src="<mt:var name="static_uri">images/filter.gif" alt="<__trans phrase="Edit template">" width="8" height="8" /></a> </mtapp:setting> <mtapp:setting id="common_template_id" label="<__trans phrase="Common module of mail form">"> <select name="common_template_id" id="common_template_id" class="width90"> <mt:loop name="common_tmpl_data"> <option value="<$mt:var name="tmpl_id">"<mt:if name="tmpl_id" eq="$common_template_id"> selected="selected"</mt:if>><$mt:var name="tmpl_name"></option> </mt:loop> </select> <a href="javascript:void(0);" title="<__trans phrase="Edit template">" onclick="return editTemplate('common');"><img src="<mt:var name="static_uri">images/filter.gif" alt="<__trans phrase="Edit template">" width="8" height="8" /></a> </mtapp:setting> <mtapp:setting id="body_template_id" label="<__trans phrase="Mail body template">"> <select name="body_template_id" id="body_template_id" class="width90"> <mt:loop name="body_tmpl_data"> <option value="<$mt:var name="tmpl_id">"<mt:if name="tmpl_id" eq="$body_template_id"> selected="selected"</mt:if>><$mt:var name="tmpl_name"></option> </mt:loop> </select> <a href="javascript:void(0);" title="<__trans phrase="Edit template">" onclick="return editTemplate('body');"><img src="<mt:var name="static_uri">images/filter.gif" alt="<__trans phrase="Edit template">" width="8" height="8" /></a> </mtapp:setting> <h3><__trans phrase="Auto reply"></h3> <mtapp:setting id="auto_reply" label="<__trans phrase="Use auto reply">"> <input type="checkbox" name="auto_reply" id="auto_reply" value="1"<mt:if name="auto_reply"> checked="checked"</mt:if> /> </mtapp:setting> <mtapp:setting id="rmail_from" label="<__trans phrase="Mail address of auto reply">"> <input name="rmail_from" id="rmail_from" value="<mt:var name="rmail_from" escape="html">" class="width90" /> </mtapp:setting> <mtapp:setting id="reply_subject" label="<__trans phrase="Reply mail subject">"> <input name="reply_subject" id="reply_subject" value="<mt:var name="reply_subject" escape="html">" class="width90" /> </mtapp:setting> <mtapp:setting id="reply_template_id" label="<__trans phrase="Reply mail body template">"> <select name="reply_template_id" id="reply_template_id" class="width90"> <mt:loop name="reply_tmpl_data"> <option value="<$mt:var name="tmpl_id">"<mt:if name="tmpl_id" eq="$reply_template_id"> selected="selected"</mt:if>><$mt:var name="tmpl_name"></option> </mt:loop> </select> <a href="javascript:void(0);" title="<__trans phrase="Edit template">" onclick="return editTemplate('reply');"><img src="<mt:var name="static_uri">images/filter.gif" alt="<__trans phrase="Edit template">" width="8" height="8" /></a> </mtapp:setting> <h3><__trans phrase="The check item of the form"></h3> <mtapp:setting id="error_check_fields" label="<__trans phrase="Fields to error check">"> <input name="error_check_fields" id="error_check_fields" value="<mt:var name="error_check_fields" escape="html">" class="width90" /> </mtapp:setting> <mt:ignore> <mtapp:setting id="error_specific_check" label="<__trans phrase="Fields and values to check specific error">"> <textarea name="error_specific_check" id="error_specific_check" class="full-width medium"><mt:var name="error_specific_check" escape="html"></textarea> </mtapp:setting> </mt:ignore> <mtapp:setting id="must_check_fields" label="<__trans phrase="Fields to require check on">"> <input name="must_check_fields" id="must_check_fields" value="<mt:var name="must_check_fields" escape="html">" class="width90" /> </mtapp:setting> <mtapp:setting id="email_confirm" label="<__trans phrase="Confirm mail address">"> <input type="checkbox" name="email_confirm" id="email_confirm" value="1"<mt:if name="email_confirm"> checked="checked"</mt:if> /> </mtapp:setting> <mtapp:setting id="error_check_in_preview" label="<__trans phrase="Error check in preview">"> <input type="checkbox" name="error_check_in_preview" id="error_check_in_preview" value="1"<mt:if name="error_check_in_preview"> checked="checked"</mt:if> /> </mtapp:setting> <h3><__trans phrase="Ajax"></h3> <mt:ignore> <mtapp:setting id="use_ajax" label="<__trans phrase="Use Ajax">"> <input type="checkbox" name="use_ajax" id="use_ajax" value="1"<mt:if name="use_ajax"> checked="checked"</mt:if> /> </mtapp:setting> </mt:ignore> <mtapp:setting id="wait_msg" label="<__trans phrase="Waiting message">" show_hint="0"> <textarea name="wait_msg" id="wait_msg" class="full-width medium"><mt:var name="wait_msg" escape="html"></textarea> </mtapp:setting> <mtapp:setting id="error_msg" label="<__trans phrase="Process error message">" show_hint="0"> <textarea name="error_msg" id="error_msg" class="full-width medium"><mt:var name="error_msg" escape="html"></textarea> </mtapp:setting> <mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1"> </fieldset> </form> <mt:include name="include/footer.tmpl">