<div class="row"> <div class="col-md-12"> <h3 class="subset-title l-pump"> @if (empty($self)) Their Interests: @else Your Interests: @endif <small class="font-sans-serif">(Multiple Choice)</small> </h3> </div> </div> <!-- interest options --> <div class="row"> <?php $giftee_interests = columnizeArray($giftee_interests, 3); ?> <!-- interest col 1 --> <div class="col-md-4"> @if (isset($giftee_interests[0])) @foreach($giftee_interests[0] as $giftee_interest) <div class="input-group selectable-input-group smartform-subscriber" data-smartform-dependencies='{{ HTML::categorySmartFormDependencies($giftee_interest) }}' data-smartform-exclusions='{{ HTML::categorySmartFormExclusions($giftee_interest) }}'> <span class="input-group-addon input-group-selector" data-input-group-selectors-class="input-group-selector-interests" data-input-group-selection-id="input-group-selector-interests-{{ $giftee_interest['id'] }}" data-target="#interest-sub-{{ $giftee_interest['id'] }}"> <input type="checkbox" id="input-group-selector-interests-{{ $giftee_interest['id'] }}" class="input-group-form-element selectable-input-group input-group-selector-interests smartform-trigger{{ $category_keywords_provider }}" data-category-keywords="{{ ucwords($giftee_interest['keywords']) }}" data-target="#interest-sub-{{ $giftee_interest['id'] }}" data-input-group-selectors-class="input-group-selector-interests" data-input-group-selection-id="input-group-selector-interests-{{ $giftee_interest['id'] }}" name="query[add_attributes][interest_ids][{{ $giftee_interest['id'] }}]" data-smartform-class="interest_categories" data-smartform-value="{{ $giftee_interest['id'] }}" @if ($pre_populate && in_array($giftee_interest['id'], $pre_populate_interest_ids)){{ ' checked' }}@endif> </span> <span class="form-control collapse-form-control"> <h4 class="collapse-form-control-innerContainer input-group-selector" style="margin:0;" data-input-group-selectors-class="input-group-selector-interests" data-input-group-selection-id="input-group-selector-interests-{{ $giftee_interest['id'] }}" data-target="#interest-sub-{{ $giftee_interest['id'] }}"> <div class="gt-input-form-group__content"> <div> {{ HTML::smallCategoryIcon($giftee_interest['icon_name'], 'selectable-input-group__image', 'selectable-input-group__image-cover') }} </div>
} else { // working on column 2 or higher $array2[$v[0]] = array(); foreach ($array[0] as $k1 => $v1) { if ($v1 > 0) { // ignore the column heading // store the first column variable in as the key. // Store the value associated with this item as the value. $array2[$v[0]][$v1] = $v[$k1]; } } } } return $array2; } $array2 = groupColumns(columnizeArray($csvarray)); //Start Printing Weather Variables// $averagepressure = array_filter($array2['Mean Sea Level PressurehPa']); $pressure = array_sum($averagepressure) / count($averagepressure); if ($pressure >= 1040) { echo "<img src=\"images/icon-set/PNG/150x150/hazy.png\" width='100px' height='100px' title='Very Dry'/> "; } elseif ($pressure >= 1020) { echo "<img src=\"images/icon-set/PNG/150x150/sunny.png\" width='100px' height='100px' title='Fair'/> "; } elseif ($pressure >= 984) { echo "<img src=\"images/icon-set/PNG/150x150/m-c-rain.png\" width='100px' height='100px' title='Change' />"; } elseif ($pressure >= 960) { echo "<img src=\"images/icon-set/PNG/150x150/rainy.png\" width='100px' height='100px' title='Rain'/>"; } elseif ($pressure < 960) { echo "<img src=\"images/icon-set/PNG/150x150/t-storm-rain.png\" width='100px' height='100px' title='Stormy' />"; } else { echo " <img src=\"images/icon-set/PNG/150x150/na.png\" width='100px' height='100px' title='Could not load Weather'/>";