當前位置: 首頁>>代碼示例>>PHP>>正文


PHP print_reporter_option_list函數代碼示例

本文整理匯總了PHP中print_reporter_option_list函數的典型用法代碼示例。如果您正苦於以下問題:PHP print_reporter_option_list函數的具體用法?PHP print_reporter_option_list怎麽用?PHP print_reporter_option_list使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了print_reporter_option_list函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: reportBugFormTop

    function reportBugFormTop($p_event, $p_project_id)
    {
        # allow to change reporter_id (if access level is higher than defined)
        $t_user_id = auth_get_current_user_id();
        $t_access_level = user_get_access_level($t_user_id, $p_project_id);
        if ($t_access_level >= plugin_config_get('select_threshold')) {
            ?>
		    
			<tr <?php 
            echo helper_alternate_class();
            ?>
>
				<td class="category" width="30%">
					<?php 
            echo lang_get('reporter');
            ?>
				</td>
				<td width="70%">
					<select <?php 
            echo helper_get_tab_index();
            ?>
 name="reporter_id">
						<?php 
            print_reporter_option_list($t_user_id, $p_project_id);
            ?>
					</select>
				</td>
			</tr>
<?php 
        }
    }
開發者ID:bkraul,項目名稱:CustomReporter,代碼行數:31,代碼來源:CustomReporter.php

示例2: xmlhttprequest_issue_reporter_combobox

function xmlhttprequest_issue_reporter_combobox()
{
    $f_bug_id = gpc_get_int('issue_id');
    access_ensure_bug_level(config_get('update_bug_threshold'), $f_bug_id);
    $t_reporter_id = bug_get_field($f_bug_id, 'reporter_id');
    $t_project_id = bug_get_field($f_bug_id, 'project_id');
    echo '<select name="reporter_id">';
    print_reporter_option_list($t_reporter_id, $t_project_id);
    echo '</select>';
}
開發者ID:amjadtbssm,項目名稱:website,代碼行數:10,代碼來源:xmlhttprequest_api.php

示例3: print_filter_user_monitor

/**
 * Print the user monitor field
 * @return void
 */
function print_filter_user_monitor()
{
    global $g_select_modifier, $g_filter;
    ?>
	<!-- Monitored by -->
		<select<?php 
    echo $g_select_modifier;
    ?>
 name="<?php 
    echo FILTER_PROPERTY_MONITOR_USER_ID;
    ?>
[]">
			<option value="<?php 
    echo META_FILTER_ANY;
    ?>
"<?php 
    check_selected($g_filter[FILTER_PROPERTY_MONITOR_USER_ID], META_FILTER_ANY);
    ?>
>[<?php 
    echo lang_get('any');
    ?>
]</option>
			<?php 
    if (access_has_project_level(config_get('monitor_bug_threshold'))) {
        echo '<option value="' . META_FILTER_MYSELF . '" ';
        check_selected($g_filter[FILTER_PROPERTY_MONITOR_USER_ID], META_FILTER_MYSELF);
        echo '>[' . lang_get('myself') . ']</option>';
    }
    $t_threshold = config_get('show_monitor_list_threshold');
    $t_has_project_level = access_has_project_level($t_threshold);
    if ($t_has_project_level) {
        print_reporter_option_list($g_filter[FILTER_PROPERTY_MONITOR_USER_ID]);
    }
    ?>
		</select>
		<?php 
}
開發者ID:vipjaven,項目名稱:mantisbt,代碼行數:41,代碼來源:filter_api.php

示例4: lang_get

# Reporter
#
if ($t_show_reporter) {
    echo '<tr>';
    $t_spacer = 4;
    if ($t_show_reporter) {
        # Reporter
        echo '<th class="category"><label for="reporter_id">' . lang_get('reporter') . '</label></th>';
        echo '<td>';
        # Do not allow the bug's reporter to edit the Reporter field
        # when limit_reporters is ON
        if (ON == config_get('limit_reporters') && !access_has_project_level(REPORTER + 1, $t_bug->project_id)) {
            echo string_attribute(user_get_name($t_bug->reporter_id));
        } else {
            echo '<select ' . helper_get_tab_index() . ' id="reporter_id" name="reporter_id">';
            print_reporter_option_list($t_bug->reporter_id, $t_bug->project_id);
            echo '</select>';
        }
        echo '</td>';
    } else {
        $t_spacer += 2;
    }
    # spacer
    echo '<td colspan="', $t_spacer, '">&#160;</td>';
    echo '</tr>';
}
#
# Assigned To, Due Date
#
if ($t_show_handler || $t_show_due_date) {
    echo '<tr>';
開發者ID:N0ctrnl,項目名稱:mantisbt,代碼行數:31,代碼來源:bug_update_page.php

示例5: print_filter_user_monitor

function print_filter_user_monitor()
{
    global $t_select_modifier, $t_filter;
    ?>
	<!-- Monitored by -->
		<select <?php 
    print $t_select_modifier;
    ?>
 name="user_monitor[]">
			<option value="<?php 
    echo META_FILTER_ANY;
    ?>
" <?php 
    check_selected($t_filter['user_monitor'], META_FILTER_ANY);
    ?>
>[<?php 
    echo lang_get('any');
    ?>
]</option>
			<?php 
    if (access_has_project_level(config_get('monitor_bug_threshold'))) {
        print '<option value="' . META_FILTER_MYSELF . '" ';
        check_selected($t_filter['user_monitor'], META_FILTER_MYSELF);
        print '>[' . lang_get('myself') . ']</option>';
    }
    ?>
			<?php 
    print_reporter_option_list($t_filter['user_monitor']);
    ?>
		</select>
		<?php 
}
開發者ID:centaurustech,項目名稱:BenFund,代碼行數:32,代碼來源:filter_api.php


注:本文中的print_reporter_option_list函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。