?> </h1> <div class="Authors"> <div class="IconCol"><img src="img/ShotInfo_iconUser.png" alt="Authors" /></div> <div class="Names"> <?php echo compAuthors($Authors, $Authors_Aliases); ?> </div> </div> <div class="Location"><?php echo compLocationYear($Location, $Year); ?> </div> <?php echo compBrand($Authors, $Brand); ?> <?php echo compTvChannel($Tv_Channel); ?> <div class="Motion_Type"><div class="min_cap">Production type: </div><?php echo compMotionType($Motion_Type); ?> </div> <div class="Broadcast_Type"><div class="min_cap">Function type: </div><?php echo compBroadcastType($Broadcast_Type); ?> </div> <div class="Rating"> <div class="Num"><div class="RateText"><?php
} else { $i = 1; } while ($row = $Collection->fetch_assoc()) { //--- Prepare some data for display extract($row); // Check "here" element if ($Video == $OutId) { $CurrentClass = " here"; } else { $CurrentClass = ""; } // Compile output info $Authors = addslashes(compAuthors($Authors, $Authors_Aliases)); $Location = addslashes(compLocationYear($Location, $Year)); $Brand = addslashes(compBrand($Authors, $Brand)); $Tv_Channel = addslashes(compTvChannel($Tv_Channel)); $Motion_Type_Str = addslashes(compMotionType($Motion_Type)); $Broadcast_Type = addslashes(compBroadcastType($Broadcast_Type)); // Round rating $RatingIndex = round($Rating / 10000, 1); $RatingWidth = round($Rating / 10000, 1) * 10; // Proportion 22:5 ratio where 22 is A and 5 is B): B / (A / 100) = C%. So 22:5 is 5 / .22 = 22.72%. // 1,777777777777778 x W = 56.25%; $RatioPercent = $Height / ($Width / 100); // Get Dates $PubDay = compDate($Date_Create, "d"); $PubMonth = compDate($Date_Create, "M"); $PubYear = compDate($Date_Create, "Y"); //----------------- //--- Pack to json