当前位置: 首页>>代码示例>>PHP>>正文


PHP print_enum_string_option_list函数代码示例

本文整理汇总了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函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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') . "&nbsp;\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')) . '&#160;</td>';
        echo '<td class="right">' . $t_released_label . '&#160;</td>';
        echo '<td><a title="' . $t_resolution . '"><span class="underline">' . $t_status . '</span>&#160;</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">&nbsp;</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


注:本文中的print_enum_string_option_list函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。