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


PHP print_category_option_list函数代码示例

本文整理汇总了PHP中print_category_option_list函数的典型用法代码示例。如果您正苦于以下问题:PHP print_category_option_list函数的具体用法?PHP print_category_option_list怎么用?PHP print_category_option_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了print_category_option_list函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: print_documentation_link

    print_documentation_link('category');
    echo '</label>';
    ?>
		</th>
		<td width="70%">
			<?php 
    if ($t_changed_project) {
        echo '[' . project_get_field($t_bug->project_id, 'name') . '] ';
    }
    ?>
			<select <?php 
    echo helper_get_tab_index();
    ?>
 id="category_id" name="category_id" class="autofocus">
				<?php 
    print_category_option_list($f_category_id);
    ?>
			</select>
		</td>
	</tr>
<?php 
}
if ($t_show_reproducibility) {
    ?>

	<tr>
		<th class="category">
			<label for="reproducibility"><?php 
    print_documentation_link('reproducibility');
    ?>
</label>
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:31,代码来源:bug_report_page.php

示例2: lang_get

 echo '<td width="15%" class="category">', $t_show_date_submitted ? lang_get('date_submitted') : '', '</td>';
 echo '<td width="15%" class="category">', $t_show_last_updated ? lang_get('last_update') : '', '</td>';
 echo '</tr>';
 #
 # Values for Bug Id, Project Name, Category, View State, Date Submitted, Last Updated
 #
 echo '<tr>';
 # Bug ID
 echo '<td>', $t_formatted_bug_id, '</td>';
 # Project Name
 echo '<td>', $t_project_name, '</td>';
 # Category
 echo '<td>';
 if ($t_show_category) {
     echo '<select ' . helper_get_tab_index() . ' id="category_id" name="category_id">';
     print_category_option_list($t_bug->category_id, $t_bug->project_id);
     echo '</select>';
 }
 echo '</td>';
 # View State
 echo '<td>';
 if ($t_can_change_view_state) {
     echo '<select ' . helper_get_tab_index() . ' id="view_state" name="view_state">';
     print_enum_string_option_list('view_state', (int) $t_bug->view_state);
     echo '</select>';
 } else {
     if ($t_show_view_state) {
         echo $t_view_state;
     }
 }
 echo '</td>';
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:31,代码来源:bug_update_page.php

示例3: ERP_custom_function_print_global_category_option_list

function ERP_custom_function_print_global_category_option_list($p_sel_value)
{
    // Need to disable allow_no_category for a moment
    ERP_set_temporary_overwrite('allow_no_category', OFF);
    // Need to disable inherit projects for one moment.
    ERP_set_temporary_overwrite('subprojects_inherit_categories', OFF);
    $t_sel_value = (array) $p_sel_value;
    print_category_option_list($t_sel_value, ALL_PROJECTS);
    $t_all_projects = project_get_all_rows();
    $t_projects_info = array();
    foreach ($t_all_projects as $t_project) {
        $t_projects_info[$t_project['id']] = $t_project['name'];
    }
    natcasesort($t_projects_info);
    foreach ($t_projects_info as $t_project_id => $t_project_name) {
        echo '<optgroup label="' . string_attribute($t_project_name) . '">';
        print_category_option_list($t_sel_value, (int) $t_project_id);
        echo '</optgroup>';
    }
}
开发者ID:mikemol,项目名称:EmailReporting,代码行数:20,代码来源:config_api.php

示例4: print_custom_field_input

        print_custom_field_input($t_custom_field_def, $t_bug_id);
    } else {
        echo "<select name=\"{$t_form}\">";
        switch ($f_action) {
            case 'COPY':
            case 'MOVE':
                print_project_option_list(null, false);
                break;
            case 'ASSIGN':
                print_assign_to_option_list(0, $t_project_id);
                break;
            case 'VIEW_STATUS':
                print_enum_string_option_list('view_state', config_get('default_bug_view_status'));
                break;
            case 'UP_CATEGORY':
                print_category_option_list();
                break;
            case 'UP_TARGET_VERSION':
            case 'UP_FIXED_IN_VERSION':
                print_version_option_list('', $t_project_id, VERSION_ALL);
                break;
        }
        # other forms use the same function to display the list
        if ($t_request > '') {
            print_enum_string_option_list($t_request, FIXED);
        }
        echo '</select>';
    }
    ?>
	</td>
</tr>
开发者ID:renemilk,项目名称:spring-website,代码行数:31,代码来源:bug_actiongroup_page.php

示例5: plugin_lang_get

	<?php echo plugin_lang_get( 'disable' );?></option>
	</select>
	</p>

	</td>
</tr>

<tr class="row-2">
	<th class="category" width="25%"><?php echo lang_get( 'categories' );?></th>
	<td>
	<p><label for="keepcategory"><?php echo plugin_lang_get( 'keep_same_category' );?></label>
	<input type="checkbox" checked="checked" id="keepcategory" name="keepcategory" /></p>

	<p><?php echo plugin_lang_get( 'fallback_category' );?>
	<select name="defaultcategory">
<?php print_category_option_list( );?>
	</select>
	</p>

	</td>
</tr>


<tr>
	<td colspan="2" class="center">
		<input type="submit" class="button" value="<?php echo lang_get( 'upload_file_button' )?>" />
	</td>
</tr>
</table>
</form>
开发者ID:rombert,项目名称:mantisbt,代码行数:30,代码来源:import.php


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