本文整理汇总了PHP中print_version_option_list函数的典型用法代码示例。如果您正苦于以下问题:PHP print_version_option_list函数的具体用法?PHP print_version_option_list怎么用?PHP print_version_option_list使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_version_option_list函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: print_filter_show_target_version
/**
* print target version field
* @return void
*/
function print_filter_show_target_version()
{
global $g_select_modifier, $g_filter;
?>
<!-- Fixed in Version -->
<select<?php
echo $g_select_modifier;
?>
name="<?php
echo FILTER_PROPERTY_TARGET_VERSION;
?>
[]">
<option value="<?php
echo META_FILTER_ANY;
?>
"<?php
check_selected($g_filter[FILTER_PROPERTY_TARGET_VERSION], (string) META_FILTER_ANY);
?>
>[<?php
echo lang_get('any');
?>
]</option>
<option value="<?php
echo META_FILTER_NONE;
?>
"<?php
check_selected($g_filter[FILTER_PROPERTY_TARGET_VERSION], (string) META_FILTER_NONE);
?>
>[<?php
echo lang_get('none');
?>
]</option>
<?php
print_version_option_list($g_filter[FILTER_PROPERTY_TARGET_VERSION], null, VERSION_ALL, false, true);
?>
</select>
<?php
}
示例2: lang_get
if ($t_show_target_version) {
?>
<tr>
<th class="category">
<label for="target_version"><?php
echo lang_get('target_version');
?>
</label>
</th>
<td>
<select <?php
echo helper_get_tab_index();
?>
id="target_version" name="target_version">
<?php
print_version_option_list('', null, VERSION_FUTURE);
?>
</select>
</td>
</tr>
<?php
}
event_signal('EVENT_REPORT_BUG_FORM', array($t_project_id));
?>
<tr>
<th class="category">
<span class="required">*</span><label for="summary"><?php
print_documentation_link('summary');
?>
</label>
</th>
示例3: helper_alternate_class
<tr <?php
echo helper_alternate_class();
?>
>
<td class="category">
<?php
echo lang_get('target_version');
?>
</td>
<td>
<select <?php
echo helper_get_tab_index();
?>
name="target_version">
<?php
print_version_option_list();
?>
</select>
</td>
</tr>
<?php
}
event_signal('EVENT_REPORT_BUG_FORM', array($t_project_id));
?>
<tr <?php
echo helper_alternate_class();
?>
>
<td class="category">
<span class="required">*</span><?php
print_documentation_link('summary');
示例4: helper_alternate_class
<tr <?php
echo helper_alternate_class();
?>
>
<td class="category">
<?php
echo lang_get('product_version');
?>
</td>
<td>
<select <?php
echo helper_get_tab_index();
?>
name="product_version">
<?php
print_version_option_list($f_product_version, $t_project_id, VERSION_RELEASED);
?>
</select>
</td>
</tr>
<?php
}
?>
<!-- spacer -->
<tr class="spacer">
<td colspan="2"></td>
</tr>
<!-- Summary -->
示例5: config_get
$t_show_version = ON == config_get('show_product_version') || AUTO == config_get('show_product_version') && count(version_get_all_rows($t_project_id)) > 0;
if ($t_show_version) {
?>
<tr class="row-2">
<td class="category">
<?php
echo $t_question_title2;
?>
</td>
<td>
<select name="<?php
echo $t_form2;
?>
">
<?php
print_version_option_list('', null, VERSION_ALL);
?>
</select>
</td>
</tr>
<?php
}
break;
}
}
} else {
?>
<tr class="row-1">
<td class="category" colspan="2">
<?php
示例6: lang_get
$t_spacer = 2;
# Target Version
if ($t_show_target_version) {
echo '<th class="category"><label for="target_version">' . lang_get('target_version') . '</label></th>';
echo '<td><select ' . helper_get_tab_index() . ' id="target_version" name="target_version">';
print_version_option_list($t_bug->target_version, $t_bug->project_id, VERSION_FUTURE);
echo '</select></td>';
} else {
$t_spacer += 2;
}
# Fixed in Version
if ($t_show_fixed_in_version) {
echo '<th class="category"><label for="fixed_in_version">' . lang_get('fixed_in_version') . '</label></th>';
echo '<td>';
echo '<select ' . helper_get_tab_index() . ' id="fixed_in_version" name="fixed_in_version">';
print_version_option_list($t_bug->fixed_in_version, $t_bug->project_id, VERSION_ALL);
echo '</select>';
echo '</td>';
} else {
$t_spacer += 2;
}
# spacer
echo '<td colspan="', $t_spacer, '"> </td>';
echo '</tr>';
}
event_signal('EVENT_UPDATE_BUG_FORM', array($t_bug_id, true));
# spacer
echo '<tr class="spacer"><td colspan="6"></td></tr>';
echo '<tr class="hidden"></tr>';
# Summary
if ($t_show_summary) {
示例7: config_get
$t_show_version = ON == config_get('show_product_version') || AUTO == config_get('show_product_version') && count(version_get_all_rows($t_bug->project_id)) > 0;
if ($t_show_version) {
?>
<!-- Product Version -->
<td class="category">
<?php
echo lang_get('product_version');
?>
</td>
<td>
<select <?php
echo helper_get_tab_index();
?>
name="version">
<?php
print_version_option_list($t_bug->version, $t_bug->project_id, VERSION_RELEASED);
?>
</select>
</td>
</tr>
<?php
}
/*
<tr <?php echo helper_alternate_class() ?>>
<!-- Fixed in Version -->
<td class="category">
<?php echo lang_get( 'fixed_in_version' ) ?>
</td>
<td colspan="5">
<select <?php echo helper_get_tab_index() ?> name="fixed_in_version">
示例8: lang_get
?>
<!-- spacer -->
<td colspan="2"> </td>
<td class="category">
<?php
echo lang_get('target_version');
?>
</td>
<td>
<select <?php
echo helper_get_tab_index();
?>
name="target_version">
<?php
print_version_option_list($t_bug->target_version, $t_bug->project_id, VERSION_ALL);
?>
</select>
</td>
<?php
} else {
?>
<!-- spacer -->
<td colspan="4"> </td>
<?php
}
?>
<!-- Build -->
<td class="category">
<?php
echo lang_get('build');
示例9: print_filter_show_target_version
function print_filter_show_target_version()
{
global $t_select_modifier, $t_filter;
?>
<!-- Fixed in Version -->
<select <?php
print $t_select_modifier;
?>
name="target_version[]">
<option value="<?php
echo META_FILTER_ANY;
?>
" <?php
check_selected($t_filter['target_version'], META_FILTER_ANY);
?>
>[<?php
echo lang_get('any');
?>
]</option>
<option value="<?php
echo META_FILTER_NONE;
?>
" <?php
check_selected($t_filter['target_version'], META_FILTER_NONE);
?>
>[<?php
echo lang_get('none');
?>
]</option>
<?php
print_version_option_list($t_filter['target_version'], null, VERSION_ALL, false, true);
?>
</select>
<?php
}
示例10: helper_alternate_class
if ($t_show_product_version) {
?>
<!-- Fixed in Version -->
<tr <?php
echo helper_alternate_class();
?>
>
<th class="category">
<?php
echo lang_get('fixed_in_version');
?>
</th>
<td>
<select name="fixed_in_version">
<?php
print_version_option_list(bug_get_field($f_bug_id, 'fixed_in_version'), bug_get_field($f_bug_id, 'project_id'), VERSION_ALL);
?>
</select>
</td>
</tr>
<?php
}
}
?>
<?php
event_signal('EVENT_BUG_CHANGE_STATUS_FORM', array($f_bug_id));
?>
<!-- Bugnote -->
<tr id="bug-change-status-note" <?php
示例11: display_strategies
<td><select name="_type"><?php
display_strategies();
?>
</select></td>
<?php
if (Source_PVM()) {
?>
<td><select name="_pvm_version_id"><?php
display_pvm_versions();
?>
</select></td>
<?php
} else {
?>
<td><select name="_version"><?php
print_version_option_list('', ALL_PROJECTS, false, true, true);
?>
</td>
<?php
}
?>
<td><input name="_regex" size="18" maxlength="128"/></td>
<td></td>
</tr>
<tr>
<td class="center" colspan="5"><input type="submit" value="<?php
echo plugin_lang_get('mapping_update');
?>
"/></td>
</tr>
示例12: print_assign_to_option_list
<option value="0" selected="selected"></option>
<?php print_assign_to_option_list( $f_handler_id ) ?>
</select>
</td>
</tr>
<?php } ?>
<?php // Target Version (if permissions allow)
if ( $tpl_show_target_version ) { ?>
<tr <?php echo helper_alternate_class() ?>>
<th class="category">
<label for="target_version"><?php echo lang_get( 'target_version' ) ?></label>
</th>
<td>
<select <?php echo helper_get_tab_index() ?> id="target_version" name="target_version">
<?php print_version_option_list() ?>
</select>
</td>
</tr>
<?php } ?>
<?php event_signal( 'EVENT_REPORT_BUG_FORM', array( $t_project_id ) ) ?>
<tr <?php echo helper_alternate_class() ?>>
<th class="category">
<span class="required">*</span><label for="summary"><?php print_documentation_link( 'summary' ) ?></label>
</th>
<td>
<input <?php echo helper_get_tab_index() ?> type="text" id="summary" name="summary" size="105" maxlength="128" value="<?php echo string_attribute( $f_summary ) ?>" />
</td>
</tr>
<tr <?php echo helper_alternate_class() ?>>
<th class="category">
示例13: print_filter_show_target_version
/**
* print target version field
*/
function print_filter_show_target_version() {
global $t_select_modifier, $t_filter;
?><!-- Fixed in Version -->
<select<?php echo $t_select_modifier;?> name="<?php echo FILTER_PROPERTY_TARGET_VERSION;?>[]">
<option value="<?php echo META_FILTER_ANY?>"<?php check_selected( $t_filter[FILTER_PROPERTY_TARGET_VERSION], META_FILTER_ANY );?>>[<?php echo lang_get( 'any' )?>]</option>
<option value="<?php echo META_FILTER_NONE?>"<?php check_selected( $t_filter[FILTER_PROPERTY_TARGET_VERSION], META_FILTER_NONE );?>>[<?php echo lang_get( 'none' )?>]</option>
<?php print_version_option_list( $t_filter[FILTER_PROPERTY_TARGET_VERSION], /* projectId */ null, /* released */ VERSION_ALL, /* leadingBlank */ false, /* withSubs */ true )?>
</select>
<?php
}