Location: PHPKode > projects > phlyMail Lite > phlymail/frontend/templates/setup.general.tpl
<script type="text/javascript">
/*<![CDATA[*/
switched_on = false;
function newmail_playsound(filename)
{
    if (!filename) filename = 'default_newmail.mp3';
    var ph = document.getElementById('preview_holder');
    ph.innerHTML = '';
    ph.innerHTML = '<object id="preview_player" width="8" height="8" uiMode="none"'
            + ' type="application/x-shockwave-flash"'
            + ' data="{frontend_path}/js/bgsoundplay.swf?file={frontend_path}/sounds/' + filename + '"'
            + '><param name="movie" value="{frontend_path}/js/bgsoundplay.swf?file={frontend_path}/sounds/' + filename + '" /><'
            + 'embed src="{frontend_path}/js/bgsoundplay.swf?file={frontend_path}/sounds/' + filename + '" width="1" height="1" /><'
            + '/object>';
}

function change_preview()
{
    newmail_playsound($('#sound_for_preview').val());
}

function switch_on(token)
{
    if (switched_on != false) {
        $('#win_' + switched_on).hide();
        $('#men_' + switched_on).removeClass('marked');
    }
    switched_on = token;
    $('#win_' + switched_on).show();
    $('#men_' + switched_on).addClass('marked');
}

$(document).ready(function (e) {
    switch_on('general');
    window.setTimeout('$("#result_message").css("visibility", "hidden");', 7000);
});
/*]]>*/
</script>
<form action="{target_link}" method="post">
    <table border="0" cellpadding="0" cellspacing="0" style="height:340px;margin:4px;width:600px;">
        <tr>
            <td class="sendmenuborder inboxline" style="width:80px;vertical-align:top;">
                <div id="men_general" class="menuline" style="width:64px;padding:8px;" onclick="switch_on('general')">
                    <img src="{theme_path}/images/setup_general.png" alt="" title="" />
                </div>
                <div id="men_reading" class="menuline" style="width:64px;padding:8px;" onclick="switch_on('reading')">
                    <img src="{theme_path}/images/setup_reading.png" alt="" title="" />
                </div>
                <div id="men_composing" class="menuline" style="width:64px;padding:8px;" onclick="switch_on('composing')">
                    <img src="{theme_path}/images/setup_composing.png" alt="" title="" />
                </div>
            </td>
            <td style="width:8px;font-size:1px;">&nbsp;</td>
            <td class="sendmenuborder" style="vertical-align:top;">
                <div id="win_general" style="display:none;overflow:auto;text-align:left;">
                    <table cellspacing="0" cellpadding="2" border="0"><!-- START has_themes -->
                        <tr>
                            <td>{msg_optskin}</td>
                            <td>
                                <select name="skin" size="1"><!-- START skinline -->
                                    <option value="{skinname}"<!-- START sel --> selected="selected"<!-- END sel -->>{skinname}</option><!-- END skinline -->
                                </select>
                            </td>
                        </tr><!-- END has_themes -->
                        <tr>
                            <td>{msg_optlang}</td>
                            <td>
                                <select name="lang" size="1"><!-- START langline -->
                                    <option value="{id}"<!-- START sel --> selected="selected"<!-- END sel -->>{langname}</option><!-- END langline -->
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>{msg_timezone}</td>
                            <td>
                                <select size="1" name="timezone"><!-- START timezone -->
                                    <option value="{zone}"<!-- START sel --> selected="selected"<!-- END sel -->>{zonename}</option><!-- END timezone -->
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>{msg_pagesize}</td>
                            <td>
                                <input type="text" name="pagesize" value="{pagesize}" size="3" maxlength="6" />
                            </td>
                        </tr>
                        <tr>
                             <td>{msg_externalemail}</td>
                             <td><input type="text" name="externalemail" size="24" maxlength="255" value="{externalemail}" /></td>
                        </tr>
                        <tr>
                            <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                             <td>{msg_newpw}</td>
                             <td><input type="password" name="pw" size="24" maxlength="32" /></td>
                        </tr>
                        <tr>
                            <td>{msg_newpw2}</td>
                            <td><input type="password" name="pw2" size="24" maxlength="32" /></td>
                        </tr>
                        <tr>
                            <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="2"><strong>{msg_onlogin}</strong></td>
                        </tr>
                        <tr>
                            <td>{msg_loginfolder}</td>
                            <td>
                                <select size="1" name="loginfolder">
                                    <option value="core::root">{msg_pinboard}</option><!-- START loginfolder -->
                                    <option value="{id}"<!-- START sel --> selected="selected"<!-- END sel -->>{name}</option><!-- END loginfolder -->
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2"><strong>{msg_onlogout}</strong></td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                &nbsp;<input type="checkbox" name="logout_showprompt" value="1" id="lbl_lo_showprompt"<!-- START logoutshowprompt --> checked="checked"<!-- END logoutshowprompt --> />
                                <label for="lbl_lo_showprompt">&nbsp;{msg_showprompt}</label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                &nbsp;<input type="checkbox" name="emptytrash" value="1" id="lbl_trash"<!-- START emptytrash --> checked="checked"<!-- END emptytrash --> />
                                <label for="lbl_trash">&nbsp;{msg_emptytrash}</label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                &nbsp;<input type="checkbox" name="emptyjunk" value="1" id="lbl_junk"<!-- START emptyjunk --> checked="checked"<!-- END emptyjunk --> />
                                <label for="lbl_junk">&nbsp;{msg_emptyjunk}</label>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="win_reading" style="display:none;overflow:auto;text-align:left;">
                    <table cellspacing="0" cellpadding="2" border="0">
                        <tr>
                            <td>{msg_fontface}</td>
                            <td>
                                <select size="1" name="fontface"><!-- START fontface -->
                                    <option value="{face}"<!-- START sel --> selected="selected"<!-- END sel -->>{face}</option><!-- END fontface -->
                                </select>&nbsp;
                                <input type="text" name="fontsize" value="{fontsize}" size="2" maxlength="3" />&nbsp;pt
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td>
                                <input type="checkbox" name="teletype" value="1" id="lbl_teletype"<!-- START teletype --> checked="checked"<!-- END teletype --> />
                                <label for="lbl_teletype">&nbsp;{msg_teletype}</label>
                            </td>
                        </tr>
                        <tr>
                            <td>{msg_mdnbehaviour}</td>
                            <td>
                                <select name="mdn_behaviour" size="1"><!-- START mdnline -->
                                    <option value="{behaviour}"<!-- START sel --> selected="selected"<!-- END sel -->>{behaviourname}</option><!-- END mdnline -->
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>{msg_preferredmailpart}</td>
                            <td>
                                <select name="email_preferred_part" size="1"><!-- START mailpreferredpart -->
                                    <option value="{part}"<!-- START sel --> selected="selected"<!-- END sel -->>{partname}</option><!-- END mailpreferredpart -->
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="checkbox" name="parsesmileys" value="1" id="lbl_parsesmileys"<!-- START parsesmileys --> checked="checked"<!-- END parsesmileys --> />
                                <label for="lbl_parsesmileys">&nbsp;{msg_parsesmileys}</label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="checkbox" name="parseformat" value="1" id="lbl_parseformat"<!-- START parseformat --> checked="checked"<!-- END parseformat --> />
                                <label for="lbl_parseformat">&nbsp;{msg_parseformat}</label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="checkbox" name="collapse_threads" value="1" id="lbl_collapse_threads"<!-- START collapse_threads --> checked="checked"<!-- END collapse_threads --> />
                                <label for="lbl_collapse_threads">&nbsp;{msg_collapse_threads}</label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="checkbox" name="automarkread" value="1" id="lbl_automark"<!-- START automarkread --> checked="checked"<!-- END automarkread --> />
                                <label for="lbl_automark">&nbsp;{msg_automarkread1}</label>
                                <input type="text" name="automarkread_time" value="{automarkread_time}" size="3" maxlength="6" />&nbsp;{msg_automarkread2}
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="checkbox" name="fetchlogin" value="1" id="lbl_fetchli"<!-- START fetchlogin --> checked="checked"<!-- END fetchlogin --> />
                                <label for="lbl_fetchli">&nbsp;{msg_fetchlogin}</label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="checkbox" name="usepreview" value="1" id="lbl_preview"<!-- START preview --> checked="checked"<!-- END preview --> />
                                <label for="lbl_preview">&nbsp;{msg_usepreview}</label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="checkbox" name="showattachmentinline" value="1" id="lbl_showinline"<!-- START showattachmentinline --> checked="checked"<!-- END showattachmentinline --> />
                                <label for="lbl_showinline">&nbsp;{msg_showattinline}</label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="2"><strong>{msg_alertnewmail}</strong></td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                &nbsp;<input type="checkbox" name="alertmail" value="1" id="lbl_alert"<!-- START alertmail --> checked="checked"<!-- END alertmail --> />
                                <label for="lbl_alert">&nbsp;{msg_alertnewmail_popup}</label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                &nbsp;<input type="checkbox" name="soundmail" value="1" id="lbl_sound"<!-- START soundmail --> checked="checked"<!-- END soundmail --> />
                                <label for="lbl_sound">&nbsp;{msg_alertnewmail_sound}</label>
                                <select size="1" id="sound_for_preview" name="soundname">
                                    <option value="">{standard}</option><!-- START soundnames -->
                                    <option value="{name}"<!-- START sel --> selected="selected"<!-- END sel -->>{name}</option><!-- END soundnames -->
                                </select>
                                <img src="{theme_path}/icons/play_sound.gif" onclick="change_preview()" alt="" style="cursor:pointer;" />
                                <div id="preview_holder" style="width:0;height:0;border:0;"></div>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="win_composing" style="display:none;overflow:auto;text-align:left;">
                    <table cellspacing="0" cellpadding="2" border="0">
                        <tr>
                            <td colspan="2">
                                <input type="checkbox" name="receiptout" value="1" id="lbl_receipt"<!-- START receipt --> checked="checked"<!-- END receipt --> />
                                <label for="lbl_receipt">&nbsp;{msg_optreceipt}</label>
                                <br />
                                <input type="checkbox" name="sendhtml" value="1" id="lbl_html"<!-- START sendhtml --> checked="checked"<!-- END sendhtml --> />
                                <label for="lbl_html">&nbsp;{msg_sendhtml}</label>
                                <br />
                                <input type="checkbox" name="answersamewin" value="1" id="lbl_answersamewin"<!-- START answersamewin --> checked="checked"<!-- END answersamewin --> />
                                <label for="lbl_answersamewin">&nbsp;{msg_answersamewin}</label>
                                <br />
                                <input type="checkbox" name="replysamefolder" value="1" id="lbl_replysamefolder"<!-- START replysamefolder --> checked="checked"<!-- END replysamefolder --> />
                                <label for="lbl_replysamefolder">&nbsp;{msg_replysamefolder}</label>
                            </td>
                        </tr>
                        <tr>
                            <td>{msg_sigpos}</td>
                            <td>
                                <select size="1" name="answer_style">
                                    <option value="default"<!-- START answer_style_default --> selected="selected"<!-- END answer_style_default -->>{msg_sigbottom}</option>
                                    <option value="tofu"<!-- START answer_style_tofu --> selected="selected"<!-- END answer_style_tofu -->>{msg_sigtop}</option>
                                </select>
                            </td>
                        </tr><!-- START smssender -->
                        <tr>
                            <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                             <td>{msg_smssender}</td>
                             <td><input type="text" name="smssender" size="24" maxlength="24" value="{sms_sender}" /></td>
                        </tr><!-- END smssender -->
                        <tr>
                            <td>{msg_sentfolder_sms}</td>
                            <td>
                                <select size="1" name="sentfolder_sms">
                                    <option value="0">{standard}</option><!-- START sentfolder_sms -->
                                    <option value="{id}"<!-- START sel --> selected="selected"<!-- END sel -->>{name}</option><!-- END sentfolder_sms -->
                                </select>
                            </td>
                        </tr><!-- START faxsender -->
                        <tr>
                            <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                             <td>{msg_faxsender}</td>
                             <td>
                                <input type="text" name="faxsender" size="24" maxlength="24" value="{fax_sender}" />
                             </td>
                        </tr>
                        <tr>
                             <td>{msg_faxsendername}</td>
                             <td>
                                <input type="text" name="faxsendername" size="24" maxlength="24" value="{fax_sender_name}" />
                             </td>
                        </tr>
                        <tr>
                             <td>{msg_faxstatusemail}</td>
                             <td>
                                <input type="text" name="faxstatusemail" size="24" maxlength="255" value="{fax_status_email}" />
                             </td>
                        </tr><!-- END faxsender -->
                        <tr>
                            <td>{msg_sentfolder_fax}</td>
                            <td>
                                <select size="1" name="sentfolder_fax">
                                    <option value="0">{standard}</option><!-- START sentfolder_fax -->
                                    <option value="{id}"<!-- START sel --> selected="selected"<!-- END sel -->>{name}</option><!-- END sentfolder_fax -->
                                </select>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
    <div style="float:right;padding:4px;">
        <strong id="result_message">{WP_return}</strong>&nbsp;&nbsp;
        <input type="submit" value="{msg_save}" />
    </div>
</form>
Return current item: phlyMail Lite