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


PHP helper_alternate_class_no_attribute函数代码示例

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


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

示例1: helper_alternate_class_no_attribute

					<select name="project_id"><?php
						$t_sitewide = false;
						if ( current_user_is_administrator() ) {
							$t_sitewide = true;
						}
						print_project_option_list( $v_project_id, $t_sitewide ); ?>
					</select>
				</span>
				<span class="label-style"></span>
			</div>
			<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
				<label for="news-update-announcement"><span><?php echo lang_get( 'announcement' ) ?></span> <span class="help-text"><?php echo lang_get( 'stays_on_top' ) ?></span></label>
				<span class="checkbox"><input type="checkbox" id="news-update-announcement" name="announcement" <?php check_checked( $v_announcement, 1 ); ?> /></span>
				<span class="label-style"></span>
			</div>
			<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
				<label for=""><span><?php echo lang_get( 'view_status' ) ?></span></label>
				<span class="select">
					<select name="view_state">
						<?php print_enum_string_option_list( 'view_state', $v_view_state ) ?>
					</select>
				</span>
				<span class="label-style"></span>
			</div>
			<span class="submit-button"><input type="submit" class="button" value="<?php echo lang_get( 'update_news_button' ) ?>" /></span>
		</fieldset>
	</form>
</div><?php
# Edit News Form END

html_page_bottom();
开发者ID:rombert,项目名称:mantisbt,代码行数:31,代码来源:news_edit_page.php

示例2: lang_get

">
				<label for="news-update-announcement"><span><?php 
echo lang_get('announcement');
?>
</span> <span class="help-text"><?php 
echo lang_get('stays_on_top');
?>
</span></label>
				<span class="checkbox"><input type="checkbox" id="news-update-announcement" name="announcement" <?php 
check_checked($v_announcement, 1);
?>
 /></span>
				<span class="label-style"></span>
			</div>
			<div class="field-container <?php 
echo helper_alternate_class_no_attribute();
?>
">
				<label for=""><span><?php 
echo lang_get('view_status');
?>
</span></label>
				<span class="select">
					<select name="view_state">
						<?php 
print_enum_string_option_list('view_state', $v_view_state);
?>
					</select>
				</span>
				<span class="label-style"></span>
			</div>
开发者ID:nextgens,项目名称:mantisbt,代码行数:31,代码来源:news_edit_page.php

示例3: lang_get

?>
">
				<span class="display-label"><span><?php 
echo lang_get('access_level_project');
?>
</span></span>
				<span class="input"><span class="field-value"><?php 
echo get_enum_element('access_levels', current_user_get_access_level());
?>
</span></span>
				<span class="label-style"></span>
			</div>
			<?php 
$t_projects = user_get_assigned_projects(auth_get_current_user_id());
if (count($t_projects) > 0) {
    echo '<div class="field-container ' . helper_alternate_class_no_attribute() . '">';
    echo '<span class="display-label"><span>' . lang_get('assigned_projects') . '</span></span>';
    echo '<div class="input">';
    echo '<ul class="project-list">';
    foreach ($t_projects as $t_project_id => $t_project) {
        $t_project_name = string_attribute($t_project['name']);
        $t_view_state = $t_project['view_state'];
        $t_access_level = $t_project['access_level'];
        $t_access_level = get_enum_element('access_levels', $t_access_level);
        $t_view_state = get_enum_element('project_view_state', $t_view_state);
        echo '<li><span class="project-name">' . $t_project_name . '</span> <span class="access-level">' . $t_access_level . '</span> <span class="view-state">' . $t_view_state . '</span></li>';
    }
    echo '</ul>';
    echo '</div>';
    echo '<span class="label-style"></span>';
    echo '</div>';
开发者ID:nextgens,项目名称:mantisbt,代码行数:31,代码来源:account_page.php

示例4: edit_account_prefs

function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_accounts_menu = true, $p_redirect_url = '')
{
    if (null === $p_user_id) {
        $p_user_id = auth_get_current_user_id();
    }
    $t_redirect_url = $p_redirect_url;
    if (is_blank($t_redirect_url)) {
        $t_redirect_url = 'account_prefs_page.php';
    }
    # protected account check
    if (user_is_protected($p_user_id)) {
        if ($p_error_if_protected) {
            trigger_error(ERROR_PROTECTED_ACCOUNT, ERROR);
        } else {
            return;
        }
    }
    # prefix data with u_
    $t_pref = user_pref_get($p_user_id);
    # Account Preferences Form BEGIN
    ?>

<div id="account-prefs-update-div" class="form-container">
	<form id="account-prefs-update-form" method="post" action="account_prefs_update.php">
		<fieldset>
			<legend><span><?php 
    echo lang_get('default_account_preferences_title');
    ?>
</span></legend>
			<?php 
    echo form_security_field('account_prefs_update');
    ?>
			<input type="hidden" name="user_id" value="<?php 
    echo $p_user_id;
    ?>
" />
			<input type="hidden" name="redirect_url" value="<?php 
    echo $t_redirect_url;
    ?>
" />
		<?php 
    if ($p_accounts_menu) {
        print_account_menu('account_prefs_page.php');
    }
    ?>
			<div class="field-container <?php 
    echo helper_alternate_class_no_attribute();
    ?>
">
				<label for="default-project-id"><span><?php 
    echo lang_get('default_project');
    ?>
</span></label>
				<span class="select">
					<select id="default-project-id" name="default_project">
						<?php 
    print_project_option_list((int) $t_pref->default_project);
    ?>
					</select>
				</span>
				<span class="label-style"></span>
			</div>
			<div class="field-container <?php 
    echo helper_alternate_class_no_attribute();
    ?>
">
				<label for="refresh-delay"><span><?php 
    echo lang_get('refresh_delay');
    ?>
</span></label>
				<span class="input"><input id="refresh-delay" type="text" name="refresh_delay" size="4" maxlength="4" value="<?php 
    echo $t_pref->refresh_delay;
    ?>
" /> <?php 
    echo lang_get('minutes');
    ?>
</span>
				<span class="label-style"></span>
			</div>
			<div class="field-container <?php 
    echo helper_alternate_class_no_attribute();
    ?>
">
				<label for="redirect-delay"><span><?php 
    echo lang_get('redirect_delay');
    ?>
</span></label>
				<span class="input"><input id="redirect-delay" type="text" name="redirect_delay" size="4" maxlength="3" value="<?php 
    echo $t_pref->redirect_delay;
    ?>
" /> <?php 
    echo lang_get('seconds');
    ?>
</span>
				<span class="label-style"></span>
			</div>
			<fieldset class="field-container <?php 
    echo helper_alternate_class_no_attribute();
    ?>
">
//.........这里部分代码省略.........
开发者ID:nextgens,项目名称:mantisbt,代码行数:101,代码来源:account_prefs_inc.php

示例5: auth_reauthenticate_page

/**
 * Generate the intermediate authentication page.
 * @param integer User ID
 * @param string Username
 * @return bool
 * @access public
 */
function auth_reauthenticate_page($p_user_id, $p_username)
{
    $t_error = false;
    if (true == gpc_get_bool('_authenticate')) {
        $f_password = gpc_get_string('password', '');
        if (auth_attempt_login($p_username, $f_password)) {
            auth_set_tokens($p_user_id);
            return true;
        } else {
            $t_error = true;
        }
    }
    html_page_top();
    ?>
<div class="important-msg">
<?php 
    echo lang_get('reauthenticate_message');
    if ($t_error != false) {
        echo '<br /><span class="error-msg">', lang_get('login_error'), '</span>';
    }
    ?>
</div>
<div id="reauth-div" class="form-container">
	<form id="reauth-form" method="post" action="">
		<fieldset>
			<legend><span><?php 
    echo lang_get('reauthenticate_title');
    ?>
</span></legend>

		<?php 
    # CSRF protection not required here - user needs to enter password
    # (confirmation step) before the form is accepted.
    print_hidden_inputs(gpc_strip_slashes($_POST));
    print_hidden_inputs(gpc_strip_slashes($_GET));
    ?>

			<input type="hidden" name="_authenticate" value="1" />
			<div class="field-container <?php 
    echo helper_alternate_class_no_attribute();
    ?>
">
				<label for="username"><span><?php 
    echo lang_get('username');
    ?>
</span></label>
				<span class="input"><input id="username" type="text" disabled="disabled" size="32" maxlength="<?php 
    echo DB_FIELD_SIZE_USERNAME;
    ?>
" value="<?php 
    echo string_attribute($p_username);
    ?>
" /></span>
				<span class="label-style"></span>
			</div>
			<div class="field-container <?php 
    echo helper_alternate_class_no_attribute();
    ?>
">
				<label for="password"><span><?php 
    echo lang_get('password');
    ?>
</span></label>
				<span class="input"><input id="password" type="password" name="password" size="32" maxlength="<?php 
    echo auth_get_password_max_size();
    ?>
" class="autofocus" /></span>
				<span class="label-style"></span>
			</div>
			<span class="submit-button"><input type="submit" class="button" value="<?php 
    echo lang_get('login_button');
    ?>
" /></span>
		</fieldset>
	</form>
</div>

<?php 
    html_page_bottom();
    exit;
}
开发者ID:nextgens,项目名称:mantisbt,代码行数:88,代码来源:authentication_api.php


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