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


PHP trans_bool函数代码示例

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


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

示例1: helper_alternate_class

    echo helper_alternate_class();
    ?>
>
			<td>
				<?php 
    echo string_display($t_name);
    ?>
			</td>
			<td class="center">
				<?php 
    echo trans_bool($t_released);
    ?>
			</td>
			<td class="center">
				<?php 
    echo trans_bool($t_obsolete);
    ?>
			</td>
			<td class="center">
				<?php 
    echo $t_date_formatted;
    ?>
			</td>
			<td class="center">
				<?php 
    $t_version_id = version_get_id($t_name, $f_project_id);
    if (!$t_inherited) {
        print_button('manage_proj_ver_edit_page.php?version_id=' . $t_version_id, lang_get('edit_link'));
        echo '&nbsp;';
        print_button('manage_proj_ver_delete.php?version_id=' . $t_version_id, lang_get('delete_link'));
    }
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:manage_proj_edit_page.php

示例2: str_repeat

		<a href="manage_proj_edit_page.php?project_id=<?php 
        echo $t_project['id'];
        ?>
"><?php 
        echo str_repeat("&raquo; ", $t_level) . string_display($t_project['name']);
        ?>
</a>
	</td>
	<td>
		<?php 
        echo get_enum_element('project_status', $t_project['status']);
        ?>
	</td>
	<td>
		<?php 
        echo trans_bool($t_project['enabled']);
        ?>
	</td>
	<td>
		<?php 
        echo get_enum_element('project_view_state', $t_project['view_state']);
        ?>
	</td>
	<td>
		<?php 
        echo string_display_links($t_project['description']);
        ?>
	</td>
</tr>
<?php 
    }
开发者ID:Tarendai,项目名称:spring-website,代码行数:31,代码来源:manage_proj_page.php

示例3: string_format_complete_date

    $t_date_order = $t_version['date_order'];
    $t_date_formatted = string_format_complete_date($t_version['date_order']);
    ?>
<!-- Repeated Info Rows -->
		<tr <?php 
    echo helper_alternate_class();
    ?>
>
			<td>
				<?php 
    echo string_display($t_name);
    ?>
			</td>
			<td class="center">
				<?php 
    echo trans_bool($t_released);
    ?>
			</td>
			<td class="center">
				<?php 
    echo $t_date_formatted;
    ?>
			</td>
			<td class="center">
				<?php 
    $t_version_id = version_get_id($t_name, $f_project_id);
    print_button('manage_proj_ver_edit_page.php?version_id=' . $t_version_id, lang_get('edit_link'));
    echo '&nbsp;';
    print_button('manage_proj_ver_delete.php?version_id=' . $t_version_id . form_security_param('manage_proj_ver_delete'), lang_get('delete_link'));
    ?>
			</td>
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:manage_proj_edit_page.php

示例4: string_display

</a>
	</td>
	<td><?php 
    echo string_display($u_realname);
    ?>
</td>
	<td><?php 
    print_email_link($u_email, $u_email);
    ?>
</td>
	<td><?php 
    echo get_enum_element('access_levels', $u_access_level);
    ?>
</td>
	<td><?php 
    echo trans_bool($u_enabled);
    ?>
</td>
	<td class="center">
          <?php 
    if ($u_protected) {
        echo " {$t_lock_image}";
    } else {
        echo '&nbsp;';
    }
    ?>
        </td>
	<td><?php 
    echo $u_date_created;
    ?>
</td>
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:manage_user_page.php

示例5: get_enum_element

		if( !isset( $t_access_level[$u_access_level] ) ) {
			$t_access_level[$u_access_level] = get_enum_element( 'access_levels', $u_access_level );
		} ?>
			<tr>
				<td><?php
					if( access_has_global_level( $u_access_level ) ) { ?>
						<a href="manage_user_edit_page.php?user_id=<?php echo $u_id ?>"><?php echo string_display_line( $u_username ) ?></a><?php
					} else {
						echo string_display_line( $u_username );
					} ?>
				</td>
				<td><?php echo string_display_line( $u_realname ) ?></td>
				<td><?php print_email_link( $u_email, $u_email ) ?></td>
				<td><?php echo $t_access_level[$u_access_level] ?></td>
				<td class="center"><?php echo trans_bool( $u_enabled ) ?></td>
				<td class="center"><?php
					if( $u_protected ) {
						echo ' ' . $t_lock_image;
					} else {
						echo '&#160;';
					} ?>
				</td>
				<td><?php echo $u_date_created ?></td>
				<td><?php echo $u_last_visit ?></td>
			</tr>
<?php
	}  # end for
?>
		</tbody>
	</table>
开发者ID:01-Scripts,项目名称:mantisbt,代码行数:30,代码来源:manage_user_page.php

示例6: print_released

function print_released($edit_page, $version_index, $version)
{
    echo '<td class="center">';
    if ($edit_page) {
        ?>
      <label for="proj-version-released-<?php 
        echo $version_index;
        ?>
">
      <span class="checkbox"><input type="checkbox" id="proj-version-released-<?php 
        echo $version_index;
        ?>
"
                                    name="released<?php 
        echo $version_index;
        ?>
" <?php 
        check_checked((int) $version['released'], ON);
        ?>
 /></span>
      </label>
      <?php 
    } else {
        echo trans_bool($version['released']);
    }
    echo '</td>';
}
开发者ID:Cre-ator,项目名称:Whiteboard.SpecificationManagement-Plugin,代码行数:27,代码来源:manage_versions.php

示例7: print_duration

function print_duration($edit_page, $type_index, $option_show_duration)
{
    echo '<td class="center">';
    if ($edit_page) {
        ?>
      <label for="show-duration"></label>
      <span class="checkbox"><input type="checkbox" id="show-duration"
                                    name="showpt<?php 
        echo $type_index;
        ?>
" <?php 
        check_checked((int) $option_show_duration, ON);
        ?>
 /></span>
      <?php 
    } else {
        echo trans_bool($option_show_duration);
    }
    echo '</td>';
}
开发者ID:Cre-ator,项目名称:Whiteboard.SpecificationManagement-Plugin,代码行数:20,代码来源:manage_types.php

示例8: version_full_name

		foreach ( $t_versions as $t_version ) {
			$t_inherited = ( $t_version['project_id'] != $f_project_id ?  true : false );
			$t_name = version_full_name( $t_version['id'], /* showProject */ $t_inherited, $f_project_id );
			$t_released = $t_version['released'];
			$t_obsolete = $t_version['obsolete'];
			if( !date_is_null( $t_version['date_order'] ) ) {
				$t_date_formatted = date( config_get( 'complete_date_format' ), $t_version['date_order'] );
			} else {
				$t_date_formatted = ' ';
			} ?>

		<tr <?php echo helper_alternate_class() ?>>
			<td><?php echo string_display( $t_name ) ?></td>
			<td><?php echo trans_bool( $t_released ) ?></td>
			<td><?php echo trans_bool( $t_obsolete ) ?></td>
			<td><?php echo $t_date_formatted ?></td>
			<td><?php
				$t_version_id = version_get_id( $t_name, $f_project_id );
				if ( !$t_inherited ) {
					print_button( 'manage_proj_ver_edit_page.php?version_id=' . $t_version_id, lang_get( 'edit_link' ) );
				} ?>
			</td>
			<td><?php
				if ( !$t_inherited ) {
					print_button( 'manage_proj_ver_delete.php?version_id=' . $t_version_id, lang_get( 'delete_link' ) );
				} ?>
			</td>
		</tr><?php
		} # end for loop ?>
	</table><?php
开发者ID:rombert,项目名称:mantisbt,代码行数:30,代码来源:manage_proj_edit_page.php

示例9: get_enum_element

    echo get_enum_element('custom_field_type', $t_desc['type']);
    ?>
			</td>
			<td>
				<?php 
    echo string_display($t_desc['possible_values']);
    ?>
			</td>
			<td>
				<?php 
    echo string_display($t_desc['default_value']);
    ?>
			</td>
			<td align="center">
				<?php 
    echo trans_bool($t_desc['advanced']);
    ?>
			</td>
		</tr>
	<?php 
}
# Create Form END
?>
</table>

<br />

<form method="post" action="manage_custom_field_create.php">
<?php 
echo form_security_field('manage_custom_field_create');
?>
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:manage_custom_field_page.php

示例10: get_enum_element

		if( !isset( $t_access_level[$u_access_level] ) ) {
			$t_access_level[$u_access_level] = get_enum_element( 'access_levels', $u_access_level );
		} ?>
		<tr <?php echo helper_alternate_class( $i ) ?>>
			<td><?php
				if ( access_has_global_level( $u_access_level ) ) { ?>
					<a href="manage_user_edit_page.php?user_id=<?php echo $u_id ?>"><?php echo string_display_line( $u_username ) ?></a><?php
				} else {
					echo string_display_line( $u_username );
				} ?>
			</td>
			<td><?php echo string_display_line( $u_realname ) ?></td>
			<td><?php print_email_link( $u_email, $u_email ) ?></td>
			<td><?php echo $t_access_level[$u_access_level] ?></td>
			<td><?php echo trans_bool( $u_enabled ) ?></td>
			<td class="center"><?php
				if ( $u_protected ) {
					echo " $t_lock_image";
				} else {
					echo '&#160;';
				} ?>
			</td>
			<td><?php echo $u_date_created ?></td>
			<td><?php echo $u_last_visit ?></td>
		</tr><?php
	}  # end for ?>
	</table>
	<div class="pager-links">
		<?php
		/* @todo hack - pass in the hide inactive filter via cheating the actual filter value */
开发者ID:rombert,项目名称:mantisbt,代码行数:30,代码来源:manage_user_page.php

示例11: print_avatar

    }
    ?>
		</td>
	<td><?php 
    echo $u_date_created;
    ?>
</td>
	<td><?php 
    echo $u_last_visit;
    ?>
</td>
	<td><?php 
    if (config_get("show_avatar_in_manage_user_list")) {
        print_avatar($u_id, null, $t_class = "manage_avatar");
    } else {
        echo trans_bool($has_avatar);
    }
    ?>
	</td>	
</tr>
<?php 
}
# end for
# -- Page number links --
?>
	<tr>
		<td class="right" colspan="8">
			<span class="small">
				<?php 
/* @todo hack - pass in the page filter via cheating the actual filter value */
print_page_links('manage_user_page.php', 1, $t_page_count, (int) $f_page_number, $c_filter . $t_hide_inactive_filter . $t_show_disabled_filter . "&sort={$c_sort}&dir={$c_dir}");
开发者ID:khinT,项目名称:mantisbt-master,代码行数:31,代码来源:manage_user_page.php


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