當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。