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


PHP Helpers::getUploadedFileDetails方法代码示例

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


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

示例1: foreach

//dd($recent_campaigns);
foreach ($recent_campaigns as $item) {
    //total amount bidded
    $myBid = Helpers::getTotalBidded($item->uniqueid);
    $totalBid = $myBid ? $myBid->total_bidded : '0';
    //campaign value
    $investment = Helpers::getTotalInvestment($item->uniqueid);
    $campaignValue = $investment ? $investment[0]->total_investment : 0;
    //$percentage_share_completion = ($item->share_bought * 100) / $item->no_of_shares;
    $percentage_share_completion = $totalBid * 100 / $campaignValue;
    //echo $percentage_share_completion; exit;
    ?>

            <div class='temp_one_index_campaign_holder' style="height: auto !important;">
                <?php 
    $file = Helpers::getUploadedFileDetails($item->listing_logo);
    if (empty($file)) {
        $image = 'no-image.png';
    } else {
        $image = $file[0]->file_alias;
    }
    echo HTML::image("/assets/{$image}", $item->campaigname . ' campaign logo', array("height" => "180px", "width" => "100%"));
    ?>
                <div class="" >
                    <div class="panel-body" style='height: 100px;'>
                        <div style="color: #57A0C9;">
                            <h4><?php 
    echo $item->campaigname;
    ?>
</h4>
                            <div class="progress">
开发者ID:centaurustech,项目名称:bmradi,代码行数:31,代码来源:index4.php

示例2: ucfirst

            <!-- User Account: style can be found in dropdown.less -->
            <li class="dropdown user user-menu">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="glyphicon glyphicon-user"></i>
                    <span><?php 
echo ucfirst(Session::get('username'));
?>
 <i class="caret"></i></span>
                </a>
                <ul class="dropdown-menu">
                    <!-- User image -->
                    <li class="user-header bg-light-blue">
                        <?php 
if (strtolower(session::get('account_type')) != "admin") {
    $profileDetails = Helpers::getProfileDetails();
    $file = Helpers::getUploadedFileDetails($profileDetails[0]->profile_pic);
    $file_name = '';
    if (empty($file)) {
        $file_name = 'no-image.png';
    } else {
        $file_name = $file[0]->file_alias;
    }
    ?>
								{{ HTML::image('assets/'.$file_name, $profileDetails[0]->firstname,array("class"=>"img-circle", "width"=>"250px","height"=>"150px")) }}
						<?php 
} else {
    ?>
							{{ HTML::image('assets/'.'ll.jpg', "Profile Image", array("class"=>"img-circle", "width"=>"250px","height"=>"150px")) }}
						<?php 
}
?>
开发者ID:centaurustech,项目名称:bmradi,代码行数:31,代码来源:header.blade+(copy).php

示例3: array

        $tab_body .= Form::hidden('campaign', $campaign);
        $tab_body .= Form::hidden('team_id', $val->id);
        $nmErr = $errors->has("name") ? "has-error" : "";
        $ttErr = $errors->has("title") ? "has-error" : "";
        $rlErr = $errors->has("role") ? "has-error" : "";
        $qfErr = $errors->has("qualifications") ? "has-error" : "";
        $xpErr = $errors->has("experience") ? "has-error" : "";
        $dsErr = $errors->has("description") ? "has-error" : "";
        $pcErr = $errors->has("pics_search") ? "has-error" : "";
        $picVal = "";
        if ($file = Helpers::getUploadedFileDetails($val->picture)) {
            $picVal = HTML::link("/download/" . $file[0]->file_alias, " " . $file[0]->file_name, array('class' => 'fa fa-download'));
        }
        $cvErr = $errors->has("cv_search") ? "has-error" : "";
        $cvVal = "";
        if ($file = Helpers::getUploadedFileDetails($val->cv)) {
            $cvVal = HTML::link("/download/" . $file[0]->file_alias, " " . $file[0]->file_name, array('class' => 'fa fa-download'));
        }
        $tab_body .= '<label for="name">Name</label>
									<div class="form-group ' . $nmErr . '" style="margin-left: 140px !important;">
										<div class="input-group">
											<span class="input-group-addon "></span>
											' . Form::text('name', $val->name, array("class" => "form-control", "style" => "width:70% !important;")) . '
										</div>
									</div>

									<label for="title">Title</label>
									<div class="form-group ' . $ttErr . '" style="margin-left: 140px !important;">
										<div class="input-group">
											<span class="input-group-addon "></span>
											' . Form::text('title', $val->title, array("class" => "form-control", "style" => "width:70% !important;")) . '
开发者ID:centaurustech,项目名称:bmradi,代码行数:31,代码来源:create_campaign.blade.php

示例4: generateCampaignGridList

 public static function generateCampaignGridList($parameters = array(), $mystatus = false)
 {
     extract($parameters);
     $gridComponent = '<div class="">
                         <div class="row" style="margin: 0 auto;">';
     $category = Input::get('categories_list') != 'All' || Input::get('categories_list') != '0' ? Input::get('categories_list') : '';
     if ($mystatus && strlen($mystatus) > 0) {
         $recent_campaigns = Campaign::get_campaigns($category, $mystatus);
     } else {
         $recent_campaigns = Campaign::get_campaigns($category);
     }
     foreach ($recent_campaigns as $item) {
         $file = Helpers::getUploadedFileDetails($item->listing_logo);
         if (empty($file)) {
             $image = 'no-image.png';
         } else {
             $image = $file[0]->file_alias;
         }
         $u = URL::route('campaigns_grid_info', array('campaign' => $item->uniqueid));
         $moreInfo = HTML::link($u, '...view more', array("class" => ""));
         $gridComponent .= " <div class='campaign_holder campaign_holder' style='height: auto !important;'>\n                            " . HTML::image("/assets/{$image}", $item->campaigname . ' campaign logo', array("height" => "180px", "width" => "100%")) . "\n                            <div class=''>\n                            <div class='panel-body'>\n                            <div style='color: #57A0C9;'>\n                                <h4>{$item->campaigname}</h4>\n                                <!--<div class=\"progress\">\n                                    <div class=\"progress-bar progress-bar-warning\" role=\"progressbar\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: percentage_share_completion;\">\n                                        <span class=\"sr-only\">percentage_share_completion Complete</span>\n                                    </div>\n                                </div>-->\n                            </div>\n                                </div>\n                                <div class=\"panel-footer\" style='height: 100px;'>\n                                    " . substr($item->business_summary, 0, 100) . $moreInfo . "\n                                </div>\n                                <!--<div class=\"panel-footer\" style='height: 100px;'>\n                                    <h5>item->no_of_shares Shares </h5>\n                                    <h6>item->no_of_shares - item->share_bought Remaining |  Days Remaining</h6>\n                                </div>-->\n                            </div>                 \n                        </div>";
     }
     if (count($recent_campaigns) == 0) {
         $gridComponent .= '<br/><br/><div class="callout callout-warning">
                                     <h4>No campaigns found under category selected</h4>
                                 </div>';
     }
     $gridComponent .= '</div>
                         </div>';
     return $gridComponent;
 }
开发者ID:centaurustech,项目名称:bmradi,代码行数:31,代码来源:Helpers.php


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