File: optional.tmpl

package info (click to toggle)
movabletype-opensource 4.2.3-1%2Blenny3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 21,268 kB
  • ctags: 15,862
  • sloc: perl: 178,892; php: 26,178; sh: 161; makefile: 82
file content (158 lines) | stat: -rw-r--r-- 5,776 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<mt:setvarblock name="page_title"><__trans phrase="Mail Configuration"></mt:setvarblock>
<mt:include name="../cms/include/chromeless_header.tmpl">

<form method="post">
<input type="hidden" name="__mode" value="" />
<input type="hidden" name="step" value="optional" />
<input type="hidden" name="set_static_uri_to" id="set_static_uri_to" value="<mt:var name="static_uri" escape="html">" />
<input type="hidden" name="config" value="<mt:var name="config" escape="html">" />

<script type="text/javascript">
/* <![CDATA[ */
function go(mode) {
    var f = document.forms[0];
    f['__mode'].value = mode;
}
function mail_select(sel) {
    var type = sel.options[sel.selectedIndex].value;
    if ((type == "smtp")) {
        hideByID("sendmail_path");
        hideByID("goback");
        showByID("smtp_server");
        showByID("submit");
        showByID("params");
        document.forms[0].smtp_server.focus();
    } else if (type == "sendmail") {
        showByID("sendmail_path");
        hideByID("goback");
        hideByID("smtp_server");
        showByID("submit");
        showByID("params");
        document.forms[0].sendmail_path.focus();
    } else {
        showByID("goback");
        hideByID("submit");
        hideByID("params");
    }
    return true;
}
/* ]]> */
</script>


<mt:if name="success">
<p class="intro"><span class="ready"><__trans phrase="Your mail configuration is complete."></span> <__trans phrase="Check your email to confirm receipt of a test email from Movable Type and then proceed to the next step."></p>

<div id="buttons" class="pkg">
<div class="left">
<input name="back" class="sb" type="submit" value="<__trans phrase="Back">" onclick="this.form.reset(); go('previous_step');" />
</div>
<div class="right">
<input name="continue" class="sb" type="submit" value="<__trans phrase="Continue">" name="continue" onclick="go('next_step')" />
</div>
</div>

<br /><p id="more"><a href="javascript:void(0)" onclick="hideByID('buttons'); hideByID('more'); showByID('settings');"><__trans phrase="Show current mail settings"></a></p>
</mt:if>

<div id="settings"<mt:if name="success"> style="display: none;"</mt:if>>

<p class="intro">
<__trans phrase="Periodically Movable Type will send email to inform users of new comments as well as other other events. For these emails to be sent properly, you must instruct Movable Type how to send email.">
</p>

<mt:if name="send_error">
    <mtapp:statusmsg
        id="send_error"
        class="error">
        <__trans phrase="An error occurred while attempting to send mail: "><mt:var name="error">
    </mtapp:statusmsg>
<mt:else>
<mt:if name="error">
    <mtapp:statusmsg
        id="error"
        class="error">
        <mt:var name="error">
    </mtapp:statusmsg>
</mt:if>
</mt:if>

<fieldset>

<!-- MailTransfer -->

    <mtapp:setting
        id="mail_transfer"
        label="<__trans phrase="Send email via:">"
        label_class="top-label">
<select id="mail_transfer" name="mail_transfer" onchange="mail_select(this)">
<option value=""><__trans phrase="Select One..."></option>
<mt:loop name="mail_loop">
<option value="<mt:var name=ID>" <mt:if name="selected">selected="selected"</mt:if>><mt:var name="name"></option>
</mt:loop>
</select>
    </mtapp:setting>

<div id="params" <mt:unless name="mail_transfer">style="display: none"</mt:unless>>
<!-- SendMailPath -->
<div id="sendmail_path" <mt:unless name="use_sendmail">style="display: none"</mt:unless>>

    <mtapp:setting
        id="sendmail_path"
        label="<__trans phrase="sendmail Path">"
        label_class="top-label"
        hint="<__trans phrase="The physical file path for your sendmail binary.">">
<input type="text" id="sendmail_path" class="ti" name="sendmail_path" value="<mt:if name="sendmail_path"><mt:var name="sendmail_path" escape="html"></mt:if>" /><br />
    </mtapp:setting>

</div>

<!-- SMTPServer -->
<div id="smtp_server" <mt:unless name="use_smtp">style="display: none"</mt:unless>>

    <mtapp:setting
        id="smtp_server"
        label="<__trans phrase="Outbound Mail Server (SMTP)">"
        label_class="top-label"
        hint="<__trans phrase="Address of your SMTP Server.">">
<input type="text" id="smtp_server" class="ti" name="smtp_server" value="<mt:if name="smtp_server"><mt:var name="smtp_server" escape="html"></mt:if>" /><br />
    </mtapp:setting>

</div>

<!-- Test Address -->

    <mtapp:setting
        id="test_email_address"
        label="<__trans phrase="Mail address for test sending">"
        label_class="top-label">
<input type="text" id="test_mail_address" class="ti" name="test_mail_address" value="<mt:if name="test_mail_address"><mt:var name="test_mail_address" escape="html"></mt:if>" /><br />
    </mtapp:setting>

</div>

<div id="goback" <mt:if name=mail_transfer>style="display: none"</mt:if>>
<div class="left">
<input name="back" type="submit" class="sb" value="<__trans phrase="Back">" onclick="this.form.reset(); go('previous_step');" />
</div>
<div class="right">
<input name="continue" type="submit" class="sb" value="<__trans phrase="Continue">" name="continue" onclick="go('next_step')" />
</div>
</div>

<div id="submit" class="action-buttons" <mt:unless name=mail_transfer>style="display: none"</mt:unless>>
<div class="left">
<input name="back" type="submit" class="sb" value="<__trans phrase="Back">" onclick="this.form.reset(); go('previous_step')" />
</div>
<div class="right">
<input name="test" type="submit" class="sb" value="<__trans phrase="Send Test Email">" onclick="go('test')" />
<input name="continue" type="submit" class="sb" value="<__trans phrase="Continue">" name="continue" onclick="go('next_step')" />
</div>
</div>

</div> <!-- settings -->


</fieldset>
</form>
<mt:include name="../cms/include/chromeless_footer.tmpl">