| 1 | <?php |
|---|
| 2 | // $Id: contactform.php,v 1.4 2005/09/04 20:46:09 onokazu Exp $ |
|---|
| 3 | // ------------------------------------------------------------------------ // |
|---|
| 4 | // XOOPS - PHP Content Management System // |
|---|
| 5 | // Copyright (c) 2000 XOOPS.org // |
|---|
| 6 | // <http://www.xoops.org/> // |
|---|
| 7 | // ------------------------------------------------------------------------ // |
|---|
| 8 | // This program is free software; you can redistribute it and/or modify // |
|---|
| 9 | // it under the terms of the GNU General Public License as published by // |
|---|
| 10 | // the Free Software Foundation; either version 2 of the License, or // |
|---|
| 11 | // (at your option) any later version. // |
|---|
| 12 | // // |
|---|
| 13 | // You may not change or alter any portion of this comment or credits // |
|---|
| 14 | // of supporting developers from this source code or any supporting // |
|---|
| 15 | // source code which is considered copyrighted (c) material of the // |
|---|
| 16 | // original comment or credit authors. // |
|---|
| 17 | // // |
|---|
| 18 | // This program is distributed in the hope that it will be useful, // |
|---|
| 19 | // but WITHOUT ANY WARRANTY; without even the implied warranty of // |
|---|
| 20 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // |
|---|
| 21 | // GNU General Public License for more details. // |
|---|
| 22 | // // |
|---|
| 23 | // You should have received a copy of the GNU General Public License // |
|---|
| 24 | // along with this program; if not, write to the Free Software // |
|---|
| 25 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // |
|---|
| 26 | // ------------------------------------------------------------------------ // |
|---|
| 27 | |
|---|
| 28 | if (!defined('XOOPS_ROOT_PATH')) { |
|---|
| 29 | exit(); |
|---|
| 30 | } |
|---|
| 31 | $name_text = new XoopsFormText(_CT_NAME, "usersName", 50, 100, $name_v); |
|---|
| 32 | $email_text = new XoopsFormText(_CT_EMAIL, "usersEmail", 50, 100, $email_v); |
|---|
| 33 | $url_text = new XoopsFormText(_CT_URL, "usersSite", 50, 100, $url_v); |
|---|
| 34 | $icq_text = new XoopsFormText(_CT_ICQ, "usersICQ", 50, 100, $icq_v); |
|---|
| 35 | $company_text = new XoopsFormText(_CT_COMPANY, "usersCompanyName", 50, 100, $company_v); |
|---|
| 36 | $location_text = new XoopsFormText(_CT_LOCATION, "usersCompanyLocation", 50, 100, $location_v); |
|---|
| 37 | $comment_textarea = new XoopsFormTextArea(_CT_COMMENTS, "usersComments", $comment_v); |
|---|
| 38 | $submit_button = new XoopsFormButton("", "submit", _CT_SUBMIT, "submit"); |
|---|
| 39 | $contact_form = new XoopsThemeForm(_CT_CONTACTFORM, "contactform", "index.php"); |
|---|
| 40 | $contact_form->addElement($name_text, true); |
|---|
| 41 | $contact_form->addElement($email_text, true); |
|---|
| 42 | $contact_form->addElement($url_text); |
|---|
| 43 | $contact_form->addElement($icq_text); |
|---|
| 44 | $contact_form->addElement($company_text); |
|---|
| 45 | $contact_form->addElement($location_text); |
|---|
| 46 | $contact_form->addElement($comment_textarea, true); |
|---|
| 47 | $contact_form->addElement($submit_button); |
|---|
| 48 | ?> |
|---|