/**
  * 
  *
  */
 function create(&$argsObj, &$guiObj, $oWebEditorKeys)
 {
     $uiObj = new stdClass();
     $uiObj->doActionValue = 'doCreate';
     $uiObj->buttonValue = $this->l18n['btn_create'];
     $uiObj->caption = $this->l18n['caption_new_tproject'];
     $uiObj->testprojects = $this->tprojectMgr->get_all(null, array('access_key' => 'id'));
     // update by refence
     $argsObj->active = 1;
     $argsObj->is_public = 1;
     $guiObj->initWebEditorFromTemplate = true;
     $guiObj->testprojects = $uiObj->testprojects;
     $guiObj->reloadType = 'none';
     $guiObj->form_security_field = form_security_field();
     return $uiObj;
 }
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
auth_reauthenticate();
access_ensure_global_level(config_get('manage_plugin_threshold'));
html_page_top(plugin_lang_get('title'));
print_manage_menu();
?>

<br/>
<form action="<?php 
echo plugin_page('config_edit');
?>
" method="post">
<?php 
echo form_security_field('plugin_jQueryDecorate_config_edit');
?>
<table align="center" class="width75" cellspacing="1">

<tr>
	<td class="form-title" colspan="3">
		<?php 
echo plugin_lang_get('title') . ': ' . plugin_lang_get('config');
?>
	</td>
</tr>

<?php 
if (current_user_is_administrator()) {
    ?>
			<td><?php 
    echo get_enum_element('custom_field_type', $t_desc['type']);
    ?>
</td>
			<td><?php 
    echo string_display($t_desc['possible_values']);
    ?>
</td>
			<td><?php 
    echo string_display($t_desc['default_value']);
    ?>
</td>
		</tr><?php 
}
# Create Form END
?>
	</table>
	<form method="post" action="manage_custom_field_create.php">
		<fieldset>
			<?php 
echo form_security_field('manage_custom_field_create');
?>
			<input type="text" name="name" size="32" maxlength="64" />
			<input type="submit" class="button" value="<?php 
echo lang_get('add_custom_field_button');
?>
" />
		</fieldset>
	</form>
</div><?php 
html_page_bottom();
# don't index bug report page
html_robots_noindex();
html_page_top(lang_get('report_bug_link'));
print_recently_visited();
$t_form_encoding = '';
if ($t_show_attachments) {
    $t_form_encoding = 'enctype="multipart/form-data"';
}
?>
<br />
<form name="report_bug_form" method="post" <?php 
echo $t_form_encoding;
?>
 action="bug_report.php">
<?php 
echo form_security_field('bug_report');
?>
<div class="table-container">
<table cellspacing="1">
	<tr>
		<td class="form-title" colspan="2">
			<input type="hidden" name="m_id" value="<?php 
echo $f_master_bug_id;
?>
" />
			<input type="hidden" name="project_id" value="<?php 
echo $t_project_id;
?>
" />
			<?php 
echo lang_get('enter_report_details_title');
Example #5
0
require_api('lang_api.php');
require_api('utility_api.php');
# Check if project documentation feature is enabled.
if (OFF == config_get('enable_project_documentation') || !file_is_uploading_enabled() || !file_allow_project_upload()) {
    access_denied();
}
access_ensure_project_level(config_get('upload_project_file_threshold'));
$t_max_file_size = (int) min(ini_get_number('upload_max_filesize'), ini_get_number('post_max_size'), config_get('max_file_size'));
html_page_top();
?>

<br />
<div>
<form method="post" enctype="multipart/form-data" action="proj_doc_add.php">
<?php 
echo form_security_field('proj_doc_add');
?>
<table class="width75" cellspacing="1">
<tr>
	<td class="form-title">
		<?php 
echo lang_get('upload_file_title');
?>
	</td>
	<td class="right">
		<?php 
print_doc_menu('proj_doc_add_page.php');
?>
	</td>
</tr>
<tr class="row-1">
Example #6
0
<br />
<div align="center">
<center><b><?php 
print string_display(filter_db_get_name($f_query_id));
?>
</b></center>
<?php 
echo lang_get('query_delete_msg');
?>

<form method="post" action="<?php 
print $t_delete_url;
?>
">
<?php 
echo form_security_field('query_delete');
?>
<br /><br />
<input type="hidden" name="source_query_id" value="<?php 
print $f_query_id;
?>
"/>
<input type="submit" class="button" value="<?php 
print lang_get('delete_query');
?>
"/>
</form>

<form method="post" action="<?php 
print $t_redirect_url;
?>
Example #7
0
</span>
	</td>
	<td>
		<input type="submit" class="button" value="<?php 
echo lang_get('file_update_button');
?>
" />
	</td>
</tr>
</table>
</form>

<br />
	<form method="post" action="proj_doc_delete.php">
	<?php 
echo form_security_field('proj_doc_delete');
?>
	<input type="hidden" name="file_id" value="<?php 
echo $f_file_id;
?>
" />
	<input type="hidden" name="title" value="<?php 
echo $v_title;
?>
" />
	<input type="submit" class="button" value="<?php 
echo lang_get('file_delete_button');
?>
" />
	</form>
</div>
get_capability_row(lang_get('delete_own_bugnotes'), 'bugnote_user_delete_threshold');
get_capability_row(lang_get('view_private_notes'), 'private_bugnote_threshold');
get_capability_row(lang_get('change_view_state_own_bugnotes'), 'bugnote_user_change_view_state_threshold');
get_section_end();
# Others
get_section_begin_mcwt(lang_get('others'));
get_capability_row(lang_get('view') . ' ' . lang_get('changelog_link'), 'view_changelog_threshold');
get_capability_row(lang_get('view') . ' ' . lang_get('assigned_to'), 'view_handler_threshold');
get_capability_row(lang_get('view') . ' ' . lang_get('bug_history'), 'view_history_threshold');
get_capability_row(lang_get('send_reminders'), 'bug_reminder_threshold');
get_section_end();
if ($t_show_submit) {
    echo "<input type=\"submit\" class=\"button\" value=\"" . lang_get('change_configuration') . "\" />\n";
}
echo "</form>\n";
if ($t_show_submit && 0 < count($t_overrides)) {
    echo "<div class=\"right\"><form name=\"threshold_config_action\" method=\"post\" action=\"manage_config_revert.php\">\n";
    echo form_security_field('manage_config_revert');
    echo "<input name=\"revert\" type=\"hidden\" value=\"" . implode(',', $t_overrides) . "\"></input>";
    echo "<input name=\"project\" type=\"hidden\" value=\"{$t_project_id}\"></input>";
    echo "<input name=\"return\" type=\"hidden\" value=\"" . form_action_self() . "\"></input>";
    echo "<input type=\"submit\" class=\"button\" value=\"";
    if (ALL_PROJECTS == $t_project_id) {
        echo lang_get('revert_to_system');
    } else {
        echo lang_get('revert_to_all_project');
    }
    echo "\" />\n";
    echo "</form></div>\n";
}
html_page_bottom();
Example #9
0
    echo lang_get('copy_columns_from');
    ?>
" /><?php 
}
?>
			<input type="submit" name="copy_to" class="button" value="<?php 
echo lang_get('copy_columns_to');
?>
" />
		</fieldset>
	</form>
</div>

<?php 
if ($t_account_page) {
    ?>
<div class="form-container">
	<form method="post" action="manage_config_columns_reset.php">
		<fieldset>
			<?php 
    echo form_security_field('manage_config_columns_reset');
    ?>
			<span class="submit-button"><input type="submit" class="button" value="<?php 
    echo lang_get('reset_columns_configuration');
    ?>
" /></span>
		</fieldset>
	</form>
</div>
<?php 
}
    ?>
		</td>
	</tr>

<?php 
    if ($t_can_sponsor) {
        ?>
	<tr class="row-1">
		<th class="category" width="15%"><?php 
        echo lang_get('sponsor_issue');
        ?>
</th>
		<td>
			<form method="post" action="bug_set_sponsorship.php">
				<?php 
        echo form_security_field('bug_set_sponsorship');
        ?>
				<?php 
        echo sponsorship_get_currency();
        ?>
				<input type="hidden" name="bug_id" value="<?php 
        echo $f_bug_id;
        ?>
" size="4" />
				<input type="text" name="amount" value="<?php 
        echo config_get('minimum_sponsorship_amount');
        ?>
" size="4" />
				<input type="submit" class="button" name="sponsor" value="<?php 
        echo lang_get('sponsor_verb');
        ?>
/**
 * Edit Printing preferences
 * @param int $p_user_id user id
 * @param bool $p_error_if_protected error if account protected
 * @param string $p_redirect_url redirect url
 */
function edit_printing_prefs($p_user_id = null, $p_error_if_protected = true, $p_redirect_url = '')
{
    if (null === $p_user_id) {
        $p_user_id = auth_get_current_user_id();
    }
    $c_user_id = db_prepare_int($p_user_id);
    # protected account check
    if ($p_error_if_protected) {
        user_ensure_unprotected($p_user_id);
    }
    $t_user_print_pref_table = db_get_table('user_print_pref');
    if (is_blank($p_redirect_url)) {
        $p_redirect_url = 'print_all_bug_page.php';
    }
    # get the fields list
    $t_field_name_arr = get_field_names();
    $field_name_count = count($t_field_name_arr);
    # Grab the data
    $query = "SELECT print_pref\n\t\t\tFROM {$t_user_print_pref_table}\n\t\t\tWHERE user_id=" . db_param();
    $result = db_query_bound($query, array($c_user_id));
    ## OOPS, No entry in the database yet.  Lets make one
    if (0 == db_num_rows($result)) {
        # create a default array, same size than $t_field_name
        for ($i = 0; $i < $field_name_count; $i++) {
            $t_default_arr[$i] = 1;
        }
        $t_default = implode('', $t_default_arr);
        # all fields are added by default
        $query = "INSERT\n\t\t\t\tINTO {$t_user_print_pref_table}\n\t\t\t\t(user_id, print_pref)\n\t\t\t\tVALUES\n\t\t\t\t(" . db_param() . "," . db_param() . ")";
        $result = db_query_bound($query, array($c_user_id, $t_default));
        # Rerun select query
        $query = "SELECT print_pref\n\t\t\t\tFROM {$t_user_print_pref_table}\n\t\t\t\tWHERE user_id=" . db_param();
        $result = db_query_bound($query, array($c_user_id));
    }
    # putting the query result into an array with the same size as $t_fields_arr
    $row = db_fetch_array($result);
    $t_prefs = $row['print_pref'];
    # Account Preferences Form BEGIN
    $t_index_count = 0;
    ?>
<br />
<div>
<form method="post" action="print_all_bug_options_update.php">
<?php 
    echo form_security_field('print_all_bug_options_update');
    ?>
<input type="hidden" name="user_id" value="<?php 
    echo $p_user_id;
    ?>
" />
<input type="hidden" name="redirect_url" value="<?php 
    echo string_attribute($p_redirect_url);
    ?>
" />
<table class="width75" cellspacing="1">
<tr>
	<td class="form-title">
		<?php 
    echo lang_get('printing_preferences_title');
    ?>
	</td>
	<td class="right">
	</td>
</tr>


<?php 
    # display the checkboxes
    for ($i = 0; $i < $field_name_count; $i++) {
        echo '<tr>';
        ?>

	<th class="category">
		<?php 
        echo lang_get($t_field_name_arr[$i]);
        ?>
	</th>
	<td>
		<input type="checkbox" name="<?php 
        echo 'print_' . $t_field_name_arr[$i];
        ?>
"
		<?php 
        if (isset($t_prefs[$i]) && $t_prefs[$i] == 1) {
            echo 'checked="checked"';
        }
        ?>
 />
	</td>
</tr>

<?php 
    }
    ?>
<tr>
	<td>&#160;</td>
	<td>
		<input type="submit" class="button" value="<?php 
    echo lang_get('update_prefs_button');
    ?>
" />
	</td>
</tr>
</table>
</form>
</div>

<br />

<div class="border center">
	<form method="post" action="print_all_bug_options_reset.php">
	<?php 
    echo form_security_field('print_all_bug_options_reset');
    ?>
	<input type="submit" class="button" value="<?php 
    echo lang_get('reset_prefs_button');
    ?>
" />
	</form>
</div>

<?php 
}
Example #12
0
</a>
		<?php 
    }
    ?>
		</div>
	</td>
</tr>
<form action="<?php 
    echo plugin_page('config_edit.php');
    ?>
" 
				method="post" id="config_form" enctype="multipart/form-data">
<input type="hidden" id="deleteField" name="deleteField" value="">
<input type="hidden" id="changeUnit" name="changeUnit" value="">
<?php 
    echo form_security_field('plugin_format_config_edit');
    if (plugin_is_loaded('agileMantisExpert')) {
        ?>
<tr <?php 
        echo helper_alternate_class();
        ?>
>
	<td><?php 
        echo plugin_lang_get('manage_settings_upload_license');
        ?>
</td>
	<td><input type="file" name="license" size="50" /></td>
</tr>
<?php 
    }
    ?>
 */
/**
 * MantisBT Core API's
 */
require_once 'core.php';
auth_reauthenticate();
access_ensure_global_level(config_get('manage_user_threshold'));
$t_ldap = LDAP == config_get('login_method');
html_page_top();
print_manage_menu('manage_user_create_page.php');
?>
<br />
<div align="center">
<form method="post" action="manage_user_create.php">
<?php 
echo form_security_field('manage_user_create');
?>
<table class="width50" cellspacing="1">
<tr>
	<td class="form-title" colspan="2">
		<?php 
echo lang_get('create_new_account_title');
?>
	</td>
</tr>
<tr <?php 
echo helper_alternate_class();
?>
>
	<td class="category" width="25%">
		<?php 
global $g_plugin_cache;
$t_plugins_installed = array();
$t_plugins_available = array();
foreach ($t_plugins as $t_basename => $t_plugin) {
    if (isset($g_plugin_cache[$t_basename])) {
        $t_plugins_installed[$t_basename] = $t_plugin;
    } else {
        $t_plugins_available[$t_basename] = $t_plugin;
    }
}
if (0 < count($t_plugins_installed)) {
    ?>
<br />
<form action="manage_plugin_update.php" method="post">
<?php 
    echo form_security_field('manage_plugin_update');
    ?>
<table class="width100" cellspacing="1">

<!-- Title -->
<tr>
	<td class="form-title" colspan="7">
		<?php 
    echo lang_get('plugins_installed');
    ?>

	</td>
</tr>

<!-- Info -->
<tr class="row-category">
<?php 
# Only display the edit form if user is authorized to change configuration
if ($t_read_write_access) {
    ?>

<!-- Config Set Form -->

<?php 
    if (config_can_delete($t_edit_option)) {
        ?>
<div id="config-edit-div" class="form-container">
<form id="config_set_form" method="post" action="adm_config_set.php">
	<fieldset>
		<?php 
        echo form_security_field('adm_config_set');
        ?>

		<!-- Title -->
		<legend><span>
			<?php 
        echo lang_get('set_configuration_option');
        ?>
		</span></legend>

		<!-- Username -->
		<div class="field-container">
			<label for="config-user-id"><span><?php 
        echo lang_get('username');
        ?>
</span></label>
Example #16
0
	</div>
</div>

<?php 
if ($t_can_edit) {
    ?>
<div id="manage-tags-create-div" class="form-container">
	<a name="tagcreate" />
	<form id="manage-tags-create-form" method="post" action="tag_create.php">
		<fieldset class="required">
			<legend><span><?php 
    echo lang_get('tag_create');
    ?>
</span></legend>
			<?php 
    echo form_security_field('tag_create');
    ?>
			<div class="field-container">
				<label for="tag-name" class="required"><span><?php 
    echo lang_get('tag_name');
    ?>
</span></label>
				<span class="input"><input type="text" id="tag-name" name="name" size="40" maxlength="100" />
				<span><?php 
    echo sprintf(lang_get('tag_separate_by'), config_get('tag_separator'));
    ?>
</span>
				</span>
				<span class="label-style"></span>
			</div>
			<div class="field-container">
require_once 'tag_api.php';
compress_enable();
$f_tag_id = gpc_get_int('tag_id');
$t_tag_row = tag_get($f_tag_id);
$t_name = string_display_line($t_tag_row['name']);
$t_description = string_display($t_tag_row['description']);
if (!(access_has_global_level(config_get('tag_edit_threshold')) || auth_get_current_user_id() == $t_tag_row['user_id'] && access_has_global_level(config_get('tag_edit_own_threshold')))) {
    access_denied();
}
html_page_top(sprintf(lang_get('tag_update'), $t_name));
?>

<br />
<form method="post" action="tag_update.php">
<?php 
echo form_security_field('tag_update');
?>
<table class="width100" cellspacing="1">

<!-- Title -->
<tr>
	<td class="form-title" colspan="2">
		<?php 
echo sprintf(lang_get('tag_update'), $t_name);
?>
		<input type="hidden" name="tag_id" value="<?php 
echo $f_tag_id;
?>
"/>
	</td>
	<td class="right" colspan="3">
</form>
</div>
<?php 
# Add Profile Form END
?>

<?php 
# Edit or Delete Profile Form BEGIN
$t_profiles = profile_get_all_for_user($t_user_id);
if ($t_profiles) {
    ?>
<br />
<div align="center">
<form method="post" action="account_prof_update.php">
<?php 
    echo form_security_field('profile_update');
    ?>
<table class="width75" cellspacing="1">
<tr>
	<td class="form-title" colspan="2">
		<?php 
    echo lang_get('edit_or_delete_profiles_title');
    ?>
	</td>
</tr>
<tr class="row-1">
	<td class="center" colspan="2">
		<input type="radio" name="action" value="edit" checked="checked" /> <?php 
    echo lang_get('edit_profile');
    if (!$g_global_profiles) {
        ?>
Example #19
0
/**
 * Display html form to edit account preferences
 *
 * @param integer $p_user_id            A valid user identifier.
 * @param boolean $p_error_if_protected Whether to error if the account is protected.
 * @param boolean $p_accounts_menu      Display account preferences menu.
 * @param string  $p_redirect_url       Redirect URI.
 * @return void
 */
function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_accounts_menu = true, $p_redirect_url = '')
{
    if (null === $p_user_id) {
        $p_user_id = auth_get_current_user_id();
    }
    $t_redirect_url = $p_redirect_url;
    if (is_blank($t_redirect_url)) {
        $t_redirect_url = 'account_prefs_page.php';
    }
    # protected account check
    if (user_is_protected($p_user_id)) {
        if ($p_error_if_protected) {
            trigger_error(ERROR_PROTECTED_ACCOUNT, ERROR);
        } else {
            return;
        }
    }
    $t_pref = user_pref_get($p_user_id);
    # Account Preferences Form BEGIN
    ?>

<div id="account-prefs-update-div" class="form-container">
	<form id="account-prefs-update-form" method="post" action="account_prefs_update.php">
		<fieldset>
			<legend><span><?php 
    echo lang_get('default_account_preferences_title');
    ?>
</span></legend>
			<?php 
    echo form_security_field('account_prefs_update');
    ?>
			<input type="hidden" name="user_id" value="<?php 
    echo $p_user_id;
    ?>
" />
			<input type="hidden" name="redirect_url" value="<?php 
    echo $t_redirect_url;
    ?>
" />
		<?php 
    if ($p_accounts_menu) {
        print_account_menu('account_prefs_page.php');
    }
    ?>
			<div class="field-container">
				<label for="default-project-id"><span><?php 
    echo lang_get('default_project');
    ?>
</span></label>
				<span class="select">
					<select id="default-project-id" name="default_project">
<?php 
    # Count number of available projects
    $t_projects = current_user_get_accessible_projects();
    $t_num_proj = count($t_projects);
    if ($t_num_proj == 1) {
        $t_num_proj += count(current_user_get_accessible_subprojects($t_projects[0]));
    }
    # Don't display "All projects" in selection list if there is only 1
    print_project_option_list((int) $t_pref->default_project, $t_num_proj != 1);
    ?>
					</select>
				</span>
				<span class="label-style"></span>
			</div>
			<div class="field-container">
				<label for="refresh-delay"><span><?php 
    echo lang_get('refresh_delay');
    ?>
</span></label>
				<span class="input"><input id="refresh-delay" type="text" name="refresh_delay" size="4" maxlength="4" value="<?php 
    echo $t_pref->refresh_delay;
    ?>
" /> <?php 
    echo lang_get('minutes');
    ?>
</span>
				<span class="label-style"></span>
			</div>
			<div class="field-container">
				<label for="redirect-delay"><span><?php 
    echo lang_get('redirect_delay');
    ?>
</span></label>
				<span class="input"><input id="redirect-delay" type="text" name="redirect_delay" size="4" maxlength="3" value="<?php 
    echo $t_pref->redirect_delay;
    ?>
" /> <?php 
    echo lang_get('seconds');
    ?>
</span>
				<span class="label-style"></span>
			</div>
			<fieldset class="field-container">
				<legend><span><?php 
    echo lang_get('bugnote_order');
    ?>
</span></legend>
				<span class="radio"><input id="bugnote-order-desc" type="radio" name="bugnote_order" value="DESC" <?php 
    check_checked($t_pref->bugnote_order, 'DESC');
    ?>
 /></span>
				<label for="bugnote-order-desc"><span><?php 
    echo lang_get('bugnote_order_desc');
    ?>
</span></label>
				<span class="radio"><input id="bugnote-order-asc" type="radio" name="bugnote_order" value="ASC" <?php 
    check_checked($t_pref->bugnote_order, 'ASC');
    ?>
 /></span>
				<label for="bugnote-order-asc"><span><?php 
    echo lang_get('bugnote_order_asc');
    ?>
</span></label>
				<span class="label-style"></span>
			</fieldset>
			<?php 
    if (ON == config_get('enable_email_notification')) {
        ?>
			<fieldset class="field-container">
				<legend><label for="email-on-new"><?php 
        echo lang_get('email_on_new');
        ?>
</label></legend>
				<span class="checkbox"><input id="email-on-new" type="checkbox" name="email_on_new" <?php 
        check_checked((int) $t_pref->email_on_new, ON);
        ?>
 /></span>
				<label for="email-on-new-min-severity" class="email-on-severity-label"><span><?php 
        echo lang_get('with_minimum_severity');
        ?>
</span></label>
				<span class="select email-on-severity">
					<select id="email-on-new-min-severity" name="email_on_new_min_severity">
						<option value="<?php 
        echo OFF;
        ?>
"><?php 
        echo lang_get('any');
        ?>
</option>
						<option disabled="disabled">-----</option>
						<?php 
        print_enum_string_option_list('severity', (int) $t_pref->email_on_new_min_severity);
        ?>
					</select>
				</span>
				<span class="label-style"></span>
			</fieldset>
			<fieldset class="field-container">
				<legend><label for="email-on-assigned"><?php 
        echo lang_get('email_on_assigned');
        ?>
</label></legend>
				<span class="checkbox"><input id="email-on-assigned" type="checkbox" name="email_on_assigned" <?php 
        check_checked((int) $t_pref->email_on_assigned, ON);
        ?>
 /></span>
				<label for="email-on-assigned-min-severity" class="email-on-severity-label"><span><?php 
        echo lang_get('with_minimum_severity');
        ?>
</span></label>
				<span class="select email-on-severity">
					<select id="email-on-assigned-min-severity" name="email_on_assigned_min_severity">
						<option value="<?php 
        echo OFF;
        ?>
"><?php 
        echo lang_get('any');
        ?>
</option>
						<option disabled="disabled">-----</option>
						<?php 
        print_enum_string_option_list('severity', (int) $t_pref->email_on_assigned_min_severity);
        ?>
					</select>
				</span>
				<span class="label-style"></span>
			</fieldset>
			<fieldset class="field-container">
				<legend><label for="email-on-feedback"><?php 
        echo lang_get('email_on_feedback');
        ?>
</label></legend>
				<span class="checkbox"><input id="email-on-feedback" type="checkbox" name="email_on_feedback" <?php 
        check_checked((int) $t_pref->email_on_feedback, ON);
        ?>
 /></span>
				<label for="email-on-feedback-min-severity" class="email-on-severity-label"><span><?php 
        echo lang_get('with_minimum_severity');
        ?>
</span></label>
				<span class="select email-on-severity">
					<select id="email-on-feedback-min-severity" name="email_on_feedback_min_severity">
						<option value="<?php 
        echo OFF;
        ?>
"><?php 
        echo lang_get('any');
        ?>
</option>
						<option disabled="disabled">-----</option>
						<?php 
        print_enum_string_option_list('severity', (int) $t_pref->email_on_feedback_min_severity);
        ?>
					</select>
				</span>
				<span class="label-style"></span>
			</fieldset>
			<fieldset class="field-container">
				<legend><label for="email-on-resolved"><?php 
        echo lang_get('email_on_resolved');
        ?>
</label></legend>
				<span class="checkbox"><input id="email-on-resolved" type="checkbox" name="email_on_resolved" <?php 
        check_checked((int) $t_pref->email_on_resolved, ON);
        ?>
 /></span>
				<label for="email-on-resolved-min-severity" class="email-on-severity-label"><span><?php 
        echo lang_get('with_minimum_severity');
        ?>
</span></label>
				<span class="select email-on-severity">
					<select id="email-on-resolved-min-severity" name="email_on_resolved_min_severity">
						<option value="<?php 
        echo OFF;
        ?>
"><?php 
        echo lang_get('any');
        ?>
</option>
						<option disabled="disabled">-----</option>
						<?php 
        print_enum_string_option_list('severity', (int) $t_pref->email_on_resolved_min_severity);
        ?>
					</select>
				</span>
				<span class="label-style"></span>
			</fieldset>
			<fieldset class="field-container">
				<legend><label for="email-on-closed"><?php 
        echo lang_get('email_on_closed');
        ?>
</label></legend>
				<span class="checkbox"><input id="email-on-closed" type="checkbox" name="email_on_closed" <?php 
        check_checked((int) $t_pref->email_on_closed, ON);
        ?>
 /></span>
				<label for="email-on-closed-min-severity" class="email-on-severity-label"><span><?php 
        echo lang_get('with_minimum_severity');
        ?>
</span></label>
				<span class="select email-on-severity">
					<select id="email-on-closed-min-severity" name="email_on_closed_min_severity">
						<option value="<?php 
        echo OFF;
        ?>
"><?php 
        echo lang_get('any');
        ?>
</option>
						<option disabled="disabled">-----</option>
						<?php 
        print_enum_string_option_list('severity', (int) $t_pref->email_on_closed_min_severity);
        ?>
					</select>
				</span>
				<span class="label-style"></span>
			</fieldset>
			<fieldset class="field-container">
				<legend><label for="email-on-reopened"><?php 
        echo lang_get('email_on_reopened');
        ?>
</label></legend>
				<span class="checkbox"><input id="email-on-reopened" type="checkbox" name="email_on_reopened" <?php 
        check_checked((int) $t_pref->email_on_reopened, ON);
        ?>
 /></span>
				<label for="email-on-reopened-min-severity" class="email-on-severity-label"><span><?php 
        echo lang_get('with_minimum_severity');
        ?>
</span></label>
				<span class="select email-on-severity">
					<select id="email-on-reopened-min-severity" name="email_on_reopened_min_severity">
						<option value="<?php 
        echo OFF;
        ?>
"><?php 
        echo lang_get('any');
        ?>
</option>
						<option disabled="disabled">-----</option>
						<?php 
        print_enum_string_option_list('severity', (int) $t_pref->email_on_reopened_min_severity);
        ?>
					</select>
				</span>
				<span class="label-style"></span>
			</fieldset>
			<fieldset class="field-container">
				<legend><label for="email-on-bugnote-added"><?php 
        echo lang_get('email_on_bugnote_added');
        ?>
</label></legend>
				<span class="checkbox"><input id="email-on-bugnote-added" type="checkbox" name="email_on_bugnote" <?php 
        check_checked((int) $t_pref->email_on_bugnote, ON);
        ?>
 /></span>
				<label for="email-on-bugnote-min-severity" class="email-on-severity-label"><span><?php 
        echo lang_get('with_minimum_severity');
        ?>
</span></label>
				<span class="select email-on-severity">
					<select id="email-on-bugnote-min-severity" name="email_on_bugnote_min_severity">
						<option value="<?php 
        echo OFF;
        ?>
"><?php 
        echo lang_get('any');
        ?>
</option>
						<option disabled="disabled">-----</option>
						<?php 
        print_enum_string_option_list('severity', (int) $t_pref->email_on_bugnote_min_severity);
        ?>
					</select>
				</span>
				<span class="label-style"></span>
			</fieldset>
			<fieldset class="field-container">
				<legend><label for="email-on-status"><?php 
        echo lang_get('email_on_status_change');
        ?>
</label></legend>
				<span class="checkbox"><input id="email-on-status" type="checkbox" name="email_on_status" <?php 
        check_checked((int) $t_pref->email_on_status, ON);
        ?>
 /></span>
				<label for="email-on-status-min-severity" class="email-on-severity-label"><span><?php 
        echo lang_get('with_minimum_severity');
        ?>
</span></label>
				<span class="select email-on-severity">
					<select id="email-on-status-min-severity" name="email_on_status_min_severity">
						<option value="<?php 
        echo OFF;
        ?>
"><?php 
        echo lang_get('any');
        ?>
</option>
						<option disabled="disabled">-----</option>
						<?php 
        print_enum_string_option_list('severity', (int) $t_pref->email_on_status_min_severity);
        ?>
					</select>
				</span>
				<span class="label-style"></span>
			</fieldset>
			<fieldset class="field-container">
				<legend><label for="email-on-priority-change"><?php 
        echo lang_get('email_on_priority_change');
        ?>
</label></legend>
				<span class="checkbox"><input id="email-on-priority-change" type="checkbox" name="email_on_priority" <?php 
        check_checked((int) $t_pref->email_on_priority, ON);
        ?>
 /></span>
				<label for="email-on-priority-min-severity" class="email-on-severity-label"><span><?php 
        echo lang_get('with_minimum_severity');
        ?>
</span></label>
				<span class="select email-on-severity">
					<select id="email-on-priority-min-severity" name="email_on_priority_min_severity">
						<option value="<?php 
        echo OFF;
        ?>
"><?php 
        echo lang_get('any');
        ?>
</option>
						<option disabled="disabled">-----</option>
						<?php 
        print_enum_string_option_list('severity', (int) $t_pref->email_on_priority_min_severity);
        ?>
					</select>
				</span>
				<span class="label-style"></span>
			</fieldset>
			<div class="field-container">
				<label for="email-bugnote-limit"><span><?php 
        echo lang_get('email_bugnote_limit');
        ?>
</span></label>
				<span class="input"><input id="email-bugnote-limit" type="text" name="email_bugnote_limit" maxlength="2" size="2" value="<?php 
        echo $t_pref->email_bugnote_limit;
        ?>
" /></span>
				<span class="label-style"></span>
			</div>
<?php 
    } else {
        ?>
			<input type="hidden" name="email_on_new"      value="<?php 
        echo $t_pref->email_on_new;
        ?>
" />
			<input type="hidden" name="email_on_assigned" value="<?php 
        echo $t_pref->email_on_assigned;
        ?>
" />
			<input type="hidden" name="email_on_feedback" value="<?php 
        echo $t_pref->email_on_feedback;
        ?>
" />
			<input type="hidden" name="email_on_resolved" value="<?php 
        echo $t_pref->email_on_resolved;
        ?>
" />
			<input type="hidden" name="email_on_closed"   value="<?php 
        echo $t_pref->email_on_closed;
        ?>
" />
			<input type="hidden" name="email_on_reopened" value="<?php 
        echo $t_pref->email_on_reopened;
        ?>
" />
			<input type="hidden" name="email_on_bugnote"  value="<?php 
        echo $t_pref->email_on_bugnote;
        ?>
" />
			<input type="hidden" name="email_on_status"   value="<?php 
        echo $t_pref->email_on_status;
        ?>
" />
			<input type="hidden" name="email_on_priority" value="<?php 
        echo $t_pref->email_on_priority;
        ?>
" />
			<input type="hidden" name="email_on_new_min_severity"      value="<?php 
        echo $t_pref->email_on_new_min_severity;
        ?>
" />
			<input type="hidden" name="email_on_assigned_min_severity" value="<?php 
        echo $t_pref->email_on_assigned_min_severity;
        ?>
" />
			<input type="hidden" name="email_on_feedback_min_severity" value="<?php 
        echo $t_pref->email_on_feedback_min_severity;
        ?>
" />
			<input type="hidden" name="email_on_resolved_min_severity" value="<?php 
        echo $t_pref->email_on_resolved_min_severity;
        ?>
" />
			<input type="hidden" name="email_on_closed_min_severity"   value="<?php 
        echo $t_pref->email_on_closed_min_severity;
        ?>
" />
			<input type="hidden" name="email_on_reopened_min_severity" value="<?php 
        echo $t_pref->email_on_reopened_min_severity;
        ?>
" />
			<input type="hidden" name="email_on_bugnote_min_severity"  value="<?php 
        echo $t_pref->email_on_bugnote_min_severity;
        ?>
" />
			<input type="hidden" name="email_on_status_min_severity"   value="<?php 
        echo $t_pref->email_on_status_min_severity;
        ?>
" />
			<input type="hidden" name="email_on_priority_min_severity" value="<?php 
        echo $t_pref->email_on_priority_min_severity;
        ?>
" />
			<input type="hidden" name="email_bugnote_limit" value="<?php 
        echo $t_pref->email_bugnote_limit;
        ?>
" />
<?php 
    }
    ?>
			<div class="field-container">
				<label for="timezone"><span><?php 
    echo lang_get('timezone');
    ?>
</span></label>
				<span class="select">
					<select id="timezone" name="timezone">
						<?php 
    print_timezone_option_list($t_pref->timezone ? $t_pref->timezone : config_get_global('default_timezone'));
    ?>
					</select>
				</span>
				<span class="label-style"></span>
			</div>
			<div class="field-container">
				<label for="language"><span><?php 
    echo lang_get('language');
    ?>
</span></label>
				<span class="select">
					<select id="language" name="language">
						<?php 
    print_language_option_list($t_pref->language);
    ?>
					</select>
				</span>
				<span class="label-style"></span>
			</div>

			<?php 
    event_signal('EVENT_ACCOUNT_PREF_UPDATE_FORM', array($p_user_id));
    ?>
			<span class="submit-button"><input type="submit" class="button" value="<?php 
    echo lang_get('update_prefs_button');
    ?>
" /></span>
		</fieldset>
	</form>
</div>

<div id="account-prefs-reset-div" class="form-container">
	<form id="account-prefs-reset-form" method="post" action="account_prefs_reset.php">
		<fieldset>
			<?php 
    echo form_security_field('account_prefs_reset');
    ?>
			<input type="hidden" name="user_id" value="<?php 
    echo $p_user_id;
    ?>
" />
			<input type="hidden" name="redirect_url" value="<?php 
    echo $t_redirect_url;
    ?>
" />
			<span class="submit-button"><input type="submit" class="button" value="<?php 
    echo lang_get('reset_prefs_button');
    ?>
" /></span>
		</fieldset>
	</form>
</div>

<?php 
}
				<span class="input"><input type="text" id="proj-category-name" name="name" size="32" maxlength="128" value="<?php echo string_attribute( $t_name ) ?>" /></span>
				<span class="label-style"></span>
			</div>
			<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
				<label for="proj-category-assigned-to"><span><?php echo lang_get( 'assigned_to' ) ?></span></label>
				<span class="select">
					<select id="proj-category-assigned-to" name="assigned_to">
						<option value="0"></option>
						<?php print_assign_to_option_list( $t_assigned_to, $t_project_id ) ?>
					</select>
				</span>
				<span class="label-style"></span>
			</div>
			<span class="submit-button"><input type="submit" class="button" value="<?php echo lang_get( 'update_category_button' ) ?>" /></span>
		</fieldset>
	</form>
</div>

<div class="form-container">
	<form method="post" action="manage_proj_cat_delete.php" class="action-button">
		<fieldset>
			<?php echo form_security_field( 'manage_proj_cat_delete' ) ?>
			<input type="hidden" name="id" value="<?php echo string_attribute( $f_category_id ) ?>" />
			<input type="hidden" name="project_id" value="<?php echo string_attribute( $f_project_id ) ?>" />
			<span class="submit-button"><input type="submit" class="button" value="<?php echo lang_get( 'delete_category_button' ) ?>" /></span>
		</fieldset>
	</form>
</div><?php

html_page_bottom();
/**
 * print HTML relationship form
 * @param integer $p_bug_id A bug identifier.
 * @return void
 */
function relationship_view_box($p_bug_id)
{
    ?>
<br/>

<?php 
    collapse_open('relationships');
    ?>
<table class="width100" cellspacing="1">
<tr class="row-2">
	<td width="15%" class="form-title" colspan="2">
		<?php 
    collapse_icon('relationships');
    echo lang_get('bug_relationships');
    if (ON == config_get('relationship_graph_enable')) {
        ?>
		<span class="small"><?php 
        print_bracket_link('bug_relationship_graph.php?bug_id=' . $p_bug_id . '&graph=relation', lang_get('relation_graph'));
        ?>
</span>
		<span class="small"><?php 
        print_bracket_link('bug_relationship_graph.php?bug_id=' . $p_bug_id . '&graph=dependency', lang_get('dependency_graph'));
        ?>
</span>
		<?php 
    }
    ?>
	</td>
</tr>
<?php 
    # bug not read-only and user authenticated
    if (!bug_is_readonly($p_bug_id)) {
        # user access level at least updater
        if (access_has_bug_level(config_get('update_bug_threshold'), $p_bug_id)) {
            ?>
<tr class="row-1">
	<th class="category"><?php 
            echo lang_get('add_new_relationship');
            ?>
</th>
	<td><?php 
            echo lang_get('this_bug');
            ?>
		<form method="post" action="bug_relationship_add.php">
		<?php 
            echo form_security_field('bug_relationship_add');
            ?>
		<input type="hidden" name="src_bug_id" value="<?php 
            echo $p_bug_id;
            ?>
" size="4" />
		<?php 
            relationship_list_box(config_get('default_bug_relationship'));
            ?>
		<input type="text" name="dest_bug_id" value="" />
		<input type="submit" name="add_relationship" class="button" value="<?php 
            echo lang_get('add_new_relationship_button');
            ?>
" />
		</form>
	</td></tr>
<?php 
        }
    }
    ?>
<tr>
	<td colspan="2"><?php 
    echo relationship_get_summary_html($p_bug_id);
    ?>
</td>
</tr>
</table>

<?php 
    collapse_closed('relationships');
    ?>
<table class="width100" cellspacing="1">
<tr>
	<td class="form-title">
		<?php 
    collapse_icon('relationships');
    echo lang_get('bug_relationships');
    ?>
	</td>
</tr>
</table>

<?php 
    collapse_end('relationships');
}
 valign="top">
	<td class="category" width="30%">
		<?php 
    echo lang_get('assigned_projects');
    ?>
	</td>
	<td width="70%">
		<?php 
    print_project_user_list($t_user['id']);
    ?>
	</td>
</tr>

<form method="post" action="manage_user_proj_add.php">
<?php 
    echo form_security_field('manage_user_proj_add');
    ?>
		<input type="hidden" name="user_id" value="<?php 
    echo $t_user['id'];
    ?>
" />
<!-- Unassigned Project Selection -->
<tr <?php 
    echo helper_alternate_class();
    ?>
 valign="top">
	<td class="category">
		<?php 
    echo lang_get('unassigned_projects');
    ?>
	</td>
# Retrieve news item data and prefix with v_
$row = news_get_row($f_news_id);
if ($row) {
    extract($row, EXTR_PREFIX_ALL, 'v');
}
access_ensure_project_level(config_get('manage_news_threshold'), $v_project_id);
$v_headline = string_attribute($v_headline);
$v_body = string_textarea($v_body);
html_page_top(lang_get('edit_news_title'));
# Edit News Form BEGIN
?>
<br />
<div align="center">
<form method="post" action="news_update.php">
<?php 
echo form_security_field('news_update');
?>
<table class="width75" cellspacing="1">
<tr>
	<td class="form-title">
		<input type="hidden" name="news_id" value="<?php 
echo $v_id;
?>
" />
		<?php 
echo lang_get('headline');
?>
	</td>
	<td class="right">
		<?php 
print_bracket_link('news_menu_page.php', lang_get('go_back'));
Example #24
0
echo plugin_page('config_custom_proj_user', true);
?>
 "> <?php 
echo plugin_lang_get('custom_proj_user_plugin_config');
?>
</a> ]
		</td>
	</tr>
</table>

<form action="<?php 
echo plugin_page('config_update');
?>
" method="post">
<?php 
echo form_security_field('plugin_JabberNotifySystem_manage_config');
?>
<table align="center" class="width50" cellspacing="1" style="border-bottom:none;">
	<tr>
		<td class="form-title" colspan="3">
			<?php 
echo plugin_lang_get('title') . ': ' . plugin_lang_get('config_jabber');
?>
		</td>
	</tr>
	<tr <?php 
echo helper_alternate_class();
?>
 >
		<td class="category">
			<?php 
Example #25
0
$t_sponsors = array();
while ($t_row = db_fetch_array($t_result)) {
    $t_sponsors[] = $t_row;
}
$t_sponsor_count = count($t_sponsors);
if ($t_sponsor_count === 0) {
    echo '<p>' . lang_get('no_sponsored') . '</p>';
} else {
    ?>

<!-- # Edit sponsorship Form BEGIN -->
<br />
<div>
<form method="post" action="account_sponsor_update.php">
<?php 
    echo form_security_field('account_sponsor_update');
    ?>
<table class="width100" cellspacing="1">
	<colgroup>
		<col style="width:10%" />
		<col style="width:8%" />
		<col style="width:7%" />
		<col style="width:10%" />
		<col style="width:35%" />
		<col style="width:10%" />
		<col style="width:10%" />
		<col style="width:10%" />
	</colgroup>
	<!-- Headings -->
	<tr>
		<td class="form-title" colspan="8">
Example #26
0
# same as the one we're about the try and save
foreach ($t_query_arr as $t_id => $t_name) {
    if (filter_db_get_filter($t_id) == $t_query_to_store) {
        print lang_get('query_exists') . ' (' . $t_name . ')<br />';
    }
}
# Check for an error
$t_error_msg = strip_tags(gpc_get_string('error_msg', null));
if ($t_error_msg != null) {
    print "<br />{$t_error_msg}<br /><br />";
}
print lang_get('query_name_label') . lang_get('word_separator');
?>
<form method="post" action="query_store.php">
<?php 
echo form_security_field('query_store');
?>
<input type="text" name="query_name" /><br />
<?php 
if (access_has_project_level(config_get('stored_query_create_shared_threshold'))) {
    print '<input type="checkbox" name="is_public" value="on" /> ';
    print lang_get('make_public');
    print '<br />';
}
?>
<input type="checkbox" name="all_projects" value="on" <?php 
check_checked(ALL_PROJECTS == helper_get_current_project());
?>
 >
<?php 
print lang_get('all_projects');
Example #27
0
function print_button($p_action_page, $p_label, $p_args_to_post = null)
{
    $t_form_name = explode('.php', $p_action_page, 2);
    # TODO: ensure all uses of print_button supply arguments via $p_args_to_post (POST)
    # instead of via $p_action_page (GET). Then only add the CSRF form token if
    # arguments are being sent via the POST method.
    echo '<form method="post" action="', htmlspecialchars($p_action_page), '" class="action-button">';
    echo '<fieldset>';
    echo form_security_field($t_form_name[0]);
    echo '<input type="submit" class="button-small" value="', $p_label, '" />';
    if ($p_args_to_post !== null) {
        foreach ($p_args_to_post as $t_var => $t_value) {
            echo "<input type=\"hidden\" name=\"{$t_var}\" value=\"{$t_value}\" />";
        }
    }
    echo '</fieldset>';
    echo '</form>';
}
Example #28
0
print_manage_menu('manage_proj_create_page.php');
$f_parent_id = gpc_get('parent_id', null);
if (project_table_empty()) {
    echo '<br />';
    echo '<div id="create-first-project" class="important-msg">';
    echo '<ul>';
    echo '<li>' . lang_get('create_first_project') . '</li>';
    echo '</ul>';
    echo '</div>';
}
?>

<div id="manage-project-create-div" class="form-container">
	<form method="post" id="manage-project-create-form" action="manage_proj_create.php">
		<fieldset class="has-required"><?php 
echo form_security_field('manage_proj_create');
if (null !== $f_parent_id) {
    $f_parent_id = (int) $f_parent_id;
    ?>
				<input type="hidden" name="parent_id" value="<?php 
    echo $f_parent_id;
    ?>
" /><?php 
}
?>
			<legend><span><?php 
if (null !== $f_parent_id) {
    echo lang_get('add_subproject_title');
} else {
    echo lang_get('add_project_title');
}
			</td>
<?php 
    }
    ?>
		</tr>
<?php 
}
# end for loop
if ($t_can_update_global_cat) {
    ?>
<!-- Add Category Form -->
<tr>
	<td class="left" colspan="3">
		<form method="post" action="manage_proj_cat_add.php">
			<?php 
    echo form_security_field('manage_proj_cat_add');
    ?>
			<input type="hidden" name="project_id" value="<?php 
    echo ALL_PROJECTS;
    ?>
" />
			<input type="text" name="name" size="32" maxlength="128" />
			<input type="submit" class="button" value="<?php 
    echo lang_get('add_category_button');
    ?>
" />
		</form>
	</td>
</tr>
<?php 
}
Example #30
0
    print_project_access_levels_option_list(config_get('default_new_account_access_level'), $f_project_id);
    ?>
					</select>
				</td>
				<td>
					<input type="submit" class="button" value="<?php 
    echo lang_get('add_user_button');
    ?>
" />
				</td>
			</tr>
		</form>
		<!-- Copy Users Form -->
		<form method="post" action="manage_proj_user_copy.php">
			<?php 
    echo form_security_field('manage_proj_user_copy');
    ?>
			<tr>
				<td class="left" colspan="3">
						<input type="hidden" name="project_id" value="<?php 
    echo $f_project_id;
    ?>
" />
						<select name="other_project_id">
							<?php 
    print_project_option_list(null, false, $f_project_id);
    ?>
						</select>
						<input type="submit" name="copy_from" class="button" value="<?php 
    echo lang_get('copy_users_from');
    ?>