private function showForm($use_fckeditor = false, $require_email = false, $ask_website = false, $hidden = false, $editor_height = false) { global $CFG; $form = new Form('comments_' . $this->i, false, false, $this->class . '_form'); $CFG->o_method_suppress = true; $form->hiddenInput('p_id'); $CFG->o_method_suppress = true; $form->hiddenInput('url', false, $this->url); $CFG->o_method_suppress = true; $form->hiddenInput('record_id', false, $this->record_id); if (is_array($this->pass_vars)) { foreach ($this->pass_vars as $var => $val) { $CFG->o_method_suppress = true; $form->HTML('<input type="hidden" name="' . $var . '" value="' . $val . '" />'); } } if ($CFG->backstage_mode) { $CFG->o_method_suppress = true; $form->HTML('<input type="hidden" name="current_url" value="' . $CFG->url . '" />'); $CFG->o_method_suppress = true; $form->HTML('<input type="hidden" name="action" value="' . $CFG->action . '" />'); $CFG->o_method_suppress = true; $form->HTML('<input type="hidden" name="is_tab" value="' . $CFG->is_tab . '" />'); $CFG->o_method_suppress = true; $form->HTML('<input type="hidden" name="id" value="' . $CFG->id . '" />'); $CFG->o_method_suppress = true; $form->HTML('<input type="hidden" name="return_to_self" value="1" />'); } if (!User::isLoggedIn()) { $require_email = $require_email ? 'email' : false; $form->textInput('name', $CFG->comments_name_label, true); $form->textInput('email', $CFG->comments_email_label, $require_email); if ($ask_website) { $form->textInput('website', $CFG->comments_website_label); } } else { $CFG->o_method_suppress = true; $form->hiddenInput('user_id', false, User::$info['id']); } if ($use_fckeditor) { $CFG->o_method_suppress = true; $form->textEditor($hidden ? 'comments1' : 'comments', $CFG->comments_comments_label, true, false, false, false, false, true, false, $editor_height); } else { $CFG->o_method_suppress = true; $form->textArea($hidden ? 'comments1' : 'comments', $CFG->comments_comments_label, true); } $CFG->o_method_suppress = true; $form->submitButton('submit', $CFG->comments_submit, false, 'button'); $form->display(); }
<br> <div class="one_half"> <h3><i><?php echo Lang::string('contact-inquiries'); ?> </i></h3> <?php Messages::display(); Errors::display(); $contact->textInput('first_name', Lang::string('settings-first-name'), 0, User::$info['first_name']); $contact->textInput('last_name', Lang::string('settings-last-name'), 0, User::$info['last_name']); $contact->textInput('company', Lang::string('settings-company')); $contact->textInput('email', Lang::string('settings-email'), 'email', User::$info['email']); $contact->selectInput('country', Lang::string('settings-country'), 0, User::$info['country'], $countries, false, array('name')); $contact->textInput('subject', Lang::string('settings-subject'), 1); $contact->textEditor('message', Lang::string('settings-message'), 1, false, false, false, false, true, false, 200); $contact->captcha(Lang::string('settings-capcha')); $contact->HTML('<div class="form_button"><input type="submit" name="submit" value="' . Lang::string('contact-send') . '" class="but_user" /></div>'); $contact->hiddenInput('uniq', 1, $_SESSION["contact_uniq"]); $contact->display(); ?> </div> <div class="one_half last"> <div class="address-info"> <h3><i><?php echo $content1['title']; ?> </i></h3> <ul> <li><?php echo $content1['content'];