PHPFusion\PrivateMessages::pm_mainForm PHP Метод

pm_mainForm() публичный Метод

New message form
public pm_mainForm ( )
    public function pm_mainForm()
    {
        global $locale;
        $_GET['msg_send'] = isset($_GET['msg_send']) ? $_GET['msg_send'] : "";
        if (iADMIN) {
            $input_header = "<a class='pull-right m-b-10 display-inline-block' id='mass_send'>" . $locale['434'] . "</a><br/>";
            $input_header .= form_user_select("msg_send", $locale['420a'], $_GET['msg_send'], array("required" => TRUE, "inline" => TRUE, 'placeholder' => $locale['421']));
            $input_header .= "<div id='msg_to_group-field' class='form-group display-none'>\n";
            $input_header .= "<label for='mg_to_group' class='control-label col-xs-12 col-sm-3 col-md-3 col-lg-3 p-l-0'>" . $locale['434'] . "\n\t\t\t\t\t\t\t<input id='all_check' name='chk_sendtoall' type='checkbox' class='pull-left display-inline-block'\n\t\t\t\t\t\t   style='margin-right:10px !important;'/></label>\n";
            $input_header .= "<div class='col-xs-12 col-sm-9 col-md-9 col-lg-9'>\n";
            $user_groups = fusion_get_groups();
            unset($user_groups[0]);
            $input_header .= form_select('msg_group_send', "", "", array('options' => $user_groups, 'width' => "100%", 'class' => 'm-b-0'));
            $input_header .= "</div>\n</div>\n";
            // Toggle "Send to All" link
            add_to_jquery("\n\t\t\t\$('#mass_send').bind('click', function() {\n\t\t\t\$('#msg_to_group-field').toggleClass('display-none');\n\t\t\t\$('#msg_send-field').toggleClass('display-none');\n\t\t\tvar invisible = \$('#msg_to_group-field').hasClass('display-none');\n\t\t\tif (invisible) {\n\t\t\t\t\$('#all_check').prop('checked', false);\n\t\t\t} else {\n\t\t\t\t\$('#all_check').prop('checked', true);\n\t\t\t}\n\t\t\t});\n\t\t\t");
        } else {
            $input_header = form_user_select("msg_send", $locale['420a'], $_GET['msg_send'], array("required" => TRUE, 'input_id' => 'msgsend2', "inline" => TRUE, 'placeholder' => $locale['421']));
        }
        $this->info['reply_form'] = openform('inputform', 'post', BASEDIR . "messages.php?folder=" . $_GET['folder'] . "&amp;msg_send=" . $_GET['msg_send']) . $input_header . form_text('subject', $locale['405'], '', array("required" => TRUE, "inline" => TRUE, 'max_length' => 100, "autocomplete_off" => TRUE, "width" => "100%", 'placeholder' => $locale['405'])) . form_textarea('message', $locale['422'], '', array("required" => TRUE, 'error_text' => '', 'autosize' => 1, 'no_resize' => 0, 'preview' => 1, 'form_name' => 'inputform', "height" => "150px", 'bbcode' => 1)) . form_button('cancel', $locale['cancel'], $locale['cancel']) . form_button('send_pm', $locale['430'], $locale['430'], array('class' => 'btn m-l-10 btn-primary')) . closeform();
    }