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


PHP print_user_option_list函數代碼示例

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


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

示例1: xmlhttprequest_user_combobox

/**
 * Print a generic combobox with a list of users above a given access level.
 */
function xmlhttprequest_user_combobox()
{
    $f_user_id = gpc_get_int('user_id');
    $f_user_access = gpc_get_int('access_level');
    echo '<select name="user_id">';
    print_user_option_list($f_user_id, ALL_PROJECTS, $f_user_access);
    echo '</select>';
}
開發者ID:amjadtbssm,項目名稱:website,代碼行數:11,代碼來源:xmlhttprequest_api.php

示例2: print_project_user_option_list

function print_project_user_option_list($p_project_id = null)
{
    print_user_option_list(0, $p_project_id);
}
開發者ID:nextgens,項目名稱:mantisbt,代碼行數:4,代碼來源:print_api.php

示例3: helper_get_tab_index

</td>
	<td><input type="text" <?php 
echo helper_get_tab_index();
?>
 name="name" value="<?php 
echo $t_name;
?>
"/></td>
	<td><?php 
if (access_has_global_level(config_get('tag_edit_threshold'))) {
    if (ON == config_get('use_javascript')) {
        $t_username = prepare_user_name($t_tag_row['user_id']);
        echo ajax_click_to_edit($t_username, 'user_id', 'entrypoint=user_combobox&user_id=' . $t_tag_row['user_id'] . '&access_level=' . config_get('tag_create_threshold'));
    } else {
        echo '<select ', helper_get_tab_index(), ' name="user_id">';
        print_user_option_list($t_tag_row['user_id'], ALL_PROJECTS, config_get('tag_create_threshold'));
        echo '</select>';
    }
} else {
    echo string_display_line(user_get_name($t_tag_row['user_id']));
}
?>
</td>
	<td><?php 
echo date(config_get('normal_date_format'), $t_tag_row['date_created']);
?>
 </td>
	<td><?php 
echo date(config_get('normal_date_format'), $t_tag_row['date_updated']);
?>
 </td>
開發者ID:nourchene-benslimane,項目名稱:mantisV0,代碼行數:31,代碼來源:tag_update_page.php

示例4: check_selected

			<span class="select">
				<select id="config-user-id" name="user_id">
					<option value="<?php 
        echo ALL_USERS;
        ?>
"
						<?php 
        check_selected($t_edit_user_id, ALL_USERS);
        ?>
>
						<?php 
        echo lang_get('all_users');
        ?>
					</option>
					<?php 
        print_user_option_list($t_edit_user_id);
        ?>
				</select>
			</span>
			<span class="label-style"></span>
		</div>

			<!-- Project -->
			<div class="field-container">
				<label for="config-project-id"><span><?php 
        echo lang_get('project_name');
        ?>
</span></label>
				<span class="select">
					<select id="config-project-id" name="project_id">
						<option value="<?php 
開發者ID:sfranks1124,項目名稱:mantisbt,代碼行數:31,代碼來源:adm_config_report.php

示例5: lang_get

	<th class="category">
		<?php echo lang_get( 'to' ) ?>
	</th>
	<td>
		<select name="to[]" multiple="multiple" size="12" class="width20">
			<?php
			$t_project_id = bug_get_field( $f_bug_id, 'project_id' );
			$t_access_level = config_get( 'reminder_receive_threshold' );
			if( $t_bug->view_state === VS_PRIVATE ) {
				$t_private_bug_threshold = config_get( 'private_bug_threshold' );
				if( $t_private_bug_threshold > $t_access_level ) {
					$t_access_level = $t_private_bug_threshold;
				}
			}
			$t_selected_user_id = 0;
			print_user_option_list( $t_selected_user_id, $t_project_id, $t_access_level );
			?>
		</select>
	</td>
</tr>
<tr>
	<th class="category">
		<?php echo lang_get( 'reminder' ) ?>
	</th>
	<td>
		<textarea name="body" cols="85" rows="10" class="width100"></textarea>
	</td>
</tr>
</table>
<div class="center">
	<input type="submit" class="button" value="<?php echo lang_get( 'bug_send_button' ) ?>" />
開發者ID:01-Scripts,項目名稱:mantisbt,代碼行數:31,代碼來源:bug_reminder_page.php

示例6: helper_alternate_class

    echo helper_alternate_class();
    ?>
 valign="top">
	<td>
		<?php 
    echo lang_get('username');
    ?>
	</td>
	<td>
		<select name="user_id">
			<option value="0" selected="selected"><?php 
    echo lang_get('all_users');
    ?>
</option>
			<?php 
    print_user_option_list(auth_get_current_user_id());
    ?>
		</select>
	</td>
</tr>
<tr <?php 
    echo helper_alternate_class();
    ?>
 valign="top">
	<td>
		<?php 
    echo lang_get('project_name');
    ?>
	</td>
	<td>
		<select name="project_id">
開發者ID:nourchene-benslimane,項目名稱:mantisV0,代碼行數:31,代碼來源:adm_config_report.php

示例7: ERP_custom_function_print_reporter_option_list

function ERP_custom_function_print_reporter_option_list($p_sel_value)
{
    $t_user_ids = (array) $p_sel_value;
    if (!empty($t_user_ids)) {
        foreach ($t_user_ids as $t_single_user_id) {
            if (!user_exists($t_single_user_id)) {
                echo '<option value="' . $t_single_user_id . '" selected class="negative">' . plugin_lang_get('missing_user', 'EmailReporting') . '</option>';
            }
        }
    }
    print_user_option_list($t_user_ids, ALL_PROJECTS);
}
開發者ID:mikemol,項目名稱:EmailReporting,代碼行數:12,代碼來源:config_api.php

示例8: helper_alternate_class_no_attribute

			<div class="field-container <?php 
    echo helper_alternate_class_no_attribute();
    ?>
">
				<label for="config-user-id"><span><?php 
    echo lang_get('username');
    ?>
</span></label>
				<span class="select">
					<select id="config-user-id" name="user_id">
						<option value="0" selected="selected"><?php 
    echo lang_get('all_users');
    ?>
</option>
						<?php 
    print_user_option_list(0);
    ?>
					</select>
				</span>
				<span class="label-style"></span>
			</div>
			<div class="field-container <?php 
    echo helper_alternate_class_no_attribute();
    ?>
">
				<label for="config-project-id"><span><?php 
    echo lang_get('project_name');
    ?>
</span></label>
				<span class="select">
					<select id="config-project-id" name="project_id">
開發者ID:nextgens,項目名稱:mantisbt,代碼行數:31,代碼來源:adm_config_report.php

示例9: helper_alternate_class

<tr <?php 
echo helper_alternate_class();
?>
>
<td class="category"><?php 
echo plugin_lang_get('committer');
?>
</td>
<td colspan="2"><select name="committer_id">
<option value="0" <?php 
echo check_selected(0, $t_changeset->committer_id);
?>
>--</option>
<?php 
print_user_option_list($t_changeset->committer_id);
?>
</select></td>
</tr>

<tr <?php 
echo helper_alternate_class();
?>
>
<td class="category"><?php 
echo plugin_lang_get('branch');
?>
</td>
<td colspan="2"><select name="branch">
<?php 
if ($t_changeset->branch == "") {
開發者ID:Sansumaki,項目名稱:source-integration,代碼行數:30,代碼來源:edit_page.php

示例10: lang_get

		} # end for loop ?>
	</table>
</div><?php

if ( $t_read_write_access ) { ?>
<div class="form-container">
	<form method="post" action="adm_config_set.php">
		<fieldset>
			<legend><span><?php echo lang_get( 'set_configuration_option' ) ?></span></legend>
			<?php echo form_security_field( 'adm_config_set' ) ?>
			<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
				<label for="config-user-id"><span><?php echo lang_get( 'username' ) ?></span></label>
				<span class="select">
					<select id="config-user-id" name="user_id">
						<option value="0" selected="selected"><?php echo lang_get( 'all_users' ); ?></option>
						<?php print_user_option_list( 0 ) ?>
					</select>
				</span>
				<span class="label-style"></span>
			</div>
			<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
				<label for="config-project-id"><span><?php echo lang_get( 'project_name' ) ?></span></label>
				<span class="select">
					<select id="config-project-id" name="project_id">
						<option value="0" selected="selected"><?php echo lang_get( 'all_projects' ); ?></option>
						<?php print_project_option_list( ALL_PROJECTS, false ) ?>
					</select>
				</span>
				<span class="label-style"></span>
			</div>
			<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
開發者ID:rombert,項目名稱:mantisbt,代碼行數:31,代碼來源:adm_config_report.php


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