當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。