3 * GForge Generic Tracker facility
5 * Copyright 1999-2001 (c) VA Linux Systems; 2005 GForge, LLC
8 * This file is part of GForge.
10 * GForge is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * GForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with GForge; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 $ath->header(array ('title'=>_('Submit')));
29 Show the free-form text submitted by the project admin
32 echo $ath->renderSubmitInstructions();
34 echo '<form action="'.getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&atid='.$ath->getID().'" method="post" enctype="multipart/form-data">
36 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
41 <input type="hidden" name="form_key" value="'.form_generate_key().'" />
42 <input type="hidden" name="func" value="postadd" />
43 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />';
44 if (!session_loggedin()) {
46 <span class="error">'.sprintf(_('Please %1$s login %2$s'), '<a href="'.util_make_url ('/account/login.php?return_to='.urlencode($REQUEST_URI)).'">', '</a>').'</span><<br />
47 '._('If you <strong>cannot</strong> login, then enter your email address here').':<p>
48 <input type="text" name="user_email" size="50" maxlength="255" /></p>
55 <td valign="top"><strong>'._('For project').'</strong><br />'.$group->getPublicName().'</td>
56 <td valign="top"><input type="submit" name="submit" value="'. _('Submit').'" /></td>
59 $ath->renderExtraFields(array(),true,'none',false,'Any','',false,'UPDATE');
61 if ($ath->userIsAdmin()) {
63 <td><strong>'._('Assigned to').': <a href="javascript:help_window(\''.util_make_url ('/help/tracker.php?helpname=assignee').'\')"><strong>(?)</strong></a></strong><br />';
64 echo $ath->technicianBox ('assigned_to');
65 echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='.$ath->getID().'&update_users=1', '('._('Admin').')' );
67 echo '</td><td><strong>'._('Priority').': <a href="javascript:help_window(\''.util_make_url ('/help/tracker.php?helpname=priority').'\')"><strong>(?)</strong></a></strong><br />';
68 echo build_priority_select_box('priority');
74 <td colspan="2"><strong><?php echo _('Summary') ?><?php echo utils_requiredField(); ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=summary'); ?>')">(?)</a></strong><br />
75 <input type="text" name="summary" size="80" maxlength="255" />
81 <strong><?php echo _('Detailed description') ?><?php echo utils_requiredField(); ?>:</strong><?php echo notepad_button('document.forms[1].details') ?><br />
82 <textarea name="details" rows="20" cols="79"></textarea>
89 if (!session_loggedin()) {
91 <span class="error">'.sprintf(_('Please %1$s login %2$s'), '<a href="'.util_make_url ('/account/login.php?return_to='.urlencode(getStringFromServer('REQUEST_URI'))).'">', '</a>').'</span><br />
92 '._('If you <strong>cannot</strong> login, then enter your email address here').':<p>
93 <input type="text" name="user_email" size="30" maxlength="255" /></p>
99 <span class="veryimportant"><?php echo _('DO NOT enter passwords or confidential information in your message!') ?></span>
105 <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=attach_file'); ?>')"><strong>(?)</strong></a><br />
107 <strong><?php echo _('Attach Files') ?>:</strong><br />
108 <input type="file" name="input_file[]" size="30" /><br />
109 <input type="file" name="input_file[]" size="30" /><br />
110 <input type="file" name="input_file[]" size="30" /><br />
111 <input type="file" name="input_file[]" size="30" /><br />
112 <input type="file" name="input_file[]" size="30" /><br />
118 <input type="submit" name="submit" value="<?php echo _('Submit')?>" />
122 <tr><td colspan="2"><br/><?php echo utils_requiredField(); ?> <?php echo _('Indicates required fields.') ?></td></tr>
127 $ath->footer(array());
131 // c-file-style: "bsd"