Exemplo n.º 1
0
echo "<div class=\"post_inner\">\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    light_html_display_error_array($error_msg_array);
}
echo "<div class=\"post_thread_title\">", gettext("Subject"), ":", light_form_input_text("t_subject", isset($t_subject) ? htmlentities_array($t_subject) : "", 30, 64), "</div>\n";
echo "<div class=\"post_to\">", gettext("To"), ":\n";
echo "<div class=\"recipients\">\n";
if (isset($message_data['RECIPIENTS']) && sizeof($message_data['RECIPIENTS']) > 0) {
    foreach ($message_data['RECIPIENTS'] as $recipient) {
        echo word_filter_add_ob_tags(format_user_name($recipient['LOGON'], $recipient['NICKNAME']), true), "\n";
    }
} else {
    echo gettext('Unknown User');
}
echo "</div>\n";
echo "</div>\n";
echo "<div class=\"post_content\">", light_form_textarea("t_content", htmlentities_array(strip_paragraphs($t_content)), 10, 50, null, 'textarea'), "</div>\n";
echo "<div class=\"post_buttons\">";
echo light_form_submit("apply", gettext("Apply"));
echo light_form_submit("preview", gettext("Preview"));
echo light_form_submit("cancel", gettext("Cancel"));
echo "</div>";
if (attachments_check_dir()) {
    echo "<div class=\"attachments post_attachments\">", gettext('Attachments'), ":\n";
    echo "  ", attachments_form($_SESSION['UID'], $attachments), "\n";
    echo "</div>\n";
}
echo "</div>";
echo "</div>";
echo "</form>\n";
light_html_draw_bottom();
Exemplo n.º 2
0
    $pm_preview_array['CONTENT'] = $t_content;
    light_pm_display($pm_preview_array, PM_FOLDER_OUTBOX, true);
}
echo "<form accept-charset=\"utf-8\" name=\"f_post\" action=\"lpm_write.php\" method=\"post\" target=\"_self\">\n";
echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo "  ", form_input_hidden('folder', htmlentities_array($folder)), "\n";
echo "  ", form_input_hidden("t_dedupe", htmlentities_array($t_dedupe));
echo "<div class=\"post\">\n";
echo "<h3>", gettext("Send New PM"), "</h3>\n";
echo "<div class=\"post_inner\">\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    light_html_display_error_array($error_msg_array);
}
echo "<div class=\"post_thread_title\">", gettext("Subject"), ":", light_form_input_text("t_subject", isset($t_subject) ? htmlentities_array($t_subject) : "", 30, 64), "</div>\n";
echo "<div class=\"post_to\">", gettext("To"), ":", light_form_input_text("t_to_uid_others", isset($t_to_uid_others) ? htmlentities_array($t_to_uid_others) : "", 0, 0), "</div>\n";
echo "<div class=\"post_content\">", light_form_textarea("t_content", htmlentities_array($t_content), 10, 50, false, 'textarea editor mobile'), "</div>\n";
echo "<div class=\"post_buttons\">";
echo light_form_submit("send", gettext("Send"));
echo light_form_submit("save", gettext("Save"));
echo light_form_submit("preview", gettext("Preview"));
echo light_form_submit("cancel", gettext("Cancel"));
echo "</div>";
if (isset($t_reply_mid) && is_numeric($t_reply_mid) && $t_reply_mid > 0) {
    echo form_input_hidden("replyto", htmlentities_array($t_reply_mid)), "\n";
} else {
    if (isset($t_forward_mid) && is_numeric($t_forward_mid) && $t_forward_mid > 0) {
        echo form_input_hidden("fwdmsg", htmlentities_array($t_forward_mid)), "\n";
    } else {
        if (isset($t_edit_mid) && is_numeric($t_edit_mid) && $t_edit_mid > 0) {
            echo form_input_hidden("editmsg", htmlentities_array($t_edit_mid)), "\n";
        }