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


PHP sponsorship_get_currency函数代码示例

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


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

示例1: print_column_title_sponsorship_total

/**
 * Print table header for column sponsorship total
 *
 * @param string $p_sort sort
 * @param string $p_dir direction
 * @param int $p_columns_target see COLUMNS_TARGET_* in constant_inc.php
 * @return null
 * @access public
 */
function print_column_title_sponsorship_total($p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE)
{
    echo "\t<th class=\"column-sponsorship\">";
    print_view_bug_sort_link(sponsorship_get_currency(), 'sponsorship_total', $p_sort, $p_dir, $p_columns_target);
    print_sort_icon($p_dir, $p_sort, 'sponsorship_total');
    echo "</th>\n";
}
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:16,代码来源:columns_api.php

示例2: print_column_title_sponsorship_total

function print_column_title_sponsorship_total($p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE)
{
    $t_enable_sponsorship = config_get('enable_sponsorship');
    if (ON == $t_enable_sponsorship) {
        if ($p_columns_target != COLUMNS_TARGET_CSV_PAGE) {
            echo "\t<td>";
            print_view_bug_sort_link(sponsorship_get_currency(), 'sponsorship_total', $p_sort, $p_dir, $p_columns_target);
            print_sort_icon($p_dir, $p_sort, 'sponsorship_total');
            echo "</td>\n";
        } else {
            echo sponsorship_get_currency();
        }
    }
}
开发者ID:centaurustech,项目名称:BenFund,代码行数:14,代码来源:columns_api.php

示例3: lang_get

<?php 
    if ($t_can_sponsor) {
        ?>
	<tr class="row-1">
		<th class="category" width="15%"><?php 
        echo lang_get('sponsor_issue');
        ?>
</th>
		<td>
			<form method="post" action="bug_set_sponsorship.php">
				<?php 
        echo form_security_field('bug_set_sponsorship');
        ?>
				<?php 
        echo sponsorship_get_currency();
        ?>
				<input type="hidden" name="bug_id" value="<?php 
        echo $f_bug_id;
        ?>
" size="4" />
				<input type="text" name="amount" value="<?php 
        echo config_get('minimum_sponsorship_amount');
        ?>
" size="4" />
				<input type="submit" class="button" name="sponsor" value="<?php 
        echo lang_get('sponsor_verb');
        ?>
" />
			</form>
		</td>
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:30,代码来源:bug_sponsorship_list_view_inc.php

示例4: sponsorship_format_amount

/**
 * This function should return the string in a globalized format.
 * @param int $p_amount
 * @return string
 * @todo add some currency formating in the future
 */
function sponsorship_format_amount($p_amount)
{
    $t_currency = sponsorship_get_currency();
    return $t_currency . ' ' . $p_amount;
}
开发者ID:nextgens,项目名称:mantisbt,代码行数:11,代码来源:sponsorship_api.php

示例5: lang_get

				echo '&#160;[<a href="' . $t_details_url . '" target="_blank">'
					. lang_get( 'sponsorship_more_info' ) . '</a>]';
			}
		?>
		</td>
	</tr>

<?php
	if ( $t_can_sponsor ) {
?>
	<tr class="row-1">
		<th class="category" width="15%"><?php echo lang_get( 'sponsor_issue' ) ?></th>
		<td>
			<form method="post" action="bug_set_sponsorship.php">
				<?php echo form_security_field( 'bug_set_sponsorship' ) ?>
				<?php echo sponsorship_get_currency() ?>
				<input type="hidden" name="bug_id" value="<?php echo $f_bug_id ?>" size="4" />
				<input type="text" name="amount" value="<?php echo config_get( 'minimum_sponsorship_amount' )  ?>" size="4" />
				<input type="submit" class="button" name="sponsor" value="<?php echo lang_get( 'sponsor_verb' ) ?>" />
			</form>
		</td>
	</tr>
<?php
	}

	$t_total_sponsorship = bug_get_field( $f_bug_id, 'sponsorship_total' );
	if ( $t_total_sponsorship > 0 ) {
?>
	<tr class="row-2">
		<th class="category" width="15%"><?php echo lang_get( 'sponsors_list' ) ?></th>
		<td>
开发者ID:rombert,项目名称:mantisbt,代码行数:31,代码来源:bug_sponsorship_list_view_inc.php

示例6: sponsorship_format_amount

function sponsorship_format_amount($amount)
{
    # @@@ add some currency formating in the future
    $t_currency = sponsorship_get_currency();
    return "{$t_currency} {$amount}";
}
开发者ID:amjadtbssm,项目名称:website,代码行数:6,代码来源:sponsorship_api.php


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