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


PHP Helpers::getinvestorDetails方法代码示例

本文整理汇总了PHP中Helpers::getinvestorDetails方法的典型用法代码示例。如果您正苦于以下问题:PHP Helpers::getinvestorDetails方法的具体用法?PHP Helpers::getinvestorDetails怎么用?PHP Helpers::getinvestorDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Helpers的用法示例。


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

示例1: array

					<?php 
    $investor = Helpers::getinvestorDetails($transaction->user_id);
    ?>
					{{ HTML::link('wallet/'.$transaction->user_id, @strtoupper($investor->firstname . " " . $investor->lastname), array("class" => "")) }}
			</td>
            <td>{{ $amount = $transaction->credit > 0 ? number_format($transaction->credit,2) . " (+)" : number_format($transaction->debit,2) . " (-)" }}</td>
            <td>{{ number_format($transaction->balance,2) }}</td>
            <td>{{ $transaction->updated_at }}</td>
		@else
			<td>{{ $transaction->id }}</td>
			<td>{{ $transaction->mraditransactiontype['desc'] }}</td>
            <td>{{ $transaction->order_id }}</td>
            @if(strtolower(Session::get('account_type')) == 'entrepreneur')
				<td> @if($transaction->mraditransactiontype['id'] == '2')
						<?php 
    $investor = Helpers::getinvestorDetails($transaction->mradicampaignbid['investor_id']);
    ?>
					    {{ @strtoupper($investor->firstname . " " . $investor->lastname) }}
					@endif </td>
			@else
				 <td> @if($transaction->mraditransactiontype['id'] == '1')
					 {{ $transaction->mraditransactionlog['trx_id'] }}
					@endif </td>
			   
				<td>@if($transaction->mraditransactiontype['id'] == '1')
						{{ $transaction->mraditransactionlog['currency'] }}
					@endif</td>
				<td>@if($transaction->mraditransactiontype['id'] == '1')
						{{ $transaction->mraditransactionlog['channel'] }}
					@endif</td>
			@endif
开发者ID:centaurustech,项目名称:bmradi,代码行数:31,代码来源:investor_transactions.blade.php

示例2: getTotalInvestorBid

 public static function getTotalInvestorBid($account_id, $status = false, $isadmin = false)
 {
     if ($status) {
         if (strtolower(session::get('account_type')) == 'investor' || strtolower(session::get('account_type')) == 'entrepreneur') {
             $res = DB::select("select count(mradicampaignbids.id) AS 'count', sum(Amount) as 'amount', tbl_campaigns.campaignstatus from tbl_campaigns inner join mradicampaignbids on tbl_campaigns.uniqueid = mradicampaignbids.campaign_id where mradicampaignbids." . strtolower(session::get('account_type')) . "_id = ? AND LOWER(tbl_campaigns.campaignstatus) = ? GROUP BY tbl_campaigns.campaignstatus", array($account_id, 'ongoing'));
         } else {
             $res = DB::select("select count(mradicampaignbids.id) AS 'count', sum(Amount) as 'amount', tbl_campaigns.campaignstatus from tbl_campaigns inner join mradicampaignbids on tbl_campaigns.uniqueid = mradicampaignbids.campaign_id where LOWER(tbl_campaigns.campaignstatus) = ? GROUP BY tbl_campaigns.campaignstatus", array('ongoing'));
         }
         $bidded = $res;
     } else {
         if ($account_id != "guest" && (strtolower(session::get('account_type')) == 'investor' || strtolower(session::get('account_type')) == 'entrepreneur')) {
             $bidded = Mradicampaignbid::Where(strtolower(session::get('account_type')) . '_id', $account_id)->Where('mraditransactiontype_id', '2');
         } else {
             if ($isadmin) {
                 $acctType = Helpers::getinvestorDetails($account_id)->account_type;
                 $bidded = Mradicampaignbid::Where(strtolower($acctType) . '_id', $account_id)->Where('mraditransactiontype_id', '2');
             } else {
                 $bidded = Mradicampaignbid::Where('mraditransactiontype_id', '2');
             }
         }
     }
     return $bidded;
 }
开发者ID:centaurustech,项目名称:bmradi,代码行数:23,代码来源:Helpers.php

示例3: array

        </tr>
    </thead>
    <tbody>
    @foreach($mytransactions as $transaction)
		
        <tr>
			<td>{{ $transaction->id }}</td>
			<td><?php 
    $hLink = URL::route('campaigns_grid_info', array('campaign' => $transaction->campaign_id));
    ?>
				{{
					HTML::link($hLink, strtoupper(Helpers::getCampaignID($transaction->campaign_id, true)), array("class" => ""));
				}}
			</td>
            <?php 
    $investor = Helpers::getinvestorDetails($transaction->investor_id);
    ?>
			<td>{{ @strtoupper($investor->firstname . " " . $investor->lastname) }}</td>
			<td>{{ $transaction->order_id }}</td>
            <td>{{ number_format($transaction->amount,2) }}</td>
			<td>{{ number_format($transaction->total_bidded,2) }}</td>
			<td>{{  
					number_format((Helpers::getCampaignProposal($transaction->campaign_id)[0]->total_investment - $transaction->total_bidded),2)
			}}</td>
			<td>{{ strtoupper(Helpers::getCampaignID($transaction->campaign_id, '', true)->campaignstatus) }}</td>
            <td>{{ $transaction->updated_at }}</td>
        </tr>
    @endforeach
    </tbody>
</table>	
开发者ID:centaurustech,项目名称:bmradi,代码行数:30,代码来源:campaign_bid_view.blade.php


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