3 * Generic Tracker facility
5 * Copyright 1999-2001 (c) VA Linux Systems; 2005 GForge, LLC
6 * Copyright 2012, Franck Villaume - TrivialDev
7 * http://fusionforge.org/
9 * This file is part of FusionForge. FusionForge is free software;
10 * you can redistribute it and/or modify it under the terms of the
11 * GNU General Public License as published by the Free Software
12 * Foundation; either version 2 of the Licence, or (at your option)
15 * FusionForge 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 along
21 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 require_once 'note.php';
25 function artifact_submission_form($ath, $group) {
27 Show the free-form text submitted by the project admin
30 echo $ath->renderSubmitInstructions();
33 <form id="trackeraddform" action="<?php echo getStringFromServer('PHP_SELF') . '?group_id='.$group->getID().'&atid='.$ath->getID(); ?>" method="post" enctype="multipart/form-data">
34 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
35 <input type="hidden" name="func" value="postadd" />
36 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
42 if (!session_loggedin()) {
43 echo '<div class="login_warning_msg">
44 <span class="warning_msg">'.sprintf(_('Please %1$s login %2$s'), '<a href="'.util_make_url ('/account/login.php?return_to='.urlencode(getStringFromServer('REQUEST_URI'))).'">', '</a>').'</span><br />
45 '._('If you <strong>cannot</strong> login, then enter your email address here').':<p>
46 <input type="text" name="user_email" size="50" maxlength="255" /></p>
53 <td class="top"><strong><?php echo _('For project'); ?></strong><br /><?php echo $group->getPublicName(); ?></td>
54 <td class="top"><input type="submit" name="submit" value="<?php echo _('Submit'); ?>" /></td>
58 $ath->renderExtraFields(array(),true,'none',false,'Any',array(),false,'UPDATE');
60 if (forge_check_perm ('tracker', $ath->getID(), 'manager')) {
62 <td><strong>'._('Assigned to').':</strong><br />';
63 echo $ath->technicianBox('assigned_to');
64 echo ' '.util_make_link ('/tracker/admin/?group_id='.$group->getID().'&atid='.$ath->getID().'&update_users=1', '('._('Admin').')' );
66 echo '</td><td><strong>'._('Priority')._(':').'</strong><br />';
67 build_priority_select_box('priority');
72 <td colspan="2"><strong><?php echo _('Summary').utils_requiredField()._(':'); ?></strong><br />
73 <input id="tracker-summary" required="required" type="text" name="summary" size="80" maxlength="255" title="<?php echo util_html_secure(html_get_tooltip_description('summary')); ?>" />
79 <strong><?php echo _('Detailed description').utils_requiredField()._(':'); ?></strong><?php notepad_button('document.forms.trackeraddform.details'); ?><br />
80 <textarea id="tracker-description" required="required" name="details" rows="20" cols="79" title="<?php echo util_html_secure(html_get_tooltip_description('description')); ?> "></textarea>
87 if (!session_loggedin()) {
88 echo '<div class="login_warning_msg">
89 <div class="error">'.sprintf(_('Please %1$s login %2$s'), '<a href="'.util_make_url ('/account/login.php?return_to='.urlencode(getStringFromServer('REQUEST_URI'))).'">', '</a>').'</div><br />
90 '._('If you <strong>cannot</strong> login, then enter your email address here').':<p>
91 <input type="text" name="user_email" size="30" maxlength="255" /></p>
97 <span class="important"><?php echo _('DO NOT enter passwords or confidential information in your message!'); ?></span>
103 <div class="file_attachments">
104 <a href="javascript:help_window(\''. util_make_url ('/help/tracker.php?helpname=attach_file') .'\')"><strong>(?)</strong></a>
106 <strong><?php echo _('Attach Files'); ?> :</strong> <?php echo('('._('max upload size: '.human_readable_bytes(util_get_maxuploadfilesize())).')') ?><br />
107 <input type="file" name="input_file0" size="30" /><br />
108 <input type="file" name="input_file1" size="30" /><br />
109 <input type="file" name="input_file2" size="30" /><br />
110 <input type="file" name="input_file3" size="30" /><br />
111 <input type="file" name="input_file4" size="30" />
118 <input type="submit" name="submit" value="<?php echo _('Submit'); ?>" />
122 <tr><td colspan="2"><br/><?php echo utils_requiredField() . ' ' . _('Indicates required fields.'); ?></td></tr>