本文整理汇总了PHP中print_enum_string_option_list函数的典型用法代码示例。如果您正苦于以下问题:PHP print_enum_string_option_list函数的具体用法?PHP print_enum_string_option_list怎么用?PHP print_enum_string_option_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_enum_string_option_list函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: action_update_severity_print_fields
/**
* Prints the field within the custom action form. This has an entry for
* every field the user need to supply + the submit button. The fields are
* added as rows in a table that is already created by the calling code.
* A row has two columns.
* @return void
*/
function action_update_severity_print_fields()
{
?>
<tbody>
</tbody>
<tr>
<th class="category">
<?php
echo lang_get('update_severity_msg');
?>
</th>
<td>
<select name="severity">';
<?php
print_enum_string_option_list('severity');
?>
</select>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2" class="center">
<input type="submit" class="button" value="<?php
echo lang_get('update_severity_button');
?>
" />
</td>
</tr>
</tfoot>
<?php
}
开发者ID:gtn,项目名称:mantisbt,代码行数:39,代码来源:bug_actiongroup_update_severity_inc.php
示例2: action_add_note_print_fields
/**
* Prints the field within the custom action form. This has an entry for
* every field the user need to supply + the submit button. The fields are
* added as rows in a table that is already created by the calling code.
* A row has two columns.
*/
function action_add_note_print_fields()
{
echo '<tr class="row-1" valign="top"><td class="category">', lang_get('add_bugnote_title'), '</td><td><textarea name="bugnote_text" cols="80" rows="10"></textarea></td></tr>';
?>
<!-- View Status -->
<tr class="row-2">
<td class="category">
<?php
echo lang_get('view_status');
?>
</td>
<td>
<?php
$t_default_state = config_get('default_bugnote_view_status');
if (access_has_project_level(config_get('set_view_status_threshold'))) {
?>
<select name="view_state">
<?php
print_enum_string_option_list('view_state', $t_default_state);
?>
</select>
<?php
} else {
echo get_enum_element('view_state', $t_default_state);
echo '<input type="hidden" name="view_state" value="', $t_default_state, '" />';
}
?>
</td>
</tr>
<?php
echo '<tr><td colspan="2"><center><input type="submit" class="button" value="' . lang_get('add_bugnote_button') . ' " /></center></td></tr>';
}
开发者ID:Tarendai,项目名称:spring-website,代码行数:38,代码来源:bug_actiongroup_add_note_inc.php
示例3: action_update_severity_print_fields
/**
* Prints the field within the custom action form. This has an entry for
* every field the user need to supply + the submit button. The fields are
* added as rows in a table that is already created by the calling code.
* A row has two columns.
*/
function action_update_severity_print_fields() {
echo '<tr class="row-1"><th class="category">';
echo lang_get( 'update_severity_msg' );
echo '</th><td><select name="severity">';
print_enum_string_option_list( 'severity' );
echo '</select></td></tr>';
echo '<tr><td colspan="2" class="center"><input type="submit" class="button" value="' . lang_get( 'update_severity_button' ) . ' " /></td></tr>';
}
开发者ID:rombert,项目名称:mantisbt,代码行数:14,代码来源:bug_actiongroup_update_severity_inc.php
示例4: print_enum_string_option_list
<?php
print_enum_string_option_list('access_levels', (int) $t_definition['access_level_r']);
?>
</select>
</span>
<span class="label-style"></span>
</div>
<div class="field-container">
<label for="custom-field-access-level-rw"><span><?php
echo lang_get('custom_field_access_level_rw');
?>
</span></label>
<span class="select">
<select id="custom-field-access-level-rw" name="access_level_rw">
<?php
print_enum_string_option_list('access_levels', (int) $t_definition['access_level_rw']);
?>
</select>
</span>
<span class="label-style"></span>
</div>
<div class="field-container">
<label for="custom-field-length-min"><span><?php
echo lang_get('custom_field_length_min');
?>
</span></label>
<span class="input"><input type="text" id="custom-field-length-min" name="length_min" size="32" maxlength="64" value="<?php
echo $t_definition['length_min'];
?>
" /></span>
<span class="label-style"></span>
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:31,代码来源:manage_custom_field_edit_page.php
示例5: access_end
/**
* access section end
* @return void
*/
function access_end()
{
global $g_access;
echo '</tbody></table>' . "\n";
echo '<div class="footer">' . "\n";
if ($g_access >= config_get_access('set_status_threshold')) {
echo lang_get('access_change_access_label') . " \n";
echo '<select name="status_access">' . "\n\t\t";
print_enum_string_option_list('access_levels', config_get_access('set_status_threshold'));
echo "\n" . '</select>' . "\n";
}
echo '</div>' . "\n";
echo '</div>' . "\n";
echo '<br />' . "\n\n";
}
开发者ID:gtn,项目名称:mantisbt,代码行数:19,代码来源:manage_config_workflow_page.php
示例6: string_display_line
echo '<td>' . string_display_line(project_get_field($t_bug->project_id, 'name')) . ' </td>';
echo '<td class="right">' . $t_released_label . ' </td>';
echo '<td><a title="' . $t_resolution . '"><span class="underline">' . $t_status . '</span> </a></td>';
# summary
echo '<td>' . string_display_line($t_bug->summary);
if (VS_PRIVATE == $t_bug->view_state) {
printf(' <img src="%s" alt="(%s)" title="%s" />', $t_icon_path . 'protected.gif', lang_get('private'), lang_get('private'));
}
echo '</td>';
# describe sponsorship amount
echo '<td>';
print_user($t_sponsor->user_id);
echo '</td>';
echo '<td class="right">' . sponsorship_format_amount($t_sponsor->amount) . '</td>';
echo '<td><select name="sponsor_' . $t_row['bug'] . '_' . $t_sponsor->id . '">';
print_enum_string_option_list('sponsorship', $t_sponsor->paid);
echo '</select></td>';
echo '</tr>';
if (SPONSORSHIP_PAID == $t_sponsor->paid) {
$t_total_paid += $t_sponsor->amount;
} else {
$t_total_owing += $t_sponsor->amount;
}
}
$t_hidden_bug_list = implode(',', $t_buglist);
?>
<!-- Totals -->
<tr>
<td colspan="5"></td>
<td><?php
echo lang_get('total_owing');
开发者ID:gtn,项目名称:mantisbt,代码行数:31,代码来源:account_sponsor_page.php
示例7: lang_get
<?php
echo lang_get('resolution');
?>
</th>
<td>
<select name="resolution">
<?php
$t_resolution = $t_bug_is_open ? config_get('bug_resolution_fixed_threshold') : $t_current_resolution;
$t_relationships = relationship_get_all_src($f_bug_id);
foreach ($t_relationships as $t_relationship) {
if ($t_relationship->type == BUG_DUPLICATE) {
$t_resolution = config_get('bug_duplicate_resolution');
break;
}
}
print_enum_string_option_list('resolution', $t_resolution);
?>
</select>
</td>
</tr>
<?php
}
?>
<?php
if ($f_new_status >= $t_resolved && $f_new_status < $t_closed && $t_resolution != config_get('bug_duplicate_resolution')) {
?>
<!-- Duplicate ID -->
<tr <?php
echo helper_alternate_class();
?>
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:bug_change_status_page.php
示例8: lang_get
>
<td class="category">
<?php
echo lang_get('priority');
?>
<?php
print_documentation_link('priority');
?>
</td>
<td>
<select <?php
echo helper_get_tab_index();
?>
name="priority">
<?php
print_enum_string_option_list('priority', $f_priority);
?>
</select>
</td>
</tr>
<?php
}
?>
<!-- spacer -->
<tr class="spacer">
<td colspan="2"></td>
</tr>
<?php
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:bug_report_page.php
示例9: print_filter_show_priority
/**
* print priority field
* @return void
*/
function print_filter_show_priority()
{
global $g_select_modifier, $g_filter;
?>
<!-- Priority -->
<select<?php
echo $g_select_modifier;
?>
name="<?php
echo FILTER_PROPERTY_PRIORITY;
?>
[]">
<option value="<?php
echo META_FILTER_ANY;
?>
"<?php
check_selected($g_filter[FILTER_PROPERTY_PRIORITY], META_FILTER_ANY);
?>
>[<?php
echo lang_get('any');
?>
]</option>
<?php
print_enum_string_option_list('priority', $g_filter[FILTER_PROPERTY_PRIORITY]);
?>
</select>
<?php
}
开发者ID:vipjaven,项目名称:mantisbt,代码行数:32,代码来源:filter_api.php
示例10: lang_get
</span></label>
<span class="checkbox"><input type="checkbox" id="project-inherit-parent" name="inherit_parent" checked="checked" /></span>
<span class="label-style"></span>
</div><?php
}
?>
<div class="field-container">
<label for="project-view-state"><span><?php
echo lang_get('view_status');
?>
</span></label>
<span class="select">
<select id="project-view-state" name="view_state">
<?php
print_enum_string_option_list('view_state', config_get('default_project_view_status', null, ALL_USERS, ALL_PROJECTS));
?>
</select>
</span>
<span class="label-style"></span>
</div>
<?php
$g_project_override = ALL_PROJECTS;
if (file_is_uploading_enabled() && DATABASE !== config_get('file_upload_method')) {
$t_file_path = '';
# Don't reveal the absolute path to non-administrators for security reasons
if (current_user_is_administrator()) {
$t_file_path = config_get('absolute_path_default_upload_folder');
}
?>
<div class="field-container">
开发者ID:gtn,项目名称:mantisbt,代码行数:31,代码来源:manage_proj_create_page.php
示例11: print_filter_show_priority
function print_filter_show_priority()
{
global $t_select_modifier, $t_filter;
?>
<!-- Priority -->
<select <?php
print $t_select_modifier;
?>
name="show_priority[]">
<option value="<?php
echo META_FILTER_ANY;
?>
" <?php
check_selected($t_filter['show_priority'], META_FILTER_ANY);
?>
>[<?php
echo lang_get('any');
?>
]</option>
<?php
print_enum_string_option_list('priority', $t_filter['show_priority']);
?>
</select>
<?php
}
开发者ID:amjadtbssm,项目名称:website,代码行数:25,代码来源:filter_api.php
示例12: helper_alternate_class
</tr>
<!-- Unit/depatment -->
<tr <?php
echo helper_alternate_class();
?>
>
<td class="category">
<?php
echo lang_get('unit_department');
?>
</td>
<td>
<select name="unit_department">
<?php
print_enum_string_option_list('btl_units_departments', $t_user['unit_department']);
?>
</select>
</td>
</tr>
<!-- Enabled Checkbox -->
<tr <?php
echo helper_alternate_class();
?>
>
<td class="category">
<?php
echo lang_get('enabled');
?>
</td>
开发者ID:nourchene-benslimane,项目名称:mantisV,代码行数:31,代码来源:manage_user_edit_page.php
示例13: lang_get
</select>
</td>
<!-- Resolution -->
<td class="category">
<?php
echo lang_get('resolution');
?>
</td>
<td>
<select <?php
echo helper_get_tab_index();
?>
name="resolution">
<?php
print_enum_string_option_list("resolution", $t_bug->resolution);
?>
</select>
</td>
<!-- spacer -->
<td colspan="2"> </td>
</tr>
<tr <?php
echo helper_alternate_class();
?>
>
开发者ID:amjadtbssm,项目名称:website,代码行数:30,代码来源:bug_update_page.php
示例14: access_row
/**
* access row
*/
function access_row()
{
global $t_access, $t_can_change_flags;
$t_enum_status = MantisEnum::getAssocArrayIndexedByValues(config_get('status_enum_string'));
$t_file_new = config_get_global('report_bug_threshold');
$t_global_new = config_get('report_bug_threshold', null, null, ALL_PROJECTS);
$t_project_new = config_get('report_bug_threshold');
$t_file_set = config_get_global('set_status_threshold');
$t_global_set = config_get('set_status_threshold', null, null, ALL_PROJECTS);
$t_project_set = config_get('set_status_threshold');
$t_submit_status = config_get('bug_submit_status');
# Print the table rows
foreach ($t_enum_status as $t_status => $t_status_label) {
echo "\t\t" . '<tr><td class="width30">' . string_no_break(MantisEnum::getLabel(lang_get('status_enum_string'), $t_status)) . '</td>' . "\n";
if ($t_status == $t_submit_status) {
# 'NEW' status
$t_level_project = $t_project_new;
$t_can_change = $t_access >= config_get_access('report_bug_threshold');
$t_colour = set_colour_override($t_file_new, $t_global_new, $t_project_new);
if ($t_can_change && $t_colour != '') {
set_overrides('report_bug_threshold');
}
} else {
# Other statuses
# File level: fallback if set_status_threshold is not defined
if (isset($t_file_set[$t_status])) {
$t_level_file = $t_file_set[$t_status];
} else {
$t_level_file = config_get_global('update_bug_status_threshold');
}
$t_level_global = isset($t_global_set[$t_status]) ? $t_global_set[$t_status] : $t_level_file;
$t_level_project = isset($t_project_set[$t_status]) ? $t_project_set[$t_status] : $t_level_global;
$t_can_change = $t_access >= config_get_access('set_status_threshold');
$t_colour = set_colour_override($t_level_file, $t_level_global, $t_level_project);
if ($t_can_change && $t_colour != '') {
set_overrides('set_status_threshold');
}
}
if ($t_can_change) {
echo '<td' . $t_colour . '><select name="access_change_' . $t_status . '">' . "\n";
print_enum_string_option_list('access_levels', $t_level_project);
echo '</select> </td>' . "\n";
$t_can_change_flags = true;
} else {
echo '<td class="center"' . $t_colour . '>' . MantisEnum::getLabel(lang_get('access_levels_enum_string'), $t_level_project) . '</td>' . "\n";
}
echo '</tr>' . "\n";
}
}
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:52,代码来源:manage_config_workflow_page.php
示例15: print_assign_to_option_list
print_assign_to_option_list(0, $t_project_id);
break;
case 'RESOLVE':
print_enum_string_option_list('resolution', config_get('bug_resolution_fixed_threshold'));
break;
case 'UP_PRIOR':
print_enum_string_option_list('priority', config_get('default_bug_priority'));
break;
case 'UP_STATUS':
print_enum_string_option_list('status', config_get('bug_submit_status'));
break;
case 'UP_CATEGORY':
print_category_option_list();
break;
case 'VIEW_STATUS':
print_enum_string_option_list('view_state', config_get('default_bug_view_status'));
break;
case 'UP_TARGET_VERSION':
print_version_option_list('', $t_project_id, VERSION_FUTURE, true, true);
break;
case 'UP_FIXED_IN_VERSION':
print_version_option_list('', $t_project_id, VERSION_ALL, true, true);
break;
}
echo '</select>';
}
?>
</td>
</tr>
<?php
if (isset($t_question_title2)) {
开发者ID:Kirill,项目名称:mantisbt,代码行数:31,代码来源:bug_actiongroup_page.php
示例16: lang_get
</span>
</td>
<td>
<input type="checkbox" name="announcement" />
</td>
</tr>
<tr class="row-2">
<th class="category" width="25%">
<?php
echo lang_get('view_status');
?>
</th>
<td width="75%">
<select name="view_state">
<?php
print_enum_string_option_list('view_state');
?>
</select>
</td>
</tr>
<tr>
<td>
<span class="required">* <?php
echo lang_get('required');
?>
</span>
</td>
<td class="center">
<input type="submit" class="button" value="<?php
echo lang_get('post_news_button');
?>
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:news_menu_page.php
示例17: lang_get
echo '<tr>';
$t_spacer = 2;
if ($t_show_projection) {
# Projection
echo '<th class="category"><label for="projection">' . lang_get('projection') . '</label></th>';
echo '<td><select ' . helper_get_tab_index() . ' id="projection" name="projection">';
print_enum_string_option_list('projection', $t_bug->projection);
echo '</select></td>';
} else {
$t_spacer += 2;
}
# ETA
if ($t_show_eta) {
echo '<th class="category"><label for="eta">' . lang_get('eta') . '</label></th>';
echo '<td><select ' . helper_get_tab_index() . ' id="eta" name="eta">';
print_enum_string_option_list('eta', (int) $t_bug->eta);
echo '</select></td>';
} else {
$t_spacer += 2;
}
# spacer
echo '<td colspan="', $t_spacer, '"> </td>';
echo '</tr>';
}
#
# Platform, OS, OS Version
#
if ($t_show_platform || $t_show_os || $t_show_os_version) {
echo '<tr>';
$t_spacer = 0;
if ($t_show_platform) {
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:31,代码来源:bug_update_page.php
示例18: get_capability_enum
function get_capability_enum($p_caption, $p_threshold, $p_enum, $p_all_projects_only = false)
{
global $t_user, $t_project_id, $t_show_submit, $t_access_levels, $t_colour_project, $t_colour_global;
$t_file = config_get_global($p_threshold);
$t_global = config_get($p_threshold, null, null, ALL_PROJECTS);
$t_project = config_get($p_threshold);
$t_can_change = access_has_project_level(config_get_access($p_threshold), $t_project_id, $t_user) && (ALL_PROJECTS == $t_project_id || !$p_all_projects_only);
$t_colour = '';
if ($t_global != $t_file) {
$t_colour = ' bgcolor="' . $t_colour_global . '" ';
# all projects override
if ($t_can_change) {
set_overrides($p_threshold);
}
}
if ($t_project != $t_global) {
$t_colour = ' bgcolor="' . $t_colour_project . '" ';
# project overrides
if ($t_can_change) {
set_overrides($p_threshold);
}
}
echo '<tr ' . helper_alternate_class() . '><td>' . string_display($p_caption) . '</td>';
if ($t_can_change) {
echo '<td class="left" colspan="3"' . $t_colour . '><select name="flag_' . $p_threshold . '">';
print_enum_string_option_list($p_enum, config_get($p_threshold));
echo '</select></td><td colspan="' . (count($t_access_levels) - 3) . '"></td>';
$t_show_submit = true;
} else {
$t_value = MantisEnum::getLabel(lang_get($p_enum . '_enum_string'), config_get($p_threshold)) . ' ';
echo '<td class="left" colspan="3"' . $t_colour . '>' . $t_value . '</td><td colspan="' . (count($t_access_levels) - 3) . '"></td>';
}
if ($t_can_change) {
echo '<td><select name="access_' . $p_threshold . '">';
print_enum_string_option_list('access_levels', config_get_access($p_threshold));
echo '</select> </td>';
} else {
echo '<td>' . MantisEnum::getLabel(lang_get('access_levels_enum_string'), config_get_access($p_threshold)) . ' </td>';
}
echo '</tr>' . "\n";
}
开发者ID:kaos,项目名称:mantisbt,代码行数:41,代码来源:manage_config_work_threshold_page.php
示例19: get_capability_row_for_email
get_capability_row_for_email(lang_get('email_on_reopened'), 'reopened');
get_capability_row_for_email(lang_get('email_on_deleted'), 'deleted');
get_capability_row_for_email(lang_get('email_on_bugnote_added'), 'bugnote');
if (config_get('enable_sponsorship') == ON) {
get_capability_row_for_email(lang_get('email_on_sponsorship_changed'), 'sponsor');
}
get_capability_row_for_email(lang_get('email_on_relationship_changed'), 'relation');
$t_statuses = MantisEnum::getAssocArrayIndexedByValues(config_get('status_enum_string'));
foreach ($t_statuses as $t_status => $t_label) {
get_capability_row_for_email(lang_get('status_changed_to') . ' \'' . get_enum_element('status', $t_status) . '\'', $t_label);
}
get_section_end_for_email();
if ($g_can_change_flags || $g_can_change_defaults) {
echo '<p>' . lang_get('notify_actions_change_access') . "\n";
echo '<select name="notify_actions_access">' . "\n";
print_enum_string_option_list('access_levels', config_get_access('notify_flags'));
echo "\n</select></p>";
echo '<input type="submit" class="button" value="' . lang_get('change_configuration') . '" />' . "\n";
echo "</form>\n";
echo '<div class="right">' . "\n";
echo '<form id="mail_config_action" method="post" action="manage_config_revert.php">' . "\n";
echo form_security_field('manage_config_revert') . "\n";
echo '<input name="revert" type="hidden" value="notify_flags,default_notify_flags" />' . "\n";
echo '<input name="project" type="hidden" value="' . $t_project . '" />' . "\n";
echo '<input name="return" type="hidden" value="' . string_attribute(form_action_self()) . '" />' . "\n";
echo '<input type="submit" class="button" value="';
if (ALL_PROJECTS == $t_project) {
echo lang_get('revert_to_system');
} else {
echo lang_get('revert_to_all_project');
}
开发者ID:spring,项目名称:spring-website,代码行数:31,代码来源:manage_config_email_page.php
示例20: plugin_config_get
"
value="<?php
echo plugin_config_get('IAGThreshold' . $columnIndex, 30);
?>
" min="0"/></label>
<?php
echo '</td>';
print_config_table_radio_button_col(1, 'CStatIgn' . $columnIndex);
echo '</tr>';
}
print_config_table_title_row(5, 'config_URIFilter');
print_config_table_row();
print_config_table_category_col(2, 1, 'config_URIThreshold');
echo '<td valign="top" width="100px" colspan="3">';
echo '<select name="URIThreshold[]" multiple="multiple">';
print_enum_string_option_list('status', plugin_config_get('URIThreshold', 50));
echo '</select>';
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td class="center" colspan="5">';
echo '<input type="submit" name="change" class="button" value="' . lang_get('update_prefs_button') . '"/>' . ' ';
echo '<input type="submit" name="reset" class="button" value="' . lang_get('reset_prefs_button') . '"/>';
echo '</td>';
echo '</tr>';
echo '</table>';
if (!userprojectapi::is_mantis_rel()) {
echo '</div>';
}
echo '</form>';
html_page_bottom1();
开发者ID:Cre-ator,项目名称:Whiteboard.UserProjectView-Plugin,代码行数:31,代码来源:config_page.php
注:本文中的print_enum_string_option_list函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论